XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
designia.php
Go to the documentation of this file.
1 <!DOCTYPE html>
2 <html>
3  <head>
4  <meta charset=utf-8>
5  <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
6  <?php
7 
8  !defined('RMCLOCATION') ? define('RMCLOCATION', '') : true;
9  !defined('RMCSUBLOCATION') ? define('RMCSUBLOCATION', '') : true;
10 
11  foreach ($this->tpl_styles as $style){
12  echo '<link rel="stylesheet" type="text/css" media="'.$style['media'].'" href="'.$style['url'].'"'.($style['more']!=''?' '.$style['more']:'').' />'."\n";
13  }
14 
15  foreach ($this->tpl_scripts as $script){
16  echo '<script type="'.$script['type'].'" src="'.$script['url'].'"></script>'."\n";
17  }
18 
19  echo $this->head_scripts();
20 
21  foreach ($this->tpl_head as $head){
22  echo $head."\n";
23  }
24 
25  include_once 'include/xoops_metas.php';
26  ?>
27 
28  <title><?php if($this->get_var('xoops_pagetitle')!=''): ?><?php echo $this->get_var('xoops_pagetitle'); ?> - <?php endif; ?><?php echo isset($xoopsModule) ? $xoopsModule->getInfo('name').' - ' : ''; ?><?php echo $xoopsConfig['sitename']; ?></title>
29  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/hoverIntent.js"></script>
30  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/superfish.js"></script>
31  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/supersubs.js"></script>
32  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/jquery.window.min.js"></script>
33  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/designia.js"></script>
34  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/jquery.easing.1.3.js"></script>
35  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/jquery.mousewheel.min.js"></script>
36  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/jquery.tablesorter.min.js"></script>
37 
38  <script type="text/javascript">
39  var designia_url = '<?php echo $rm_theme_url; ?>';
40  $(document).ready(function(){
41  $("ul.menu-menu").superfish();
42  $("table.outer").each(function(i){
43  if(!$(this).hasClass('notsortable')){
44  $(this).addClass('tablesorter');
45  $(this).tablesorter();
46  }
47  });
48  });
49  </script>
50 
52 
53  </head>
54  <body>
55  <nav id="des-vertical" class="dark_bg dark_clear_text">
56  <ul>
57  <li class=nav_item>
58  <a href="<?php echo RMCURL; ?>">
59  <img src="<?php echo $rm_theme_url; ?>/images/dashboard.png" alt="<?php _e('Dashboard','rmcommon'); ?>" />
60  <p><?php _e('Dashboard','rmcommon'); ?></p>
61  </a>
62  </li>
63  <li class=nav_item>
64  <a href="#" class="des-modules-nav">
65  <img src="<?php echo $rm_theme_url; ?>/images/modules.png" alt="<?php _e('Modules','rmcommon'); ?>" />
66  <p><?php _e('Modules','rmcommon'); ?></p>
67  </a>
68  </li>
69  <li class=nav_item>
70  <a href="<?php echo RMCURL; ?>/plugins.php" id="des-plugins-nav">
71  <img src="<?php echo $rm_theme_url; ?>/images/plugins.png" alt="<?php _e('Plugins','rmcommon'); ?>" />
72  <p><?php _e('Plugins','rmcommon'); ?></p>
73  </a>
74  </li>
75  <li class=nav_item>
76  <a href="<?php echo RMCURL; ?>/blocks.php" id="des-blocks-nav">
77  <img src="<?php echo $rm_theme_url; ?>/images/blocks.png" alt="<?php _e('Blocks','rmcommon'); ?>" />
78  <p><?php _e('Blocks','rmcommon'); ?></p>
79  </a>
80  </li>
81  <li class=nav_item>
82  <a href="<?php echo RMCURL; ?>/comments.php" id="des-comms-nav">
83  <img src="<?php echo $rm_theme_url; ?>/images/coms.png" alt="<?php _e('Comments','rmcommon'); ?>" />
84  <p><?php _e('Comments','rmcommon'); ?></p>
85  </a>
86  </li>
87  <li class=nav_item>
88  <a href="http://xoops.org" target="_blank">
89  <img src="<?php echo $rm_theme_url; ?>/images/xoops.png" alt="<?php _e('XOOPS','rmcommon'); ?>" />
90  <p><?php _e('XOOPS','rmcommon'); ?></p>
91  </a>
92  </li>
93  <?php RMEvents::get()->run_event('designia.get.nav.items'); ?>
94  </ul>
95  </nav>
96  <div id="right-container">
97  <header id="des-header" class="overlay_bg">
98  <h1 class=des_logo><a href="<?php echo RMCURL; ?>" title="<?php echo $xoopsConfig['sitename']; ?>"><img src="<?php echo $dConfig['logo']; ?>" alt="<?php echo $xoopsConfig['sitename']; ?>" width=178 height=45 /></a></h1>
99  <div class="header_user"></div>
100  </header>
101  <nav id="des-nav" class="dark_bg overlay_bg">
102  <ul>
103  <li class=user>
104  <img src="http://www.gravatar.com/avatar/<?php echo md5($xoopsUser->getVar('email')); ?>?s=50&amp;d=<?php echo urlencode($rm_theme_url.'/images/profile.png'); ?>" alt="<?php echo $xoopsUser->getVar('name'); ?>" />
105  <div id="des-userinfo">
106  <p id="usr-name"><?php echo sprintf(__('Welcome back %s','designia'), $xoopsUser->getVar('name')); ?></p>
107  <p>
108  <a href="<?php echo XOOPS_URL; ?>" target="viewsite"><?php _e('View Site','rmcommon'); ?></a>
109  <a href="<?php echo RMCURL; ?>/?designia=settings"><?php _e('Preferences','rmcommon'); ?></a>
110  <a href="<?php echo XOOPS_URL; ?>/user.php?op=logout"><?php _e('Log out','rmcommon'); ?></a>
111  </p>
112  </div>
113  </li>
114  <li class=nav_item>
115  <a href="<?php echo RMCURL; ?>">
116  <img src="<?php echo $rm_theme_url; ?>/images/dashboard.png" alt="<?php _e('Dashboard','rmcommon'); ?>" />
117  <p><?php _e('Dashboard','rmcommon'); ?></p>
118  </a>
119  </li>
120  <li class=nav_item>
121  <a href="#" class="des-modules-nav">
122  <img src="<?php echo $rm_theme_url; ?>/images/modules.png" alt="<?php _e('Modules','rmcommon'); ?>" />
123  <p><?php _e('Modules','rmcommon'); ?></p>
124  </a>
125  </li>
126  <li class=nav_item>
127  <a href="<?php echo RMCURL; ?>/plugins.php" id="des-plugins-nav">
128  <img src="<?php echo $rm_theme_url; ?>/images/plugins.png" alt="<?php _e('Plugins','rmcommon'); ?>" />
129  <p><?php _e('Plugins','rmcommon'); ?></p>
130  </a>
131  </li>
132  <li class=nav_item>
133  <a href="<?php echo RMCURL; ?>/blocks.php" id="des-blocks-nav">
134  <img src="<?php echo $rm_theme_url; ?>/images/blocks.png" alt="<?php _e('Blocks','rmcommon'); ?>" />
135  <p><?php _e('Blocks','rmcommon'); ?></p>
136  </a>
137  </li>
138  <li class=nav_item>
139  <a href="<?php echo RMCURL; ?>/comments.php" id="des-comms-nav">
140  <img src="<?php echo $rm_theme_url; ?>/images/coms.png" alt="<?php _e('Comments','rmcommon'); ?>" />
141  <p><?php _e('Comments','rmcommon'); ?></p>
142  </a>
143  </li>
144  <li class=nav_item>
145  <a href="http://xoops.org" target="_blank">
146  <img src="<?php echo $rm_theme_url; ?>/images/xoops.png" alt="<?php _e('XOOPS','rmcommon'); ?>" />
147  <p><?php _e('XOOPS','rmcommon'); ?></p>
148  </a>
149  </li>
150  <?php RMEvents::get()->run_event('designia.get.nav.items'); ?>
151  </ul>
152  </nav>
153 
154  <div id="des-nav-modules">
155  <?php include 'include/modules.php'; ?>
156  </div>
157 
158  <?php if($this->get_menus()): ?>
159  <nav id="des-menu-nav" class="overlay_bg">
160  <ul class="menu-menu">
161  <li class=module_name>
162  <a style="background-image: url(<?php echo DesigniaFunctions::module_icon($xoopsModule->dirname(), '16'); ?>);" href="<?php echo XOOPS_URL; ?>/modules/<?php echo $xoopsModule->dirname(); ?>/<?php echo $xoopsModule->getInfo('adminindex'); ?>"><?php echo $xoopsModule->name(); ?></a>
163  <ul>
164  <?php foreach($this->get_menus() as $menu): ?>
165  <li class=nav_item>
166  <a href="<?php echo $menu['link']; ?>" style="background-image: url(<?php echo $menu['icon']; ?>);"><?php echo $menu['title']; ?></a>
167  <?php if($menu['options']): ?>
168  <ul>
169  <?php foreach($menu['options'] as $sub): ?>
170  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
171  <?php endforeach; ?>
172  </ul>
173  <?php endif; ?>
174  </li>
175  <?php endforeach; ?>
176  </ul>
177  </li>
178  <?php if($xoopsModule->dirname()!='system'): ?>
179  <li>
180  <a style="background-image: url(<?php echo RMTHEMEURL; ?>/images/system.png);" href="<?php echo XOOPS_URL; ?>/modules/system/"><?php _e('System','rmcommon'); ?></a>
181  <ul>
182  <?php foreach($system_menu as $menu): ?>
183  <li class=nav_item>
184  <a href="<?php echo $menu['link']; ?>" style="background-image: url(<?php echo $menu['icon']; ?>);"><?php echo $menu['title']; ?></a>
185  </li>
186  <?php endforeach; ?>
187  </ul>
188  </li>
189  <?php endif; ?>
190 
191  <?php if($xoopsModule->dirname()!='rmcommon'): ?>
192  <li>
193  <a style="background-image: url(<?php echo DesigniaFunctions::module_icon('rmcommon', '16'); ?>);" href="<?php echo XOOPS_URL; ?>/modules/rmcommon/">Common Utilities</a>
194  <ul>
195  <?php foreach($rmcommon_menu as $menu): ?>
196  <li class=nav_item>
197  <a href="<?php echo $menu['link']; ?>" style="background-image: url(<?php echo $menu['icon']; ?>);"><?php echo $menu['title']; ?></a>
198  <?php if(isset($menu['options'])): ?>
199  <ul>
200  <?php foreach($menu['options'] as $sub): ?>
201  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
202  <?php endforeach; ?>
203  </ul>
204  <?php endif; ?>
205  </li>
206  <?php endforeach; ?>
207  </ul>
208  </li>
209  <?php endif; ?>
210 
211  <?php if(!empty($other_menu)): ?>
212  <?php foreach($other_menu as $name => $topmenu): ?>
213  <li>
214  <a style="background-image: url(<?php echo $topmenu['icon']; ?>);" href="<?php echo $topmenu['link']; ?>"><?php echo $topmenu['name']; ?></a>
215  <ul>
216  <?php foreach($topmenu['menus'] as $menu): ?>
217  <li class=nav_item>
218  <a href="<?php echo $menu['link']; ?>" style="background-image: url(<?php echo $menu['icon']; ?>);"><?php echo $menu['title']; ?></a>
219  <?php if(isset($menu['options'])): ?>
220  <ul>
221  <?php foreach($menu['options'] as $sub): ?>
222  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
223  <?php endforeach; ?>
224  </ul>
225  <?php endif; ?>
226  </li>
227  <?php endforeach; ?>
228  </ul>
229  </li>
230  <?php endforeach; ?>
231  <?php endif; ?>
232 
233  <li>
234  <a style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/designia.png);" href="#"><?php _e('Designia','rmcommon'); ?></a>
235  <ul>
236  <li class=nav_item>
237  <a href="<?php echo RMCURL; ?>/?designia=settings" style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/colors.png);"><?php _e('Settings','rmcommon'); ?></a>
238  <a href="#" id="designia-about" style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/info.png);"><?php _e('About theme','rmcommon'); ?></a>
239  </li>
240  </ul>
241  </li>
242 
243  <?php if($this->help() || $xoopsModule->getInfo('social')): ?>
244  <li>
245  <a href="#" style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/help.png);"><?php _e('Help','rmcommon'); ?></a>
246  <ul>
247  <?php if($this->help()): ?>
248  <?php foreach($this->help() as $help): ?>
249  <li class=nav_item>
250  <a href="<?php echo $help['link']; ?>" class="help_button rm_help_button" style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/help.png);" target="_blank" title="<?php echo $help['caption']; ?>"><?php echo $help['caption']; ?></a>
251  </li>
252  <?php endforeach; ?>
253  <?php endif; ?>
254  <?php if($xoopsModule->getInfo('social')): ?>
255  <li>
256  <a href="#" onclick="return false;"><?php _e('Social Links','rmcommon'); ?></a>
257  <ul>
258  <?php foreach($xoopsModule->getInfo('social') as $net): ?>
259  <li class="nav_item">
260  <a href="<?php echo $net['url']; ?>" style="background-image: url(<?php echo DESIGNIA_URL; ?>/images/social/<?php echo $net['type']; ?>.png);"><?php echo $net['title']; ?></a>
261  </li>
262  <?php endforeach; ?>
263  </ul>
264  </li>
265  <?php endif; ?>
266  </ul>
267  </li>
268  <?php endif; ?>
269 
270  </ul>
271  <div class=clearer></div>
272  </nav>
273  <?php endif; ?>
274 
275  <!-- System messages -->
276  <?php foreach($rmc_messages as $message): ?>
277  <div class="des_sys_message msgtype_<?php echo $message['level']; ?>"<?php if($message['level']>4 && $message['icon']!=''): ?> style="background-image: url(<?php echo $message['icon']; ?>);<?php endif; ?>>
278  <span class="msg-close" title="<?php _e('Close message box','rmcommon'); ?>"></span>
279  <?php echo html_entity_decode($message['text']); ?>
280  </div>
281  <?php endforeach; ?>
282 
283  <!-- Toolbar -->
284  <?php if($this->get_toolbar()): ?>
285  <nav id="des-toolbar">
286  <ul>
287  <?php foreach($this->get_toolbar() as $menu): ?>
288  <li<?php echo $menu['location']==RMCSUBLOCATION ? ' class = "selected"' : ($menu['location']==RMCLOCATION ? ' class="selected"' : ''); ?>>
289  <a href="<?php echo $menu['link']; ?>"<?php if($menu['icon']): ?> style="background-image: url(<?php echo $menu['icon']; ?>); padding-left: 24px"<?php endif; ?>><?php echo $menu['title']; ?></a>
290  </li>
291  <?php endforeach; ?>
292  </ul>
293  </nav>
294  <?php endif; ?>
295 
296  <!-- The content -->
297  <div id="des-content-wrapper">
298  <div id="des-wrapper">
299  <div class="des-rwrapper">
300  <?php if($left_widgets): ?>
301  <div id="des-lblocks">
302  <?php foreach($left_widgets as $widget): ?>
303  <div class="des_widget_wrapper">
304  <div class="des_widget_title dark_bg overlay_bg dark_border dark_clear_text"><span<?php echo isset($widget['icon']) && $widget['icon']!='' ? ' style="background-image: url('.$widget['icon'].'); padding-left: 26px;"' : ''; ?>><?php echo $widget['title']; ?></span></div>
305  <div class="des_widget_content"><?php echo $widget['content']; ?></div>
306  </div>
307  <?php endforeach; ?>
308  </div>
309  <?php endif; ?>
310  <div id="des-content">
311  <?php echo $content; ?>
312  <div class=clearer></div>
313  </div>
314  <?php if($right_widgets): ?>
315  <div id="des-rblocks">
316  <?php foreach($right_widgets as $widget): ?>
317  <div class="des_widget_wrapper">
318  <div class="des_widget_title dark_bg overlay_bg"><span<?php echo isset($widget['icon']) && $widget['icon']!='' ? ' style="background-image: url('.$widget['icon'].'); padding-left: 26px;"' : ''; ?>><?php echo $widget['title']; ?></span></div>
319  <div class="des_widget_content"><?php echo $widget['content']; ?></div>
320  </div>
321  <?php endforeach; ?>
322  </div>
323  <?php endif; ?>
324  </div>
325  </div>
326  </div>
327  <!--// The content -->
328  </div>
329 
330  <!-- Footer -->
331  <div id="des-footer">
332  <?php echo sprintf(__('Powered by %s.','designia'), '<a href="http://xoops.org">'.XOOPS_VERSION.'</a>'); ?>
333  <?php echo sprintf(__('Reloaded by %s.','designia'), '<a href="http://www.redmexico.com.mx/w/common-utilities/">'.RMUtilities::get()->getVersion(true, 'rmcommon').'</a>'); ?>
334  <br />
335  <?php echo sprintf(__('Using %s.','designia'), '<strong>Designia Theme</strong>'); ?>
336 
337  <!--{xo-logger-output}-->
338 
339  </div>
340  <!--// Footer -->
341 
342  <span id="xtoken"><?php echo $xoopsSecurity->createToken(); ?></span>
343  <div class="width_maintainer">&nbsp;</div>
344  <script>
345  $(window).load(function() {
346  $("#des-nav-modules").mCustomScrollbar("horizontal",400,"easeOutCirc",0.05,"fixed","yes","yes",10);
347  });
348  </script>
349  <script type="text/javascript" src="<?php echo $rm_theme_url; ?>/js/jquery.mCustomScrollbar.js"></script>
350  </body>
351 </html>