* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $module_usage = $params->get('module_usage', 0); $authorAvatarWidthSelect = $params->get('authorAvatarWidthSelect', 'custom'); $authorAvatarWidth = $params->get('authorAvatarWidth', 50); $button = $params->get('button', ''); $imagebutton = $params->get('imagebutton', ''); $button_pos = $params->get('button_pos', 'left'); $button_text = $params->get('button_text', JText::_('K2_SEARCH')); $width = intval($params->get('width', 20)); $maxlength = $width > 20 ? $width : 20; $text = $params->get('text', JText::_('K2_SEARCH')); $document = JFactory::getDocument(); $app = JFactory::getApplication(); if ($authorAvatarWidthSelect == 'inherit') { $componentParams = JComponentHelper::getParams('com_k2'); $avatarWidth = $componentParams->get('userImageWidth'); } else { $avatarWidth = $authorAvatarWidth; } if ($params->get('usage') == 'categories') { ob_start(); $categories = ModK2ToolsHelper::getCategories($params, 'default'); require JPATH_SITE . '/modules/mod_k2_tools/tmpl/categories.php'; $output = ob_get_contents(); ob_end_clean(); }
$path[] = '<a href="' . $entry->link . '">' . $entry->title . '</a>'; } $title = $breadcrumbs->title; require JModuleHelper::getLayoutPath('mod_k2_tools', 'breadcrumbs'); break; case 'categories': $categories = ModK2ToolsHelper::getCategories($params, 'default'); // Legacy ob_start(); require JPATH_SITE . '/modules/mod_k2_tools/tmpl/categories.php'; $output = ob_get_contents(); ob_end_clean(); require JModuleHelper::getLayoutPath('mod_k2_tools', 'categories'); break; case 'categoriesList': $categories = ModK2ToolsHelper::getCategories($params, 'selectbox'); require JModuleHelper::getLayoutPath('mod_k2_tools', 'categories_select'); break; case 'search': $search = ModK2ToolsHelper::getSearch($params); // Legacy $action = $search->action; $categoryFilter = $search->filter; require JModuleHelper::getLayoutPath('mod_k2_tools', 'search'); break; case 'tags': $tags = ModK2ToolsHelper::getTagCloud($params); require JModuleHelper::getLayoutPath('mod_k2_tools', 'tags'); break; case 'custom': $customcode = ModK2ToolsHelper::getCustomCode($params);