Commit d9153cb4 authored by fgalinski's avatar fgalinski

[FEATURE] Integration of Cloud Zoom and the JSMin only works with TYPO3 >= 6.0

Resolves: #59944, #59945


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@85770 735d13b6-9817-0410-8766-e36946ffe9aa
parent af175844
......@@ -363,11 +363,9 @@ class tx_pmkshadowbox_build {
// the scriptmerger check prevents the minification of the script twice!
if ($this->extensionConfiguration['enableJavascriptMinification'] === '1' &&
!t3lib_extMgm::isLoaded('scriptmerger')
!t3lib_extMgm::isLoaded('scriptmerger') && t3lib_div::compat_version('6.0')
) {
if (!class_exists('JSMin')) {
require_once(t3lib_extMgm::extPath('pmkshadowbox') . 'resources/jsmin.php');
}
require_once(t3lib_extMgm::extPath('pmkshadowbox') . 'resources/jsmin.php');
$scriptContent = JSMin::minify($scriptContent);
}
......
# cat=basic/enable; type=boolean; label=Enable the minification of the javascript build files:Enable this if you want optimium speed. Unfortunatly the minifcation process needs a lot of resources and can oversize your limits.
enableJavascriptMinification = 0
# cat=basic/enable; type=boolean; label=Enables the Cloud Zoom plugin.
enableCloudZoom = 0
\ No newline at end of file
......@@ -8,7 +8,27 @@ t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox/', 'Shadowbox
t3lib_extMgm::addStaticFile(
'pmkshadowbox', 'static/PMK_Shadowbox_ClickEnlarge/', 'Shadowbox - tt_content (Click Enlarge)'
);
t3lib_extMgm::addStaticFile(
'pmkshadowbox', 'static/PMK_Shadowbox_CloudZoom/', 'Shadowbox - tt_content (Cloud Zoom)'
);
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_news/', 'Shadowbox - tt_news');
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_products/', 'Shadowbox - tt_products');
$shadowboxExtConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['pmkshadowbox']);
if ((int) $shadowboxExtConf['enableCloudZoom'] >= 1) {
t3lib_extMgm::addTCAcolumns(
'tt_content', array(
'pmkshadowbox_use_cloud_zoom' => array(
'exclude' => 0,
'label' => 'LLL:EXT:pmkshadowbox/locallang_db.xml:pmkshadowbox_use_cloud_zoom',
'config' => array(
'type' => 'check',
'default' => 0
),
),
)
);
t3lib_extMgm::addToAllTCAtypes('tt_content', 'pmkshadowbox_use_cloud_zoom', '', 'after:image_zoom');
}
?>
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