} $xoopsTpl->assign('clips', $clips); $tabsObj = new SmartmediaTabs($theClipObj); // Get user's browser include_once SMARTMEDIA_ROOT_PATH . "include/browser_detect.php"; $browser = browser_detection('browser'); $xoopsTpl->assign('tabs', $tabsObj->getTabs($browser)); $xoopsTpl->assign('module_home', smartmedia_module_home()); $xoopsTpl->assign('size', "width: 256px; height: 248px;"); $xoopsTpl->assign('previous_clip_url', $previous_clip_url); $xoopsTpl->assign('lang_previous_clip', _MD_SMEDIA_PREVIOUS_CLIP); $xoopsTpl->assign('next_clip_url', $next_clip_url); $xoopsTpl->assign('lang_next_clip', _MD_SMEDIA_NEXT_CLIP); $xoopsTpl->assign('lang_clip_counter', sprintf(_MD_SMEDIA_CLIP_HAS_BEEN_SEEN, $theClipObj->counter())); /* // The Navigation Bar include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; $pagenav = new XoopsPageNav($thisclip_itemcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'clipid=' . $clipObj->getVar('clipid')); If ($xoopsModuleConfig['useimagenavpage'] == 1) { $clip['navbar'] = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'; } else { $clip['navbar'] = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; } $xoopsTpl->assign('clip', $clip); */ // MetaTag Generator smartmedia_createMetaTags($theClipObj->title('clean'), $folderObj->title('clean') . " - " . $categoryObj->title('clean'), $theClipObj->description()); include_once XOOPS_ROOT_PATH . "/footer.php";
include_once XOOPS_ROOT_PATH . "/header.php"; include_once "footer.php"; // Category Smarty variabble $xoopsTpl->assign('category', $categoryObj->toArray()); $xoopsTpl->assign('categoryPath', $categoryObj->title()); // At which record shall we start $start = isset($_GET['start']) ? intval($_GET['start']) : 0; $foldersObj =& $smartmedia_folder_handler->getfolders($xoopsModuleConfig['folders_per_category'], $start, $categoryid, _SMEDIA_FOLDER_STATUS_ONLINE, 'parent.categoryid ASC, weight ASC, parent.folderid', 'ASC', false); $folders = array(); $i = 1; foreach ($foldersObj as $folderObj) { $folder = $folderObj->toArray(); $folder['id'] = $i; $folders[] = $folder; $i++; unset($folder); } $xoopsTpl->assign('folders', $folders); $xoopsTpl->assign('module_home', smartmedia_module_home()); // The Navigation Bar if ($xoopsModuleConfig['folders_per_category'] > 0) { include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; $pagenav = new XoopsPageNav($totalItem[$categoryObj->getVar('categoryid')], $xoopsModuleConfig['folders_per_category'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid')); $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); if ($xoopsModuleConfig['folders_per_category'] >= 8) { $xoopsTpl->assign('navbarbottom', 1); } } // MetaTag Generator smartmedia_createMetaTags($categoryObj->title(), '', $categoryObj->description()); include_once XOOPS_ROOT_PATH . "/footer.php";
$parentObj = $smartmedia_category_handler->get($categoryid); // Folder Smarty variabble $xoopsTpl->assign('folder', $folderObj->toArray()); // Breadcrumb $xoopsTpl->assign('categoryPath', $parentObj->getItemLink() . " > " . $folderObj->title()); // At which record shall we start $start = isset($_GET['start']) ? intval($_GET['start']) : 0; $clipsObj =& $smartmedia_clip_handler->getclips($xoopsModuleConfig['clips_per_folder'], $start, $folderid, 'weight', 'ASC', false); $clips = array(); $i = 1; foreach ($clipsObj as $clipObj) { $clip = $clipObj->toArray($categoryid); $clip['id'] = $i; $clips[] = $clip; $i++; unset($clip); } $xoopsTpl->assign('clips', $clips); $xoopsTpl->assign('module_home', smartmedia_module_home()); // The Navigation Bar include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; if ($xoopsModuleConfig['clips_per_folder'] != 0) { $pagenav = new XoopsPageNav($totalItem[$folderObj->getVar('folderid')], $xoopsModuleConfig['clips_per_folder'], $start, 'start', 'categoryid=' . $categoryid . '&folderid=' . $folderObj->getVar('folderid')); $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); if ($xoopsModuleConfig['clips_per_folder'] >= 8) { $xoopsTpl->assign('navbarbottom', 1); } } // MetaTag Generator smartmedia_createMetaTags($folderObj->title(), $parentObj->title(), $folderObj->description()); include_once XOOPS_ROOT_PATH . "/footer.php";
$catstart = isset($_GET['catstart']) ? intval($_GET['catstart']) : 0; $totalCategories = $smartmedia_category_handler->getCategoriesCount(); $xoopsOption['template_main'] = 'smartmedia_index.html'; include_once XOOPS_ROOT_PATH . "/header.php"; include_once "footer.php"; // Creating the categories objects $categoriesObj = $smartmedia_category_handler->getCategories($xoopsModuleConfig['categories_on_index'], $catstart); $categories = array(); $i = 1; foreach ($categoriesObj as $categoryObj) { $category = $categoryObj->toArray(); $category['id'] = $i; $categories[] = $category; $i++; unset($category); } $xoopsTpl->assign('categories', $categories); $xoopsTpl->assign('module_home', smartmedia_module_home(false)); $index_msg = $myts->displayTarea($xoopsModuleConfig['index_msg'], 1); $xoopsTpl->assign('index_msg', $index_msg); // ITEM Navigation Bar if ($xoopsModuleConfig['categories_on_index'] > 0) { $pagenav = new XoopsPageNav($totalCategories, $xoopsModuleConfig['categories_on_index'], $catstart, 'catstart', ''); $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); if ($xoopsModuleConfig['categories_on_index'] >= 8) { $xoopsTpl->assign('navbarbottom', 1); } } // MetaTag Generator smartmedia_createMetaTags($smartmedia_moduleName, '', $index_msg); include_once XOOPS_ROOT_PATH . "/footer.php";