From: <txm...@us...> - 2015-03-08 14:32:59
|
Revision: 13011 http://sourceforge.net/p/xoops/svn/13011 Author: txmodxoops Date: 2015-03-08 14:32:56 +0000 (Sun, 08 Mar 2015) Log Message: ----------- Updated Fixed bugs Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/smarty/plugins/function.breadcrumbs.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/dashboard.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/theme.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_header.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/default/xotpl/xo_footer.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/header.html Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/constants.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/menu.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/logger.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_sidenav.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/holder.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/xoops_version.php Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/smarty/plugins/function.breadcrumbs.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/smarty/plugins/function.breadcrumbs.php 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/smarty/plugins/function.breadcrumbs.php 2015-03-08 14:32:56 UTC (rev 13011) @@ -24,8 +24,9 @@ * * @version 1.0 * @author Txmod Xoops - <txmodxoops at gmail dot org | www.txmodxoops.org> -* @param array -* @param Smarty +* +* @param params +* @param smarty * @return string */ Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin.php 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,194 @@ +<?php +/** + * System constants file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @version $Id: admin.php 12033 2013-09-14 03:16:44Z beckmi $ + * @revision $Id: admin.php 13008 2015-03-08 13:42:22Z timgno $ + */ + +// Include header +include 'header.php'; + +if ( isset($fct) && $fct == 'users' ) { + $xoopsOption['pagetype'] = 'user'; +} + +$error = false; +if ($admintest != 0) { + if (isset($fct) && $fct != '') { + $fct = preg_replace("/[^a-z0-9_\-]/i", "", $fct); + if ( file_exists( XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/xoops_version.php' ) ) { + // Load language file + system_loadLanguage( $fct, $xoopsModule->getVar( 'dirname', 'n' ) ); + // Include Configuration file + require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/xoops_version.php'; + // Get System permission handler + $sysperm_handler =& xoops_gethandler('groupperm'); + + $category = !empty($modversion['category']) ? intval($modversion['category']) : 0; + unset($modversion); + + if ($category > 0) { + $group = $xoopsUser->getGroups(); + if ( in_array( XOOPS_GROUP_ADMIN, $group) || false != $sysperm_handler->checkRight( 'system_admin', $category, $group, $xoopsModule->getVar('mid') ) ) { + if ( file_exists( XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/main.php' ) ) { + include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/main.php'; + } else { + $error = true; + } + } else { + $error = true; + } + } elseif ($fct == 'version') { + if ( file_exists( XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/version/main.php' ) ) { + include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/version/main.php'; + } else { + $error = true; + } + } else { + $error = true; + } + } else { + $error = true; + } + } else { + $error = true; + } +} + +if (false != $error) { + + $op = system_CleanVars ( $_REQUEST, 'op', '', 'string' ); + if ( $op == 'system_activate') { + $part = system_CleanVars ( $_REQUEST, 'type', '', 'string' ); + $config_handler = xoops_gethandler('config'); + + $criteria = new Criteria('conf_name', 'active_' . $part); + $configs = $config_handler->getConfigs( $criteria ); + foreach ($configs as $conf) { + if ( $conf->getVar('conf_name') == 'active_' . $part) { + $conf->setVar('conf_value', !$conf->getVar('conf_value') ); + $config_handler->insertConfig($conf); + } + } + exit; + } + // Define main template + $xoopsOption['template_main'] = 'system_index.html'; + xoops_cp_header(); + // Define Stylesheet + $xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/admin.css' ); + // ======== Append libraries directly on footer templates of the admin theme ============ + // Define scripts + //$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); + //$xoTheme->addScript('modules/system/js/admin.js'); + // ======== ================================================================ ============ + // Define Breadcrumb and tips + $xoBreadCrumb->addLink( _AM_SYSTEM_CONFIG ); + $xoBreadCrumb->addTips( _AM_SYSTEM_TIPS_MAIN ); + $xoBreadCrumb->render(); + $groups = $xoopsUser->getGroups(); + $all_ok = false; + if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { + $sysperm_handler =& xoops_gethandler('groupperm'); + $ok_syscats = $sysperm_handler->getItemIds('system_admin', $groups); + } else { + $all_ok = true; + } + + xoops_load('xoopslists'); + + $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; + $dirlist = XoopsLists::getDirListAsArray($admin_dir); + $inactive_section = array( 'blocksadmin', 'groups', 'modulesadmin', 'preferences', 'tplsets'); + foreach($dirlist as $directory) { + if ( file_exists( $admin_dir . '/' . $directory . '/xoops_version.php' ) ) { + + require $admin_dir . '/' . $directory . '/xoops_version.php'; + + if ($modversion['hasAdmin']) { + + if ( xoops_getModuleOption('active_' . $directory) ) { + $category = isset($modversion['category']) ? intval($modversion['category']) : 0; + if ( false != $all_ok || in_array($modversion['category'], $ok_syscats)) { + $menu['file'] = $directory; + $menu['title'] = trim($modversion['name']); + $menu['desc'] = str_replace('<br />', ' ', $modversion['description']); + $menu['icon'] = $modversion['image']; + $menu['status'] = true; + } + } else { + $category = isset($modversion['category']) ? intval($modversion['category']) : 0; + if ( false != $all_ok || in_array($modversion['category'], $ok_syscats)) { + $menu['file'] = $directory; + $menu['title'] = trim($modversion['name']); + $menu['desc'] = str_replace('<br />', ' ', $modversion['description']); + $menu['icon'] = $modversion['image']; + $menu['status'] = false; + } + } + if (!in_array($directory, $inactive_section)) { + $menu['used'] = true; + } + if ( false != $all_ok || in_array($modversion['category'], $ok_syscats)) { + switch ( $directory ) { + case 'avatars': + $avatar_handler = xoops_getHandler('avatar'); + $avatar = $avatar_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_AVATAR_INFO, $avatar); + break; + case 'banners': + $banner_handler =& xoops_getModuleHandler( 'banner', 'system' ); + $banner = $banner_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_BANNER_INFO, $banner); + break; + case 'comments': + $comment_handler =& xoops_gethandler('comment'); + $comment = $comment_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_COMMENT_INFO, $comment); + break; + case 'groups': + $groups_Handler =& xoops_getModuleHandler( 'group', 'system' ); + $groups = $groups_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_GROUP_INFO, $groups); + break; + case 'images': + $imgcat_handler = xoops_gethandler('image'); + $img = $imgcat_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_IMG_INFO, $img); + break; + case 'smilies': + $smilies_Handler =& xoops_getModuleHandler( 'smilies', 'system' ); + $smilies = $smilies_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_SMILIES_INFO, $smilies); + break; + case 'userrank': + $userrank_Handler =& xoops_getModuleHandler( 'userrank', 'system' ); + $userrank = $userrank_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_RANKS_INFO, $userrank); + break; + case 'users': + $member_handler =& xoops_getModuleHandler('users', 'system'); + $member = $member_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_USERS_INFO, $member); + break; + } + } + $xoopsTpl->append_by_ref( 'menu', $menu ); + unset( $menu ); + } + unset($modversion); + } + } + unset($dirlist); + xoops_cp_footer(); +} \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/constants.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/constants.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/constants.php 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,41 @@ +<?php +/** + * System constants file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @version $Id: constants.php 12033 2013-09-14 03:16:44Z beckmi $ + * @revision $Id: constants.php 13008 2015-03-08 13:41:30Z timgno $ + */ + +define('XOOPS_SYSTEM_GROUP', 1); +define('XOOPS_SYSTEM_USER', 2); +define('XOOPS_SYSTEM_PREF', 3); +define('XOOPS_SYSTEM_MODULE', 4); +define('XOOPS_SYSTEM_BLOCK', 5); +define('XOOPS_SYSTEM_FINDU', 7); +define('XOOPS_SYSTEM_MAILU', 8); +define('XOOPS_SYSTEM_IMAGE', 9); +define('XOOPS_SYSTEM_AVATAR', 10); +define('XOOPS_SYSTEM_URANK', 11); +define('XOOPS_SYSTEM_SMILE', 12); +define('XOOPS_SYSTEM_BANNER', 13); +define('XOOPS_SYSTEM_COMMENT', 14); +define('XOOPS_SYSTEM_TPLSET', 15); +define('XOOPS_SYSTEM_FILEMANAGER', 16); +define('XOOPS_SYSTEM_MAINTENANCE', 17); +// Configuration Category +define('SYSTEM_CAT_MAIN', 0 ); +define('SYSTEM_CAT_USER', 1 ); +define('SYSTEM_CAT_META', 2 ); +define('SYSTEM_CAT_WORD', 3 ); +define('SYSTEM_CAT_SEARCH', 4 ); +define('SYSTEM_CAT_MAIL', 5 ); +define('SYSTEM_CAT_AUTH', 6 ); \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/menu.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/menu.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/menu.php 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,52 @@ +<?php +/** + * System menu file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @version $Id: menu.php 12036 2013-09-14 04:58:55Z beckmi $ + * @revision $Id: menu.php 13008 2015-03-08 13:55:25Z timgno $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$groups = $GLOBALS['xoopsUser']->getGroups(); +$all_ok = false; +if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { + $sysperm_handler =& xoops_gethandler('groupperm'); + $ok_syscats = $sysperm_handler->getItemIds('system_admin', $groups); +} else { + $all_ok = true; +} +require_once $GLOBALS['xoops']->path( '/class/xoopslists.php' ); +// include system category definitions +include_once $GLOBALS['xoops']->path( '/modules/system/constants.php' ); + +$admin_dir = $GLOBALS['xoops']->path( '/modules/system/admin' ); +$dirlist = XoopsLists::getDirListAsArray( $admin_dir ); +$index = 0; +foreach ($dirlist as $file) { + if ( file_exists( $admin_dir . '/' . $file . '/xoops_version.php' ) ) { + include $admin_dir . '/' . $file . '/xoops_version.php'; + if ($modversion['hasAdmin']) { + if ( xoops_getModuleOption( 'active_' . $file, 'system' ) ) { + $category = isset( $modversion['category'] ) ? intval( $modversion['category'] ) : 0; + if ( false != $all_ok || in_array( $modversion['category'], $ok_syscats ) ) { + $adminmenu[$index]['title'] = trim( $modversion['name'] ); + $adminmenu[$index]['link'] = 'admin.php?fct=' . $file; + $adminmenu[$index]['image'] = $modversion['image']; + } + } + } + unset($modversion); + } + $index++; +} +unset($dirlist); \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/dashboard.css =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/dashboard.css 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/dashboard.css 2015-03-08 14:32:56 UTC (rev 13011) @@ -1,17 +1,21 @@ +/* + * Dashboard Responsive Admin Theme + * + * @copyright Txmod Xoops <http://www.txmodxoops.org/> - Xoops Project <http://www.xoops.org/> + * @license http://www.fsf.org/copyleft/gpl.html GNU public license 3.0 + * @package themes + * @since 2.5.x + * @author Txmod Xoops <http://www.txmodxoops.org/> + * @maintained Xoops Design Theme <http://www.xoops.org/> + * + * @version $Id 1.0 +*/ +/* ==================== Import others style cheats ==================== */ +@import url(logger.css); -/*============================================================= - Authour URI: www.binarycart.com - License: Commons Attribution 3.0 +/* ==================== General definitions ==================== */ +html { } - http://creativecommons.org/licenses/by/3.0/ - - 100% To use For Personal And Commercial Use. - IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US - - ======================================================== */ -/*============================================== - GENERAL STYLES - =============================================*/ body { font-family: 'Open Sans', sans-serif; } @@ -23,11 +27,11 @@ #page-wrapper { padding: 10px 10px; - min-height: 400px; + min-height: 380px; z-index: 1; box-shadow: 0 0 3px #131313; - padding-bottom: 80px !important; - margin-bottom: -78px !important; + padding-bottom: 70px !important; + margin-bottom: -68px !important; overflow: hidden; -webkit-transition: 0.2s; -moz-transition: 0.2s; @@ -42,7 +46,7 @@ margin:2px 7px 2px 0px; background-color:#fff!important; padding:8px; - min-height:800px; + min-height:780px; } #logout { Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/logger.css =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/logger.css (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/assets/css/logger.css 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,43 @@ +/* + * Default Admin Theme + * + * @copyright Xoops Project <http://www.xoops.org/> + * @license http://www.fsf.org/copyleft/gpl.html GNU public license 3.0 + * @package themes + * @since 2.5.x + * @author Xoops Design Theme <http://www.xoops.org/> + * @maintained Xoops Design Theme <http://www.xoops.org/> + * + * @version $Id +*/ +#xo-logger-errors, #xo-logger-deprecated, #xo-logger-queries, #xo-logger-blocks, +#xo-logger-extra, #xo-logger-timers{ + max-width: 95% !important; +} +#xo-logger-output { + margin: 0 auto !important; + background-color: #f0f0f0; +} +#xo-logger-tabs { + background-color: #8E8C8C; + padding-top: 8px; + padding-bottom: 8px; + margin-top: -2px; + padding-left: 2%; + padding-right: 2%; + width: 100% !important; +} +#xo-logger-tabs a { + color: #00008C; + background-color: #FEFCFC; +} +#xo-logger-tabs a:hover { + color: #f0f08C; + background-color: inherit; +} +#xo-logger-errors {} +#xo-logger-deprecated {} +#xo-logger-queries {} +#xo-logger-blocks {} +#xo-logger-extra {} +#xo-logger-timers {} \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/theme.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/theme.html 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/theme.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -6,6 +6,7 @@ <body id="<{$xoops_dirname}>" class="<{$xoops_langcode}>"> <div id="wrapper"> <{includeq file="$theme_tpl/theme_header.html"}> + <{includeq file="$theme_tpl/theme_sidenav.html"}> <{includeq file="$theme_tpl/theme_page.html" }> <{includeq file="$theme_tpl/theme_footer.html"}> </div><{* /#wrapper *}> Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_header.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_header.html 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_header.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -31,21 +31,12 @@ </ul> </li> <{/foreach}> - </ul> + </ul> <div id="logout"> + <{* Date Time Now *}> + <{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}> <a href="<{xoAppUrl /}>" class="btn btn-success square-btn-adjust"><i class="fa fa-home fa-sm"></i> <{$smarty.const._YOURHOME}></a> <a href="<{xoAppUrl user.php?op=logout}>" class="btn btn-danger square-btn-adjust"><i class="fa fa-power-off fa-sm"></i> <{$smarty.const._LOGOUT}></a> </div> </div> - </nav> - <!-- /. NAV TOP --> - <nav class="navbar-default navbar-side" role="navigation"> - <div class="sidebar-collapse"> - <ul class="nav" id="main-menu"> - <li> - <a class="active-menu" href="<{xoAppUrl admin.php}>"><i class="fa fa-dashboard fa-2x"></i> Dashboard</a> - </li> - </ul> - </div> - </nav> - <!-- /. NAV SIDE --> \ No newline at end of file + </nav><!-- /. NAV TOP --> \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_sidenav.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_sidenav.html (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/dashboard/xotpl/theme_sidenav.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,10 @@ + <nav class="navbar-default navbar-side" role="navigation"> + <div class="sidebar-collapse"> + <ul class="nav" id="main-menu"> + <li> + <a class="active-menu" href="<{xoAppUrl admin.php}>"><i class="fa fa-dashboard fa-2x"></i> Dashboard</a> + </li> + </ul> + </div> + </nav> + <!-- /. NAV SIDE --> \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/default/xotpl/xo_footer.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/default/xotpl/xo_footer.html 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/default/xotpl/xo_footer.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -1,5 +1,5 @@ <div id='xo-footer'> <div id="xo-footer-body">Powered by <a class="tooltip" rel="external" href="http://sourceforge.net/projects/xoops/" title="Xoops Project"><{$xoops_version}></a> © 2001-<{$smarty.now|date_format:"%Y"}></div> - <div id="xo-footer-rss" ><a class="tooltip" rel="external" href="<{xoAppUrl backend.php}>" title="<{$smarty.const._OXYGEN_RSS}>"><img src="<{xoImgUrl img/feed.png}>" /></a></div> + <div id="xo-footer-rss" ><a class="tooltip" rel="external" href="<{xoAppUrl backend.php}>" title="<{$smarty.const._OXYGEN_RSS}>"><img src="<{xoImgUrl assets/img/feed.png}>" /></a></div> <div><{includeq file="$theme_tpl/xo_uptop.html"}></div> </div> \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/holder.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/holder.js (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/holder.js 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,401 @@ +/* + +Holder - 1.9 - client side image placeholders +(c) 2012-2013 Ivan Malopinsky / http://imsky.co + +Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 +Commercial use requires attribution. + +*/ + +var Holder = Holder || {}; +(function (app, win) { + +var preempted = false, +fallback = false, +canvas = document.createElement('canvas'); + +//getElementsByClassName polyfill +document.getElementsByClassName||(document.getElementsByClassName=function(e){var t=document,n,r,i,s=[];if(t.querySelectorAll)return t.querySelectorAll("."+e);if(t.evaluate){r=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",n=t.evaluate(r,t,null,0,null);while(i=n.iterateNext())s.push(i)}else{n=t.getElementsByTagName("*"),r=new RegExp("(^|\\s)"+e+"(\\s|$)");for(i=0;i<n.length;i++)r.test(n[i].className)&&s.push(n[i])}return s}) + +//getComputedStyle polyfill +window.getComputedStyle||(window.getComputedStyle=function(e,t){return this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return t=="float"&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:null},this}) + +//http://javascript.nwbox.com/ContentLoaded by Diego Perini with modifications +function contentLoaded(n,t){var l="complete",s="readystatechange",u=!1,h=u,c=!0,i=n.document,a=i.documentElement,e=i.addEventListener?"addEventListener":"attachEvent",v=i.addEventListener?"removeEventListener":"detachEvent",f=i.addEventListener?"":"on",r=function(e){(e.type!=s||i.readyState==l)&&((e.type=="load"?n:i)[v](f+e.type,r,u),!h&&(h=!0)&&t.call(n,null))},o=function(){try{a.doScroll("left")}catch(n){setTimeout(o,50);return}r("poll")};if(i.readyState==l)t.call(n,"lazy");else{if(i.createEventObject&&a.doScroll){try{c=!n.frameElement}catch(y){}c&&o()}i[e](f+"DOMContentLoaded",r,u),i[e](f+s,r,u),n[e](f+"load",r,u)}}; + +//https://gist.github.com/991057 by Jed Schmidt with modifications +function selector(a){ + a=a.match(/^(\W)?(.*)/);var b=document["getElement"+(a[1]?a[1]=="#"?"ById":"sByClassName":"sByTagName")](a[2]); + var ret=[]; b!=null&&(b.length?ret=b:b.length==0?ret=b:ret=[b]); return ret; +} + +//shallow object property extend +function extend(a,b){var c={};for(var d in a)c[d]=a[d];for(var e in b)c[e]=b[e];return c} + +//hasOwnProperty polyfill +if (!Object.prototype.hasOwnProperty) + Object.prototype.hasOwnProperty = function(prop) { + var proto = this.__proto__ || this.constructor.prototype; + return (prop in this) && (!(prop in proto) || proto[prop] !== this[prop]); + } + +function text_size(width, height, template) { + var dimension_arr = [height, width].sort(); + var maxFactor = Math.round(dimension_arr[1] / 16), + minFactor = Math.round(dimension_arr[0] / 16); + var text_height = Math.max(template.size, maxFactor); + return { + height: text_height + } +} + +function draw(ctx, dimensions, template, ratio) { + var ts = text_size(dimensions.width, dimensions.height, template); + var text_height = ts.height; + var width = dimensions.width * ratio, height = dimensions.height * ratio; + var font = template.font ? template.font : "sans-serif"; + canvas.width = width; + canvas.height = height; + ctx.textAlign = "center"; + ctx.textBaseline = "middle"; + ctx.fillStyle = template.background; + ctx.fillRect(0, 0, width, height); + ctx.fillStyle = template.foreground; + ctx.font = "bold " + text_height + "px "+font; + var text = template.text ? template.text : (dimensions.width + "x" + dimensions.height); + if (ctx.measureText(text).width / width > 1) { + text_height = template.size / (ctx.measureText(text).width / width); + } + //Resetting font size if necessary + ctx.font = "bold " + (text_height * ratio) + "px "+font; + ctx.fillText(text, (width / 2), (height / 2), width); + return canvas.toDataURL("image/png"); +} + +function render(mode, el, holder, src) { + var dimensions = holder.dimensions, + theme = holder.theme, + text = holder.text ? decodeURIComponent(holder.text) : holder.text; + var dimensions_caption = dimensions.width + "x" + dimensions.height; + theme = (text ? extend(theme, { text: text }) : theme); + theme = (holder.font ? extend(theme, {font: holder.font}) : theme); + + var ratio = 1; + if(window.devicePixelRatio && window.devicePixelRatio > 1){ + ratio = window.devicePixelRatio; + } + + if (mode == "image") { + el.setAttribute("data-src", src); + el.setAttribute("alt", text ? text : theme.text ? theme.text + " [" + dimensions_caption + "]" : dimensions_caption); + + if(fallback || !holder.auto){ + el.style.width = dimensions.width + "px"; + el.style.height = dimensions.height + "px"; + } + + if (fallback) { + el.style.backgroundColor = theme.background; + + } + else{ + el.setAttribute("src", draw(ctx, dimensions, theme, ratio)); + } + } else { + if (!fallback) { + el.style.backgroundImage = "url(" + draw(ctx, dimensions, theme, ratio) + ")"; + el.style.backgroundSize = dimensions.width+"px "+dimensions.height+"px"; + } + } +}; + +function fluid(el, holder, src) { + var dimensions = holder.dimensions, + theme = holder.theme, + text = holder.text; + var dimensions_caption = dimensions.width + "x" + dimensions.height; + theme = (text ? extend(theme, { + text: text + }) : theme); + + var fluid = document.createElement("div"); + + fluid.style.backgroundColor = theme.background; + fluid.style.color = theme.foreground; + fluid.className = el.className + " holderjs-fluid"; + fluid.style.width = holder.dimensions.width + (holder.dimensions.width.indexOf("%")>0?"":"px"); + fluid.style.height = holder.dimensions.height + (holder.dimensions.height.indexOf("%")>0?"":"px"); + fluid.id = el.id; + + el.style.width=0; + el.style.height=0; + + if (theme.text) { + fluid.appendChild(document.createTextNode(theme.text)) + } else { + fluid.appendChild(document.createTextNode(dimensions_caption)) + fluid_images.push(fluid); + setTimeout(fluid_update, 0); + } + + el.parentNode.insertBefore(fluid, el.nextSibling) + + if(window.jQuery){ + jQuery(function($){ + $(el).on("load", function(){ + el.style.width = fluid.style.width; + el.style.height = fluid.style.height; + $(el).show(); + $(fluid).remove(); + }); + }) + } +} + +function fluid_update() { + for (i in fluid_images) { + if(!fluid_images.hasOwnProperty(i)) continue; + var el = fluid_images[i], + label = el.firstChild; + + el.style.lineHeight = el.offsetHeight+"px"; + label.data = el.offsetWidth + "x" + el.offsetHeight; + } +} + +function parse_flags(flags, options) { + + var ret = { + theme: settings.themes.gray + }, render = false; + + for (sl = flags.length, j = 0; j < sl; j++) { + var flag = flags[j]; + if (app.flags.dimensions.match(flag)) { + render = true; + ret.dimensions = app.flags.dimensions.output(flag); + } else if (app.flags.fluid.match(flag)) { + render = true; + ret.dimensions = app.flags.fluid.output(flag); + ret.fluid = true; + } else if (app.flags.colors.match(flag)) { + ret.theme = app.flags.colors.output(flag); + } else if (options.themes[flag]) { + //If a theme is specified, it will override custom colors + ret.theme = options.themes[flag]; + } else if (app.flags.text.match(flag)) { + ret.text = app.flags.text.output(flag); + } else if(app.flags.font.match(flag)){ + ret.font = app.flags.font.output(flag); + } + else if(app.flags.auto.match(flag)){ + ret.auto = true; + } + } + + return render ? ret : false; + +}; + +if (!canvas.getContext) { + fallback = true; +} else { + if (canvas.toDataURL("image/png") + .indexOf("data:image/png") < 0) { + //Android doesn't support data URI + fallback = true; + } else { + var ctx = canvas.getContext("2d"); + } +} + +var fluid_images = []; + +var settings = { + domain: "holder.js", + images: "img", + bgnodes: ".holderjs", + themes: { + "gray": { + background: "#eee", + foreground: "#aaa", + size: 12 + }, + "social": { + background: "#3a5a97", + foreground: "#fff", + size: 12 + }, + "industrial": { + background: "#434A52", + foreground: "#C2F200", + size: 12 + } + }, + stylesheet: ".holderjs-fluid {font-size:16px;font-weight:bold;text-align:center;font-family:sans-serif;margin:0}" +}; + + +app.flags = { + dimensions: { + regex: /^(\d+)x(\d+)$/, + output: function (val) { + var exec = this.regex.exec(val); + return { + width: +exec[1], + height: +exec[2] + } + } + }, + fluid: { + regex: /^([0-9%]+)x([0-9%]+)$/, + output: function (val) { + var exec = this.regex.exec(val); + return { + width: exec[1], + height: exec[2] + } + } + }, + colors: { + regex: /#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i, + output: function (val) { + var exec = this.regex.exec(val); + return { + size: settings.themes.gray.size, + foreground: "#" + exec[2], + background: "#" + exec[1] + } + } + }, + text: { + regex: /text\:(.*)/, + output: function (val) { + return this.regex.exec(val)[1]; + } + }, + font: { + regex: /font\:(.*)/, + output: function(val){ + return this.regex.exec(val)[1]; + } + }, + auto: { + regex: /^auto$/ + } +} + +for (var flag in app.flags) { + if(!app.flags.hasOwnProperty(flag)) continue; + app.flags[flag].match = function (val) { + return val.match(this.regex) + } +} + +app.add_theme = function (name, theme) { + name != null && theme != null && (settings.themes[name] = theme); + return app; +}; + +app.add_image = function (src, el) { + var node = selector(el); + if (node.length) { + for (var i = 0, l = node.length; i < l; i++) { + var img = document.createElement("img") + img.setAttribute("data-src", src); + node[i].appendChild(img); + } + } + return app; +}; + +app.run = function (o) { + var options = extend(settings, o), images = []; + + if(options.images instanceof window.NodeList){ + imageNodes = options.images; + } + else if(options.images instanceof window.Node){ + imageNodes = [options.images]; + } + else{ + imageNodes = selector(options.images); + } + + if(options.elements instanceof window.NodeList){ + bgnodes = options.bgnodes; + } + else if(options.bgnodes instanceof window.Node){ + bgnodes = [options.bgnodes]; + } + else{ + bgnodes = selector(options.bgnodes); + } + + preempted = true; + + for (i = 0, l = imageNodes.length; i < l; i++) images.push(imageNodes[i]); + + var holdercss = document.getElementById("holderjs-style"); + + if(!holdercss){ + holdercss = document.createElement("style"); + holdercss.setAttribute("id", "holderjs-style"); + holdercss.type = "text/css"; + document.getElementsByTagName("head")[0].appendChild(holdercss); + } + + if(holdercss.styleSheet){ + holdercss.styleSheet += options.stylesheet; + } + else{ + holdercss.textContent+= options.stylesheet; + } + + var cssregex = new RegExp(options.domain + "\/(.*?)\"?\\)"); + + for (var l = bgnodes.length, i = 0; i < l; i++) { + var src = window.getComputedStyle(bgnodes[i], null) + .getPropertyValue("background-image"); + var flags = src.match(cssregex); + if (flags) { + var holder = parse_flags(flags[1].split("/"), options); + if (holder) { + render("background", bgnodes[i], holder, src); + } + } + } + + for (var l = images.length, i = 0; i < l; i++) { + var src = images[i].getAttribute("src") || images[i].getAttribute("data-src"); + if (src != null && src.indexOf(options.domain) >= 0) { + var holder = parse_flags(src.substr(src.lastIndexOf(options.domain) + options.domain.length + 1) + .split("/"), options); + if (holder) { + if (holder.fluid) { + fluid(images[i], holder, src); + } else { + render("image", images[i], holder, src); + } + } + } + } + return app; +}; + +contentLoaded(win, function () { + if (window.addEventListener) { + window.addEventListener("resize", fluid_update, false); + window.addEventListener("orientationchange", fluid_update, false); + } else { + window.attachEvent("onresize", fluid_update) + } + preempted || app.run(); +}); + +if ( typeof define === "function" && define.amd ) { + define( "Holder", [], function () { return app; } ); +} + +})(Holder, window); \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/index.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/index.html (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder/index.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/header.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/header.html 2015-03-07 16:47:59 UTC (rev 13010) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/header.html 2015-03-08 14:32:56 UTC (rev 13011) @@ -74,15 +74,16 @@ <{* /.dropdown-alerts *}> </li> <{* /.dropdown *}> + <{xoMemberInfo assign=member_info infos="uname|user_avatar"}> <li class="dropdown"> <a href="#" class="dropdown-toggle account" data-toggle="dropdown"> <div class="avatar"> - <img src="<{xoImgUrl assets/img/avatar.jpg}>" class="img-rounded" alt="avatar" /> + <img src="<{$xoops_url}>/uploads/<{$member_info.user_avatar}>" class="img-rounded" alt="avatar" /> </div> <i class="fa fa-caret-down pull-right"></i> <div class="user-mini pull-right"> <span class="welcome">Welcome,</span> - <span><{$xoops_uname}></span> + <span><{$member_info.uname}></span> </div> </a> <ul class="dropdown-menu dropdown-user"> Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/xoops_version.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/xoops_version.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/xoops_version.php 2015-03-08 14:32:56 UTC (rev 13011) @@ -0,0 +1,442 @@ +<?php +/** + * System xoops_version file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @version $Id: xoops_version.php 12064 2013-09-17 12:12:00Z beckmi $ + * @revision $Id: xoops_version.php 13008 2015-03-08 13:58:32Z timgno $ + */ + +$modversion['name'] = _MI_SYSTEM_NAME; +$modversion['version'] = 2.11; // irmtfan bug fix: bug fix: remove codes for delete templates +$modversion['description'] = _MI_SYSTEM_DESC; +$modversion['author'] = ''; +$modversion['credits'] = 'The XOOPS Project; MusS, Kraven30, Mage'; +$modversion['help'] = 'system.html'; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 1; +$modversion['image'] = 'images/system_slogo.png'; +$modversion['dirname'] = 'system'; + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = 'admin.php'; +$modversion['adminmenu'] = 'menu.php'; + +$modversion['onUpdate'] = 'include/update.php'; + +// Templates +$modversion['templates'][] = array( 'file' => 'system_imagemanager.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_imagemanager2.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_userinfo.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_userform.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_rss.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_redirect.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_comment.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_comments_flat.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_comments_thread.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_comments_nest.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_siteclosed.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_dummy.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_notification_list.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_notification_select.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_block_dummy.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_homepage.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_bannerlogin.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_banner.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_bannerdisplay.html', 'description' => '' ); +$modversion['templates'][] = array( 'file' => 'system_pagenav.html', 'description' => '' ); + +// Admin Templates +$modversion['templates'][] = array( 'file' => 'system_header.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_banners.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_modules.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_modules_install.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_modules_confirm.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_modules_result.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_avatars.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_smilies.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_blocks.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_blocks_item.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_comments.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_comments_list.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_userrank.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_users.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_preferences.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_mailusers.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_groups.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_images.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_templates.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_filemanager.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_index.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_maintenance.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_help.html', 'description' => '', 'type' => 'admin' ); +$modversion['templates'][] = array( 'file' => 'system_pagenav.html', 'description' => '', 'type' => 'admin' ); + +// Blocks +$modversion['blocks'][] = array( + 'file' => 'system_blocks.php', + 'name' => _MI_SYSTEM_BNAME2, + 'description' => 'Shows user block', + 'show_func' => 'b_system_user_show', + 'template' => 'system_block_user.html'); + +$modversion['blocks'][2]['file'] = 'system_blocks.php'; +$modversion['blocks'][2]['name'] = _MI_SYSTEM_BNAME3; +$modversion['blocks'][2]['description'] = 'Shows login form'; +$modversion['blocks'][2]['show_func'] = 'b_system_login_show'; +$modversion['blocks'][2]['template'] = 'system_block_login.html'; + +$modversion['blocks'][3]['file'] = 'system_blocks.php'; +$modversion['blocks'][3]['name'] = _MI_SYSTEM_BNAME4; +$modversion['blocks'][3]['description'] = 'Shows search form block'; +$modversion['blocks'][3]['show_func'] = 'b_system_search_show'; +$modversion['blocks'][3]['template'] = 'system_block_search.html'; + +$modversion['blocks'][4]['file'] = 'system_blocks.php'; +$modversion['blocks'][4]['name'] = _MI_SYSTEM_BNAME5; +$modversion['blocks'][4]['description'] = 'Shows contents waiting for approval'; +$modversion['blocks'][4]['show_func'] = 'b_system_waiting_show'; +$modversion['blocks'][4]['template'] = 'system_block_waiting.html'; + +$modversion['blocks'][5]['file'] = 'system_blocks.php'; +$modversion['blocks'][5]['name'] = _MI_SYSTEM_BNAME6; +$modversion['blocks'][5]['description'] = 'Shows the main navigation menu of the site'; +$modversion['blocks'][5]['show_func'] = 'b_system_main_show'; +$modversion['blocks'][5]['template'] = 'system_block_mainmenu.html'; + +$modversion['blocks'][6]['file'] = 'system_blocks.php'; +$modversion['blocks'][6]['name'] = _MI_SYSTEM_BNAME7; +$modversion['blocks'][6]['description'] = 'Shows basic info about the site and a link to Recommend Us pop up window'; +$modversion['blocks'][6]['show_func'] = 'b_system_info_show'; +$modversion['blocks'][6]['edit_func'] = 'b_system_info_edit'; +$modversion['blocks'][6]['options'] = '320|190|s_poweredby.gif|1'; +$modversion['blocks'][6]['template'] = 'system_block_siteinfo.html'; + +$modversion['blocks'][7]['file'] = 'system_blocks.php'; +$modversion['blocks'][7]['name'] = _MI_SYSTEM_BNAME8; +$modversion['blocks'][7]['description'] = 'Displays users/guests currently online'; +$modversion['blocks'][7]['show_func'] = 'b_system_online_show'; +$modversion['blocks'][7]['template'] = 'system_block_online.html'; + +$modversion['blocks'][8]['file'] = 'system_blocks.php'; +$modversion['blocks'][8]['name'] = _MI_SYSTEM_BNAME9; +$modversion['blocks'][8]['description'] = 'Top posters'; +$modversion['blocks'][8]['show_func'] = 'b_system_topposters_show'; +$modversion['blocks'][8]['options'] = '10|1'; +$modversion['blocks'][8]['edit_func'] = 'b_system_topposters_edit'; +$modversion['blocks'][8]['template'] = 'system_block_topusers.html'; + +$modversion['blocks'][9]['file'] = 'system_blocks.php'; +$modversion['blocks'][9]['name'] = _MI_SYSTEM_BNAME10; +$modversion['blocks'][9]['description'] = 'Shows most recent users'; +$modversion['blocks'][9]['show_func'] = 'b_system_newmembers_show'; +$modversion['blocks'][9]['options'] = '10|1'; +$modversion['blocks'][9]['edit_func'] = 'b_system_newmembers_edit'; +$modversion['blocks'][9]['template'] = 'system_block_newusers.html'; + +$modversion['blocks'][10]['file'] = 'system_blocks.php'; +$modversion['blocks'][10]['name'] = _MI_SYSTEM_BNAME11; +$modversion['blocks'][10]['description'] = 'Shows most recent comments'; +$modversion['blocks'][10]['show_func'] = 'b_system_comments_show'; +$modversion['blocks'][10]['options'] = '10'; +$modversion['blocks'][10]['edit_func'] = 'b_system_comments_edit'; +$modversion['blocks'][10]['template'] = 'system_block_comments.html'; + +// RMV-NOTIFY: +// Adding a block... +$modversion['blocks'][11]['file'] = 'system_blocks.php'; +$modversion['blocks'][11]['name'] = _MI_SYSTEM_BNAME12; +$modversion['blocks'][11]['description'] = 'Shows notification options'; +$modversion['blocks'][11]['show_func'] = 'b_system_notification_show'; +$modversion['blocks'][11]['template'] = 'system_block_notification.html'; + +$modversion['blocks'][12]['file'] = 'system_blocks.php'; +$modversion['blocks'][12]['name'] = _MI_SYSTEM_BNAME13; +$modversion['blocks'][12]['description'] = 'Shows theme selection box'; +$modversion['blocks'][12]['show_func'] = 'b_system_themes_show'; +$modversion['blocks'][12]['options'] = '0|80'; +$modversion['blocks'][12]['edit_func'] = 'b_system_themes_edit'; +$modversion['blocks'][12]['template'] = 'system_block_themes.html'; + +// Menu +$modversion['hasMain'] = 0; + +// Préférences +$i = 0; +$modversion['config'][$i]['name'] = 'break1'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_BREAK_GENERAL'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'line_break'; +$modversion['config'][$i]['valuetype'] = 'textbox'; +$modversion['config'][$i]['default'] = 'head'; +$i++; +$modversion['config'][$i]['name'] = 'usetips'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_TIPS'; +$modversion['config'][$i]['description'] = '_MI_SYSTEM_PREFERENCE_TIPS_DSC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; +$icons = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/system/images/icons'); +$modversion['config'][$i]['name'] = 'typeicons'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ICONS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'default'; +$modversion['config'][$i]['options'] = $icons; +$modversion['config'][$i]['category'] = 'global'; +$i++; +$breadcrumb = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/system/images/breadcrumb'); +$modversion['config'][$i]['name'] = 'typebreadcrumb'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_BREADCRUMB'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'default'; +$modversion['config'][$i]['options'] = $breadcrumb; +$modversion['config'][$i]['category'] = 'global'; +$i++; +$jquery_theme = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/system/css/ui'); +$modversion['config'][$i]['name'] = 'jquery_theme'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_JQUERY_THEME'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'base'; +$modversion['config'][$i]['options'] = $jquery_theme; +$modversion['config'][$i]['category'] = 'global'; +$i++; +$modversion['config'][$i]['name'] = 'break2'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_BREAK_ACTIVE'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'line_break'; +$modversion['config'][$i]['valuetype'] = 'textbox'; +$modversion['config'][$i]['default'] = 'head'; +$i++; +$modversion['config'][$i]['name'] = 'active_avatars'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_AVATARS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_banners'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_BANNERS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_blocksadmin'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_BLOCKSADMIN'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'active_comments'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_COMMENTS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_filemanager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_FILEMANAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_groups'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_GROUPS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'active_images'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_IMAGES'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_mailusers'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_MAILUSERS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_maintenance'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_MAINTENANCE'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_modulesadmin'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_MODULESADMIN'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'active_preferences'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_PREFERENCES'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'active_smilies'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_SMILIES'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_tplsets'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_TPLSETS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'hidden'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'active_userrank'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_USERRANK'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'active_users'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_USERS'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; +$modversion['config'][$i]['name'] = 'break3'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_BREAK_PAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'line_break'; +$modversion['config'][$i]['valuetype'] = 'textbox'; +$modversion['config'][$i]['default'] = 'head'; +$i++; +$modversion['config'][$i]['name'] = 'avatars_pager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_AVATARS_PAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 10; +$i++; +$modversion['config'][$i]['name'] = 'banners_pager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_BANNERS_PAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 10; +$i++; +$modversion['config'][$i]['name'] = 'comments_pager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_COMMENTS_PAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 20; +$i++; +$modversion['config'][$i]['name'] = 'groups_pager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_GROUPS_PAGER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 15; +$i++; +$modversion['config'][$i]['name'] = 'images_pager'; +$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_IMAGES_PAGER'; +$modversion['config'][$i]['descript... [truncated message content] |