| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/eadsa/modules/mod_imagescroll/tmpl/ |
Upload File : |
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$out = '';
$images = '';
$bullet_links = '';
$option = JRequest::getVar( 'option', '', 'GET', 'STRING' );
$id = JRequest::getVar( 'id', 0, 'GET', 'INT' );
$Itemid = JRequest::getVar( 'Itemid', '', 'GET', 'INT' );
$i = 0;
$bullet = JHTML::_( 'image', JURI::base() . 'modules/mod_imagescroll/images/bullet.png', 'bullet', array('style'=>'margin:0 10px;') );
$num = count($cachefiles);
$link_titles = array();
foreach ($cachefiles as $cachefile) {
$filename = basename( $files[$i] );
switch ($linked){
case 0:
$prefix = false;
break;
case 1:
$pos = strpos($filename, "id$id");
if ($pos === false){
continue 2;
}
break;
case 2:
$pos = strpos($filename, "item$Itemid");
if ($pos === false){
continue 2;
}
break;
}
$cachefilename = basename( $cachefile );
if (($limit - $i) < 1) break;
$img_tag_attribs = array();
$link_tag_attribs = array();
$url_array = modImageScrollHelper::urlExplode( $params, $filename, $i );
//$tag_attribs = array();
$img_tag_attribs['id'] = "jdv_iscroll{$module->id}_content$i";
$img_tag_attribs['title'] = $url_array['title'];
if ($i == $num-1){
$img_tag_attribs['class'] = 'last';
}
//$link_tag_attribs['id'] = "jdv_iscroll{$module->id}_content$i";
$bullet_links .= JHTML::_( 'link', '#', $bullet, array('id'=>"jdv_iscroll{$module->id}_link$i") );
$image = JHTML::_( 'image', JURI::base() . 'cache/mod_imagescroll_thumbs/' . $cachefilename, $filename, $img_tag_attribs );
$link_tag_attribs = array();
switch ($typeLink){
case 'box':
$href = $directory . '/' . $filename;
$images .= JHTML::_( 'link', $href, $image, $link_tag_attribs );
break;
case 'box_title':
$href = $directory . '/' . $filename;
$images .= JHTML::_( 'link', $href, $image, $link_tag_attribs );
$articles = modImageScrollHelper::getLinks( $files, $params );
$filename = JFile::stripExt($filename);
$id = (int)substr( $filename, 2 );
if (array_key_exists($id, $articles)){
$readmore_link = $articles[$id]->readmore_link;
} else {
$readmore_link = null;
}
$href = $url;
if ($readmore_link){
$href = $readmore_link;
$title = $articles[$id]->title;
$intro = modImageScrollHelper::prepareContent( $articles[$id]->introtext, $introChars ) . '...' ;
$link_titles[$i]['title'] = JHTML::_( 'link', $href, $title );
$link_titles[$i]['intro'] = $intro;
} else {
$link_titles[$i]['title'] = '';
$link_titles[$i]['intro'] = '';
}
break;
}
$i++;
}
$out .= '<table style="margin:0 auto;">
<tr>
<td class="jdv_prev">
<div id="jdv_button_prev' . $module->id . '" class="jdv_button_prev iepng"></div>
</td>
<td>
';
if ($scrollDirection == 'horizontally'){
$direction_style = 'width:32766px; height:' . $height . ';';
}else{
$direction_style = 'width:' . $width . '; height: 32766px;';
}
$out .= '<div id="jdv_iscroll' . $module->id . '_wrap" class="jdv_iscroll_wrap" style="width:' . $width . ';height:' . $height . ';">';
$out .= '<div id="jdv_iscroll' . $module->id . '_inner" class="jdv_iscroll_inner' . ($scrollDirection == 'horizontally' ? ' horizontally' : ' vertically') . '" style="' . $direction_style . '">';
$out .= $images;
if ($scrollDirection == 'horizontally'){
$out .= '<span id="slideEnd' . $module->id . '"> </span>';
}else{
$out .= '<div id="slideEnd' . $module->id . '"> </div>';
}
$out .= '</div></div>';
if ($onPointBar){
$out .= '<div id="jdv_iscroll_bar' . $module->id . '" class="jdv_iscroll_bar">' . $bullet_links . '</div>';
}
$out .= '
</td>
<td class="jdv_next">
<div id="jdv_button_next' . $module->id . '" class="jdv_button_next iepng"></div>
</td>
</tr>
</table>';
$out .= '<div id="' . $boxIdPrefix . '_box' . '" style="width:' . $boxWidth . 'px;height:' . $boxHeight . 'px;margin:0 auto;" class="jdv_iscroll_box">';
if ($typeLink == 'box_title'){
$out .= '<div id="' . $boxIdPrefix . '_wrapinfo' . '" class="jdv_iscroll_wrapinfo"><div class="jdv_iscroll_info_inside">';
$out_link_title = '';
foreach ($link_titles as $n=>$link_title){
$out_link_title .= '
<div id="' . $boxIdPrefix . '_info' . $n . '" class="jdv_iscroll_info"><h3>' . $link_title['title'] . '</h3>
<div id="' . $boxIdPrefix . '_intro' . $n . '" class="jdv_iscroll_intro">' . $link_title['intro'] . '</div>
</div>
';
}
$out .= $out_link_title;
$out .= '</div></div>';
}
$out .= JHTML::_( 'image', '', 'iscroll-box', array('id'=> $boxIdPrefix . '_image', 'class'=>'jdv_iscroll_image'));
$out .= '</div>';
$out .= JHTML::_( 'image', JURI::base() . 'modules/mod_imagescroll/images/spinner.gif', 'spinner', array('style'=>'display:none;') );
echo $out;
?>