<{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++; $ResponsiveSlides->add_content($files_sn,$title,$description,XOOPS_URL."/uploads/tad_themes/{$xoopsConfig['theme_set']}/slide/{$file_name}",$date,XOOPS_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}>