本文整理汇总了PHP中TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons方法的典型用法代码示例。如果您正苦于以下问题:PHP SpriteManager::addSingleIcons方法的具体用法?PHP SpriteManager::addSingleIcons怎么用?PHP SpriteManager::addSingleIcons使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Backend\Sprite\SpriteManager
的用法示例。
在下文中一共展示了SpriteManager::addSingleIcons方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Filetree', 'LLL:EXT:fal_securedownload/Resources/Private/Language/locallang_be.xlf:plugin.title');
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_filetree';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,recursive,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/FileTree.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'FileTree');
if (TYPO3_MODE === 'BE') {
// Add click menu item:
$GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'BeechIt\\FalSecuredownload\\Hooks\\ClickMenuOptions');
}
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('folder' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/folder.png', 'overlay-permissions' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/permissions-set-in-root-line.png'), 'fal_securedownload');
示例2: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'focuspoint');
$icons = array('focuspoint' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('focuspoint') . 'ext_icon.png');
// Gives the $icon array to the sprite manager
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'focuspoint');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('focuspoint', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/Focuspoint/');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['focuspoint_test'] = 'image,image_ratio';
示例3: defined
<?php
defined('TYPO3_MODE') or die;
/** @var string $_EXTKEY */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Content', 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:plugins.title', 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/tt_content_ts.gif');
if (TYPO3_MODE === 'BE') {
if (version_compare(TYPO3_branch, '7.6', '<')) {
// @see Deprecation: #70477 - Deprecate SpriteIcon classes
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('content' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'), $_EXTKEY);
} else {
/** @noinspection PhpUndefinedClassInspection */
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $prefaIconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Imaging\\IconRegistry');
$iconRegistry->registerIcon('extensions-typoscript_code-content', 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\BitmapIconProvider', array('source' => 'EXT:typoscript_code/Resources/Public/Icons/tt_content_ts.png'));
}
}
示例4: array
# ), array(
# 'access' => 'user,group',
# 'icon' => 'EXT:vidi/Resources/Public/Images/list.png',
# 'labels' => $labelFile,
# )
# );
#}
#if ($configuration['hide_module_list']['value']) {
#
# // Default User TSConfig to be added in any case.
# TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
#
# # Hide the module in the BE.
# options.hideModules.web := addToList(list)
# ');
#}
/** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
/** @var $signalSlotDispatcher \TYPO3\CMS\Extbase\SignalSlot\Dispatcher */
$signalSlotDispatcher = $objectManager->get('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
// Connect "processContentData" signal slot with the "ContentObjectProcessor".
$signalSlotDispatcher->connect('Fab\\Vidi\\Controller\\Backend\\ContentController', 'processContentData', 'Fab\\Vidi\\Processor\\ContentObjectProcessor', 'processRelations', TRUE);
// Connect "processContentData" signal with the "MarkerProcessor".
$signalSlotDispatcher->connect('Fab\\Vidi\\Controller\\Backend\\ContentController', 'processContentData', 'Fab\\Vidi\\Processor\\MarkerProcessor', 'processMarkers', TRUE);
// Register default Tools for Vidi.
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('*', 'Fab\\Vidi\\Tool\\ModulePreferencesTool');
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('*', 'Fab\\Vidi\\Tool\\RelationAnalyserTool');
}
// Add new sprite icon.
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(['go' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('vidi') . 'Resources/Public/Images/bullet_go.png', 'query' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('vidi') . 'Resources/Public/Images/drive_disk.png'], 'vidi');
示例5: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// TS FILE Toolbox Base
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Resources/Private/TypoScript', 'ecom Toolbox Base');
// TS FILE for Ext:News
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Resources/Private/TypoScript/News', 'ecom Toolbox for EXT:News');
// Backend Icons
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(['region-default' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_countries.svg', 'region-country' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_countries.svg', 'region-region' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_country_zones.svg', 'language' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_languages.svg'], 'ecomtoolbox');
// CSH Files
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_ecomtoolbox_domain_model_language', 'EXT:ecom_toolbox/Resources/Private/Language/locallang_csh_tx_ecomtoolbox_domain_model_language.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_ecomtoolbox_domain_model_region', 'EXT:ecom_toolbox/Resources/Private/Language/locallang_csh_tx_ecomtoolbox_domain_model_region.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_ecomtoolbox_domain_model_state', 'EXT:ecom_toolbox/Resources/Private/Language/locallang_csh_tx_ecomtoolbox_domain_model_state.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_ecomtoolbox_domain_model_territory', 'EXT:ecom_toolbox/Resources/Private/Language/locallang_csh_tx_ecomtoolbox_domain_model_territory.xlf');
// Extend EXT:News Flexform SortBy Dropdown
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByNews'] .= ',ecom_event_date,ecom_blogpost_visits';
示例6: defined
<?php
defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'tools', 'extensionmanager', '', array('List' => 'index,unresolvedDependencies,ter,showAllVersions,distributions', 'Action' => 'toggleExtensionInstallationState,installExtensionWithoutSystemDependencyCheck,removeExtension,downloadExtensionZip,downloadExtensionData', 'Configuration' => 'showConfigurationForm,save,saveAndClose', 'Download' => 'checkDependencies,installFromTer,installExtensionWithoutSystemDependencyCheck,installDistribution,updateExtension,updateCommentForUpdatableVersions', 'UpdateScript' => 'show', 'UpdateFromTer' => 'updateExtensionListFromTer', 'UploadExtensionFile' => 'form,extract', 'Distribution' => 'show'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-extensionmanager.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
// Register extension status report system
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] = 'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus';
}
// Register specific icon for update script button
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'), $_EXTKEY);
示例7: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'CoderDojo Nürnberg');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_twcoderdojo_domain_model_person', 'EXT:tw_coderdojo/Resources/Private/Language/locallang_csh_tx_twcoderdojo_domain_model_person.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_twcoderdojo_domain_model_person');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_twcoderdojo_domain_model_contact', 'EXT:tw_coderdojo/Resources/Private/Language/locallang_csh_tx_twcoderdojo_domain_model_contact.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_twcoderdojo_domain_model_contact');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_twcoderdojo_domain_model_skill', 'EXT:tw_coderdojo/Resources/Private/Language/locallang_csh_tx_twcoderdojo_domain_model_skill.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_twcoderdojo_domain_model_skill');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_twcoderdojo_domain_model_date', 'EXT:tw_coderdojo/Resources/Private/Language/locallang_csh_tx_twcoderdojo_domain_model_date.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_twcoderdojo_domain_model_date');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_twcoderdojo_domain_model_location', 'EXT:tw_coderdojo/Resources/Private/Language/locallang_csh_tx_twcoderdojo_domain_model_location.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_twcoderdojo_domain_model_location');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('mentor' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_twcoderdojo_domain_model_mentor.png', 'ninja' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_twcoderdojo_domain_model_ninja.png', 'helper' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_twcoderdojo_domain_model_helper.png'), $_EXTKEY);
// Date plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Date', 'LLL:EXT:tw_coderdojo/Resources/Private/Language/locallang_db.xml:tt_content.list_type.date');
// Mentor plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Mentor', 'LLL:EXT:tw_coderdojo/Resources/Private/Language/locallang_db.xml:tt_content.list_type.mentor');
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Tollwerk.' . $_EXTKEY, 'tools', 'coderdojo', '', array('CoderDojo' => 'index,download'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
示例8: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
// Add module
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('system', 'txschedulerM1', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/');
// Add context sensitive help (csh) to the backend module
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_system_txschedulerM1', 'EXT:' . $_EXTKEY . '/mod1/locallang_csh_scheduler.xlf');
}
// Register specific icon for run task button
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('run-task' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/RunTask.png'), $_EXTKEY);
示例9: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_devlog_domain_model_entry');
// Add context sensitive help (csh) to the backend module and to the tx_devlog table
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_devlog_domain_model_entry', 'EXT:devlog/Resources/Private/Language/locallang_csh_txdevlog.xlf');
$pathToExtension = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('devlog');
// Register the extension's icons
$icons = array('entry' => $pathToExtension . 'Resources/Public/Icons/Entry.png');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'devlog');
示例10: unset
// @todo Remove if statement when 6.2 is no longer relevant
if (version_compare(TYPO3_branch, '7.6', '>=')) {
// Add icons to registry
/* @var $iconRegistry \TYPO3\CMS\Core\Imaging\IconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon('extensions-t3extblog-post', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/page.png']);
$iconRegistry->registerIcon('extensions-t3extblog-category', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/category.png']);
$iconRegistry->registerIcon('extensions-t3extblog-comment', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/comment.png']);
$iconRegistry->registerIcon('extensions-t3extblog-subscriber', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/subscriber.png']);
$iconRegistry->registerIcon('extensions-t3extblog-trackback', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/trackback.png']);
// Add BE page icon
$iconRegistry->registerIcon('tcarecords-pages-contains-t3blog', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/folder.png']);
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = $pageModuleConfig;
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-t3blog'] = 'tcarecords-pages-contains-t3blog';
} else {
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('post' => $extensionPath . 'Resources/Public/Icons/page.png', 'category' => $extensionPath . 'Resources/Public/Icons/category.png', 'comment' => $extensionPath . 'Resources/Public/Icons/comment.png', 'subscriber' => $extensionPath . 'Resources/Public/Icons/subscriber.png', 'trackback' => $extensionPath . 'Resources/Public/Icons/trackback.png'), 't3extblog');
// Add BE page icon
unset($GLOBALS['ICON_TYPES']['t3blog']);
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-t3blog', '../typo3conf/ext/t3extblog/Resources/Public/Icons/folder.png');
$addNewsToModuleSelection = TRUE;
foreach ($GLOBALS['TCA']['pages']['columns']['module']['config']['items'] as $item) {
if ($item[1] === 't3blog') {
$addNewsToModuleSelection = FALSE;
continue;
}
}
if ($addNewsToModuleSelection) {
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = $pageModuleConfig;
}
}
// @todo Remove this when 6.2 is no longer relevant
示例11: defined
<?php
defined('TYPO3_MODE') or die;
// avoid that this block is loaded in the frontend or within the upgrade-wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/** Registers a Backend Module */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.Workspaces', 'web', 'workspaces', 'before:info', array('Review' => 'index,fullIndex,singleIndex', 'Preview' => 'index,newPage'), array('access' => 'user,group', 'icon' => 'EXT:workspaces/Resources/Public/Icons/module-workspaces.svg', 'labels' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_mod.xlf', 'navigationComponentId' => 'typo3-pagetree'));
// register ExtDirect
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent('TYPO3.Workspaces.ExtDirect', \TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer::class, 'web_WorkspacesWorkspaces', 'user,group');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent('TYPO3.Workspaces.ExtDirectActions', \TYPO3\CMS\Workspaces\ExtDirect\ActionHandler::class, 'web_WorkspacesWorkspaces', 'user,group');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent('TYPO3.Workspaces.ExtDirectMassActions', \TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler::class, 'web_WorkspacesWorkspaces', 'user,group');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Workspaces::setWorkspace', \TYPO3\CMS\Workspaces\Controller\AjaxController::class . '->setWorkspace');
}
// @todo move icons to Core sprite or keep them here and remove the todo note ;)
$icons = array('sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtonextstage.png', 'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtoprevstage.png', 'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/generate-ws-preview-link.png');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'workspaces');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');
示例12: array
// Toolbar order
// Must be completely reset
RTE.default.toolbarOrder = formatblock, blockstyle, textstyle, linebreak, bold, italic, underline, strikethrough, bar, textcolor, bgcolor, bar, orderedlist, unorderedlist, bar, left, center, right, justifyfull, copy, cut, paste, bar, undo, redo, bar, findreplace, removeformat, bar, link, unlink, linkcreator, bar, imageeditor, bar, table, bar, line, bar, insertparagraphbefore, insertparagraphafter, bar, chMode, showhelp, about, linebreak, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
RTE.default.RTEHeightOverride = 700
RTE.default.RTEWidthOverride = 700
');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Fab.media', 'user', 'm1', 'bottom', array('Asset' => 'create, update, download, editStorage', 'ImageEditor' => 'show', 'LinkCreator' => 'show', 'ProcessedFile' => 'create'), array('access' => 'user,group', 'icon' => 'EXT:media/ext_icon.gif', 'labels' => 'LLL:EXT:media/Resources/Private/Language/locallang_module.xlf'));
$defaultMainModule = (bool) $configuration['has_folder_tree']['value'] ? 'file' : 'content';
/** @var \Fab\Vidi\Module\ModuleLoader $moduleLoader */
$moduleLoader = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Fab\\Vidi\\Module\\ModuleLoader', 'sys_file');
$moduleLoader->setIcon('EXT:media/ext_icon.gif')->setModuleLanguageFile($moduleFileLanguage)->setMainModule($defaultMainModule)->addJavaScriptFiles(array('EXT:media/Resources/Public/JavaScript/Initialize.js', 'EXT:media/Resources/Public/JavaScript/Media.js', 'EXT:media/Resources/Public/JavaScript/Media.EditStorage.js', 'EXT:media/Resources/Public/JavaScript/Media.BrowseRecursively.js', 'EXT:media/Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'))->addStyleSheetFiles(array('EXT:media/Resources/Public/StyleSheets/media.css', 'EXT:media/Resources/Public/StyleSheets/fineuploader.css'))->setDocHeaderTopLeftComponents(array('Fab\\Media\\View\\Menu\\StorageMenu', 'Fab\\Media\\View\\Checkbox\\RecursiveCheckbox'))->setDocHeaderBottomLeftComponents(array('Fab\\Vidi\\View\\Button\\ClipboardButton', 'Fab\\Media\\View\\Button\\NewFolder', 'Fab\\Media\\View\\Button\\UploadButton'))->setGridTopComponents(array('Fab\\Media\\View\\InlineJavaScript', 'Fab\\Media\\View\\Warning\\ConfigurationWarning', 'Fab\\Media\\View\\Info\\SelectedFolderInfo'))->setGridBottomComponents(array('Fab\\Media\\View\\Plugin\\LinkCreatorPlugin', 'Fab\\Media\\View\\Plugin\\ImageEditorPlugin', 'Fab\\Media\\View\\Plugin\\FilePickerPlugin'))->setGridButtonsComponents(array('Fab\\Media\\View\\Button\\LinkCreatorButton', 'Fab\\Media\\View\\Button\\ImageEditorButton', 'Fab\\Media\\View\\Button\\FilePickerButton', 'Fab\\Media\\View\\Button\\EditButton', 'Fab\\Media\\View\\Button\\DownloadButton', 'Fab\\Media\\View\\Button\\DeleteButton'))->setMenuMassActionComponents(array('Fab\\Vidi\\View\\MenuItem\\ExportXlsMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ExportXmlMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ExportCsvMenuItem', 'Fab\\Vidi\\View\\MenuItem\\DividerMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ClipboardMenuItem', 'Fab\\Media\\View\\MenuItem\\FilePickerMenuItem', 'Fab\\Media\\View\\MenuItem\\ChangeStorageMenuItem', 'Fab\\Vidi\\View\\MenuItem\\MassDeleteMenuItem'))->register();
/** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
/** @var $signalSlotDispatcher \TYPO3\CMS\Extbase\SignalSlot\Dispatcher */
$signalSlotDispatcher = $objectManager->get('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
# Register some tool for Media.
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\ThumbnailGeneratorTool');
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\CacheWarmUpTool');
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\MissingFilesFinderTool');
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\DuplicateRecordsFinderTool');
\Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\DuplicateFilesFinderTool');
// Connect some signals with slots.
$signalSlotDispatcher->connect('Fab\\Vidi\\Controller\\Backend\\ContentController', 'postProcessMatcherObject', 'Fab\\Media\\Security\\FilePermissionsAspect', 'addFilePermissionsForFileStorages', TRUE);
$signalSlotDispatcher->connect('Fab\\Vidi\\Domain\\Repository\\ContentRepository', 'postProcessConstraintsObject', 'Fab\\Media\\Security\\FilePermissionsAspect', 'addFilePermissionsForFileMounts', TRUE);
$signalSlotDispatcher->connect('Fab\\Vidi\\Service\\ContentService', 'afterFindContentObjects', 'Fab\\Media\\Facet\\ActionPermissionFacet', 'modifyResultSet', TRUE);
}
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('image-edit' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_edit.png', 'image-link' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_link.png', 'image-export' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_export.png', 'storage-change' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/folder_go.png'), 'media');
示例13: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
// adding the Solr connection status to the status report
$statusSection = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('solr') ? 'solr' : 'tika';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers'][$statusSection][] = 'ApacheSolrForTypo3\\Tika\\Report\\TikaStatus';
$iconPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/';
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('ModuleTikaControlPanel' => $iconPath . 'Tika.png'), $_EXTKEY);
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('solr')) {
\ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'TikaControlPanel', array('index'));
}
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] = 'ApacheSolrForTypo3\\Tika\\StatusCheck->updateStatus';
示例14: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// register frontend plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('CPSIT.' . $_EXTKEY, 'Pi1', 'Reservations');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Reservations');
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('CPSIT.' . $_EXTKEY, 'Events', 'm1', '', ['Backend\\Bookings' => 'list, show, edit, update, cancel, delete, newParticipant, createParticipant,
editParticipant, removeParticipant, newNotification, createNotification, reset, download'], ['access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module_icon_reservation.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_m1.xlf']);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('CPSIT.' . $_EXTKEY, 'Events', 'm3', '', ['Backend\\Participant' => 'list, download,reset'], ['access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module_icon_participant.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_m3.xlf']);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_t3eventsreservation_domain_model_reservation', 'EXT:t3events_reservation/Resources/Private/Language/locallang_csh_tx_t3eventsreservation_domain_model_reservation.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_t3eventsreservation_domain_model_reservation');
// add sprite icons
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(['download-excel-white' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_excel_white.png', 'download-excel-blue' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_excel_blue.png'], $_EXTKEY);
示例15:
<?php
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('lightning-blue' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/lightning_blue.png'), $_EXTKEY);