XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
theme.php
Go to the documentation of this file.
1 <!DOCTYPE HTML>
2 <html lang="<?php echo $rmc_config['lang']; ?>">
3  <head>
4  <meta charset="utf-8">
5  <?php
6 
7  !defined('RMCLOCATION') ? define('RMCLOCATION', '') : true;
8  !defined('RMCSUBLOCATION') ? define('RMCSUBLOCATION', '') : true;
9 
10  foreach ($this->tpl_styles as $style){
11  echo '<link rel="stylesheet" type="text/css" media="'.$style['media'].'" href="'.$style['url'].'"'.($style['more']!=''?' '.$style['more']:'').' />'."\n";
12  }
13 
14  foreach ($this->tpl_scripts as $script){
15  echo '<script type="'.$script['type'].'" src="'.$script['url'].'"></script>'."\n";
16  }
17 
18  echo $this->head_scripts();
19 
20  foreach ($this->tpl_head as $head){
21  echo $head."\n";
22  }
23 
24  include_once 'include/xoops_metas.php';
25  ?>
26  <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>
27  </head>
28  <body>
29  <!-- Menu bar -->
30  <div class="navbar navbar-inverse navbar-fixed-top" id="xo-menubar">
31  <div class="navbar-inner">
32  <div class="container-fluid">
33  <a class="brand" href="<?php echo RMCURL; ?>"><img src="<?php echo TWOP6_URL; ?>/images/logo.png" alt="<?php _e('XOOPS','twop6'); ?>" /></a>
34  <ul class="nav">
35 
36  <?php if($this->get_menus()): ?>
37  <li class="dropdown active">
38  <a class="dropdown-toggle" data-toggle="dropdown" href="<?php echo XOOPS_URL; ?>/modules/<?php echo $xoopsModule->dirname(); ?>/<?php echo $xoopsModule->getInfo('adminindex'); ?>">
39  <?php echo $xoFunc->moduleIcon($xoopsModule->dirname(), '16'); ?>
40  <?php echo $xoopsModule->name(); ?>
41  <b class="caret"></b>
42  </a>
43 
44  <ul class="dropdown-menu">
45  <?php foreach($this->get_menus() as $menu): ?>
46  <?php if($menu['icon']=='option'): ?>
47  <li class="divider"></li>
48  <?php endif; ?>
49  <li<?php if(isset($menu['options']) && !empty($menu['options'])): ?> class="dropdown-submenu"<?php endif; ?>>
50  <a href="<?php echo $menu['link']; ?>"<?php if(isset($menu['options']) && !empty($menu['options'])): ?> tabindex="-1"<?php endif; ?>>
51  <?php if((empty($menu['icon']) || $menu['icon']=='') && (!empty($menu['class']) && $menu['class']!='')): ?>
52  <i class="<?php echo $menu['class']; ?>"></i>
53  <?php else: ?>
54  <i class="xo-icon<?php echo $menu['icon']=='option' ? ' xicon-settings' : ''; ?>"<?php if($menu['icon']!='' && $menu['icon']!=='option'): ?> style="background-image: url(<?php echo $menu['icon']; ?>); background-size: 16px 16px;"<?php endif; ?>></i>
55  <?php endif; ?>
56  <?php echo $menu['title']; ?>
57  </a>
58  <?php if($menu['options']): ?>
59  <ul class="dropdown-menu">
60  <?php foreach($menu['options'] as $sub): ?>
61  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
62  <?php endforeach; ?>
63  </ul>
64  <?php endif; ?>
65  </li>
66  <?php endforeach; ?>
67  </ul>
68  </li>
69  <?php endif; ?>
70 
71  <li class="dropdown<?php if($xoopsModule->dirname()=='rmcommon'): ?> active<?php endif; ?>">
72  <a href="<?php echo RMCURL; ?>" class="dropdown-toggle" data-toggle="dropdown">
73  <i class="xo-icon xicon-cu"></i> <?php _e('Common Utilities','twop6'); ?>
74  <b class="caret"></b>
75  </a>
76  <ul class="dropdown-menu">
77  <?php foreach($rmcommon_menu as $menu): ?>
78  <?php if(isset($menu['type'])): ?>
79  <li class="divider"></li>
80  <?php endif; ?>
81  <li<?php if(isset($menu['options'])): ?> class="dropdown-submenu"<?php endif; ?>>
82  <a href="<?php echo $menu['link']; ?>"<?php if(isset($menu['options'])): ?> tabindex="-1"<?php endif; ?>>
83  <?php echo $xoFunc->getIcon($menu); ?>
84  <?php echo $menu['title']; ?>
85  </a>
86  <?php if(isset($menu['options'])): ?>
87  <ul class="dropdown-menu">
88  <?php foreach($menu['options'] as $sub): ?>
89  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
90  <?php endforeach; ?>
91  </ul>
92  <?php endif; ?>
93  </li>
94  <?php endforeach; ?>
95  </ul>
96  </li>
97  <li class="dropdown<?php if($xoopsModule->dirname()=='system'): ?> active<?php endif; ?>">
98  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
99  <i class="xo-icon xicon-gear"></i>
100  <?php _e('System','twop6'); ?>
101  <b class="caret"></b>
102  </a>
103  <ul class="dropdown-menu">
104  <?php foreach($system_menu as $menu): ?>
105  <?php if(isset($menu['type'])): ?>
106  <li class="divider"></li>
107  <?php endif; ?>
108  <li<?php if(isset($menu['options'])): ?> class="dropdown-submenu"<?php endif; ?>>
109  <a href="<?php echo $menu['link']; ?>"<?php if(isset($menu['options'])): ?> tabindex="-1"<?php endif; ?>>
110  <?php echo $xoFunc->getIcon($menu); ?>
111  <?php echo $menu['title']; ?>
112  </a>
113  <?php if(isset($menu['options'])): ?>
114  <ul class="dropdown-menu">
115  <?php foreach($menu['options'] as $sub): ?>
116  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
117  <?php endforeach; ?>
118  </ul>
119  <?php endif; ?>
120  </li>
121  <?php endforeach; ?>
122  </ul>
123  </li>
124  <?php if($other_menu): ?>
125  <li class="dropdown">
126  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
127  <i class="xo-icon xicon-gear"></i>
128  <?php _e('Theme','twop6'); ?>
129  <b class="caret"></b>
130  </a>
131  <ul class="dropdown-menu">
132  <?php foreach($other_menu as $menu): ?>
133  <?php if(isset($menu['type'])): ?>
134  <li class="divider"></li>
135  <?php endif; ?>
136  <li<?php if(isset($menu['options'])): ?> class="dropdown-submenu"<?php endif; ?>>
137  <a href="<?php echo $menu['link']; ?>"<?php if(isset($menu['options'])): ?> tabindex="-1"<?php endif; ?>>
138  <?php echo $xoFunc->getIcon($menu); ?>
139  <?php echo $menu['title']; ?>
140  </a>
141  <?php if(isset($menu['options'])): ?>
142  <ul class="dropdown-menu">
143  <?php foreach($menu['options'] as $sub): ?>
144  <li><a href="<?php echo $sub['link']; ?>"><?php echo $sub['title']; ?></a></li>
145  <?php endforeach; ?>
146  </ul>
147  <?php endif; ?>
148  </li>
149  <?php endforeach; ?>
150  </ul>
151  </li>
152  <?php endif; ?>
153 
154  <li>
155  <a href="#" id="xo-showmodules" title="<?php _e('Modules Box','twop6'); ?>">
156  <i class="xo-icon xicon-modules"></i>
157  <?php _e('Modules','twop6'); ?>
158  </a>
159  </li>
160  </ul>
161  <form class="navbar-search pull-left" action="">
162  <input class="search-query span2" type="text" placeholder="<?php _e('Go to...','twop6'); ?>" />
163  </form>
164 
165  <ul class="nav pull-right">
166  <li class="dropdown">
167  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
168  <i class="xo-icon xicon-ray"></i>
169  <?php _e('Quick Links','rmcommon'); ?>
170  <b class="caret"></b>
171  </a>
172  <ul class="dropdown-menu">
173  <?php if($this->help()): ?>
174  <li class="dropdown-submenu">
175  <a href="#" tabindex="-1" onclick="return false;">
176  <i class="xo-icon xicon-faq"></i>
177  <?php _e('Help','rmcommon'); ?>
178  </a>
179  <ul class="dropdown-menu">
180  <?php foreach($this->help() as $help): ?>
181  <li>
182  <a href="<?php echo $help['link']; ?>" class="help_button rm_help_button" style="background-image: url(<?php echo TWOP6_URL; ?>/images/help.png);" target="_blank" title="<?php echo $help['caption']; ?>"><?php echo $help['caption']; ?></a>
183  </li>
184  <?php endforeach; ?>
185  </ul>
186  </li>
187  <li class="divider"></li>
188  <?php endif; ?>
189  <?php if($xoopsModule->getInfo('social')): ?>
190  <li class="dropdown-submenu">
191  <a href="#" tabindex="-1" onclick="return false;">
192  <i class="xo-icon xicon-world"></i>
193  <?php _e('Social Links','rmcommon'); ?>
194  </a>
195  <ul class="dropdown-menu">
196  <?php foreach($xoopsModule->getInfo('social') as $net): ?>
197  <li class="nav_item">
198  <a href="<?php echo $net['url']; ?>" target="_blank"><?php echo $net['title']; ?></a>
199  </li>
200  <?php endforeach; ?>
201  </ul>
202  </li>
203  <?php endif; ?>
204  <li>
205  <a href="<?php echo RMCURL; ?>">
206  <i class="xo-icon xicon-cp"></i>
207  <?php _e('Control Panel','twop6'); ?>
208  </a>
209  </li>
210  <li>
211  <a href="<?php echo XOOPS_URL; ?>" target="_blank">
212  <i class="xo-icon xicon-home"></i>
213  <?php _e('View Home Page','twop6'); ?>
214  </a>
215  </li>
216  <li class="divider"></li>
217  <li>
218  <a href="http://www.xoops.org" target="_blank">
219  <i class="xo-icon xicon-xoops"></i>
220  XOOPS.org
221  </a>
222  </li>
223  <li>
224  <a href="http://www.xoopsmexico.net" target="_blank">
225  <i class="xo-icon xicon-xm"></i>
226  XOOPSMexico.net
227  </a>
228  </li>
229  <li class="divider"></li>
230  <li>
231  <a href="<?php echo RMCURL; ?>/?twop6=about">
232  <i class="xo-icon xicon-idea"></i>
233  <?php _e('About Two·Six','twop6'); ?>
234  </a>
235  </li>
236  </ul>
237  </li>
238  </ul>
239 
240  <!-- Updates notifier -->
241  <a href="<?php echo RMCURL; ?>/updates.php" class="pull-right xo-upd-notifier"><?php echo sprintf(__('%s updates available','twop6'), '<span class="badge badge-warning">%s</span>'); ?></a>
242  </div>
243  </div>
244  </div>
245  <!-- End menu bar //-->
246 
247  <!-- Toolbar with menus -->
248  <div class="navbar navbar-fixed-top xo-bluebar" id="xo-toolbar">
249  <div class="navbar-inner">
250  <div class="container-fluid">
251  <a href="<?php echo XOOPS_URL; ?>/modules/<?php echo $xoopsModule->dirname(); ?>/<?php echo $xoopsModule->getInfo('adminindex'); ?>" class="brand"><?php echo $xoopsModule->name(); ?></a>
252  <?php
253  if($xoopsModule->dirname()=='rmcommon')
255  elseif($xoopsModule->dirname()=='system')
256  $menus =& $system_menu;
257  else
258  $menus = $this->get_menus();
259  ?>
260  <ul class="nav pull-right">
261  <?php foreach($menus as $menu): ?>
262  <li class="divider-vertical"></li>
263  <li<?php if(isset($menu['options']) && $menu['options']): ?> class="dropdown"<?php endif; ?>>
264  <a href="<?php echo $menu['link']; ?>" rel="tooltip" title="<?php echo $menu['title']; ?>"<?php if(isset($menu['options']) && $menu['options']): ?> class="dropdown-toggle" data-toggle="dropdown"<?php endif; ?>>
265  <?php echo $xoFunc->getIcon($menu); ?>
266  <?php if(isset($menu['options']) && $menu['options']): ?><b class="caret"></b><?php endif; ?>
267  </a>
268  <?php if(isset($menu['options']) && $menu['options']): ?>
269  <ul class="dropdown-menu">
270  <?php foreach($menu['options'] as $sub): ?>
271  <li><a href="<?php echo $sub['link']; ?>"><?php echo $xoFunc->getIcon($sub); ?><?php echo $sub['title']; ?></a></li>
272  <?php endforeach; ?>
273  </ul>
274  <?php endif; ?>
275  </li>
276  <?php endforeach; ?>
277  </ul>
278  </div>
279  </div>
280  </div>
281  <!-- End toolbar with menus //-->
282 
283  <!-- rmcommon toolbar -->
284  <?php if($this->get_toolbar()): ?>
285  <div class="container-fluid">
286  <nav class="navbar" id="rmc-toolbar">
287  <div class="navbar-inner">
288  <ul class="nav">
289  <?php foreach($this->get_toolbar() as $menu): ?>
290  <li<?php echo $menu['location']==RMCSUBLOCATION ? ' class = "active"' : ($menu['location']==RMCLOCATION ? ' class="active"' : ''); ?>>
291  <a href="<?php echo $menu['link']; ?>">
292  <?php if($menu['icon']): ?><i class="xo-icon" style="background-image: url(<?php echo $menu['icon']; ?>);"></i><?php endif; ?>
293  <?php echo $menu['title']; ?>
294  </a>
295  </li>
296  <li class="divider-vertical"></li>
297  <?php endforeach; ?>
298  </ul>
299  </div>
300  </nav>
301  </div>
302  <?php endif; ?>
303  <!-- End rmcommon toolbar //-->
304 
305  <!-- System messages -->
306  <?php foreach($rmc_messages as $message): ?>
307  <div class="container-fluid">
308  <div class="alert <?php echo $tp6Alerts[$message['level']]; ?>"<?php if($message['level']>4 && $message['icon']!=''): ?> style="background-image: url(<?php echo $message['icon']; ?>);"<?php endif; ?>>
309  <button type="button" class="close" data-dismiss="alert">×</button>
310  <?php echo html_entity_decode($message['text']); ?>
311  </div>
312  </div>
313  <?php endforeach; ?>
314  <!-- End system messages //-->
315 
316  <!-- Content -->
317  <div class="container-fluid" id="xo-content">
318  <div class="row-fluid">
319  <?php if($left_widgets): ?>
320  <aside class="span2">
321  <?php foreach($left_widgets as $widget): ?>
322  <div class="xo-widget">
323  <h3 class="xo-blackbar">
324  <?php echo isset($widget['icon']) && $widget['icon']!='' ? ' <i class="xo-icon" style="background-image: url('.$widget['icon'].');"></i> ' : ''; ?>
325  <?php echo $widget['title']; ?>
326  </h3>
327  <div class="xo-widget-content"><?php echo $widget['content']; ?></div>
328  </div>
329  <?php endforeach; ?>
330  </aside>
331  <?php endif; ?>
332 
333  <div class="span<?php echo $tp6Span; ?>">
334  <div id="xo-contents">
335  <?php echo $content; ?>
336  </div>
337  </div>
338 
339  <?php if($right_widgets): ?>
340  <aside class="span3">
341  <?php foreach($right_widgets as $widget): ?>
342  <?php if(!isset($widget['title']) && !isset($widget['content'])) continue; ?>
343  <div class="xo-widget">
344  <h3 class="xo-blackbar">
345  <?php echo isset($widget['icon']) && $widget['icon']!='' ? ' <i class="xo-icon" style="background-image: url('.$widget['icon'].');"></i> ' : ''; ?>
346  <?php echo $widget['title']; ?>
347  </h3>
348  <div class="xo-widget-content"><?php echo $widget['content']; ?></div>
349  </div>
350  <?php endforeach; ?>
351  </aside>
352  <?php endif; ?>
353  </div>
354  </div>
355  <!-- End content //-->
356 
357  <!-- Footer -->
358  <div class="container-fluid xo-footer">
359  <hr>
360  <footer class="row-fluid">
361  <div class="span6">
362  <?php echo sprintf(__('Powered by %s.','twop6'), '<a href="http://www.xoops.org">'.XOOPS_VERSION.'</a>'); ?>
363  <?php echo sprintf(__('Reloaded by %s.','twop6'), '<a href="http://www.xoopsmexico.net">Common Utilities '.RMCVERSION.'</a>'); ?>
364  </div>
365  <div class="span6 xo-foot-links">
366  <ul>
367  <li><a href="http://www.xoops.org">XOOPS</a></li>
368  <li><a href="http://www.xoopsmexico.net">Xoops Mexico</a></li>
369  <li><a href="http://www.redmexico.com.mx">Red Mexico</a></li>
370  </ul>
371  </div>
372  </footer>
373  <hr>
374  </div>
375  <!-- End footer //-->
376 
377  <?php if($xoopsConfig['debug_mode']==1): ?>
378  <div class="container-fluid">
379  <div class="well"><!--{xo-logger-output}--></div>
380  </div>
381  <?php endif; ?>
382  </body>
383 </html>