public static function getIcons() { if (!self::isMJInstalled()) { return array(); } JHtml::_('behavior.modal', 'a.modal'); $document = JFactory::getDocument(); $document->addStyleSheet('components/com_mobilejoomla/css/mod_mj_adminicon.css'); require_once JPATH_ADMINISTRATOR . '/components/com_mobilejoomla/classes/mobilejoomla.php'; MobileJoomla::loadLanguageFile('com_mobilejoomla', JPATH_ADMINISTRATOR); include_once JPATH_ADMINISTRATOR . '/components/com_mobilejoomla/mobilejoomla.html.php'; HTML_MobileJoomla::CheckForUpdate(); if (version_compare(JVERSION, '3.0', '>=')) { $image_prefix = ''; $image_suffix = ''; } else { $image_prefix = JUri::base() . 'components/com_mobilejoomla/images/'; $image_suffix = '.png'; } return array(array('id' => 'mjnoupdate', 'link' => 'index.php?option=com_mobilejoomla', 'image' => $image_prefix . 'mj-cpanel' . $image_suffix, 'text' => JText::_('COM_MJ__MOBILEJOOMLA')), array('id' => 'mjupdate', 'link' => 'index.php?tmpl=component&option=com_mobilejoomla&task=update', 'target' => '_self" class="modal" rel="{handler: \'iframe\', size: {x: 480, y: 320}}', 'image' => $image_prefix . 'mj-update' . $image_suffix, 'text' => JText::_('COM_MJ__UPDATE_AVAILABLE'))); }
function showFooter() { if ($this->getParam('jfooter')) { $app = JFactory::getApplication(); MobileJoomla::loadLanguageFile('com_mobilejoomla', JPATH_ADMINISTRATOR); $fyear = substr(JVERSION, 0, 3) != '1.5' ? 'Y' : '%Y'; $version = new JVersion(); ?> <p class="jfooter">© <?php echo JHtml::_('date', 'now', $fyear) . ' ' . $app->getCfg('sitename'); ?> <br><?php echo $version->URL; ?> <br><?php echo JText::_('COM_MJ__MOBILE_VERSION_BY'); ?> <a href="http://www.mobilejoomla.com/">Mobile Joomla!</a></p> <?php } }
<?php /** * ###DESC### * ###URL### * * @version ###VERSION### * @license ###LICENSE### * @copyright ###COPYRIGHT### * @date ###DATE### */ defined('_JEXEC') or die('Restricted access'); defined('_MJ') or die('Incorrect usage of Mobile Joomla.'); //load language file (to allow users to rename template) MobileJoomla::loadLanguageFile('tpl_mobile_iphone'); $MobileJoomla =& MobileJoomla::getInstance(); $base = $this->baseurl . '/templates/' . $this->template; $home = $this->baseurl . '/'; $MobileJoomla_Device =& MobileJoomla::getDevice(); if ($MobileJoomla_Device['markup'] != $MobileJoomla_Device['default_markup']) { $home .= '?device=' . $MobileJoomla_Device['markup']; } ?> <!doctype html> <html<?php echo $MobileJoomla->getXmlnsString(); ?> > <head> <meta http-equiv="Content-Type" content="<?php echo $MobileJoomla->getContentString();
* * @version ###VERSION### * @license ###LICENSE### * @copyright ###COPYRIGHT### * @date ###DATE### */ defined('_JEXEC') or die('Restricted access'); //ACL check if (version_compare(JVERSION, '1.6', '>=') && !JFactory::getUser()->authorise('core.manage', 'com_mobilejoomla')) { return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); } jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); jimport('joomla.event.dispatcher'); require_once JPATH_COMPONENT . '/classes/mobilejoomla.php'; MobileJoomla::loadLanguageFile('com_mobilejoomla', JPATH_ADMINISTRATOR); require_once JPATH_COMPONENT . '/mobilejoomla.html.php'; $task = JRequest::getCmd('task'); $app = JFactory::getApplication(); JPluginHelper::importPlugin('mobile'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onMJBeforeDispatch', array($task)); $extmanager = JRequest::getCmd('extmanager'); if (!empty($extmanager)) { require_once dirname(__FILE__) . '/classes/mjextmanager.php'; if (!headers_sent()) { header('Content-Type: text/html'); } switch (JRequest::getCmd('extmanager')) { case 'view_modules': require dirname(__FILE__) . '/admin_tpl/modules.php';