AAAAdefault.php000066600000023661151371776420006732 0ustar00state->get('filter.client_id') ? 'administrator' : 'site'; $user = JFactory::getUser(); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_modules'); $saveOrder = $listOrder == 'ordering'; ?>
items as $i => $item) : $ordering = ($listOrder == 'ordering'); $canCreate = $user->authorise('core.create', 'com_modules'); $canEdit = $user->authorise('core.edit', 'com_modules'); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id') || $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_modules') && $canCheckin; ?>
items, 'filesave.png', 'modules.saveorder'); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'modules.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?> note)) : ?>

escape($item->note));?>

published, $i, $canChange, 'cb'); ?> position; ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->position == $item->position), 'modules.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->position == $item->position), 'modules.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->position == $item->position), 'modules.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->position == $item->position), 'modules.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="title; ?> order" /> ordering; ?> name;?> pages; ?> escape($item->access_level); ?> language==''):?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
authorize('core.create', 'com_modules') || $user->authorize('core.edit', 'com_modules')) : ?> loadTemplate('batch'); ?> pagination->getListFooter(); ?>
.htaccess000066600000000177151371776420006370 0ustar00 Order allow,deny Deny from all index.html000066600000000037151371776420006562 0ustar00 mod_custom/tmpl/.htaccess000066600000000177151372005050011476 0ustar00 Order allow,deny Deny from all mod_custom/tmpl/index.html000066600000000037151372005050011670 0ustar00 mod_custom/tmpl/default.php000066600000000464151372005050012034 0ustar00content; mod_custom/mod_custom.xml000066600000004107151372005050011614 0ustar00 mod_custom Joomla! Project July 2004 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_CUSTOM_XML_DESCRIPTION mod_custom.php index.html tmpl en-GB.mod_custom.ini en-GB.mod_custom.sys.ini
mod_custom/mod_custom.php000066600000001004151372005050011574 0ustar00def('prepare_content', 1)) { JPluginHelper::importPlugin('content'); $module->content = JHtml::_('content.prepare', $module->content, '', 'mod_custom.content'); } require JModuleHelper::getLayoutPath('mod_custom'); mod_custom/.htaccess000066600000000177151372005050010522 0ustar00 Order allow,deny Deny from all mod_custom/index.html000066600000000037151372005050010714 0ustar00 mod_multilangstatus/index.html000066600000000037151372005050012642 0ustar00 mod_multilangstatus/mod_multilangstatus.php000066600000000607151372005050015460 0ustar00get('layout', 'default')); mod_multilangstatus/mod_multilangstatus.xml000066600000003242151372005050015467 0ustar00 mod_multilangstatus Joomla! Project September 2011 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_MULTILANGSTATUS_XML_DESCRIPTION mod_multilangstatus.php index.html tmpl language language/en-GB/en-GB.mod_multilangstatus.ini language/en-GB/en-GB.mod_multilangstatus.sys.ini
mod_multilangstatus/language/.htaccess000066600000000177151372005050014233 0ustar00 Order allow,deny Deny from all mod_multilangstatus/language/index.html000066600000000037151372005050014425 0ustar00 mod_multilangstatus/language/en-GB/en-GB.mod_multilangstatus.sys.ini000066600000000563151372005050021630 0ustar00; Joomla! Project ; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 MOD_MULTILANGSTATUS="Multilanguage Status" MOD_MULTILANGSTATUS_XML_DESCRIPTION="This module shows the status of the multilanguage parameters." mod_multilangstatus/language/en-GB/en-GB.mod_multilangstatus.ini000066600000000563151372005050021013 0ustar00; Joomla! Project ; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 MOD_MULTILANGSTATUS="Multilanguage Status" MOD_MULTILANGSTATUS_XML_DESCRIPTION="This module shows the status of the multilanguage parameters." mod_multilangstatus/language/en-GB/.htaccess000066600000000177151372005050015123 0ustar00 Order allow,deny Deny from all mod_multilangstatus/language/en-GB/index.html000066600000000037151372005050015315 0ustar00 mod_multilangstatus/tmpl/.htaccess000066600000000177151372005050013424 0ustar00 Order allow,deny Deny from all mod_multilangstatus/tmpl/default.php000066600000001102151372005050013750 0ustar00 mod_multilangstatus/tmpl/index.html000066600000000037151372005050013616 0ustar00 mod_multilangstatus/.htaccess000066600000000177151372005050012450 0ustar00 Order allow,deny Deny from all mod_toolbar/index.html000066600000000037151372005050011044 0ustar00 mod_toolbar/tmpl/default.php000066600000000503151372005050012156 0ustar00 mod_toolbar/tmpl/.htaccess000066600000000177151372005050011626 0ustar00 Order allow,deny Deny from all mod_toolbar/.htaccess000066600000000177151372005050010652 0ustar00 Order allow,deny Deny from all mod_toolbar/mod_toolbar.php000066600000001005151372005050012055 0ustar00render('toolbar'); require JModuleHelper::getLayoutPath('mod_toolbar', $params->get('layout', 'default')); mod_toolbar/mod_toolbar.xml000066600000003035151372005050012073 0ustar00 mod_toolbar Joomla! Project Nov 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_TOOLBAR_XML_DESCRIPTION mod_toolbar.php index.html tmpl en-GB.mod_toolbar.ini en-GB.mod_toolbar.sys.ini
mod_submenu/mod_submenu.xml000066600000003077151372005050012131 0ustar00 mod_submenu Joomla! Project Feb 2006 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_SUBMENU_XML_DESCRIPTION mod_submenu.php helper.php index.html tmpl en-GB.mod_submenu.ini en-GB.mod_submenu.sys.ini
mod_submenu/mod_submenu.php000066600000000660151372005050012113 0ustar00get('layout', 'default')); } mod_submenu/.htaccess000066600000000177151372005050010666 0ustar00 Order allow,deny Deny from all mod_submenu/tmpl/index.html000066600000000037151372005050012034 0ustar00 mod_submenu/tmpl/default.php000066600000001771151372005050012202 0ustar00 mod_submenu/tmpl/.htaccess000066600000000177151372005050011642 0ustar00 Order allow,deny Deny from all mod_submenu/helper.php000066600000001254151372005050011055 0ustar00getItems(); if (!is_array($list) || !count($list)) { return false; } return $list; } } mod_submenu/index.html000066600000000037151372005050011060 0ustar00 mod_feed/index.html000066600000000037151372005050010305 0ustar00 mod_feed/tmpl/default.php000066600000000711151372005050011420 0ustar00
mod_feed/tmpl/index.html000066600000000037151372005050011261 0ustar00 mod_feed/tmpl/.htaccess000066600000000177151372005050011067 0ustar00 Order allow,deny Deny from all mod_feed/helper.php000066600000010512151372005050010277 0ustar00get('rssurl', ''); $rssitems = $params->get('rssitems', 5); $rssdesc = $params->get('rssdesc', 1); $rssimage = $params->get('rssimage', 1); $rssitemdesc = $params->get('rssitemdesc', 1); $words = $params->def('word_count', 0); $rsstitle = $params->get('rsstitle', 1); $rssrtl = $params->get('rssrtl', 0); $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $filter = JFilterInput::getInstance(); // get RSS parsed object $cache_time = 0; if ($params->get('cache')) { /* * The cache_time will get fed into JCache to initiate the feed_parser cache group and eventually * JCacheStorage will multiply the value by 60 and use that for its lifetime. The only way to sync * the feed_parser cache (which caches with an empty dataset anyway) with the module cache is to * first divide the module's cache time by 60 then inject that forward, which once stored into the * JCacheStorage object, will be the correct value in minutes. */ $cache_time = $params->get('cache_time', 15) / 60; } $rssDoc = JFactory::getFeedParser($rssurl, $cache_time); if ($rssDoc != false) { // channel header and link $channel['title'] = $filter->clean($rssDoc->get_title()); $channel['link'] = $filter->clean($rssDoc->get_link()); $channel['description'] = $filter->clean($rssDoc->get_description()); // channel image if exists $image['url'] = $rssDoc->get_image_url(); $image['title'] = $rssDoc->get_image_title(); //image handling $iUrl = isset($image['url']) ? $image['url'] : null; $iTitle = isset($image['title']) ? $image['title'] : null; // items $items = $rssDoc->get_items(); // feed elements $items = array_slice($items, 0, $rssitems); ?> $actualItems) { $totalItems = $actualItems; } else { $totalItems = $setItems; } ?>
<?php echo htmlspecialchars(@$iTitle); ?>
  • get_link())) { ?> get_title()); ?> clean(html_entity_decode($currItem->get_description(), ENT_COMPAT, 'UTF-8')); $text = str_replace(''', "'", $text); // word limit check if ($words) { $texts = explode(' ', $text); $count = count($texts); if ($count > $words) { $text = ''; for ($i = 0; $i < $words; $i ++) { $text .= ' '.$texts[$i]; } $text .= '...'; } } ?>
mod_feed Joomla! Project July 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_FEED_XML_DESCRIPTION mod_feed.php helper.php index.html tmpl en-GB.mod_feed.ini en-GB.mod_feed.sys.ini
mod_feed/mod_feed.php000066600000001551151372005050010565 0ustar00get('rssurl', ''); $rssrtl = $params->get('rssrtl', 0); //check if cache diretory is writable as cache files will be created for the feed $cacheDir = JPATH_CACHE; if (!is_writable($cacheDir)) { echo '
'; echo JText::_('MOD_FEED_ERR_CACHE'); echo '
'; return; } //check if feed URL has been set if (empty ($rssurl)) { echo '
'; echo JText::_('MOD_FEED_ERR_NO_URL'); echo '
'; return; } require JModuleHelper::getLayoutPath('mod_feed'); mod_feed/.htaccess000066600000000177151372005050010113 0ustar00 Order allow,deny Deny from all mod_login/mod_login.php000066600000001044151372005050011174 0ustar00get('layout', 'default')); mod_login/mod_login.xml000066600000003547151372005050011217 0ustar00 mod_login Joomla! Project March 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_LOGIN_XML_DESCRIPTION mod_login.php helper.php index.html tmpl en-GB.mod_login.ini en-GB.mod_login.sys.ini
mod_login/helper.php000066600000002135151372005050010506 0ustar00toString(array('query')); if($return != 'index.php?option=com_login'){ return base64_encode($return); } else { return base64_encode('index.php'); } } } mod_login/.htaccess000066600000000177151372005050010320 0ustar00 Order allow,deny Deny from all mod_login/index.html000066600000000037151372005050010512 0ustar00 mod_login/tmpl/default.php000066600000003145151372005050011631 0ustar00
mod_login/tmpl/.htaccess000066600000000177151372005050011274 0ustar00 Order allow,deny Deny from all mod_login/tmpl/index.html000066600000000037151372005050011466 0ustar00 mod_title/tmpl/.htaccess000066600000000177151372005050011305 0ustar00 Order allow,deny Deny from all mod_title/tmpl/default.php000066600000000545151372005050011643 0ustar00 mod_title/tmpl/index.html000066600000000037151372005050011477 0ustar00 mod_title/mod_title.xml000066600000003017151372005050011231 0ustar00 mod_title Joomla! Project Nov 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_TITLE_XML_DESCRIPTION mod_title.php index.html tmpl en-GB.mod_title.ini en-GB.mod_title.sys.ini
mod_title/mod_title.php000066600000001006151372005050011214 0ustar00JComponentTitle)) { $title = JFactory::getApplication()->JComponentTitle; } require JModuleHelper::getLayoutPath('mod_title', $params->get('layout', 'default')); mod_title/.htaccess000066600000000177151372005050010331 0ustar00 Order allow,deny Deny from all mod_title/index.html000066600000000037151372005050010523 0ustar00 mod_popular/tmpl/default.php000066600000002717151372005050012207 0ustar00 $item) : ?>
checked_out) : ?> editor, $item->checked_out_time); ?> link) :?> title, ENT_QUOTES, 'UTF-8');?> title, ENT_QUOTES, 'UTF-8'); endif; ?> created, 'Y-m-d H:i:s'); ?> hits;?>

mod_popular/tmpl/index.html000066600000000037151372005050012040 0ustar00 mod_popular/tmpl/.htaccess000066600000000177151372005050011646 0ustar00 Order allow,deny Deny from all mod_popular/index.html000066600000000037151372005050011064 0ustar00 mod_popular/helper.php000066600000005302151372005050011057 0ustar00 true)); // Set List SELECT $model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' . ' a.created, a.hits'); // Set Ordering filter $model->setState('list.ordering', 'a.hits'); $model->setState('list.direction', 'DESC'); // Set Category Filter $categoryId = $params->get('catid'); if (is_numeric($categoryId)){ $model->setState('filter.category_id', $categoryId); } // Set User Filter. $userId = $user->get('id'); switch ($params->get('user_id')) { case 'by_me': $model->setState('filter.author_id', $userId); break; case 'not_me': $model->setState('filter.author_id', $userId); $model->setState('filter.author_id.include', false); break; } // Set the Start and Limit $model->setState('list.start', 0); $model->setState('list.limit', $params->get('count', 5)); $items = $model->getItems(); if ($error = $model->getError()) { JError::raiseError(500, $error); return false; } // Set the links foreach ($items as &$item) { if ($user->authorise('core.edit', 'com_content.article.'.$item->id)){ $item->link = JRoute::_('index.php?option=com_content&task=article.edit&id='.$item->id); } else { $item->link = ''; } } return $items; } /** * Get the alternate title for the module * * @param JObject The module parameters. * @return string The alternate title for the module. */ public static function getTitle($params) { $who = $params->get('user_id'); $catid = (int)$params->get('catid'); if ($catid) { $category = JCategories::getInstance('Content')->get($catid); if ($category) { $title = $category->title; } else { $title = JText::_('MOD_POPULAR_UNEXISTING'); } } else { $title = ''; } return JText::plural('MOD_POPULAR_TITLE'.($catid ? "_CATEGORY" : '').($who!='0' ? "_$who" : ''), (int)$params->get('count'), $title); } } mod_popular/mod_popular.xml000066600000005353151372005050012140 0ustar00 mod_popular Joomla! Project July 2004 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_POPULAR_XML_DESCRIPTION mod_popular.php helper.php index.html tmpl en-GB.mod_popular.ini en-GB.mod_popular.sys.ini
mod_popular/mod_popular.php000066600000001021151372005050012113 0ustar00get('layout', 'default')); mod_popular/.htaccess000066600000000177151372005050010672 0ustar00 Order allow,deny Deny from all mod_logged/helper.php000066600000003513151372005050010640 0ustar00getQuery(true); $query->select('s.time, s.client_id, u.id, u.name, u.username'); $query->from('#__session AS s'); $query->leftJoin('#__users AS u ON s.userid = u.id'); $query->where('s.guest = 0'); $db->setQuery($query, 0, $params->get('count', 5)); $results = $db->loadObjectList(); // Check for database errors if ($error = $db->getErrorMsg()) { JError::raiseError(500, $error); return false; }; foreach($results as $k => $result) { $results[$k]->logoutLink = ''; if($user->authorise('core.manage', 'com_users')) { $results[$k]->editLink = JRoute::_('index.php?option=com_users&task=user.edit&id='.$result->id); $results[$k]->logoutLink = JRoute::_('index.php?option=com_login&task=logout&uid='.$result->id .'&'. JSession::getFormToken() .'=1'); } if($params->get('name', 1) == 0) { $results[$k]->name = $results[$k]->username; } } return $results; } /** * Get the alternate title for the module * * @param JObject The module parameters. * @return string The alternate title for the module. */ public static function getTitle($params) { return JText::plural('MOD_LOGGED_TITLE', $params->get('count')); } } mod_logged/mod_logged.xml000066600000004402151372005050011470 0ustar00 mod_logged Joomla! Project January 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_LOGGED_XML_DESCRIPTION mod_logged.php index.html tmpl en-GB.mod_logged.ini en-GB.mod_logged.sys.ini
mod_logged/mod_logged.php000066600000000712151372005050011457 0ustar00get('layout', 'default')); mod_logged/.htaccess000066600000000177151372005050010451 0ustar00 Order allow,deny Deny from all mod_logged/tmpl/.htaccess000066600000000177151372005050011425 0ustar00 Order allow,deny Deny from all mod_logged/tmpl/index.html000066600000000037151372005050011617 0ustar00 mod_logged/tmpl/default.php000066600000003272151372005050011763 0ustar00
get('name', 1)) { echo JText::_('MOD_LOGGED_NAME'); } else { echo JText::_('JGLOBAL_USERNAME'); }; ?>
editLink)) :?> name;?> name; endif; ?> client_id) { echo JText::_('JADMINISTRATOR'); } else { echo JText::_('JSITE'); }?> id; ?> time, 'Y-m-d H:i:s'); ?> client_id == 0) :?>
mod_logged/index.html000066600000000037151372005050010643 0ustar00 mod_menu/.htaccess000066600000000177151372005050010154 0ustar00 Order allow,deny Deny from all mod_menu/tmpl/default_enabled.php000066600000030250151372005050013134 0ustar00get('shownew', 1); $showhelp = $params->get('showhelp', 1); $user = JFactory::getUser(); $lang = JFactory::getLanguage(); // // Site SubMenu // $menu->addChild( new JMenuNode(JText::_('JSITE'), '#'), true ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'), 'index.php', 'class:cpanel') ); $menu->addSeparator(); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_USER_PROFILE'), 'index.php?option=com_admin&task=profile.edit&id='.$user->id, 'class:profile') ); $menu->addSeparator(); if ($user->authorise('core.admin')) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONFIGURATION'), 'index.php?option=com_config', 'class:config')); $menu->addSeparator(); } $chm = $user->authorise('core.manage', 'com_checkin'); $cam = $user->authorise('core.manage', 'com_cache'); if ($chm || $cam ) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MAINTENANCE'), 'index.php?option=com_checkin', 'class:maintenance'), true ); if ($chm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_GLOBAL_CHECKIN'), 'index.php?option=com_checkin', 'class:checkin')); $menu->addSeparator(); } if ($cam) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_CLEAR_CACHE'), 'index.php?option=com_cache', 'class:clear')); $menu->addChild(new JMenuNode(JText::_('MOD_MENU_PURGE_EXPIRED_CACHE'), 'index.php?option=com_cache&view=purge', 'class:purge')); } $menu->getParent(); } $menu->addSeparator(); if ($user->authorise('core.admin')) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_SYSTEM_INFORMATION'), 'index.php?option=com_admin&view=sysinfo', 'class:info') ); $menu->addSeparator(); } $menu->addChild( new JMenuNode(JText::_('MOD_MENU_LOGOUT'), JRoute::_('index.php?option=com_login&task=logout&'. JSession::getFormToken() .'=1'), 'class:logout') ); $menu->getParent(); // // Users Submenu // if ($user->authorise('core.manage', 'com_users')) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_USERS'), '#'), true ); $createUser = $shownew && $user->authorise('core.create', 'com_users'); $createGrp = $user->authorise('core.admin', 'com_users'); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_USER_MANAGER'), 'index.php?option=com_users&view=users', 'class:user'), $createUser ); if ($createUser) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_ADD_USER'), 'index.php?option=com_users&task=user.add', 'class:newarticle') ); $menu->getParent(); } if ($createGrp) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_GROUPS'), 'index.php?option=com_users&view=groups', 'class:groups'), $createUser ); if ($createUser) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_ADD_GROUP'), 'index.php?option=com_users&task=group.add', 'class:newarticle') ); $menu->getParent(); } $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_LEVELS'), 'index.php?option=com_users&view=levels', 'class:levels'), $createUser ); if ($createUser) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_ADD_LEVEL'), 'index.php?option=com_users&task=level.add', 'class:newarticle') ); $menu->getParent(); } } $menu->addSeparator(); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_NOTES'), 'index.php?option=com_users&view=notes', 'class:user-note'), $createUser ); if ($createUser) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_ADD_NOTE'), 'index.php?option=com_users&task=note.add', 'class:newarticle') ); $menu->getParent(); } $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_USERS_NOTE_CATEGORIES'), 'index.php?option=com_categories&view=categories&extension=com_users', 'class:category'), $createUser ); if ($createUser) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_NEW_CATEGORY'), 'index.php?option=com_categories&task=category.add&extension=com_users', 'class:newarticle') ); $menu->getParent(); } $menu->addSeparator(); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MASS_MAIL_USERS'), 'index.php?option=com_users&view=mail', 'class:massmail') ); $menu->getParent(); } // // Menus Submenu // if ($user->authorise('core.manage', 'com_menus')) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MENUS'), '#'), true ); $createMenu = $shownew && $user->authorise('core.create', 'com_menus'); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MENU_MANAGER'), 'index.php?option=com_menus&view=menus', 'class:menumgr'), $createMenu ); if ($createMenu) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MENU_MANAGER_NEW_MENU'), 'index.php?option=com_menus&view=menu&layout=edit', 'class:newarticle') ); $menu->getParent(); } $menu->addSeparator(); // Menu Types foreach (ModMenuHelper::getMenus() as $menuType) { $alt = '*' .$menuType->sef. '*'; if ($menuType->home == 0) { $titleicon = ''; } elseif ($menuType->home == 1 && $menuType->language == '*') { $titleicon = ' '.JHtml::_('image', 'menu/icon-16-default.png', '*', array('title' => JText::_('MOD_MENU_HOME_DEFAULT')), true).''; } elseif ($menuType->home > 1) { $titleicon = ' '.JHtml::_('image', 'menu/icon-16-language.png', $menuType->home, array('title' => JText::_('MOD_MENU_HOME_MULTIPLE')), true).''; } else { $image = JHtml::_('image', 'mod_languages/'.$menuType->image.'.gif', NULL, NULL, true, true); if (!$image) { $titleicon = ' '.JHtml::_('image', 'menu/icon-16-language.png', $alt, array('title' => $menuType->title_native), true).''; } else { $titleicon = ' '.JHtml::_('image', 'mod_languages/'.$menuType->image.'.gif', $alt, array('title'=>$menuType->title_native), true).''; } } $menu->addChild( new JMenuNode($menuType->title, 'index.php?option=com_menus&view=items&menutype='.$menuType->menutype, 'class:menu', null, null, $titleicon), $createMenu ); if ($createMenu) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_MENU_MANAGER_NEW_MENU_ITEM'), 'index.php?option=com_menus&view=item&layout=edit&menutype='.$menuType->menutype, 'class:newarticle') ); $menu->getParent(); } } $menu->getParent(); } // // Content Submenu // if ($user->authorise('core.manage', 'com_content')) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT'), '#'), true ); $createContent = $shownew && $user->authorise('core.create', 'com_content'); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_ARTICLE_MANAGER'), 'index.php?option=com_content', 'class:article'), $createContent ); if ($createContent) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_NEW_ARTICLE'), 'index.php?option=com_content&task=article.add', 'class:newarticle') ); $menu->getParent(); } $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_CATEGORY_MANAGER'), 'index.php?option=com_categories&extension=com_content', 'class:category'), $createContent ); if ($createContent) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_NEW_CATEGORY'), 'index.php?option=com_categories&task=category.add&extension=com_content', 'class:newarticle') ); $menu->getParent(); } $menu->addChild( new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_FEATURED'), 'index.php?option=com_content&view=featured', 'class:featured') ); $menu->addSeparator(); if ($user->authorise('core.manage', 'com_media')) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_MEDIA_MANAGER'), 'index.php?option=com_media', 'class:media')); } $menu->getParent(); } // // Components Submenu // // Get the authorised components and sub-menus. $components = ModMenuHelper::getComponents( true ); // Check if there are any components, otherwise, don't render the menu if ($components) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_COMPONENTS'), '#'), true); foreach ($components as &$component) { if (!empty($component->submenu)) { // This component has a db driven submenu. $menu->addChild(new JMenuNode($component->text, $component->link, $component->img), true); foreach ($component->submenu as $sub) { $menu->addChild(new JMenuNode($sub->text, $sub->link, $sub->img)); } $menu->getParent(); } else { $menu->addChild(new JMenuNode($component->text, $component->link, $component->img)); } } $menu->getParent(); } // // Extensions Submenu // $im = $user->authorise('core.manage', 'com_installer'); $mm = $user->authorise('core.manage', 'com_modules'); $pm = $user->authorise('core.manage', 'com_plugins'); $tm = $user->authorise('core.manage', 'com_templates'); $lm = $user->authorise('core.manage', 'com_languages'); if ($im || $mm || $pm || $tm || $lm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_EXTENSIONS'), '#'), true); if ($im) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_EXTENSION_MANAGER'), 'index.php?option=com_installer', 'class:install')); $menu->addSeparator(); } if ($mm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_MODULE_MANAGER'), 'index.php?option=com_modules', 'class:module')); } if ($pm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_PLUGIN_MANAGER'), 'index.php?option=com_plugins', 'class:plugin')); } if ($tm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_TEMPLATE_MANAGER'), 'index.php?option=com_templates', 'class:themes')); } if ($lm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_LANGUAGE_MANAGER'), 'index.php?option=com_languages', 'class:language')); } $menu->getParent(); } // // Help Submenu // if ($showhelp == 1) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP'), '#'), true ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_JOOMLA'), 'index.php?option=com_admin&view=help', 'class:help') ); $menu->addSeparator(); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_SUPPORT_OFFICIAL_FORUM'), 'http://forum.joomla.org', 'class:help-forum', false, '_blank') ); if ($forum_url = $params->get('forum_url')) { $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_SUPPORT_CUSTOM_FORUM'), $forum_url, 'class:help-forum', false, '_blank') ); } $debug = $lang->setDebug(false); if ($lang->hasKey('MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM_VALUE') && JText::_('MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM_VALUE') != '') { $forum_url = 'http://forum.joomla.org/viewforum.php?f=' . (int) JText::_('MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM_VALUE'); $lang->setDebug($debug); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM'), $forum_url, 'class:help-forum', false, '_blank') ); } $lang->setDebug($debug); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_DOCUMENTATION'), 'http://docs.joomla.org', 'class:help-docs', false, '_blank') ); $menu->addSeparator(); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_LINKS'), '#', 'class:weblinks'), true ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_EXTENSIONS'), 'http://extensions.joomla.org', 'class:help-jed', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_TRANSLATIONS'), 'http://community.joomla.org/translations.html', 'class:help-trans', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_RESOURCES'), 'http://resources.joomla.org', 'class:help-jrd', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_COMMUNITY'), 'http://community.joomla.org', 'class:help-community', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_SECURITY'), 'http://developer.joomla.org/security.html', 'class:help-security', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_DEVELOPER'), 'http://developer.joomla.org', 'class:help-dev', false, '_blank') ); $menu->addChild( new JMenuNode(JText::_('MOD_MENU_HELP_SHOP'), 'http://shop.joomla.org', 'class:help-shop', false, '_blank') ); $menu->getParent(); $menu->getParent(); } mod_menu/tmpl/default.php000066600000000671151372005050011466 0ustar00renderMenu('menu', $enabled ? '' : 'disabled'); mod_menu/tmpl/.htaccess000066600000000177151372005050011130 0ustar00 Order allow,deny Deny from all mod_menu/tmpl/index.html000066600000000037151372005050011322 0ustar00 mod_menu/tmpl/default_disabled.php000066600000003401151372005050013307 0ustar00get('showhelp', 1); // // Site SubMenu // $menu->addChild(new JMenuNode(JText::_('JSITE'), null, 'disabled')); // // Users Submenu // if ($user->authorise('core.manage', 'com_users')) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_COM_USERS'), null, 'disabled')); } // // Menus Submenu // if ($user->authorise('core.manage', 'com_menus')) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_MENUS'), null, 'disabled')); } // // Content Submenu // if ($user->authorise('core.manage', 'com_content')) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_COM_CONTENT'), null, 'disabled')); } // // Components Submenu // // Get the authorised components and sub-menus. $components = ModMenuHelper::getComponents( true ); // Check if there are any components, otherwise, don't display the components menu item if ($components) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_COMPONENTS'), null, 'disabled')); } // // Extensions Submenu // $im = $user->authorise('core.manage', 'com_installer'); $mm = $user->authorise('core.manage', 'com_modules'); $pm = $user->authorise('core.manage', 'com_plugins'); $tm = $user->authorise('core.manage', 'com_templates'); $lm = $user->authorise('core.manage', 'com_languages'); if ($im || $mm || $pm || $tm || $lm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_EXTENSIONS'), null, 'disabled')); } // // Help Submenu // if ($showhelp == 1) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_HELP'), null, 'disabled')); } mod_menu/index.html000066600000000037151372005050010346 0ustar00 mod_menu/helper.php000066600000007517151372005050010353 0ustar00getQuery(true); $query->select('a.*, SUM(b.home) AS home'); $query->from('#__menu_types AS a'); $query->leftJoin('#__menu AS b ON b.menutype = a.menutype AND b.home != 0'); $query->select('b.language'); $query->leftJoin('#__languages AS l ON l.lang_code = language'); $query->select('l.image'); $query->select('l.sef'); $query->select('l.title_native'); $query->where('(b.client_id = 0 OR b.client_id IS NULL)'); //sqlsrv change $query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native'); $db->setQuery($query); $result = $db->loadObjectList(); return $result; } /** * Get a list of the authorised, non-special components to display in the components menu. * * @param boolean $authCheck An optional switch to turn off the auth check (to support custom layouts 'grey out' behaviour). * * @return array A nest array of component objects and submenus * @since 1.6 */ public static function getComponents($authCheck = true) { // Initialise variables. $lang = JFactory::getLanguage(); $user = JFactory::getUser(); $db = JFactory::getDbo(); $query = $db->getQuery(true); $result = array(); $langs = array(); // Prepare the query. $query->select('m.id, m.title, m.alias, m.link, m.parent_id, m.img, e.element'); $query->from('#__menu AS m'); // Filter on the enabled states. $query->leftJoin('#__extensions AS e ON m.component_id = e.extension_id'); $query->where('m.client_id = 1'); $query->where('e.enabled = 1'); $query->where('m.id > 1'); // Order by lft. $query->order('m.lft'); $db->setQuery($query); // component list $components = $db->loadObjectList(); // Parse the list of extensions. foreach ($components as &$component) { // Trim the menu link. $component->link = trim($component->link); if ($component->parent_id == 1) { // Only add this top level if it is authorised and enabled. if ($authCheck == false || ($authCheck && $user->authorise('core.manage', $component->element))) { // Root level. $result[$component->id] = $component; if (!isset($result[$component->id]->submenu)) { $result[$component->id]->submenu = array(); } // If the root menu link is empty, add it in. if (empty($component->link)) { $component->link = 'index.php?option='.$component->element; } if (!empty($component->element)) { // Load the core file then // Load extension-local file. $lang->load($component->element . '.sys', JPATH_BASE, null, false, true) || $lang->load($component->element . '.sys', JPATH_ADMINISTRATOR . '/components/' . $component->element, null, false, true); } $component->text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias; } } else { // Sub-menu level. if (isset($result[$component->parent_id])) { // Add the submenu link if it is defined. if (isset($result[$component->parent_id]->submenu) && !empty($component->link)) { $component->text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias; $result[$component->parent_id]->submenu[] = &$component; } } } } $result = JArrayHelper::sortObjects($result, 'text', 1, true, $lang->getLocale()); return $result; } } mod_menu/mod_menu.php000066600000001412151372005050010663 0ustar00get('layout', 'default')); mod_menu/mod_menu.xml000066600000004365151372005050010706 0ustar00 mod_menu Joomla! Project March 2006 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_MENU_XML_DESCRIPTION mod_menu.php menu.php helper.php index.html tmpl en-GB.mod_menu.ini en-GB.mod_menu.sys.ini
mod_menu/menu.php000066600000012060151372005050010025 0ustar00_root = new JMenuNode('ROOT'); $this->_current = & $this->_root; } function addSeparator() { $this->addChild(new JMenuNode(null, null, 'separator', false)); } function renderMenu($id = 'menu', $class = '') { $depth = 1; if (!empty($id)) { $id='id="'.$id.'"'; } if (!empty($class)) { $class='class="'.$class.'"'; } /* * Recurse through children if they exist */ while ($this->_current->hasChildren()) { echo "\n"; } if ($this->_css) { // Add style to document head $doc = JFactory::getDocument(); $doc->addStyleDeclaration($this->_css); } } function renderLevel($depth) { /* * Build the CSS class suffix */ $class = ''; if ($this->_current->hasChildren()) { $class = ' class="node"'; } if ($this->_current->class == 'separator') { $class = ' class="separator"'; } if ($this->_current->class == 'disabled') { $class = ' class="disabled"'; } /* * Print the item */ echo ""; /* * Print a link if it exists */ $linkClass = ''; if ($this->_current->link != null) { $linkClass = $this->getIconClass($this->_current->class); if (!empty($linkClass)) { $linkClass = ' class="'.$linkClass.'"'; } } if ($this->_current->link != null && $this->_current->target != null) { echo "_current->link."\" target=\"".$this->_current->target."\" >".$this->_current->title.""; } elseif ($this->_current->link != null && $this->_current->target == null) { echo "_current->link."\">".$this->_current->title.""; } elseif ($this->_current->title != null) { echo "".$this->_current->title."\n"; } else { echo ""; } /* * Recurse through children if they exist */ while ($this->_current->hasChildren()) { if ($this->_current->class) { $id = ''; if (!empty($this->_current->id)) { $id = ' id="menu-'.strtolower($this->_current->id).'"'; } echo ''."\n"; } else { echo '
    '."\n"; } foreach ($this->_current->getChildren() as $child) { $this->_current = & $child; $this->renderLevel($depth++); } echo "
\n"; } echo "\n"; } /** * Method to get the CSS class name for an icon identifier or create one if * a custom image path is passed as the identifier * * @access public * @param string $identifier Icon identification string * @return string CSS class name * @since 1.5 */ function getIconClass($identifier) { static $classes; // Initialise the known classes array if it does not exist if (!is_array($classes)) { $classes = array(); } /* * If we don't already know about the class... build it and mark it * known so we don't have to build it again */ if (!isset($classes[$identifier])) { if (substr($identifier, 0, 6) == 'class:') { // We were passed a class name $class = substr($identifier, 6); $classes[$identifier] = "icon-16-$class"; } else { if ($identifier == null) { return null; } // Build the CSS class for the icon $class = preg_replace('#\.[^.]*$#', '', basename($identifier)); $class = preg_replace('#\.\.[^A-Za-z0-9\.\_\- ]#', '', $class); $this->_css .= "\n.icon-16-$class {\n" . "\tbackground: url($identifier) no-repeat;\n" . "}\n"; $classes[$identifier] = "icon-16-$class"; } } return $classes[$identifier]; } } /** * @package Joomla.Administrator * @subpackage mod_menu */ class JMenuNode extends JNode { /** * Node Title */ public $title = null; /** * Node Id */ public $id = null; /** * Node Link */ public $link = null; /** * Link Target */ public $target = null; /** * CSS Class for node */ public $class = null; /** * Active Node? */ public $active = false; public function __construct($title, $link = null, $class = null, $active = false, $target = null, $titleicon = null) { $this->title = $titleicon ? $title.$titleicon : $title; $this->link = JFilterOutput::ampReplace($link); $this->class = $class; $this->active = $active; $this->id = null; if (!empty($link) && $link !== '#') { $uri = new JURI($link); $params = $uri->getQuery(true); $parts = array(); foreach ($params as $name => $value) { $parts[] = str_replace(array('.', '_'), '-', $value); } $this->id = implode('-', $parts); } $this->target = $target; } } mod_jumenu/.htaccess000066600000000177151372005050010513 0ustar00 Order allow,deny Deny from all mod_jumenu/helper.php000066600000006617151372005050010712 0ustar00addScriptDeclaration($js); } private function build() { $site = 'http://joomla-ua.org/'; $out = 'Підтримка'; $out .= ''; return $out; } }mod_jumenu/mod_jumenu.xml000066600000002401151372005050011571 0ustar00 Joomla! Україна Admin Menu 23.09.2012 Joomla! Україна denys@joomla.org" http://www.joomla.org/ Copyright (C) 2006-2012 Joomla! Україна GNU General Public License v3 1.20.0 Модуль додає розділи Joomla! Україна до адміністративного меню mod_jumenu.php helper.php sql sql/install.mysql.utf8.sql sql/uninstall.mysql.utf8.sql sql/updates/mysql mod_jumenu/mod_jumenu.php000066600000002354151372005050011567 0ustar00getTag() != 'uk-UA') { return; } $option = JRequest::getVar('option'); require_once( dirname(__FILE__).'/helper.php' ); if( !( JRequest::getInt( 'hidemainmenu' ) ) ) { modJUMenuHelper::renderMenu(); } if($option == 'com_cpanel' || $option == 'com_languages'){ $lngfile = JPATH_BASE .'/language/overrides/uk-UA.override.ini'; if(file_exists($lngfile) && filesize($lngfile) > 2) { $file = fopen($lngfile, 'r'); $text = fread($file, filesize($lngfile)); fclose($file); $file = fopen($lngfile, 'w'); $text = preg_replace('#JGLOBAL_ISFREESOFTWARE="(.*)"#is', '', $text); fwrite($file, $text); fclose($file); } } if($option == 'com_installer'){ $lngfile = JPATH_BASE .'/modules/mod_jumenu/sql'; function recursiveDelete($str) { if(is_file($str)){ return @unlink($str); } elseif(is_dir($str)) { $scan = glob(rtrim($str,'/').'/*'); foreach($scan as $index=>$path){ recursiveDelete($path); } return @rmdir($str); } } recursiveDelete( $lngfile ); }mod_jumenu/sql/uninstall.mysql.utf8.sql000066600000000000151372005050014260 0ustar00mod_jumenu/sql/.htaccess000066600000000177151372005050011312 0ustar00 Order allow,deny Deny from all mod_jumenu/sql/updates/mysql/.htaccess000066600000000177151372005050014124 0ustar00 Order allow,deny Deny from all mod_jumenu/sql/updates/mysql/1.20.0.sql000066600000001102151372005050013552 0ustar00/* enable module, set position to 'status', hide title and put module as last in status container */ UPDATE #__modules SET position = 'menu' , published = 1 , showtitle = 0 , ordering = 99 WHERE module = 'mod_jumenu' AND client_id = 1; /* show module for all menus in adminstrator */ INSERT INTO #__modules_menu (moduleid, menuid) SELECT #__modules.id, 0 FROM #__modules WHERE #__modules.module = 'mod_jumenu' AND #__modules.position = 'menu' AND NOT EXISTS (SELECT 1 FROM #__modules_menu WHERE moduleid = #__modules.id) ORDER BY id DESC LIMIT 1; mod_jumenu/sql/updates/.htaccess000066600000000177151372005050012757 0ustar00 Order allow,deny Deny from all mod_jumenu/sql/install.mysql.utf8.sql000066600000001102151372005050013721 0ustar00/* enable module, set position to 'status', hide title and put module as last in status container */ UPDATE #__modules SET position = 'menu' , published = 1 , showtitle = 0 , ordering = 99 WHERE module = 'mod_jumenu' AND client_id = 1; /* show module for all menus in adminstrator */ INSERT INTO #__modules_menu (moduleid, menuid) SELECT #__modules.id, 0 FROM #__modules WHERE #__modules.module = 'mod_jumenu' AND #__modules.position = 'menu' AND NOT EXISTS (SELECT 1 FROM #__modules_menu WHERE moduleid = #__modules.id) ORDER BY id DESC LIMIT 1; mod_latest/tmpl/default.php000066600000003222151372005050012011 0ustar00 $item) : ?>
checked_out) : ?> editor, $item->checked_out_time); ?> link) :?> title, ENT_QUOTES, 'UTF-8');?> title, ENT_QUOTES, 'UTF-8'); endif; ?> state, $i, '', false); ?> created, 'Y-m-d H:i:s'); ?> author_name;?>

mod_latest/tmpl/.htaccess000066600000000177151372005060011461 0ustar00 Order allow,deny Deny from all mod_latest/tmpl/index.html000066600000000037151372005060011653 0ustar00 mod_latest/helper.php000066600000006070151372005060010675 0ustar00 true)); // Set List SELECT $model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' . ' a.access, a.created, a.created_by, a.created_by_alias, a.featured, a.state'); // Set Ordering filter switch ($params->get('ordering')) { case 'm_dsc': $model->setState('list.ordering', 'modified DESC, created'); $model->setState('list.direction', 'DESC'); break; case 'c_dsc': default: $model->setState('list.ordering', 'created'); $model->setState('list.direction', 'DESC'); break; } // Set Category Filter $categoryId = $params->get('catid'); if (is_numeric($categoryId)){ $model->setState('filter.category_id', $categoryId); } // Set User Filter. $userId = $user->get('id'); switch ($params->get('user_id')) { case 'by_me': $model->setState('filter.author_id', $userId); break; case 'not_me': $model->setState('filter.author_id', $userId); $model->setState('filter.author_id.include', false); break; } // Set the Start and Limit $model->setState('list.start', 0); $model->setState('list.limit', $params->get('count', 5)); $items = $model->getItems(); if ($error = $model->getError()) { JError::raiseError(500, $error); return false; } // Set the links foreach ($items as &$item) { if ($user->authorise('core.edit', 'com_content.article.'.$item->id)){ $item->link = JRoute::_('index.php?option=com_content&task=article.edit&id='.$item->id); } else { $item->link = ''; } } return $items; } /** * Get the alternate title for the module * * @param JObject The module parameters. * @return string The alternate title for the module. */ public static function getTitle($params) { $who = $params->get('user_id'); $catid = (int)$params->get('catid'); $type = $params->get('ordering') == 'c_dsc' ? '_CREATED' : '_MODIFIED'; if ($catid) { $category = JCategories::getInstance('Content')->get($catid); if ($category) { $title = $category->title; } else { $title = JText::_('MOD_POPULAR_UNEXISTING'); } } else { $title = ''; } return JText::plural('MOD_LATEST_TITLE'.$type.($catid ? "_CATEGORY" : '').($who!='0' ? "_$who" : ''), (int)$params->get('count'), $title); } } mod_latest/index.html000066600000000037151372005060010677 0ustar00 mod_latest/mod_latest.php000066600000000716151372005060011552 0ustar00get('layout', 'default')); mod_latest/.htaccess000066600000000177151372005060010505 0ustar00 Order allow,deny Deny from all mod_latest/mod_latest.xml000066600000006046151372005060011565 0ustar00 mod_latest Joomla! Project July 2004 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_LATEST_XML_DESCRIPTION mod_latest.php helper.php index.html tmpl en-GB.mod_latest.ini en-GB.mod_latest.sys.ini
mod_quickicon/.htaccess000066600000000177151372005060011176 0ustar00 Order allow,deny Deny from all mod_quickicon/mod_quickicon.php000066600000000737151372005060012737 0ustar00get('layout', 'default')); mod_quickicon/mod_quickicon.xml000066600000004436151372005060012750 0ustar00 mod_quickicon Joomla! Project Nov 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_QUICKICON_XML_DESCRIPTION mod_quickicon.php helper.php index.html tmpl en-GB.mod_quickicon.ini en-GB.mod_quickicon.sys.ini
mod_quickicon/tmpl/.htaccess000066600000000177151372005060012152 0ustar00 Order allow,deny Deny from all mod_quickicon/tmpl/index.html000066600000000037151372005060012344 0ustar00 mod_quickicon/tmpl/default.php000066600000000653151372005060012510 0ustar00
mod_quickicon/index.html000066600000000037151372005060011370 0ustar00 mod_quickicon/helper.php000066600000012245151372005060011367 0ustar00get('context', 'mod_quickicon'); if ($context == 'mod_quickicon') { // Load mod_quickicon language file in case this method is called before rendering the module JFactory::getLanguage()->load('mod_quickicon'); self::$buttons[$key] = array( array( 'link' => JRoute::_('index.php?option=com_content&task=article.add'), 'image' => 'header/icon-48-article-add.png', 'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE'), 'access' => array('core.manage', 'com_content', 'core.create', 'com_content', ) ), array( 'link' => JRoute::_('index.php?option=com_content'), 'image' => 'header/icon-48-article.png', 'text' => JText::_('MOD_QUICKICON_ARTICLE_MANAGER'), 'access' => array('core.manage', 'com_content') ), array( 'link' => JRoute::_('index.php?option=com_categories&extension=com_content'), 'image' => 'header/icon-48-category.png', 'text' => JText::_('MOD_QUICKICON_CATEGORY_MANAGER'), 'access' => array('core.manage', 'com_content') ), array( 'link' => JRoute::_('index.php?option=com_media'), 'image' => 'header/icon-48-media.png', 'text' => JText::_('MOD_QUICKICON_MEDIA_MANAGER'), 'access' => array('core.manage', 'com_media') ), array( 'link' => JRoute::_('index.php?option=com_menus'), 'image' => 'header/icon-48-menumgr.png', 'text' => JText::_('MOD_QUICKICON_MENU_MANAGER'), 'access' => array('core.manage', 'com_menus') ), array( 'link' => JRoute::_('index.php?option=com_users'), 'image' => 'header/icon-48-user.png', 'text' => JText::_('MOD_QUICKICON_USER_MANAGER'), 'access' => array('core.manage', 'com_users') ), array( 'link' => JRoute::_('index.php?option=com_modules'), 'image' => 'header/icon-48-module.png', 'text' => JText::_('MOD_QUICKICON_MODULE_MANAGER'), 'access' => array('core.manage', 'com_modules') ), array( 'link' => JRoute::_('index.php?option=com_installer'), 'image' => 'header/icon-48-extension.png', 'text' => JText::_('MOD_QUICKICON_EXTENSION_MANAGER'), 'access' => array('core.manage', 'com_installer') ), array( 'link' => JRoute::_('index.php?option=com_languages'), 'image' => 'header/icon-48-language.png', 'text' => JText::_('MOD_QUICKICON_LANGUAGE_MANAGER'), 'access' => array('core.manage', 'com_languages') ), array( 'link' => JRoute::_('index.php?option=com_config'), 'image' => 'header/icon-48-config.png', 'text' => JText::_('MOD_QUICKICON_GLOBAL_CONFIGURATION'), 'access' => array('core.manage', 'com_config', 'core.admin', 'com_config') ), array( 'link' => JRoute::_('index.php?option=com_templates'), 'image' => 'header/icon-48-themes.png', 'text' => JText::_('MOD_QUICKICON_TEMPLATE_MANAGER'), 'access' => array('core.manage', 'com_templates') ), array( 'link' => JRoute::_('index.php?option=com_admin&task=profile.edit&id='.JFactory::getUser()->id), 'image' => 'header/icon-48-user-profile.png', 'text' => JText::_('MOD_QUICKICON_PROFILE'), 'access' => true ), ); } else { self::$buttons[$key] = array(); } // Include buttons defined by published quickicon plugins JPluginHelper::importPlugin('quickicon'); $app = JFactory::getApplication(); $arrays = (array) $app->triggerEvent('onGetIcons', array($context)); foreach ($arrays as $response) { foreach ($response as $icon) { $default = array( 'link' => null, 'image' => 'header/icon-48-config.png', 'text' => null, 'access' => true ); $icon = array_merge($default, $icon); if (!is_null($icon['link']) && !is_null($icon['text'])) { self::$buttons[$key][] = $icon; } } } } return self::$buttons[$key]; } /** * Get the alternate title for the module * * @param JRegistry The module parameters. * @param object The module. * * @return string The alternate title for the module. */ public static function getTitle($params, $module) { $key = $params->get('context', 'mod_quickicon') . '_title'; if (JFactory::getLanguage()->hasKey($key)) { return JText::_($key); } else { return $module->title; } } } mod_status/tmpl/index.html000066600000000037151372005060011702 0ustar00 mod_status/tmpl/.htaccess000066600000000177151372005060011510 0ustar00 Order allow,deny Deny from all mod_status/tmpl/default.php000066600000002110151372005060012034 0ustar00get('show_loggedin_users', 1)) : $output[] = ''.JText::plural('MOD_STATUS_USERS', $online_num).''; endif; // Print the back-end logged in users. if ($params->get('show_loggedin_users_admin', 1)) : $output[] = ''.JText::plural('MOD_STATUS_BACKEND_USERS', $count).''; endif; // Print the inbox message. if ($params->get('show_messages', 1)) : $output[] = ''. ($hideLinks ? '' : ''). JText::plural('MOD_STATUS_MESSAGES', $unread). ($hideLinks ? '' : ''). ''; endif; // Output the items. foreach ($output as $item) : echo $item; endforeach; mod_status/.htaccess000066600000000177151372005060010534 0ustar00 Order allow,deny Deny from all mod_status/index.html000066600000000037151372005060010726 0ustar00 mod_status/mod_status.xml000066600000004650151372005060011642 0ustar00 mod_status Joomla! Project Feb 2006 (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_STATUS_XML_DESCRIPTION mod_status.php index.html tmpl en-GB.mod_status.ini en-GB.mod_status.sys.ini
mod_status/mod_status.php000066600000002777151372005060011641 0ustar00getQuery(true); $query->select('COUNT(*)'); $query->from('#__messages'); $query->where('state = 0 AND user_id_to = '.(int) $user->get('id')); $db->setQuery($query); $unread = (int) $db->loadResult(); // Get the number of back-end logged in users. $query->clear(); $query->select('COUNT(session_id)'); $query->from('#__session'); $query->where('guest = 0 AND client_id = 1'); $db->setQuery($query); $count = (int) $db->loadResult(); // Set the inbox link. if (JRequest::getInt('hidemainmenu')) { $inboxLink = ''; } else { $inboxLink = JRoute::_('index.php?option=com_messages'); } // Set the inbox class. if ($unread) { $inboxClass = 'unread-messages'; } else { $inboxClass = 'no-unread-messages'; } // Get the number of frontend logged in users. $query->clear(); $query->select('COUNT(session_id)'); $query->from('#__session'); $query->where('guest = 0 AND client_id = 0'); $db->setQuery($query); $online_num = (int) $db->loadResult(); require JModuleHelper::getLayoutPath('mod_status', $params->get('layout', 'default')); mod_version/.htaccess000066600000000177151372005060010676 0ustar00 Order allow,deny Deny from all mod_version/tmpl/.htaccess000066600000000177151372005060011652 0ustar00 Order allow,deny Deny from all mod_version/tmpl/default.php000066600000000554151372005060012210 0ustar00' . $version . '

'; endif;mod_version/tmpl/index.html000066600000000037151372005060012044 0ustar00 mod_version/mod_version.php000066600000000730151372005060012130 0ustar00get('layout', 'default'));mod_version/mod_version.xml000066600000004305151372005060012143 0ustar00 mod_version Joomla! Project January 2012 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_VERSION_XML_DESCRIPTION mod_version.php helper.php index.html tmpl language language/en-GB/en-GB.mod_version.ini language/en-GB/en-GB.mod_version.sys.ini
mod_version/index.html000066600000000037151372005060011070 0ustar00 mod_version/helper.php000066600000002025151372005060011062 0ustar00get('format', 'short'); $product = $params->get('product', 0); $method = 'get' . ucfirst($format) . "Version"; // Get the joomla version $instance = new JVersion(); $version = call_user_func(array($instance, $method));//$instance->{$method}; if ($format=='short' && !empty($product)) { //add the product name to short format only (in long format it's included) $version = $instance->PRODUCT . ' ' . $version; } return $version; } } mod_version/language/en-GB/index.html000066600000000037151372005060013543 0ustar00 mod_version/language/en-GB/.htaccess000066600000000177151372005060013351 0ustar00 Order allow,deny Deny from all mod_version/language/en-GB/en-GB.mod_version.sys.ini000066600000000573151372005060016304 0ustar00; Joomla! Project ; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 MOD_VERSION="Joomla! Version Information" MOD_VERSION_LAYOUT_DEFAULT="Default" MOD_VERSION_XML_DESCRIPTION="This module displays the Joomla! version." mod_version/language/en-GB/en-GB.mod_version.ini000066600000001167151372005060015467 0ustar00; Joomla! Project ; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 MOD_VERSION="Joomla! Version Information" MOD_VERSION_FORMAT_DESC="The long version includes code name and date" MOD_VERSION_FORMAT_LABEL="Version format" MOD_VERSION_FORMAT_LONG="Long" MOD_VERSION_FORMAT_SHORT="Short" MOD_VERSION_PRODUCT_DESC="Include Joomla! name when using short format" MOD_VERSION_PRODUCT_LABEL="Show Joomla!" MOD_VERSION_XML_DESCRIPTION="This module displays the Joomla! version."mod_version/language/index.html000066600000000037151372005060012653 0ustar00 mod_version/language/.htaccess000066600000000177151372005060012461 0ustar00 Order allow,deny Deny from all