I want to know which phone ans is detected and which template is used by MobileJoomla..
Can this be displayed on some way?
Can this be displayed on some way?
// no direct access
defined('_JEXEC') or die('Restricted access');
$lang =& JFactory::getLanguage();
$lang->load('mod_search');
$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 box'));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
$MobileJoomla =& MobileJoomla::getInstance();
switch ($MobileJoomla->getMarkup()) {
case 'iphone':
require(JModuleHelper::getLayoutPath('mod_mj_search', 'default_iphone'));
break;
default:
require(JModuleHelper::getLayoutPath('mod_mj_search', 'default_pda'));
break;
}'