/** * DEPRECATED * Load the jQuery library if needed * Keep for compatibility with extensions requiring version 1.0.1 of the library */ static function loadJQueryNoConflict() { $doc = JFactory::getDocument(); if (self::$jqncLoaded) { return; } $doc->addScript(JURI::root(true) . '/media/syw/js/jquery/syw.noconflict.js'); self::$jqncLoaded = true; }
if ($k2_exists) { require_once dirname(__FILE__) . '/helpers/helper_k2.php'; $list = modLatestNewsEnhancedHelperK2::getList($params, $module); } break; default: require_once dirname(__FILE__) . '/helpers/helper_standard.php'; $list = modLatestNewsEnhancedHelperStandard::getList($params, $module); break; } if (empty($list)) { return; } jimport('syw.libraries'); jimport('syw.utilities'); $isjoomla3plus = SYWUtilities::isJoomla3(); // parameters $doc = JFactory::getDocument(); $show_errors = $params->get('show_errors', 0); $head_align = $params->get('head_align', 'left'); $default_picture = trim($params->get('default_picture', '')); if (!empty($default_picture)) { $default_picture = JURI::base() . $default_picture; } $link_text = trim($params->get('link', '')); $show_category = false; $link_category = true; switch ($params->get('show_cat', 0)) { case 1: $show_category = true; break;