if ($jlistConfig['downloads.footer.text'] != '') { $footer_text = stripslashes(JDHelper::getOnlyLanguageSubstring($jlistConfig['downloads.footer.text'])); if ($jlistConfig['google.adsense.active'] && $jlistConfig['google.adsense.code'] != '') { $footer_text = str_replace('{google_adsense}', stripslashes($jlistConfig['google.adsense.code']), $footer_text); } else { $footer_text = str_replace('{google_adsense}', '', $footer_text); } $html .= $footer_text; } // back button if ($jlistConfig['view.back.button']) { $footer = str_replace('{back_link}', '<a href="javascript:history.go(-1)">' . JText::_('COM_JDOWNLOADS_FRONTEND_BACK_BUTTON') . '</a>', $footer); } else { $footer = str_replace('{back_link}', '', $footer); } $footer .= JDHelper::checkCom(); $html .= $footer; $html .= '</div>'; // remove empty html tags if ($jlistConfig['remove.empty.tags']) { $html = JDHelper::removeEmptyTags($html); } // ========================================== // VIEW THE BUILDED OUTPUT // ========================================== if (!$jlistConfig['offline']) { echo $html; } else { // admins can view it always if ($is_admin) { echo $html;