Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flexslider
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
flexslider
Commits
d2972570
Commit
d2972570
authored
Apr 24, 2012
by
Andy Hausmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Plugin to the 'New content element'-Wizard.
parent
3b5ae37e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
1 deletion
+92
-1
class.flexslider_wizicon.php
Resources/Private/Php/class.flexslider_wizicon.php
+88
-0
ext_tables.php
ext_tables.php
+4
-1
No files found.
Resources/Private/Php/class.flexslider_wizicon.php
0 → 100644
View file @
d2972570
<?php
/***************************************************************
* Copyright notice
*
* (c) 2012 Andy Hausmann <hi@andy-hausmann.de>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Class that adds the wizard icon.
*
* @author Andy Hausmann <hi@andy-hausmann.de>
* @package flexslider
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
class
flexslider_pi1_wizicon
{
protected
$extKey
=
''
;
protected
$plugin
=
''
;
protected
$pluginSignature
=
''
;
public
function
__construct
()
{
$this
->
extKey
=
'flexslider'
;
$this
->
plugin
=
'pi1'
;
$this
->
pluginSignature
=
strtolower
(
$this
->
extKey
.
'_'
.
$this
->
plugin
);
}
/**
* Processing the wizard items array
*
* @param array $wizardItems: The wizard items
* @return Modified array with wizard items
*/
public
function
proc
(
$wizardItems
)
{
$locallang
=
$this
->
includeLocalLang
();
$wizardItems
[
'plugins_tx_'
.
$this
->
extKey
]
=
array
(
'icon'
=>
t3lib_extMgm
::
extRelPath
(
$this
->
extKey
)
.
'Resources/Public/Icons/'
.
$this
->
plugin
.
'_ce_wiz.gif'
,
'title'
=>
$GLOBALS
[
'LANG'
]
->
getLLL
(
$this
->
plugin
.
'_title'
,
$locallang
),
'description'
=>
$GLOBALS
[
'LANG'
]
->
getLLL
(
$this
->
plugin
.
'_plus_wiz_description'
,
$locallang
),
'params'
=>
'&defVals[tt_content][CType]=list&defVals[tt_content][list_type]='
.
$this
->
pluginSignature
);
return
$wizardItems
;
}
/**
* Reads the Backend Localization file.
*
* @return The array with language labels
*/
protected
function
includeLocalLang
()
{
$l10nParser
=
t3lib_div
::
makeInstance
(
't3lib_l10n_parser_Llxml'
);
$llFile
=
t3lib_extMgm
::
extPath
(
$this
->
extKey
)
.
'Resources/Private/Language/locallang_be.xml'
;
return
$l10nParser
->
getParsedData
(
$llFile
,
$GLOBALS
[
'LANG'
]
->
lang
);
}
}
if
(
defined
(
'TYPO3_MODE'
)
&&
$TYPO3_CONF_VARS
[
TYPO3_MODE
][
'XCLASS'
][
'ext/flexslider/Resources/Private/Php/class.flexslider_wizicon.php'
])
{
include_once
(
$TYPO3_CONF_VARS
[
TYPO3_MODE
][
'XCLASS'
][
'ext/flexslider/Resources/Private/Php/class.flexslider_wizicon.php'
]);
}
?>
\ No newline at end of file
ext_tables.php
View file @
d2972570
...
...
@@ -53,4 +53,7 @@ $TCA['tx_flexslider_domain_model_flexslider'] = array(
),
);
?>
\ No newline at end of file
if
(
TYPO3_MODE
===
'BE'
)
{
// Add Plugin to CE Wizard
$TBE_MODULES_EXT
[
'xMOD_db_new_content_el'
][
'addElClasses'
][
$pluginSignature
.
'_wizicon'
]
=
t3lib_extMgm
::
extPath
(
$_EXTKEY
)
.
'Resources/Private/Php/class.'
.
$_EXTKEY
.
'_wizicon.php'
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment