コード例 #1
0
          </li>
          <?php 
}
?>
          <?php 
if (empty($_SERVER['REMOTE_USER'])) {
    ?>
          <li>
            <span class="dw__actions">
              <?php 
    echo _tpl_action_item('register', 'glyphicon glyphicon-edit', true);
    if ($showLoginLink) {
        echo _tpl_action_item('login', 'glyphicon glyphicon-log-in', true);
    }
    ?>
            </span>
          </li>
          <?php 
} else {
    echo _tpl_action_item('login', 'glyphicon glyphicon-log-out');
}
?>
        </ul>

      </div>

    </div>
  </div>
</nav>
コード例 #2
0
$customTheme = tpl_getConf('customTheme');
$bootswatchTheme = tpl_getConf('bootswatchTheme');
$pageOnPanel = tpl_getConf('pageOnPanel');
$fluidContainer = tpl_getConf('fluidContainer');
$showPageInfo = tpl_getConf('showPageInfo');
$showBadges = tpl_getConf('showBadges');
$semantic = tpl_getConf('semantic');
$schemaOrgType = tpl_getConf('schemaOrgType');
$leftSidebarGrid = tpl_getConf('leftSidebarGrid');
$rightSidebarGrid = tpl_getConf('rightSidebarGrid');
$contentGrid = _tpl_get_container_grid();
$hideInThemeSwitcher = explode(',', tpl_getConf('hideInThemeSwitcher'));
$bootstrapStyles = array();
$tplConfigJSON = array('tableFullWidth' => (int) tpl_getConf('tableFullWidth'));
// Tools Menu
$tools = array('user' => array('icon' => 'glyphicon glyphicon-user', 'items' => array('admin' => _tpl_action_item('admin', 'glyphicon glyphicon-cog'), 'profile' => _tpl_action_item('profile', 'glyphicon glyphicon-refresh'))), 'site' => array('icon' => 'glyphicon glyphicon-cog', 'items' => array('recent' => _tpl_action_item('recent', 'glyphicon glyphicon-list-alt'), 'media' => _tpl_action_item('media', 'glyphicon glyphicon-picture'), 'index' => _tpl_action_item('index', 'glyphicon glyphicon-list'))), 'page' => array('icon' => 'glyphicon glyphicon-file', 'items' => array('edit' => _tpl_action_item('edit', 'glyphicon glyphicon-edit'), 'discussion' => _tpl_action_item('discussion', 'glyphicon glyphicon-comment'), 'revert' => _tpl_action_item('revert', 'glyphicon glyphicon-repeat'), 'revisions' => _tpl_action_item('revisions', 'glyphicon glyphicon-time'), 'backlink' => _tpl_action_item('backlink', 'glyphicon glyphicon-link'), 'subscribe' => _tpl_action_item('subscribe', 'glyphicon glyphicon-bookmark'), 'top' => _tpl_action_item('top', 'glyphicon glyphicon-chevron-up'))));
if ($showThemeSwitcher && $bootstrapTheme == 'bootswatch') {
    if (get_doku_pref('bootswatchTheme', null) !== null && get_doku_pref('bootswatchTheme', null) !== '') {
        $bootswatchTheme = get_doku_pref('bootswatchTheme', null);
    }
    global $INPUT;
    if ($INPUT->str('bootswatchTheme')) {
        $bootswatchTheme = $INPUT->str('bootswatchTheme');
        set_doku_pref('bootswatchTheme', $bootswatchTheme);
    }
}
switch ($bootstrapTheme) {
    case 'optional':
        $bootstrapStyles[] = DOKU_TPL . 'assets/bootstrap/css/bootstrap.min.css';
        $bootstrapStyles[] = DOKU_TPL . 'assets/bootstrap/css/bootstrap-theme.min.css';
        break;