当前位置: 首页>>代码示例>>PHP>>正文


PHP bootstrap3_conf函数代码示例

本文整理汇总了PHP中bootstrap3_conf函数的典型用法代码示例。如果您正苦于以下问题:PHP bootstrap3_conf函数的具体用法?PHP bootstrap3_conf怎么用?PHP bootstrap3_conf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bootstrap3_conf函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: resolve_pageid

 * DokuWiki Bootstrap3 Template: Footer page
 *
 * @link     http://dokuwiki.org/template:bootstrap3
 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
$footer_page = 'footer';
resolve_pageid('', $footer_page, $footer_page_exists);
if ($footer_page_exists) {
    ?>
<div id="dw__footer" class="navbar <?php 
    echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default';
    ?>
 navbar-fixed-bottom">
  <div class="container<?php 
    echo $fluidContainer ? '-fluid' : '';
    ?>
">
    <div class="navbar-text">
      <?php 
    tpl_include_page($footer_page, 1, 1);
    ?>
    </div>
  </div>
</div>
<?php 
}
开发者ID:vierbergenlars,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_footer.php

示例2: tpl_includeFile

<!-- ********** ASIDE ********** -->
<aside id="<?php 
echo $sidebar_id;
?>
" class="dw__sidebar <?php 
echo $sidebar_class;
?>
 hidden-print small">
  <div class="dw-sidebar-content">
    <div class="dw-sidebar-title hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php 
echo $sidebar_id;
?>
 .dw-sidebar-body">
      <i class="fa fa-fw fa-th-list"></i> <?php 
echo $lang['sidebar'];
?>
    </div>
    <div class="dw-sidebar-body collapse in">
      <?php 
tpl_includeFile($sidebar_header);
?>
      <?php 
bootstrap3_sidebar(tpl_include_page($sidebar_page, 0, 1, bootstrap3_conf('useACL')));
?>
      <?php 
tpl_includeFile($sidebar_footer);
?>
    </div>
  </div>
</aside>
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:30,代码来源:tpl_sidebar.php

示例3: list

<?php

/**
 * DokuWiki Bootstrap3 Template: Translation Plugin
 *
 * @link     http://dokuwiki.org/template:bootstrap3
 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
if (bootstrap3_conf('showTranslation') && ($translation = plugin_load('helper', 'translation'))) {
    if ($translation->istranslatable($INFO['id'])) {
        $translation->checkage();
        list($lc, $idpart) = $translation->getTransParts($INFO['id']);
        $trans_items = '';
        $trans_label = $translation->getLang('translations');
        foreach ($translation->translations as $trans) {
            $trans_items .= str_replace(array('<div class="li">', '</div>'), '', $translation->getTransItem($trans, $idpart));
        }
        ?>
<ul class="nav navbar-nav" id="dw__translation">
  <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" title="<?php 
        echo $trans_label;
        ?>
">
      <i class="fa fa-fw fa-flag"></i> <span class="hidden-lg hidden-md hidden-sm"><?php 
        echo $trans_label;
开发者ID:qswks,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_translation.php

示例4: bootstrap3_conf

if (!defined('DOKU_INC')) {
    die;
}
if (bootstrap3_conf('showCookieLawBanner') && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) {
    $cookie_policy_page_id = bootstrap3_conf('cookieLawPolicyPage');
    $cookie_banner_page_id = bootstrap3_conf('cookieLawBannerPage');
    resolve_pageid('', $cookie_policy_page_id, $cookie_policy_page_exists);
    ?>
<div id="cookieNotice" class="navbar <?php 
    echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default';
    ?>
 navbar-fixed-bottom">
  <div class="container">
    <div class="navbar-text navbar-left">
    <?php 
    $cookie_banner_page = tpl_include_page($cookie_banner_page_id, 0, 1, bootstrap3_conf('useACL'));
    $cookie_banner_page = preg_replace('/<p>\\n(.*?)\\n<\\/p>/', '<i class="fa fa-info-circle text-primary"></i> $1', $cookie_banner_page);
    echo $cookie_banner_page;
    ?>
    </div>
    <div class="navbar-right">
      <button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button>
      <?php 
    if ($cookie_policy_page_exists) {
        tpl_link(wl($cookie_policy_page_id), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"');
    }
    ?>
    </div>
  </div>
</div>
<script type="text/javascript">
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_cookielaw.php

示例5: bootstrap3_conf

 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
if (($ACT == 'show' || defined('DOKU_MEDIADETAIL')) && bootstrap3_conf('showPageIcons')) {
    global $ID;
    $page_icons = bootstrap3_conf('pageIcons');
    $social_share = in_array('social-share', $page_icons);
    $social_share_providers = bootstrap3_conf('socialShareProviders');
    $help_page = false;
    $help_title = null;
    if (in_array('help', $page_icons)) {
        $help_page = page_findnearest('help', bootstrap3_conf('useACL'));
        $help_title = hsc(p_get_first_heading($help_page));
    }
    ?>
<div class="dw-page-icons pull-right hidden-print">

  <ul class="list-inline pull-right">
    <?php 
    if (in_array('feed', $page_icons)) {
        ?>
    <li>
      <a href="<?php 
        echo DOKU_URL . 'feed.php';
        ?>
" title="<?php 
        echo $lang['btn_recent'];
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_page_icons.php

示例6: foreach

<?php

/**
 * DokuWiki Bootstrap3 Template: Theme Switcher
 *
 * @link     http://dokuwiki.org/template:bootstrap3
 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
if (bootstrap3_conf('showThemeSwitcher')) {
    ?>
<!-- theme-switcher -->
<ul class="nav navbar-nav" id="dw__themes">
  <li class="dropdown">

    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-tint"></i> <span class="hidden-lg hidden-md hidden-sm"><?php 
    echo tpl_getLang('themes');
    ?>
</span> <span class="caret"></span></a>

    <ul class="dropdown-menu" aria-labelledby="themes">
      <li class="dropdown-header"><i class="fa fa-fw fa-tint"></i> Bootswatch Themes</li>
      <?php 
    foreach (bootstrap3_bootswatch_themes_available() as $theme) {
        ?>
      <li<?php 
        echo $bootswatchTheme == $theme ? ' class="active"' : '';
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_theme_switcher.php

示例7: bootstrap3_conf

$semantic = bootstrap3_conf('semantic');
$schemaOrgType = bootstrap3_conf('schemaOrgType');
$leftSidebarGrid = bootstrap3_conf('leftSidebarGrid');
$rightSidebarGrid = bootstrap3_conf('rightSidebarGrid');
$showLandingPage = bootstrap3_conf('showLandingPage');
$hideInThemeSwitcher = bootstrap3_conf('hideInThemeSwitcher');
$useLocalBootswatch = bootstrap3_conf('useLocalBootswatch');
$contentGrid = bootstrap3_container_grid();
$bootstrapStyles = array();
$tplConfigJSON = array('tableFullWidth' => (int) bootstrap3_conf('tableFullWidth'), 'tableStyle' => bootstrap3_conf('tableStyle'), 'tagsOnTop' => (int) bootstrap3_conf('tagsOnTop'), 'useAnchorJS' => (int) bootstrap3_conf('useAnchorJS'));
$JSINFO['bootstrap3'] = $tplConfigJSON;
if ($fluidContainerBtn) {
    $fluidContainer = bootstrap3_fluid_container_button();
}
// Display a landing page (set the pageOnPanel and showSidebar config to "off")
if ($showLandingPage && (bool) preg_match_all(bootstrap3_conf('landingPages'), $ID)) {
    $showSidebar = false;
    $pageOnPanel = false;
}
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':
开发者ID:qswks,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_global.php

示例8: bootstrap3_is_fluid_navbar

function bootstrap3_is_fluid_navbar()
{
    $fluid_container = bootstrap3_is_fluid_container();
    $fixed_top_nabvar = bootstrap3_conf('fixedTopNavbar');
    return $fluid_container || $fluid_container && !$fixed_top_nabvar || !$fluid_container && !$fixed_top_nabvar;
}
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:6,代码来源:tpl_functions.php

示例9: dirname

<?php

/**
 * DokuWiki Bootstrap3 Template: Badges
 *
 * @link     http://dokuwiki.org/template:bootstrap3
 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
if (bootstrap3_conf('showBadges')) {
    $target = $conf['target']['extern'] ? 'target="' . $conf['target']['extern'] . '"' : '';
    $dw_path = dirname(tpl_basedir());
    ?>
<div class="text-center hidden-print">
  <p id="dw__badges">
    <?php 
    tpl_license('button', true, false, false);
    // license button, no wrapper
    ?>
    <a href="http://getbootstrap.com" title="Built with Bootstrap 3" <?php 
    echo $target;
    ?>
>
      <img src="<?php 
    echo tpl_basedir();
    ?>
images/button-bootstrap3.png" width="80" height="15" alt="Built with Bootstrap 3" />
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_badges.php

示例10: sprintf

          <?php 
}
?>

          <?php 
if (empty($_SERVER['REMOTE_USER'])) {
    ?>
          <li>
            <span class="dw__actions dw-action-icon">
              <?php 
    $register_label = sprintf('<span class="%s">%s</span>', in_array('register', $navbar_labels) ? null : 'sr-only', $lang['btn_register']);
    $login_label = sprintf('<span class="%s">%s</span>', in_array('login', $navbar_labels) ? null : 'sr-only', $lang['btn_login']);
    $register_btn = tpl_actionlink('register', null, null, $register_label, true);
    $register_btn = str_replace('action', 'action btn btn-success navbar-btn', $register_btn);
    echo $register_btn;
    if (!bootstrap3_conf('hideLoginLink')) {
        $login_btn = tpl_actionlink('login', null, null, $login_label, true);
        $login_btn = str_replace('action', 'action btn btn-default navbar-btn', $login_btn);
        echo $login_btn;
    }
    ?>
            </span>
          </li>
          <?php 
}
?>

        </ul>

        <?php 
include_once dirname(__FILE__) . '/tpl_user_menu.php';
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_navbar.php

示例11: bootstrap3_fluid_container_button

/**
 * Check if the fluid container button is enabled (from the user cookie)
 *
 * @author  Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 *
 * @return  boolean
 */
function bootstrap3_fluid_container_button()
{
    if (!bootstrap3_conf('fluidContainerBtn')) {
        return false;
    }
    if (get_doku_pref('fluidContainer', null) !== null && get_doku_pref('fluidContainer', null) !== '' && get_doku_pref('fluidContainer', null) !== '0') {
        return true;
    }
    return false;
}
开发者ID:qswks,项目名称:dokuwiki-template-bootstrap3,代码行数:17,代码来源:tpl_functions.php

示例12: bootstrap3_conf

        $bootstrap_styles[] = DOKU_TPL . 'assets/bootstrap/css/bootstrap-theme.min.css';
        break;
    case 'custom':
        $bootstrap_styles[] = $customTheme;
        break;
    case 'bootswatch':
        $url = bootstrap3_conf('useLocalBootswatch') ? DOKU_TPL . 'assets/bootswatch' : '//maxcdn.bootstrapcdn.com/bootswatch/3.3.6';
        $bootstrap_styles[] = "{$url}/{$bootswatch_theme}/bootstrap.min.css";
        break;
    case 'default':
    default:
        $bootstrap_styles[] = DOKU_TPL . 'assets/bootstrap/css/bootstrap.min.css';
        break;
}
$navbar_padding = 20;
if (bootstrap3_conf('fixedTopNavbar')) {
    if ($bootstrapTheme == 'bootswatch') {
        // Set the navbar height for all Bootswatch Themes (values from bootswatch/*/_variables.scss)
        switch ($bootswatchTheme) {
            case 'simplex':
            case 'superhero':
                $navbar_height = 40;
                break;
            case 'yeti':
                $navbar_height = 45;
                break;
            case 'cerulean':
            case 'cosmo':
            case 'custom':
            case 'cyborg':
            case 'lumen':
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_global.php

示例13: bootstrap3_tools_menu

    die;
}
if (bootstrap3_conf('showTools')) {
    $all_tools = bootstrap3_tools_menu();
    foreach (bootstrap3_conf('showIndividualTool') as $tool) {
        if ($dropdown = bootstrap3_toolsevent($tool . 'tools', $all_tools[$tool]['menu'], 'main', true)) {
            $tools[$tool] = $all_tools[$tool];
            $tools[$tool]['dropdown'] = $dropdown;
        }
    }
    ?>

<ul class="nav navbar-nav" id="dw__tools">

<?php 
    if (bootstrap3_conf('individualTools')) {
        foreach ($tools as $id => $menu) {
            ?>

  <li class="dropdown">

    <a href="#" class="dropdown-toggle" data-toggle="dropdown" title="<?php 
            echo $lang[$id . '_tools'];
            ?>
">
      <i class="<?php 
            echo $menu['icon'];
            ?>
"></i> <span class="hidden-lg hidden-md hidden-sm"><?php 
            echo $lang[$id . '_tools'];
            ?>
开发者ID:qswks,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_tools_menu.php

示例14: bootstrap3_bootswatch_theme

if (!defined('DOKU_INC')) {
    die;
}
if (bootstrap3_conf('showThemeSwitcher')) {
    global $ID;
    $bootswatch_theme = bootstrap3_bootswatch_theme();
    ?>
<!-- theme-switcher -->
<ul class="nav navbar-nav" id="dw__themes">
  <li class="dropdown">

    <a href="<?php 
    wl($ID);
    ?>
" class="dropdown-toggle" data-toggle="dropdown" data-target="#" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-fw fa-tint"></i> <span class="<?php 
    echo in_array('themes', bootstrap3_conf('navbarLabels')) ? '' : 'hidden-lg hidden-md hidden-sm';
    ?>
"><?php 
    echo tpl_getLang('themes');
    ?>
</span> <span class="caret"></span></a>

    <ul class="dropdown-menu" aria-labelledby="themes">
      <li class="dropdown-header"><i class="fa fa-fw fa-tint"></i> Bootswatch Themes</li>
      <?php 
    foreach (bootstrap3_bootswatch_themes_available() as $theme) {
        ?>
      <li<?php 
        echo $bootswatch_theme == $theme ? ' class="active"' : '';
        ?>
>
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_theme_switcher.php

示例15: bootstrap3_conf

/**
 * DokuWiki Bootstrap3 Template: Footer page
 *
 * @link     http://dokuwiki.org/template:bootstrap3
 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
    die;
}
if (page_findnearest('footer', bootstrap3_conf('useACL'))) {
    ?>
<footer id="dw__footer" class="small navbar <?php 
    echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default';
    ?>
">
  <div class="container<?php 
    echo bootstrap3_is_fluid_container() ? '-fluid' : '';
    ?>
">
    <div class="navbar-text">
      <?php 
    tpl_include_page('footer', 1, 1, bootstrap3_conf('useACL'));
    ?>
    </div>
  </div>
</footer>
<?php 
}
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:30,代码来源:tpl_footer.php


注:本文中的bootstrap3_conf函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。