<{if $slide_width > 0 }>
class="span<{$slide_width}>"<{/if}> style="position:relative;<{if $slide_height}>height:<{$slide_height}>px;overflow:hidden;<{/if}><{if $theme_kind=="html"}>width:<{$slide_width}>px;<{/if}> "> <{if $logo_img}> <{/if}> <{php}> global $xoopsDB,$xoopsConfig; if(file_exists(XOOPS_ROOT_PATH."/modules/tadtools/ResponsiveSlides.php")){ include_once XOOPS_ROOT_PATH."/modules/tadtools/ResponsiveSlides.php"; $ResponsiveSlides = new slider(120,false); $sql="select a.*,b.slide_width,b.slide_height from ".$xoopsDB->prefix("tad_themes_files_center")." as a left join ".$xoopsDB->prefix("tad_themes")." as b on a.col_sn=b.theme_id where a.`col_name`='slide' and b.`theme_name`='{$xoopsConfig['theme_set']}'"; $result = $xoopsDB->query($sql); $slide_images=0; while($data=$xoopsDB->fetchArray($result)){ foreach($data as $k=>$v){ $$k=$v; //$this->assign($k,$$k); } $slide_images++; preg_match_all("/\](.*)\[/", $description, $matches); $url=$matches[1][0]; if(empty($url))$url=XOOPS_URL; $description=str_replace("[url]{$url}[/url]", "", $description); $ResponsiveSlides->add_content($files_sn,$title,$description,XOOPS_URL."/uploads/tad_themes/{$xoopsConfig['theme_set']}/slide/{$file_name}",$date,$url); } if(empty($slide_images)){ $title=$xoopsConfig['sitename']; $content=$xoopsConfig['meta_description']; $ResponsiveSlides->add_content(1,$title,$content,XOOPS_URL."/themes/{$xoopsConfig['theme_set']}/images/slide/default.png",$date,XOOPS_URL); $ResponsiveSlides->add_content(2,$title,$content,XOOPS_URL."/themes/{$xoopsConfig['theme_set']}/images/slide/default2.png",$date,XOOPS_URL); $ResponsiveSlides->add_content(3,$title,$content,XOOPS_URL."/themes/{$xoopsConfig['theme_set']}/images/slide/default3.png",$date,XOOPS_URL); } $slide_images=$ResponsiveSlides->render(); echo $slide_images; } <{/php}>
<{/if}>