Commit 0757916f authored by Imanov Nursultam's avatar Imanov Nursultam

CDATA doesn't work with typo3 8

parent 08ca1e57
<![CDATA[ jQuery(window).load(function() { ]]> <f:format.raw value="jQuery(window).load(function() {" />
jQuery('#fs-{f:if(condition: data.pi_flexform, then: data.uid, else: altUid)}.flexslider').flexslider( jQuery('#fs-{f:if(condition: data.pi_flexform, then: data.uid, else: altUid)}.flexslider').flexslider(
<![CDATA[{]]> <f:format.raw value="{" />
animation: "{settings.animation}", animation: "{settings.animation}",
slideDirection: "{settings.slideDirection}", slideDirection: "{settings.slideDirection}",
slideshow: <f:if condition="{settings.slideshow} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, slideshow: <f:if condition="{settings.slideshow} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
slideshowSpeed: <f:if condition="{settings.slideshowSpeed} > 0"><f:then>{settings.slideshowSpeed}</f:then><f:else>7000</f:else></f:if>, slideshowSpeed: <f:if condition="{settings.slideshowSpeed} > 0"><f:then>{settings.slideshowSpeed}</f:then><f:else>7000</f:else></f:if>,
animationDuration: <f:if condition="{settings.animationDuration} > 0"><f:then>{settings.animationDuration}</f:then><f:else>600</f:else></f:if>, animationDuration: <f:if condition="{settings.animationDuration} > 0"><f:then>{settings.animationDuration}</f:then><f:else>600</f:else></f:if>,
controlNav: <f:if condition="{settings.controlNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, controlNav: <f:if condition="{settings.controlNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
directionNav: <f:if condition="{settings.directionNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, directionNav: <f:if condition="{settings.directionNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
keyboardNav: <f:if condition="{settings.keyboardNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, keyboardNav: <f:if condition="{settings.keyboardNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
mousewheel: <f:if condition="{settings.mousewheel} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, mousewheel: <f:if condition="{settings.mousewheel} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
prevText: "<f:translate key="prevText">Prev</f:translate>", prevText: "<f:translate key="prevText">Prev</f:translate>",
nextText: "<f:translate key="nextText">Next</f:translate>", nextText: "<f:translate key="nextText">Next</f:translate>",
pausePlay: <f:if condition="{settings.pausePlay} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, pausePlay: <f:if condition="{settings.pausePlay} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseText: "<f:translate key="pauseText">Pause</f:translate>", pauseText: "<f:translate key="pauseText">Pause</f:translate>",
playText: "<f:translate key="playText">Play</f:translate>", playText: "<f:translate key="playText">Play</f:translate>",
randomize: <f:if condition="{settings.randomize} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, randomize: <f:if condition="{settings.randomize} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
animationLoop: <f:if condition="{settings.animationLoop} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, animationLoop: <f:if condition="{settings.animationLoop} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseOnHover: <f:if condition="{settings.pauseOnHover} > 0"><f:then>true</f:then><f:else>false</f:else></f:if> pauseOnHover: <f:if condition="{settings.pauseOnHover} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>
<![CDATA[ <f:format.raw value="});});" />
});
});
]]>
\ No newline at end of file
...@@ -9,9 +9,10 @@ call_user_func( ...@@ -9,9 +9,10 @@ call_user_func(
// Build extension name vars - used for plugin registration, flexforms and similar // Build extension name vars - used for plugin registration, flexforms and similar
$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY); $extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1'; $pluginSignature = strtolower($extensionName) . '_pi1';
\TYPO3\CMS\Core\Utility\DebugUtility::debug($pluginSignature);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SotaStudio.' . $_EXTKEY, 'SotaStudio.FlexSlider',
'Pi1', 'Pi1',
'FlexSlider' 'FlexSlider'
); );
...@@ -36,6 +37,6 @@ call_user_func( ...@@ -36,6 +37,6 @@ call_user_func(
*/ */
if (TYPO3_MODE === 'BE') { if (TYPO3_MODE === 'BE') {
// Add Plugin to CE Wizard // Add Plugin to CE Wizard
$TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses'][$pluginSignature . '_wizicon'] = 'EXT: flexslider/Resources/Private/Php/class.' . $_EXTKEY . '_wizicon.php'; $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses'][$pluginSignature . '_wizicon'] = 'EXT: flexslider/Resources/Private/Php/class.flexslider_wizicon.php';
} }
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment