-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathside.php
More file actions
26 lines (23 loc) · 781 Bytes
/
side.php
File metadata and controls
26 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* 侧边栏
*
* 可通过 $widgets_exist['sort']['exists'] 检测侧边栏组件是否存在
* 然后通过 require_once View::getView('modules/sort') 加载
*
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
?>
<div class="col m12 l3 hide-on-med-and-down">
<div class="row">
<?php for ($w=0; $w < count($widgets_arr); $w++):?>
<?php $widget_name = $widgets_arr[$w];?>
<?php if (file_exists(TEMPLATE_PATH.'modules/'.$widget_name.'.php')):?>
<div class="col s12 m4 l12 z-depth-1 hoverable side-widgets">
<?php require_once View::getView('modules/'.$widget_name);?>
</div>
<?php endif;?>
<?php endfor;?>
</div>
<?php doAction('diff_side');?>
</div>