Commit 648a056d authored by sgalinsk's avatar sgalinsk

[TASK] Unify line endings and some more cleanups


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@85415 735d13b6-9817-0410-8766-e36946ffe9aa
parent ce687bfb
This diff is collapsed.
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// post processing hook to clear any existing cache files if the clear cache button is used
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_cache.php:&tx_pmkshadowbox_cache->clearCachePostProc';
// Hook for adding "IMAGE_NUM_CURRENT" register value in tt_news
if (t3lib_extMgm::isLoaded('tt_news')) {
$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] =
'EXT:pmkshadowbox/classes/class.tx_ttnews_imageMarkerHook.php:&tx_ttnews_imageMarker';
}
// Register Clear Cache Menu hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearShadowboxBuilds'] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_clearcachemenu.php:&tx_pmkshadowbox_clearcachemenu';
// Register Ajax call
$TYPO3_CONF_VARS['BE']['AJAX']['pmkshadowbox::clearShadowboxBuilds'] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_cache.php:&tx_pmkshadowbox_cache->clear';
// Register eID script for saving and printing SB content.
$TYPO3_CONF_VARS['FE']['eID_include']['pmkshadowbox'] = 'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_printsave.php';
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// post processing hook to clear any existing cache files if the clear cache button is used
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_cache.php:&tx_pmkshadowbox_cache->clearCachePostProc';
// Hook for adding "IMAGE_NUM_CURRENT" register value in tt_news
if (t3lib_extMgm::isLoaded('tt_news')) {
$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] =
'EXT:pmkshadowbox/classes/class.tx_ttnews_imageMarkerHook.php:&tx_ttnews_imageMarker';
}
// Register Clear Cache Menu hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearShadowboxBuilds'] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_clearcachemenu.php:&tx_pmkshadowbox_clearcachemenu';
// Register Ajax call
$TYPO3_CONF_VARS['BE']['AJAX']['pmkshadowbox::clearShadowboxBuilds'] =
'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_cache.php:&tx_pmkshadowbox_cache->clear';
// Register eID script for saving and printing SB content.
$TYPO3_CONF_VARS['FE']['eID_include']['pmkshadowbox'] = 'EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_printsave.php';
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox/', 'Shadowbox - Base');
t3lib_extMgm::addStaticFile(
'pmkshadowbox', 'static/PMK_Shadowbox_ClickEnlarge/', 'Shadowbox - tt_content (Click Enlarge)'
);
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_news/', 'Shadowbox - tt_news');
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_products/', 'Shadowbox - tt_products');
?>
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox/', 'Shadowbox - Base');
t3lib_extMgm::addStaticFile(
'pmkshadowbox', 'static/PMK_Shadowbox_ClickEnlarge/', 'Shadowbox - tt_content (Click Enlarge)'
);
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_news/', 'Shadowbox - tt_news');
t3lib_extMgm::addStaticFile('pmkshadowbox', 'static/PMK_Shadowbox_tt_products/', 'Shadowbox - tt_products');
?>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
<meta type="array">
<type>module</type>
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="clearCacheTitle">Clear Shadowbox Builds</label>
</languageKey>
<languageKey index="de" type="array">
<label index="clearCacheTitle">Shadowbox-Builds entfernen</label>
</languageKey>
<languageKey index="dk" type="array">
<label index="clearCacheTitle">Nulstil Shadowbox Builds</label>
</languageKey>
</data>
</T3locallang>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
<meta type="array">
<type>module</type>
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="clearCacheTitle">Clear Shadowbox Builds</label>
</languageKey>
<languageKey index="de" type="array">
<label index="clearCacheTitle">Shadowbox-Builds entfernen</label>
</languageKey>
<languageKey index="dk" type="array">
<label index="clearCacheTitle">Nulstil Shadowbox Builds</label>
</languageKey>
</data>
</T3locallang>
\ No newline at end of file
This diff is collapsed.
# Shadowbox Build Generation
#
# Note: This header data part must always executed before the other ones. Otherwise
# the register value can't be accessed and we are missing the build path information.
includeLibs.shadowboxBuild = EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_build.php
page.headerData.1230 = LOAD_REGISTER
page.headerData.1230 {
buildDirectory {
stdWrap.preUserFunc = tx_pmkshadowbox_build->build
stdWrap.preUserFunc {
useSizzle = {$plugin.pmkshadowbox.useSizzle}
players = {$plugin.pmkshadowbox.players}
adapter = {$plugin.pmkshadowbox.adapter}
skinModificationDirectory = {$plugin.pmkshadowbox.skinModificationDirectory}
language.data = TSFE:lang
languageFallback = {$plugin.pmkshadowbox.fallbackLanguage}
flashPlayer = {$plugin.pmkshadowbox.flashPlayer}
flashPlayerYT = {$plugin.pmkshadowbox.flashPlayerYT}
flashExpressInstallScript = {$plugin.pmkshadowbox.flashExpressInstallScript}
}
}
}
# javascript inclusion
page.headerData.1231 = TEXT
page.headerData.1231 {
dataWrap = <script type="text/javascript" src="{TSFE:absRefPrefix}{register:buildDirectory}shadowbox.js"></script>
}
# css inclusion
page.headerData.1232 = TEXT
page.headerData.1232 {
dataWrap = <link type="text/css" media="all" rel="stylesheet" href="{TSFE:absRefPrefix}{register:buildDirectory}shadowbox.css" />
}
page.headerData.1233 = COA
page.headerData.1233 {
wrap (
<script type="text/javascript">
/* <![CDATA[ */
|
/* ]]> */
</script>
)
10 = TEXT
10 {
value (
function shadowBoxInit() {
Shadowbox.init({
animate: {$plugin.pmkshadowbox.animate},
animateFade: {$plugin.pmkshadowbox.animateFade},
animSequence: '{$plugin.pmkshadowbox.animSequence}',
autoplayMovies: {$plugin.pmkshadowbox.autoplayMovies},
continuous: {$plugin.pmkshadowbox.continuous},
counterLimit: {$plugin.pmkshadowbox.counterLimit},
counterType: '{$plugin.pmkshadowbox.counterType}',
displayCounter: {$plugin.pmkshadowbox.displayCounter},
displayNav: {$plugin.pmkshadowbox.displayNav},
enableKeys: {$plugin.pmkshadowbox.enableKeys},
fadeDuration: {$plugin.pmkshadowbox.fadeDuration},
flashParams: {$plugin.pmkshadowbox.flashParams},
flashVars: {$plugin.pmkshadowbox.flashVars},
flashVersion: '{$plugin.pmkshadowbox.flashVersion}',
handleOversize: '{$plugin.pmkshadowbox.handleOversize}',
handleUnsupported: '{$plugin.pmkshadowbox.handleUnsupported}',
initialHeight: {$plugin.pmkshadowbox.initialHeight},
initialWidth: {$plugin.pmkshadowbox.initialWidth},
modal: {$plugin.pmkshadowbox.modal},
onChange: {$plugin.pmkshadowbox.onChange},
onClose: {$plugin.pmkshadowbox.onClose},
onFinish: {$plugin.pmkshadowbox.onFinish},
onOpen: {$plugin.pmkshadowbox.onOpen},
overlayColor: '{$plugin.pmkshadowbox.overlayColor}',
overlayOpacity: {$plugin.pmkshadowbox.overlayOpacity},
resizeDuration: {$plugin.pmkshadowbox.resizeDuration},
showOverlay: {$plugin.pmkshadowbox.showOverlay},
showMovieControls: {$plugin.pmkshadowbox.showMovieControls},
skipSetup: {$plugin.pmkshadowbox.skipSetup},
slideshowDelay: {$plugin.pmkshadowbox.slideshowDelay},
viewportPadding: {$plugin.pmkshadowbox.viewportPadding},
preserveAspectWhileResizing: {$plugin.pmkshadowbox.preserveAspectWhileResizing},
troubleElements: {$plugin.pmkshadowbox.troubleElements}
});
}
)
}
20 = TEXT
20 {
dataWrap = Shadowbox.path = '{TSFE:absRefPrefix}{register:buildDirectory}';
}
30 = TEXT
30 {
value = shadowBoxInit();
}
# image map initialisation
40 = TEXT
40 {
value (
Shadowbox.onReady = function() {
var shadowBoxElements = document.getElementsByTagName('area');
if (shadowBoxElements.length) {
Shadowbox.setup(shadowBoxElements, {$plugin.pmkshadowbox.imageMapOptions});
}
}
)
override = ;
override.if.isTrue = {$plugin.pmkshadowbox.skipImageMapSetup}
}
}
# Code for printing shadowbox HTML (iframe) content.
[globalVar = GP:print = 2]
page.headerData.1229 = TEXT
page.headerData.1229.value (
<script type="text/javascript">
/* <![CDATA[ */
function printIframeContent() {
try {
window.print();
} catch (err) {
return;
}
window.close();
}
if (window.addEventListener) {
window.addEventListener('load', printIframeContent, false);
} else if (window.attachEvent) {
window.attachEvent('onload', printIframeContent);
}
/* ]]> */
</script>
)
[global]
// Include all js in footer
[globalVar = LIT:1 = {$plugin.pmkshadowbox.includeJsInFooter}]
page.footerData.1231 < page.headerData.1231
page.headerData.1231 >
page.footerData.1233 < page.headerData.1233
page.headerData.1233 >
# Shadowbox Build Generation
#
# Note: This header data part must always executed before the other ones. Otherwise
# the register value can't be accessed and we are missing the build path information.
includeLibs.shadowboxBuild = EXT:pmkshadowbox/classes/class.tx_pmkshadowbox_build.php
page.headerData.1230 = LOAD_REGISTER
page.headerData.1230 {
buildDirectory {
stdWrap.preUserFunc = tx_pmkshadowbox_build->build
stdWrap.preUserFunc {
useSizzle = {$plugin.pmkshadowbox.useSizzle}
players = {$plugin.pmkshadowbox.players}
adapter = {$plugin.pmkshadowbox.adapter}
skinModificationDirectory = {$plugin.pmkshadowbox.skinModificationDirectory}
language.data = TSFE:lang
languageFallback = {$plugin.pmkshadowbox.fallbackLanguage}
flashPlayer = {$plugin.pmkshadowbox.flashPlayer}
flashPlayerYT = {$plugin.pmkshadowbox.flashPlayerYT}
flashExpressInstallScript = {$plugin.pmkshadowbox.flashExpressInstallScript}
}
}
}
# javascript inclusion
page.headerData.1231 = TEXT
page.headerData.1231 {
dataWrap = <script type="text/javascript" src="{TSFE:absRefPrefix}{register:buildDirectory}shadowbox.js"></script>
}
# css inclusion
page.headerData.1232 = TEXT
page.headerData.1232 {
dataWrap = <link type="text/css" media="all" rel="stylesheet" href="{TSFE:absRefPrefix}{register:buildDirectory}shadowbox.css" />
}
page.headerData.1233 = COA
page.headerData.1233 {
wrap (
<script type="text/javascript">
/* <![CDATA[ */
|
/* ]]> */
</script>
)
10 = TEXT
10 {
value (
function shadowBoxInit() {
Shadowbox.init({
animate: {$plugin.pmkshadowbox.animate},
animateFade: {$plugin.pmkshadowbox.animateFade},
animSequence: '{$plugin.pmkshadowbox.animSequence}',
autoplayMovies: {$plugin.pmkshadowbox.autoplayMovies},
continuous: {$plugin.pmkshadowbox.continuous},
counterLimit: {$plugin.pmkshadowbox.counterLimit},
counterType: '{$plugin.pmkshadowbox.counterType}',
displayCounter: {$plugin.pmkshadowbox.displayCounter},
displayNav: {$plugin.pmkshadowbox.displayNav},
enableKeys: {$plugin.pmkshadowbox.enableKeys},
fadeDuration: {$plugin.pmkshadowbox.fadeDuration},
flashParams: {$plugin.pmkshadowbox.flashParams},
flashVars: {$plugin.pmkshadowbox.flashVars},
flashVersion: '{$plugin.pmkshadowbox.flashVersion}',
handleOversize: '{$plugin.pmkshadowbox.handleOversize}',
handleUnsupported: '{$plugin.pmkshadowbox.handleUnsupported}',
initialHeight: {$plugin.pmkshadowbox.initialHeight},
initialWidth: {$plugin.pmkshadowbox.initialWidth},
modal: {$plugin.pmkshadowbox.modal},
onChange: {$plugin.pmkshadowbox.onChange},
onClose: {$plugin.pmkshadowbox.onClose},
onFinish: {$plugin.pmkshadowbox.onFinish},
onOpen: {$plugin.pmkshadowbox.onOpen},
overlayColor: '{$plugin.pmkshadowbox.overlayColor}',
overlayOpacity: {$plugin.pmkshadowbox.overlayOpacity},
resizeDuration: {$plugin.pmkshadowbox.resizeDuration},
showOverlay: {$plugin.pmkshadowbox.showOverlay},
showMovieControls: {$plugin.pmkshadowbox.showMovieControls},
skipSetup: {$plugin.pmkshadowbox.skipSetup},
slideshowDelay: {$plugin.pmkshadowbox.slideshowDelay},
viewportPadding: {$plugin.pmkshadowbox.viewportPadding},
preserveAspectWhileResizing: {$plugin.pmkshadowbox.preserveAspectWhileResizing},
troubleElements: {$plugin.pmkshadowbox.troubleElements}
});
}
)
}
20 = TEXT
20 {
dataWrap = Shadowbox.path = '{TSFE:absRefPrefix}{register:buildDirectory}';
}
30 = TEXT
30 {
value = shadowBoxInit();
}
# image map initialisation
40 = TEXT
40 {
value (
Shadowbox.onReady = function() {
var shadowBoxElements = document.getElementsByTagName('area');
if (shadowBoxElements.length) {
Shadowbox.setup(shadowBoxElements, {$plugin.pmkshadowbox.imageMapOptions});
}
}
)
override = ;
override.if.isTrue = {$plugin.pmkshadowbox.skipImageMapSetup}
}
}
# Code for printing shadowbox HTML (iframe) content.
[globalVar = GP:print = 2]
page.headerData.1229 = TEXT
page.headerData.1229.value (
<script type="text/javascript">
/* <![CDATA[ */
function printIframeContent() {
try {
window.print();
} catch (err) {
return;
}
window.close();
}
if (window.addEventListener) {
window.addEventListener('load', printIframeContent, false);
} else if (window.attachEvent) {
window.attachEvent('onload', printIframeContent);
}
/* ]]> */
</script>
)
[global]
// Include all js in footer
[globalVar = LIT:1 = {$plugin.pmkshadowbox.includeJsInFooter}]
page.footerData.1231 < page.headerData.1231
page.headerData.1231 >
page.footerData.1233 < page.headerData.1233
page.headerData.1233 >
[global]
\ No newline at end of file
plugin.pmkshadowbox {
# cat=pmkshadowbox/enable/ea; type=boolean; label= Shadowbox mode (tt_content): If set, click-enlarged groups of images will be navigable. (Next/Previous buttons ar shown)
imgtext.navigable = 1
# cat=pmkshadowbox//oh; type=options[titleText,altText,imagecaption]; label= tt_content Caption Field: tt_content field to use as caption inside the Shadowbox.
imgtext.captionField = titleText
}
plugin.pmkshadowbox {
# cat=pmkshadowbox/enable/ea; type=boolean; label= Shadowbox mode (tt_content): If set, click-enlarged groups of images will be navigable. (Next/Previous buttons ar shown)
imgtext.navigable = 1
# cat=pmkshadowbox//oh; type=options[titleText,altText,imagecaption]; label= tt_content Caption Field: tt_content field to use as caption inside the Shadowbox.
imgtext.captionField = titleText
}
\ No newline at end of file
tt_content.image.20.1 {
titleText.field = {$plugin.pmkshadowbox.imgtext.captionField}
titleText.htmlSpecialChars = 1
# Removing the default "imageLinkWrap" TS code, and add new one to enable Lightbox effect.
imageLinkWrap >
imageLinkWrap = 1
imageLinkWrap {
# Enable linkwrapping if either click-enlarge is selected or a link is defined.
enable.field = image_zoom
enable.ifEmpty.typolink.parameter.field = image_link
enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
enable.ifEmpty.typolink.returnLast = url
# Add new typolink wrapping code
typolink {
target = {$styles.content.links.target}
extTarget = {$styles.content.links.extTarget}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Except if the linkfield is not empty
parameter.override.field = image_link
parameter.override.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
parameter.override.if.isTrue.field = image_link
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.imgtext.navigable}
ATagParams.insertData = 1
ATagParams.if.isTrue.field = image_zoom
}
}
}
[compatVersion = 4.5.0]
tt_content.image.20.1 {
titleText.field = {$plugin.pmkshadowbox.imgtext.captionField}
titleText.htmlSpecialChars = 1
# Removing the default "imageLinkWrap" TS code, and add new one to enable Lightbox effect.
imageLinkWrap >
imageLinkWrap = 1
imageLinkWrap {
# Enable linkwrapping if either click-enlarge is selected or a link is defined.
enable.field = image_zoom
enable.ifEmpty.typolink.parameter.field = image_link
enable.ifEmpty.typolink.parameter.listNum.splitChar = 10
enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
enable.ifEmpty.typolink.returnLast = url
# Add new typolink wrapping code
typolink {
target = {$styles.content.links.target}
extTarget = {$styles.content.links.extTarget}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Except if the linkfield is not empty
parameter.override.field = image_link
parameter.override.listNum.splitChar = 10
parameter.override.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
parameter.override.if.isTrue.field = image_link
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.imgtext.navigable}
ATagParams.insertData = 1
ATagParams.if.isTrue.field = image_zoom
}
}
}
[end]
tt_content.image.20.1 {
titleText.field = {$plugin.pmkshadowbox.imgtext.captionField}
titleText.htmlSpecialChars = 1
# Removing the default "imageLinkWrap" TS code, and add new one to enable Lightbox effect.
imageLinkWrap >
imageLinkWrap = 1
imageLinkWrap {
# Enable linkwrapping if either click-enlarge is selected or a link is defined.
enable.field = image_zoom
enable.ifEmpty.typolink.parameter.field = image_link
enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
enable.ifEmpty.typolink.returnLast = url
# Add new typolink wrapping code
typolink {
target = {$styles.content.links.target}
extTarget = {$styles.content.links.extTarget}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Except if the linkfield is not empty
parameter.override.field = image_link
parameter.override.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
parameter.override.if.isTrue.field = image_link
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.imgtext.navigable}
ATagParams.insertData = 1
ATagParams.if.isTrue.field = image_zoom
}
}
}
[compatVersion = 4.5.0]
tt_content.image.20.1 {
titleText.field = {$plugin.pmkshadowbox.imgtext.captionField}
titleText.htmlSpecialChars = 1
# Removing the default "imageLinkWrap" TS code, and add new one to enable Lightbox effect.
imageLinkWrap >
imageLinkWrap = 1
imageLinkWrap {
# Enable linkwrapping if either click-enlarge is selected or a link is defined.
enable.field = image_zoom
enable.ifEmpty.typolink.parameter.field = image_link
enable.ifEmpty.typolink.parameter.listNum.splitChar = 10
enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
enable.ifEmpty.typolink.returnLast = url
# Add new typolink wrapping code
typolink {
target = {$styles.content.links.target}
extTarget = {$styles.content.links.extTarget}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Except if the linkfield is not empty
parameter.override.field = image_link
parameter.override.listNum.splitChar = 10
parameter.override.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
parameter.override.if.isTrue.field = image_link
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.imgtext.navigable}
ATagParams.insertData = 1
ATagParams.if.isTrue.field = image_zoom
}
}
}
[end]
plugin.pmkshadowbox {
# Enable options
# cat=pmkshadowbox/enable/eb; type=boolean; label= Shadowbox mode (tt_news): If set, click-enlarged groups of images in tt_news will be navigable. (Next/Previous buttons ar shown)
tt_news.navigable = 1
# cat=pmkshadowbox/enable/ec; type=boolean; label= Enable Splitting in tt_news: If true, then a small userfunction is included for tt_news. This enables splitting of the caption value by setting the register value "IMAGE_NUM_CURRENT" to the current item number. NOTE. If you are using "dam_ttnews" this option should be turned off!
tt_news.enableSplit = 1
# cat=pmkshadowbox/enable/ed; type=boolean; label= Enable Shadowbox in displaySingle : If set, LightBox effect will be available in tt_news SingleView when you click on an image.
tt_news.displaySingle.shadowboxEnable = 1
# cat=pmkshadowbox/enable/ee; type=boolean; label= Enable Shadowbox in displayLatest : If set, LightBox effect will be available in tt_news LatestView when you click on an image.
tt_news.displayLatest.shadowboxEnable = 0
# cat=pmkshadowbox/enable/ef; type=boolean; label= Enable Shadowbox in displayList : If set, LightBox effect will be available in tt_news ListView when you click on an image.
tt_news.displayList.shadowboxEnable = 0
# cat=pmkshadowbox/enable/eg; type=boolean; label= Enable singleView in Shadowbox : If set, tt_news SingleView will be shown inside a LightBox.
tt_news.displayList.shadowboxSingleView = 0
# Dims options
# cat=pmkshadowbox/dims/d7; type=int+; label= Shadowbox tt_news Iframe width : Used to set the width of the LightBox if displaying tt_news SingleView in Shadowbox is enabled.
tt_news.displayList.shadowboxWidth = 600
# cat=pmkshadowbox/dims/d8; type=int+; label= Shadowbox tt_news Iframe height : Used to set the height of the LightBox if displaying tt_news SingleView in Shadowbox is enabled.
tt_news.displayList.shadowboxHeight = 500
# Other options
# cat=pmkshadowbox//om; type=options[imagetitletext,imagealttext,imagecaption]; label= tt_news Caption Field: tt_news field to use as caption inside the Shadowbox.
tt_news.captionField = imagetitletext
}
plugin.pmkshadowbox {
# Enable options
# cat=pmkshadowbox/enable/eb; type=boolean; label= Shadowbox mode (tt_news): If set, click-enlarged groups of images in tt_news will be navigable. (Next/Previous buttons ar shown)
tt_news.navigable = 1
# cat=pmkshadowbox/enable/ec; type=boolean; label= Enable Splitting in tt_news: If true, then a small userfunction is included for tt_news. This enables splitting of the caption value by setting the register value "IMAGE_NUM_CURRENT" to the current item number. NOTE. If you are using "dam_ttnews" this option should be turned off!
tt_news.enableSplit = 1
# cat=pmkshadowbox/enable/ed; type=boolean; label= Enable Shadowbox in displaySingle : If set, LightBox effect will be available in tt_news SingleView when you click on an image.
tt_news.displaySingle.shadowboxEnable = 1
# cat=pmkshadowbox/enable/ee; type=boolean; label= Enable Shadowbox in displayLatest : If set, LightBox effect will be available in tt_news LatestView when you click on an image.
tt_news.displayLatest.shadowboxEnable = 0
# cat=pmkshadowbox/enable/ef; type=boolean; label= Enable Shadowbox in displayList : If set, LightBox effect will be available in tt_news ListView when you click on an image.
tt_news.displayList.shadowboxEnable = 0
# cat=pmkshadowbox/enable/eg; type=boolean; label= Enable singleView in Shadowbox : If set, tt_news SingleView will be shown inside a LightBox.
tt_news.displayList.shadowboxSingleView = 0
# Dims options
# cat=pmkshadowbox/dims/d7; type=int+; label= Shadowbox tt_news Iframe width : Used to set the width of the LightBox if displaying tt_news SingleView in Shadowbox is enabled.
tt_news.displayList.shadowboxWidth = 600
# cat=pmkshadowbox/dims/d8; type=int+; label= Shadowbox tt_news Iframe height : Used to set the height of the LightBox if displaying tt_news SingleView in Shadowbox is enabled.
tt_news.displayList.shadowboxHeight = 500
# Other options
# cat=pmkshadowbox//om; type=options[imagetitletext,imagealttext,imagecaption]; label= tt_news Caption Field: tt_news field to use as caption inside the Shadowbox.
tt_news.captionField = imagetitletext
}
temp.imageLinkWrap >
temp.imageLinkWrap = 1
temp.imageLinkWrap {
enable = 1
# Add new typolink wrapping code
typolink {
# Set the title of the A tag, which is used as caption inside the Lightbox
title.field = {$plugin.pmkshadowbox.tt_news.captionField}
title.split.token.char = 10
title.split.returnKey.data = register : IMAGE_NUM_CURRENT
title.htmlSpecialChars = 1
#title.if.isTrue = {$plugin.pmkshadowbox.tt_news.enableSplit}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.tt_news.navigable}
ATagParams.insertData = 1
}
}
[globalVar = LIT:1 = {$plugin.pmkshadowbox.tt_news.displaySingle.shadowboxEnable}]
# Change "imageLinkWrap" for the "displaySingle" object of tt_news
plugin.tt_news.displaySingle.image.imageLinkWrap >
plugin.tt_news.displaySingle.image.imageLinkWrap < temp.imageLinkWrap
[GLOBAL]
[globalVar = LIT:1 = {$plugin.pmkshadowbox.tt_news.displayLatest.shadowboxEnable}]
# Change "imageLinkWrap" for the "displayLatest" object of tt_news
plugin.tt_news.displayLatest.image.imageLinkWrap >
plugin.tt_news.displayLatest.image.imageLinkWrap < temp.imageLinkWrap
[GLOBAL]
[globalVar = LIT:1 = {$plugin.pmkshadowbox.tt_news.displayList.shadowboxEnable}]
# Change "imageLinkWrap" for the "displayList" object of tt_news
plugin.tt_news.displayList.image.imageLinkWrap >
plugin.tt_news.displayList.image.imageLinkWrap < temp.imageLinkWrap
[GLOBAL]
[globalVar = LIT:1 = {$plugin.pmkshadowbox.tt_news.displayList.shadowboxSingleView}]
# Enable displaying tt_news singleView inside the Lightbox
plugin.tt_news.displayList.linkTitleField = title
plugin.tt_news.displayList.linkTitleField.wrap = |" rel="shadowbox;width={$plugin.pmkshadowbox.tt_news.displayList.shadowboxWidth};height={$plugin.pmkshadowbox.tt_news.displayList.shadowboxHeight}
[GLOBAL]
temp.imageLinkWrap >
temp.imageLinkWrap = 1
temp.imageLinkWrap {
enable = 1
# Add new typolink wrapping code
typolink {
# Set the title of the A tag, which is used as caption inside the Lightbox
title.field = {$plugin.pmkshadowbox.tt_news.captionField}
title.split.token.char = 10
title.split.returnKey.data = register : IMAGE_NUM_CURRENT
title.htmlSpecialChars = 1
#title.if.isTrue = {$plugin.pmkshadowbox.tt_news.enableSplit}
# This returns a link, pointing to the path + name of the original image.
# or to the path + name of the resized lightbox image (if maxH or maxW is reached.)
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
# Add the "rel" attribute needed to activate the lightbox effect.
ATagParams = rel="shadowbox"
ATagParams.override = rel="shadowbox[sb{field:uid}]"
ATagParams.override.if.isTrue = {$plugin.pmkshadowbox.tt_news.navigable}
ATagParams.insertData = 1
}
}
[globalVar = LIT:1 = {$plugin.pmkshadowbox.tt_news.displaySingle.shadowboxEnable}]
# Change "imageLinkWrap" for the "displaySingle" object of tt_news
plugin.tt_news.displaySingle.image.imageLinkWrap >