$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::_('Search')); $width = intval($params->get('width', 20)); $maxlength = $width > 20 ? $width : 20; $text = $params->get('text', JText::_('search...')); JHTML::_('behavior.mootools'); $document =& JFactory::getDocument(); // Output switch ($module_usage) { case '0': $months = modK2ToolsHelper::getArchive($params); if (count($months)) { require JModuleHelper::getLayoutPath('mod_k2_tools', 'archive'); } break; case '1': // User avatar if ($authorAvatarWidthSelect == 'inherit') { $componentParams =& JComponentHelper::getParams('com_k2'); $avatarWidth = $componentParams->get('userImageWidth'); } else { $avatarWidth = $authorAvatarWidth; } $authors = modK2ToolsHelper::getAuthors($params); require JModuleHelper::getLayoutPath('mod_k2_tools', 'authors'); break;