/** * Draws a Content List * Used by Content Category & Content Section */ function showContentList($title, $items, $access, $id = 0, $sectionid = NULL, $gid, $params, $pageNav = NULL, $other_categories, $lists) { global $Itemid, $my, $mainframe; global $mosConfig_hideCreateDate, $mosConfig_hideAuthor, $mosConfig_offset; global $mosConfig_live_site; $hide_js = mosGetParam($_REQUEST, 'hide_js', NULL); if ($sectionid) { $id = $sectionid; } if (strtolower(get_class($title)) == 'mossection') { $catid = 0; } else { $catid = $title->id; } $task = mosGetParam($_REQUEST, 'task', ''); ?> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get('pageclass_sfx'); ?> "> <?php if ($params->get('page_title')) { ?> <tr> <td colspan="2" class="componentheading<?php echo $params->get('pageclass_sfx'); ?> " width="100%"> <?php echo $title->name; ?> </td> </tr> <?php } ?> <tr> <td width="60%" valign="top" class="contentdescription<?php echo $params->get('pageclass_sfx'); ?> " colspan="2"> <?php if ($title->image) { $link = $mosConfig_live_site . '/images/stories/' . $title->image; ?> <img src="<?php echo $link; ?> " align="<?php echo $title->image_position; ?> " hspace="6" alt="<?php echo $title->image; ?> " /> <?php } echo $title->description; ?> </td> </tr> <tr> <td> <?php // Displays the Table of Items in Category View if ($items) { HTML_content::showTable($params, $items, $gid, $catid, $id, $pageNav, $access, $sectionid, $lists); } else { if ($catid) { ?> <br /> <?php echo _EMPTY_CATEGORY; ?> <br /><br /> <?php } } ?> </td> </tr> <tr> <td colspan="2"> <?php // Displays listing of Categories if ($params->get('other_cat') && (count($other_categories) > 1 || count($other_categories) < 2 && count($items) < 1)) { HTML_content::showCategories($params, $items, $gid, $other_categories, $catid, $id, $Itemid); } ?> </td> </tr> </table> <?php // displays close button in pop-up window mosHTML::BackButton($params); ?> <?php }
/** * Draws a Content List * Used by Content Category & Content Section */ function showContentList($title, &$items, &$access, $id = 0, $sectionid = NULL, $gid, &$params, &$pageNav, $other_categories, &$lists, $order, $categories_exist) { global $Itemid, $mosConfig_live_site; if ($sectionid) { $id = $sectionid; } if (strtolower(get_class($title)) == 'mossection') { $catid = 0; } else { $catid = $title->id; } if ($params->get('page_title')) { ?> <div class="componentheading<?php echo $params->get('pageclass_sfx'); ?> "> <?php echo htmlspecialchars($title->name, ENT_QUOTES); ?> </div> <?php } ?> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get('pageclass_sfx'); ?> "> <?php if ($params->get('description') || $params->get('description_image')) { ?> <tr> <td width="60%" valign="top" class="contentdescription<?php echo $params->get('pageclass_sfx'); ?> " colspan="2"> <?php if ($params->get('description_image') && $title->image) { $link = $mosConfig_live_site . '/images/stories/' . $title->image; ?> <img src="<?php echo $link; ?> " align="<?php echo $title->image_position; ?> " hspace="6" alt="<?php echo $title->image; ?> " /> <?php } if ($params->get('description')) { echo $title->description; } ?> </td> </tr> <?php } ?> <tr> <td width="100%"> <?php // Displays the Table of Items in Category View if ($items) { HTML_content::showTable($params, $items, $gid, $catid, $id, $pageNav, $access, $sectionid, $lists, $order); } else { if ($catid) { ?> <br /> <?php echo _EMPTY_CATEGORY; ?> <br /><br /> <?php } } // New Content Icon if (($access->canEdit || $access->canEditOwn) && $categories_exist) { $link = sefRelToAbs('index.php?option=com_content&task=new&sectionid=' . $id . '&Itemid=' . $Itemid); ?> <a href="<?php echo $link; ?> "> <img src="<?php echo $mosConfig_live_site; ?> /images/M_images/new.png" width="13" height="14" align="middle" border="0" alt="<?php echo _CMN_NEW; ?> " /> <?php echo _CMN_NEW; ?> ...</a> <br /><br /> <?php } ?> </td> </tr> <tr> <td colspan="2"> <?php // Displays listing of Categories if (count($other_categories) > 1 || count($other_categories) < 2 && count($items) < 1) { if ($params->get('type') == 'category' && $params->get('other_cat')) { HTML_content::showCategories($params, $items, $gid, $other_categories, $catid, $id, $Itemid); } if ($params->get('type') == 'section' && $params->get('other_cat_section')) { HTML_content::showCategories($params, $items, $gid, $other_categories, $catid, $id, $Itemid); } } ?> </td> </tr> </table> <?php // displays back button mosHTML::BackButton($params); }
/** * Draws a Content List * Used by Content Category & Content Section */ function showContentList($title, $items, $access, $id = 0, $sectionid = NULL, $gid, $params, $pageNav = NULL, $other_categories, $lists) { global $Itemid, $mosConfig_live_site; if ($sectionid) { $id = $sectionid; } if (strtolower(get_class($title)) == 'mossection') { $catid = 0; } else { $catid = $title->id; } if ($params->get('page_title')) { ?> <div class="componentheading<?php echo $params->get('pageclass_sfx'); ?> "> <?php echo $title->name; ?> </div> <?php } ?> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get('pageclass_sfx'); ?> "> <tr> <td width="60%" valign="top" class="contentdescription<?php echo $params->get('pageclass_sfx'); ?> " colspan="2"> <?php if ($params->get('description') || $params->get('description_image')) { if ($title->image) { $link = $mosConfig_live_site . '/images/stories/' . $title->image; ?> <img src="<?php echo $link; ?> " align="<?php echo $title->image_position; ?> " hspace="6" alt="<?php echo $title->image; ?> " /> <?php } if ($params->get('description')) { echo $title->description; } } ?> </td> </tr> <tr> <td> <?php // Displays the Table of Items in Category View if ($items) { HTML_content::showTable($params, $items, $gid, $catid, $id, $pageNav, $access, $sectionid, $lists); } else { if ($catid) { ?> <br /> <?php echo T_('This Category is currently empty'); ?> <br /><br /> <?php } } ?> </td> </tr> <tr> <td colspan="2"> <?php // Displays listing of Categories if (is_array($other_categories) and (count($other_categories) > 1 or count($items) < 1)) { $paramtype = $params->get('type'); if ($paramtype == 'category' and $params->get('other_cat') or $paramtype == 'section' and $params->get('other_cat_section')) { HTML_content::showCategories($params, $items, $gid, $other_categories, $catid, $id, $Itemid); } } ?> </td> </tr> </table> <?php // displays back button mosHTML::BackButton($params); }