XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
admin_gui.php
Go to the documentation of this file.
1 <?php
2 // $Id$
3 // --------------------------------------------------------------
4 // Designia v1.0
5 // Theme for Common Utilities 2
6 // Author: Eduardo Cortés <i.bitcero@gmail.com>
7 // Email: i.bitcero@gmail.com
8 // License: GPL 2.0
9 // --------------------------------------------------------------
10 
11 load_theme_locale('designia','',true);
12 
14 
15 define('DESIGNIA_PATH', RMCPATH.'/themes/designia');
16 define('DESIGNIA_URL', RMCURL.'/themes/designia');
17 
18 include_once DESIGNIA_PATH.'/class/designiafunctions.class.php';
19 
20 // Cookies
21 RMTemplate::get()->add_local_script('jquery.ck.js', 'rmcommon','include');
22 
23 // Get current module menu
25 
26 // System module menu
27 if($xoopsModule->dirname()!='system')
29 
30 // Common Utilities module menu
31 if($xoopsModule->dirname()!='rmcommon')
33 
34 // Other Menus
35 $other_menu = RMEvents::get()->run_event('designia.other.menu');
36 
37 // Left Widgets
38 $left_widgets = array();
39 $left_widgets = RMEvents::get()->run_event('rmcommon.load.left.widgets', $left_widgets);
40 
41 // Right widgets
42 $right_widgets = array();
43 $right_widgets = RMEvents::get()->run_event('rmcommon.load.right.widgets', $right_widgets);
44 
45 include 'ajax/modules.php';
46 
47 // Designia preferences
48 $dConfig = include(XOOPS_CACHE_PATH.'/designia.php');
49 
50 if($dConfig['logo']=='')
51  $dConfig['logo'] = XOOPS_URL.'/modules/rmcommon/themes/designia/images/logo.png';
52 
53 if($dConfig['scheme']=='')
54  $dConfig['scheme'] = 'colors.css';
55 
56 $this->add_theme_style('menu.css','designia');
57 $this->add_theme_style('jquery.mCustomScrollbar.css','designia');
58 $this->add_theme_style('main.css','designia');
59 $this->add_theme_style($dConfig['scheme'],'designia');
60 $this->add_theme_style($dConfig['scheme'],'designia');
61 $this->add_theme_style('jquery.window.css','designia');
62 
63 global $xoopsLogger;
64 if($xoopsLogger->activated):
65  $this->add_theme_style('debugger.css','designia');
67 
68 // Display theme
69 include_once 'designia.php';