HighSlide

   HighSlide


, HighSlide "". "" .

1. :

highslide.zip [24,71 Kb] (c: 1175)

HighSlide 4.1.13 ( highslide-with-gallery.min.js, highslide.js, highslide.css).

"engine/classes/highslide".

2. "index.php"

<script type="text/javascript">
<!--
hs.graphicsDir = '{$config['http_home_url']}engine/classes/highslide/graphics/';
{$type}
hs.numberOfImagesToPreload = 0;
hs.showCredits = false;
{$dimming}
hs.lang = {
loadingText : '{$lang['loading']}',
playTitle : '{$lang['thumb_playtitle']}',
pauseTitle: '{$lang['thumb_pausetitle']}',
previousTitle : '{$lang['thumb_previoustitle']}',
nextTitle : '{$lang['thumb_nexttitle']}',
moveTitle : '{$lang['thumb_movetitle']}',
closeTitle :'{$lang['thumb_closetitle']}',
fullExpandTitle : '{$lang['thumb_expandtitle']}',
restoreTitle :'{$lang['thumb_restore']}',
focusTitle :'{$lang['thumb_focustitle']}',
loadingTitle :'{$lang['thumb_cancel']}'
};
{$gallery}
//-->
</script>




<script type="text/javascript">
<!--
hs.graphicsDir = '{$config['http_home_url']}engine/classes/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.dimmingOpacity = 0.8;
hs.wrapperClassName = 'borderless floating-caption';
hs.captionEval = 'this.thumb.alt';
hs.marginLeft = 100; // make room for the thumbstrip
hs.marginBottom = 80 // make room for the controls and the floating caption
hs.numberPosition = 'caption';
hs.lang = {
cssDirection: 'ltr',
loadingText: '...',
loadingTitle: ' ',
focusTitle: ' ',
fullExpandTitle: ' ',
creditsText: ' <i>Highslide JS</i>',
creditsTitle: ' Highslide JS',
previousText: '',
nextText: '',
moveText: '',
closeText: '',
closeTitle: ' (esc)',
resizeTitle: ' ',
playText: '',
playTitle: ' ()',
pauseText: '',
pauseTitle: ' ()',
previousTitle: ' ( )',
nextTitle: ' ( )',
moveTitle: '',
fullExpandText: ' ',
number: ' %1 %2',
restoreTitle: ' , . .'
};
{$gallery}
//-->
</script>




$gallery = "
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.addSlideshow({
interval: 4000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: .75,
position: 'bottom center',
hideonmouseout: true
}
});";




$gallery = "
// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
overlayOptions: {
className: 'text-controls',
position: 'bottom center',
relativeTo: 'viewport',
offsetX: 50,
offsetY: -5
},
thumbstrip: {
position: 'middle left',
mode: 'vertical',
relativeTo: 'viewport'
}
});
// Add the simple close button
hs.registerOverlay({
html: '<div class=\"closebutton\" onclick=\"return hs.close(this)\" title=\"Close\"></div>',
position: 'top right',
fade: 2 // fading the semi-transparent overlay looks bad in IE
});";


, HighSlide ,

if ($config['thumb_gallery'] AND ($dle_module == "showfull" OR $dle_module == "static") ) {



//if ($config['thumb_gallery'] AND ($dle_module == "showfull" OR $dle_module == "static") ) {



} else {

$gallery = "";

}




/*} else {

$gallery = "";

}*/


3. "main.tpl"

</head>



<link media="screen" href="/engine/classes/highslide/highslide.css" rel="stylesheet" />

4. , "templates/*/styles/style.css"

/* Center the text in the caption */
.highslide-caption {
width: 100%;
text-align: center;
}
/* Remove the close button from the controls since we already have one in the corner of the image */
.highslide-close {
display: none !important;
}
/* Put the image number in front of the caption */
.highslide-number {
display: inline;
padding-right: 1em;
color: white;
}


.

:
HighSlide http://highslide.com/
HighSlide http://highslide.com/editor/