$upload_link = '<a href="' . JRoute::_('index.php?option=com_jdownloads&view=form&layout=edit&Itemid=' . $menuItemids['upload']) . '">' . '<img src="' . JURI::base() . 'components/com_jdownloads/assets/images/upload.png" width="32" height="32" style="border:0px;" alt="' . JText::_('COM_JDOWNLOADS_UPLOAD_LINKTEXT') . '" /></a> <a href="' . JRoute::_('index.php?option=com_jdownloads&view=form&layout=edit&Itemid=' . $menuItemids['upload'] . '') . '">' . JText::_('COM_JDOWNLOADS_UPLOAD_LINKTEXT') . '</a>'; $header = str_replace('{home_link}', $home_link, $header); $header = str_replace('{search_link}', $search_link, $header); if ($jd_user_settings->uploads_view_upload_icon) { if ($this->view_upload_button) { $header = str_replace('{upload_link}', $upload_link, $header); } else { $header = str_replace('{upload_link}', '', $header); } } else { $header = str_replace('{upload_link}', '', $header); } if ($menuItemids['upper'] > 1 && $menuItemids['upper'] != $menuItemids['base']) { // 1 is 'root' // exists a single category menu link for the category a level up? $level_up_cat_itemid = JDHelper::getSingleCategoryMenuID($cat_link_itemids, $menuItemids['upper'], $root_itemid); $upper_link = JRoute::_('index.php?option=com_jdownloads&view=category&catid=' . $menuItemids['upper'] . '&Itemid=' . $level_up_cat_itemid); $header = str_replace('{upper_link}', '<a href="' . $upper_link . '">' . '<img src="' . JURI::base() . 'components/com_jdownloads/assets/images/upper.png" width="32" height="32" style="border:0px;" alt="' . JText::_('COM_JDOWNLOADS_UPPER_LINKTEXT') . '" /></a> <a href="' . $upper_link . '">' . JText::_('COM_JDOWNLOADS_UPPER_LINKTEXT') . '</a>', $header); } else { $upper_link = JRoute::_('index.php?option=com_jdownloads&view=categories&Itemid=' . $menuItemids['root']); $header = str_replace('{upper_link}', '<a href="' . $upper_link . '">' . '<img src="' . JURI::base() . 'components/com_jdownloads/assets/images/upper.png" width="32" height="32" style="border:0px;" alt="' . JText::_('COM_JDOWNLOADS_UPPER_LINKTEXT') . '" /></a> <a href="' . $upper_link . '">' . JText::_('COM_JDOWNLOADS_UPPER_LINKTEXT') . '</a>', $header); } // create category listbox and viewed it when it is activated in configuration if ($jlistConfig['show.header.catlist']) { // get current selected cat id from listbox if ($this->state->get('only_uncategorised')) { $catlistid = 1; } else { $catlistid = -1; } // get current sort order and direction