@@ -35,70 +35,70 @@ |
||
35 | 35 | class CompileService |
36 | 36 | { |
37 | 37 | |
38 | - /** |
|
39 | - * @param string $file |
|
40 | - * @return bool|string |
|
41 | - * @throws \Exception |
|
42 | - */ |
|
43 | - public static function getCompiledFile($file) |
|
44 | - { |
|
45 | - $file = GeneralUtility::getFileAbsFileName($file); |
|
46 | - $pathParts = pathinfo($file); |
|
47 | - if ($pathParts['extension'] === 'less') { |
|
48 | - try { |
|
49 | - $options = array( |
|
50 | - 'cache_dir' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') |
|
51 | - ); |
|
52 | - $settings = ($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_mooxcore.']['settings.'] ?: array()); |
|
53 | - if ($settings['cssSourceMapping']) { |
|
54 | - // enable source mapping |
|
55 | - $optionsForSourceMap = array( |
|
56 | - 'sourceMap' => true, |
|
57 | - 'sourceMapWriteTo' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') . '/mooxcore.map', |
|
58 | - 'sourceMapURL' => '/typo3temp/mooxcore/mooxcore.map', |
|
59 | - 'sourceMapBasepath' => PATH_site, |
|
60 | - 'sourceMapRootpath' => '/' |
|
61 | - ); |
|
62 | - $options += $optionsForSourceMap; |
|
38 | + /** |
|
39 | + * @param string $file |
|
40 | + * @return bool|string |
|
41 | + * @throws \Exception |
|
42 | + */ |
|
43 | + public static function getCompiledFile($file) |
|
44 | + { |
|
45 | + $file = GeneralUtility::getFileAbsFileName($file); |
|
46 | + $pathParts = pathinfo($file); |
|
47 | + if ($pathParts['extension'] === 'less') { |
|
48 | + try { |
|
49 | + $options = array( |
|
50 | + 'cache_dir' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') |
|
51 | + ); |
|
52 | + $settings = ($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_mooxcore.']['settings.'] ?: array()); |
|
53 | + if ($settings['cssSourceMapping']) { |
|
54 | + // enable source mapping |
|
55 | + $optionsForSourceMap = array( |
|
56 | + 'sourceMap' => true, |
|
57 | + 'sourceMapWriteTo' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') . '/mooxcore.map', |
|
58 | + 'sourceMapURL' => '/typo3temp/mooxcore/mooxcore.map', |
|
59 | + 'sourceMapBasepath' => PATH_site, |
|
60 | + 'sourceMapRootpath' => '/' |
|
61 | + ); |
|
62 | + $options += $optionsForSourceMap; |
|
63 | 63 | |
64 | - // disable CSS compression |
|
65 | - /** @var $pageRenderer \TYPO3\CMS\Core\Page\PageRenderer */ |
|
66 | - $pageRenderer = $GLOBALS['TSFE']->getPageRenderer(); |
|
67 | - $pageRenderer->disableCompressCss(); |
|
68 | - } |
|
69 | - if ($settings['overrideLessVariables']) { |
|
70 | - $variables = self::getVariablesFromConstants(); |
|
71 | - } else { |
|
72 | - $variables = array(); |
|
73 | - } |
|
74 | - $files = array(); |
|
75 | - $files[$file] = '../../' . str_replace(PATH_site, '', dirname($file)) . '/'; |
|
76 | - $compiledFile = \Less_Cache::Get($files, $options, $variables); |
|
77 | - $file = "typo3temp/mooxcore/" . $compiledFile; |
|
64 | + // disable CSS compression |
|
65 | + /** @var $pageRenderer \TYPO3\CMS\Core\Page\PageRenderer */ |
|
66 | + $pageRenderer = $GLOBALS['TSFE']->getPageRenderer(); |
|
67 | + $pageRenderer->disableCompressCss(); |
|
68 | + } |
|
69 | + if ($settings['overrideLessVariables']) { |
|
70 | + $variables = self::getVariablesFromConstants(); |
|
71 | + } else { |
|
72 | + $variables = array(); |
|
73 | + } |
|
74 | + $files = array(); |
|
75 | + $files[$file] = '../../' . str_replace(PATH_site, '', dirname($file)) . '/'; |
|
76 | + $compiledFile = \Less_Cache::Get($files, $options, $variables); |
|
77 | + $file = "typo3temp/mooxcore/" . $compiledFile; |
|
78 | 78 | |
79 | - return $file; |
|
80 | - } catch (\Exception $e) { |
|
81 | - throw new \Exception($e->getMessage()); |
|
82 | - } |
|
83 | - } |
|
84 | - return false; |
|
85 | - } |
|
79 | + return $file; |
|
80 | + } catch (\Exception $e) { |
|
81 | + throw new \Exception($e->getMessage()); |
|
82 | + } |
|
83 | + } |
|
84 | + return false; |
|
85 | + } |
|
86 | 86 | |
87 | - /** |
|
88 | - * @return array |
|
89 | - */ |
|
90 | - public function getVariablesFromConstants() |
|
91 | - { |
|
92 | - $variables = array(); |
|
93 | - $prefix = "plugin.tx_mooxcore.settings.less."; |
|
94 | - if (!isset($GLOBALS['TSFE']->tmpl->flatSetup) || !is_array($GLOBALS['TSFE']->tmpl->flatSetup) || count($GLOBALS['TSFE']->tmpl->flatSetup) === 0) { |
|
95 | - $GLOBALS['TSFE']->tmpl->generateConfig(); |
|
96 | - } |
|
97 | - foreach ($GLOBALS['TSFE']->tmpl->flatSetup as $constant => $value) { |
|
98 | - if (strpos($constant, $prefix) === 0) { |
|
99 | - $variables[substr($constant, strlen($prefix))] = $value; |
|
100 | - } |
|
101 | - } |
|
102 | - return $variables; |
|
103 | - } |
|
87 | + /** |
|
88 | + * @return array |
|
89 | + */ |
|
90 | + public function getVariablesFromConstants() |
|
91 | + { |
|
92 | + $variables = array(); |
|
93 | + $prefix = "plugin.tx_mooxcore.settings.less."; |
|
94 | + if (!isset($GLOBALS['TSFE']->tmpl->flatSetup) || !is_array($GLOBALS['TSFE']->tmpl->flatSetup) || count($GLOBALS['TSFE']->tmpl->flatSetup) === 0) { |
|
95 | + $GLOBALS['TSFE']->tmpl->generateConfig(); |
|
96 | + } |
|
97 | + foreach ($GLOBALS['TSFE']->tmpl->flatSetup as $constant => $value) { |
|
98 | + if (strpos($constant, $prefix) === 0) { |
|
99 | + $variables[substr($constant, strlen($prefix))] = $value; |
|
100 | + } |
|
101 | + } |
|
102 | + return $variables; |
|
103 | + } |
|
104 | 104 | } |
105 | 105 | \ No newline at end of file |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $file = GeneralUtility::getFileAbsFileName($file); |
46 | 46 | $pathParts = pathinfo($file); |
47 | - if ($pathParts['extension'] === 'less') { |
|
47 | + if ($pathParts['extension']==='less') { |
|
48 | 48 | try { |
49 | 49 | $options = array( |
50 | 50 | 'cache_dir' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | // enable source mapping |
55 | 55 | $optionsForSourceMap = array( |
56 | 56 | 'sourceMap' => true, |
57 | - 'sourceMapWriteTo' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore') . '/mooxcore.map', |
|
57 | + 'sourceMapWriteTo' => GeneralUtility::getFileAbsFileName('typo3temp/mooxcore').'/mooxcore.map', |
|
58 | 58 | 'sourceMapURL' => '/typo3temp/mooxcore/mooxcore.map', |
59 | 59 | 'sourceMapBasepath' => PATH_site, |
60 | 60 | 'sourceMapRootpath' => '/' |
@@ -68,13 +68,13 @@ discard block |
||
68 | 68 | } |
69 | 69 | if ($settings['overrideLessVariables']) { |
70 | 70 | $variables = self::getVariablesFromConstants(); |
71 | - } else { |
|
71 | + }else { |
|
72 | 72 | $variables = array(); |
73 | 73 | } |
74 | 74 | $files = array(); |
75 | - $files[$file] = '../../' . str_replace(PATH_site, '', dirname($file)) . '/'; |
|
75 | + $files[$file] = '../../'.str_replace(PATH_site, '', dirname($file)).'/'; |
|
76 | 76 | $compiledFile = \Less_Cache::Get($files, $options, $variables); |
77 | - $file = "typo3temp/mooxcore/" . $compiledFile; |
|
77 | + $file = "typo3temp/mooxcore/".$compiledFile; |
|
78 | 78 | |
79 | 79 | return $file; |
80 | 80 | } catch (\Exception $e) { |
@@ -91,11 +91,11 @@ discard block |
||
91 | 91 | { |
92 | 92 | $variables = array(); |
93 | 93 | $prefix = "plugin.tx_mooxcore.settings.less."; |
94 | - if (!isset($GLOBALS['TSFE']->tmpl->flatSetup) || !is_array($GLOBALS['TSFE']->tmpl->flatSetup) || count($GLOBALS['TSFE']->tmpl->flatSetup) === 0) { |
|
94 | + if (!isset($GLOBALS['TSFE']->tmpl->flatSetup) || !is_array($GLOBALS['TSFE']->tmpl->flatSetup) || count($GLOBALS['TSFE']->tmpl->flatSetup)===0) { |
|
95 | 95 | $GLOBALS['TSFE']->tmpl->generateConfig(); |
96 | 96 | } |
97 | 97 | foreach ($GLOBALS['TSFE']->tmpl->flatSetup as $constant => $value) { |
98 | - if (strpos($constant, $prefix) === 0) { |
|
98 | + if (strpos($constant, $prefix)===0) { |
|
99 | 99 | $variables[substr($constant, strlen($prefix))] = $value; |
100 | 100 | } |
101 | 101 | } |
@@ -84,12 +84,12 @@ discard block |
||
84 | 84 | $extensionKeys = $this->configurationService->getVariantExtensionKeysForContentType($parameters['row']['CType']); |
85 | 85 | $defaults = $this->configurationService->getDefaults(); |
86 | 86 | $preSelected = $parameters['row']['content_variant']; |
87 | - if (CoreContentProvider::MODE_PRESELECT === $defaults['mode'] && TRUE === empty($preSelected)) { |
|
87 | + if (CoreContentProvider::MODE_PRESELECT===$defaults['mode'] && TRUE===empty($preSelected)) { |
|
88 | 88 | $preSelected = $defaults['variant']; |
89 | 89 | } |
90 | - if (TRUE === is_array($extensionKeys) && 0 < count($extensionKeys)) { |
|
90 | + if (TRUE===is_array($extensionKeys) && 0<count($extensionKeys)) { |
|
91 | 91 | $options = $this->renderOptions($extensionKeys); |
92 | - } else { |
|
92 | + }else { |
|
93 | 93 | $options = array(); |
94 | 94 | } |
95 | 95 | return $this->renderSelectField($parameters, $options, $preSelected); |
@@ -104,10 +104,10 @@ discard block |
||
104 | 104 | foreach ($variants as $variantSetup) { |
105 | 105 | list ($extensionKey, $labelReference, $icon) = $variantSetup; |
106 | 106 | $translatedLabel = $this->translateLabel($labelReference, $extensionKey); |
107 | - if (NULL === $translatedLabel) { |
|
107 | + if (NULL===$translatedLabel) { |
|
108 | 108 | $translatedLabel = $extensionKey; |
109 | 109 | } |
110 | - $optionsIcon = '<img src="' . $icon . '" alt="' . $extensionKey . '" /> '; |
|
110 | + $optionsIcon = '<img src="'.$icon.'" alt="'.$extensionKey.'" /> '; |
|
111 | 111 | $options[$extensionKey] = array($optionsIcon, $translatedLabel); |
112 | 112 | } |
113 | 113 | return $options; |
@@ -126,24 +126,24 @@ discard block |
||
126 | 126 | foreach ($options as $extensionKey => $optionsSetup) { |
127 | 127 | list($optionsIcons[$extensionKey], $optionsLabels[$extensionKey]) = $optionsSetup; |
128 | 128 | } |
129 | - $hasSelectedValue = (TRUE === empty($selectedValue) || TRUE === array_key_exists($selectedValue, $optionsLabels)); |
|
130 | - $selected = (TRUE === empty($selectedValue) ? ' selected="selected"' : NULL); |
|
129 | + $hasSelectedValue = (TRUE===empty($selectedValue) || TRUE===array_key_exists($selectedValue, $optionsLabels)); |
|
130 | + $selected = (TRUE===empty($selectedValue) ? ' selected="selected"' : NULL); |
|
131 | 131 | foreach ($optionsIcons as $value => $img) { |
132 | - if ($value === $selectedValue) { |
|
132 | + if ($value===$selectedValue) { |
|
133 | 133 | $selectedIcon = $img; |
134 | 134 | break; |
135 | 135 | } |
136 | 136 | } |
137 | 137 | $html = array( |
138 | - '<div class="form-control-wrap"><div class="input-group"><div class="input-group-addon input-group-icon">' . $selectedIcon . '</div><select class="select form-control" name="' . $parameters['itemFormElName'] . '" onchange="' . $parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] . ';' . $parameters['fieldChangeFunc']['alert'] . '">', |
|
139 | - '<option' . $selected . ' value="">' . $this->translateLabel('tt_content.nativeLabel', 'MooxCore') . '</option>' |
|
138 | + '<div class="form-control-wrap"><div class="input-group"><div class="input-group-addon input-group-icon">'.$selectedIcon.'</div><select class="select form-control" name="'.$parameters['itemFormElName'].'" onchange="'.$parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'].';'.$parameters['fieldChangeFunc']['alert'].'">', |
|
139 | + '<option'.$selected.' value="">'.$this->translateLabel('tt_content.nativeLabel', 'MooxCore').'</option>' |
|
140 | 140 | ); |
141 | 141 | foreach ($optionsLabels as $value => $label) { |
142 | - $selected = $value === $selectedValue ? ' selected="selected"' : NULL; |
|
143 | - $html[] = '<option' . $selected . ' value="' . $value . '">' . $label . '</option>'; |
|
142 | + $selected = $value===$selectedValue ? ' selected="selected"' : NULL; |
|
143 | + $html[] = '<option'.$selected.' value="'.$value.'">'.$label.'</option>'; |
|
144 | 144 | } |
145 | - if (FALSE === $hasSelectedValue) { |
|
146 | - $html[] = '<option selected="selected">INVALID: ' . $selectedValue . '</option>'; |
|
145 | + if (FALSE===$hasSelectedValue) { |
|
146 | + $html[] = '<option selected="selected">INVALID: '.$selectedValue.'</option>'; |
|
147 | 147 | } |
148 | 148 | $html[] = '</select></div></div>'; |
149 | 149 | return implode(LF, $html); |
@@ -159,20 +159,20 @@ discard block |
||
159 | 159 | $defaults = $this->configurationService->getDefaults(); |
160 | 160 | $preSelectedVariant = $parameters['row']['content_variant']; |
161 | 161 | $preSelectedVersion = $parameters['row']['content_version']; |
162 | - if (CoreContentProvider::MODE_PRESELECT === $defaults['mode']) { |
|
163 | - if (TRUE === empty($preSelectedVariant)) { |
|
162 | + if (CoreContentProvider::MODE_PRESELECT===$defaults['mode']) { |
|
163 | + if (TRUE===empty($preSelectedVariant)) { |
|
164 | 164 | $preSelectedVariant = $defaults['variant']; |
165 | 165 | } |
166 | - if (TRUE === empty($preSelectedVersion)) { |
|
166 | + if (TRUE===empty($preSelectedVersion)) { |
|
167 | 167 | $preSelectedVersion = $defaults['version']; |
168 | 168 | } |
169 | 169 | } |
170 | 170 | |
171 | 171 | $versions = $this->configurationService->getVariantVersions($parameters['row']['CType'], $preSelectedVariant); |
172 | - if (TRUE === is_array($versions) && 0 < count($versions)) { |
|
172 | + if (TRUE===is_array($versions) && 0<count($versions)) { |
|
173 | 173 | foreach ($versions as $version) { |
174 | 174 | $icon = $this->configurationService->getIconFromVersion($preSelectedVariant, $parameters['row']['CType'], $version); |
175 | - $versionIcon = '<img src="' . $icon . '" alt="" /> '; |
|
175 | + $versionIcon = '<img src="'.$icon.'" alt="" /> '; |
|
176 | 176 | $options[$version] = array($versionIcon, $version); |
177 | 177 | } |
178 | 178 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @codeCoverageIgnore |
196 | 196 | */ |
197 | 197 | protected function loadRecord($table, $uid) { |
198 | - return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($table, (integer) $uid); |
|
198 | + return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($table, (integer)$uid); |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | } |
202 | 202 | \ No newline at end of file |
@@ -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 |