function getPT() { global $mo_plugin, $mo_theme, $mo_theme_floder, $mo_theme_file; $mo_theme = mo_get_option('theme'); $plugin = mo_get_option('plugin'); $plugin_floder = MOCON . 'plugin/'; $mo_theme_floder = MOCON . "theme/{$mo_theme}/"; $mo_theme_file = $mo_theme_floder . "{$mo_theme}.php"; if ($plugin) { foreach ($plugin as $now) { if (is_dir(file_exists("{$plugin_floder}{$now}/{$now}.php"))) { $mo_plugin[] = "{$plugin_floder}{$now}/{$now}.php"; } } } if (!file_exists($mo_theme_file)) { $mo_theme_file = ''; } }
<div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-ex-collapse"> <span class="sr-only"> Toggle navigation </span> <span class="icon-bar"> </span> <span class="icon-bar"> </span> <span class="icon-bar"> </span> </button> <a class="navbar-brand" href="/mo-admin/"> <?php echo mo_get_option('site_name'); ?> - 管理后台 </a> </div> <div class="collapse navbar-collapse" id="navbar-ex-collapse"> <ul class="nav navbar-nav"> <li<?php $active == 'overview' ? print ' class="active"' : 0; ?> > <a href="index.php"> 概览 </a> </li> <li<?php