欢迎访问 舍力博客(www.shuyong.net)
<form action="widgets.php?action=compages" method="post" class="form-inline"> 此处内容省略,对照源文件即可... </form>,用下面代码代码替换即可(请先备份,以防万一)
<form action="widgets.php?action=compages" method="post" class="form-inline"> <div class="panel-body"> <div class="panel-group adm_widget_box" id="sortable"> <?php if($tpl_sidenum > 1):?> <p><select id="wg_select"><?php for($i=1;$i<=$tpl_sidenum;$i++):if($i==$wgNum):?><option value="<?php echo $i;?>" selected>侧边栏<?php echo $i;?></option><?php else:?><option value="<?php echo $i;?>">侧边栏<?php echo $i;?></option><?php endif;endfor;?></select></p> <?php endif;?> <?php foreach ($widgets as $widget): $flg = strpos($widget, 'custom_wg_') === 0 ? true : false; //是否为自定义组件 $title = ($flg && isset($custom_widget[$widget]['title'])) ? $custom_widget[$widget]['title'] : ''; //获取自定义组件标题 if($flg && empty($title)){ preg_match("/^custom_wg_(d+)/", $widget, $matches); $title = '未命名组件('.$matches[1].')'; }?> <?php if($widgetTitle[$widget]){?> <div class="panel panel-default active_widget" id="em_<?php echo $widget; ?>" style="cursor:move;"> <div class="panel-heading"> <input type="hidden" name="widgets[]" value="<?php echo $widget; ?>" /> <h4 class="panel-title"><?php if($flg){echo $title;}else{echo $widgetTitle[$widget];}?></h4> </div> </div> <?php }endforeach; ?> </div> </div> <input type="hidden" name="wgnum" id="wgnum" value="<?php echo $wgNum; ?>" /> <div style="margin:20px 40px;"><input type="submit" value="保存组件排序" class="btn btn-primary" /> <a href="javascript:em_confirm(0, 'reset_widget', '<?php echo LoginAuth::genToken(); ?>');" class="btn btn-danger" >恢复出厂设置</a></div> </form>
留言/评论:◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。