$listOrder = str_replace('a.', '', $this->escape($this->state->get('list.ordering'))); $listDirn = $this->escape($this->state->get('list.direction')); // Create shortcuts to some parameters. $params = $this->params; $files = $this->items; $html = ''; $body = ''; $footer_text = ''; $layout = ''; $is_admin = false; $date_format = JDHelper::getDateFormat(); if (JDHelper::checkGroup('8', true) || JDHelper::checkGroup('7', true)) { $is_admin = true; } // Get the needed layout data - type = 2 for a 'files' layout $layout_files = JDHelper::getLayout(2, false); if ($layout_files) { $layout_files_text = $layout_files->template_text; $header = ''; // $layout_files->template_header_text; $subheader = $layout_files->template_subheader_text; $footer = $layout_files->template_footer_text; } else { // We have not a valid layout data echo '<big>No valid layout found for files!</big>'; } if ($layout_files->symbol_off == 0) { $use_mini_icons = true; } else { $use_mini_icons = false; }
defined('_JEXEC') or die; global $jlistConfig; $db = JFactory::getDBO(); $document = JFactory::getDocument(); $jinput = JFactory::getApplication()->input; $app = JFactory::getApplication(); $user = JFactory::getUser(); $lang = JFactory::getLanguage(); $upper_limit = $lang->getUpperLimitSearchWord(); // get jD user limits and settings $jd_user_settings = JDHelper::getUserRules(); $html = ''; $layout = ''; // Get the needed layout data - type = 7 for a 'search form' layout // Please note that he are stored only header data not the layout self - not the best solutions. So perhaps will we change it in later releases. $layout = JDHelper::getLayout(7, false); if ($layout) { $layout_text = $layout->template_text; $header = $layout->template_header_text; $subheader = $layout->template_subheader_text; $footer = $layout->template_footer_text; } else { // We have not a valid layout data echo '<big>No valid layout found!</big>'; } // get current category menu ID when exist and all needed menu IDs for the header links $menuItemids = JDHelper::getMenuItemids(0); // get all other menu category IDs so we can use it when we needs it $cat_link_itemids = JDHelper::getAllJDCategoryMenuIDs(); // "Home" menu link itemid $root_itemid = $menuItemids['root'];