@@ -7,11 +7,11 @@ |
||
| 7 | 7 | * InstallSignalSlot |
| 8 | 8 | */ |
| 9 | 9 | class InstallSignalSlot implements SingletonInterface { |
| 10 | - /** |
|
| 11 | - * Install AddionalConfiguration |
|
| 12 | - */ |
|
| 13 | - public function installAdditionalConfiguration() { |
|
| 14 | - $updateService = new UpdateService(); |
|
| 15 | - $updateService->main(); |
|
| 16 | - } |
|
| 10 | + /** |
|
| 11 | + * Install AddionalConfiguration |
|
| 12 | + */ |
|
| 13 | + public function installAdditionalConfiguration() { |
|
| 14 | + $updateService = new UpdateService(); |
|
| 15 | + $updateService->main(); |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | \ No newline at end of file |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | class GetYoutubeIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param string $url |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 43 | - public function render($url) {
|
|
| 44 | - if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
|
|
| 45 | - $videoId = $match[1]; |
|
| 46 | - } |
|
| 47 | - return $videoId; |
|
| 48 | - } |
|
| 39 | + /** |
|
| 40 | + * @param string $url |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | + public function render($url) {
|
|
| 44 | + if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
|
|
| 45 | + $videoId = $match[1]; |
|
| 46 | + } |
|
| 47 | + return $videoId; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | class GetVimeoIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param string $url |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 43 | - public function render($url) {
|
|
| 44 | - if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
|
|
| 45 | - $videoId = $match[3]; |
|
| 46 | - } |
|
| 47 | - return $videoId; |
|
| 48 | - } |
|
| 39 | + /** |
|
| 40 | + * @param string $url |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | + public function render($url) {
|
|
| 44 | + if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
|
|
| 45 | + $videoId = $match[3]; |
|
| 46 | + } |
|
| 47 | + return $videoId; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -65,22 +65,22 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | $settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]); |
| 67 | 67 | if($settings['UseRealUrlConfig'] == 1){ |
| 68 | - @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 68 | + @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | if (TYPO3_MODE === 'BE') { |
| 72 | 72 | // enable SignalSlot |
| 73 | 73 | /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */ |
| 74 | - $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
|
| 75 | - /** |
|
| 76 | - * Provides an example .htaccess file for Apache after extension is installed and shows a warning if TYPO3 is not running on Apache. |
|
| 77 | - */ |
|
| 78 | - $signalSlotDispatcher->connect( |
|
| 79 | - 'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService', |
|
| 80 | - 'hasInstalledExtensions', |
|
| 81 | - 'DCNGmbH\\MooxCore\\Service\\InstallService', |
|
| 82 | - 'generateApacheHtaccess' |
|
| 83 | - ); |
|
| 74 | + $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
|
| 75 | + /** |
|
| 76 | + * Provides an example .htaccess file for Apache after extension is installed and shows a warning if TYPO3 is not running on Apache. |
|
| 77 | + */ |
|
| 78 | + $signalSlotDispatcher->connect( |
|
| 79 | + 'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService', |
|
| 80 | + 'hasInstalledExtensions', |
|
| 81 | + 'DCNGmbH\\MooxCore\\Service\\InstallService', |
|
| 82 | + 'generateApacheHtaccess' |
|
| 83 | + ); |
|
| 84 | 84 | /** |
| 85 | 85 | * Provides an example robots.txt file after extension is installed and shows a warning if TYPO3 is not running with moox_core robots.txt. |
| 86 | 86 | */ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | // mod.moox_MooxCoreDashboard.sideBarEnable = 0 |
| 10 | 10 | // '); |
| 11 | 11 | |
| 12 | -if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) { |
|
| 12 | +if (FALSE===isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) { |
|
| 13 | 13 | \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('MooxCore requires an additional configuration file in typo3conf/AdditionalConfiguration.php - ' |
| 14 | 14 | . 'you can have MooxCore generate this file for you from the extension manager by running the MooxCore update script. A dummy ' |
| 15 | 15 | . 'has been created, but you will only be able to render content (not plugins!) until the file is created', |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | $types = count($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types']); |
| 40 | -for ($i = 0; $i < $types; $i++) { |
|
| 40 | +for ($i = 0; $i<$types; $i++) { |
|
| 41 | 41 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 42 | 42 | 'DCNGmbH.MooxCore', |
| 43 | 43 | ucfirst($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types'][$i]), |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // Include new content elements to modWizards |
| 50 | 50 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizards.ts">'); |
| 51 | 51 | // If the form extension is loaded, then include the mailform element to modWizards |
| 52 | -if (TRUE === \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 52 | +if (TRUE===\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 53 | 53 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizardsMailform.ts">'); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | * Use RealUrl Config from MOOX Core |
| 65 | 65 | */ |
| 66 | 66 | $settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]); |
| 67 | -if($settings['UseRealUrlConfig'] == 1){ |
|
| 68 | - @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 67 | +if ($settings['UseRealUrlConfig']==1) { |
|
| 68 | + @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY, 'Configuration/RealURL/Default.php')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -if (TYPO3_MODE === 'BE') { |
|
| 71 | +if (TYPO3_MODE==='BE') { |
|
| 72 | 72 | // enable SignalSlot |
| 73 | 73 | /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */ |
| 74 | 74 | $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | /*************** |
| 106 | 106 | * Register hook for processing less files |
| 107 | 107 | */ |
| 108 | -if (TYPO3_MODE === 'FE') { |
|
| 109 | - require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('moox_core') . '/Contrib/less.php/Less.php'); |
|
| 108 | +if (TYPO3_MODE==='FE') { |
|
| 109 | + require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('moox_core').'/Contrib/less.php/Less.php'); |
|
| 110 | 110 | |
| 111 | 111 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = 'DCNGmbH\\MooxCore\\Hooks\\PageRendererRender\\PreProcessHook->execute'; |
| 112 | 112 | |