コード例 #1
0
function white_breadcrumbs()
{
    global $lang;
    global $conf;
    //check if enabled
    if (!$conf['breadcrumbs']) {
        return false;
    }
    $crumbs = breadcrumbs();
    //setup crumb trace
    $crumbs_sep = ' <span class="bcsep">' . $sep . '</span> ';
    //render crumbs, highlight the last one
    print '<h3>' . $lang['breadcrumb'] . '</h3>';
    $last = count($crumbs);
    $i = 0;
    print '<ul>';
    foreach ($crumbs as $id => $name) {
        $i++;
        print '<li>';
        if ($i == $last) {
            print '<span class="curid">';
        }
        tpl_link(wl($id), hsc($name), 'class="breadcrumbs" title="' . $id . '"');
        if ($i == $last) {
            print '</span>';
        }
        print '</li>';
    }
    print '</ul>';
    return true;
}
コード例 #2
0
 function siteexport_add_page_export(&$event)
 {
     global $ID;
     if ($this->getConf('allowallusers') || auth_isadmin() || auth_ismanager()) {
         $event->data['items'][] = '<li>' . tpl_link(wl($ID, array('do' => 'siteexport_addpage')), '<span>Export Page</span>', 'class="action siteexport_addpage" title="Add page"', 1) . '</li>';
     }
 }
コード例 #3
0
/**
 * Create link/button to register page
 * DW versions > 2011-02-20 can use the core function tpl_action('register')
 *
 * @author Anika Henke <*****@*****.**>
 */
function _tpl_register($link=0,$wrapper=0) {
    global $conf;
    global $lang;
    global $ID;
    $lang_register = !empty($lang['btn_register']) ? $lang['btn_register'] : $lang['register'];

    if ($_SERVER['REMOTE_USER'] || !$conf['useacl'] || !actionOK('register')) return;

    if ($wrapper) echo "<$wrapper>";

    if ($link)
        tpl_link(wl($ID,'do=register'),$lang_register,'class="action register" rel="nofollow"');
    else
        echo html_btn('register',$ID,'',array('do'=>'register'),'get',0,$lang_register);

    if ($wrapper) echo "</$wrapper>";
}
コード例 #4
0
tpl_actionlink('admin', '', '', '<img src="' . $DOKU_TPL . 'images/16/admin.png" title="Admin" alt="Admin"></img>');
tpl_actionlink('profile', '', '', '<img src="' . $DOKU_TPL . 'images/16/user.png" title="Profile" alt="Profile"></img>');
tpl_actionlink('login', '', '', '<img src="' . $DOKU_TPL . 'images/16/logged_in.png" title="Log In" alt="Log In"></img>');
?>
		</div>
      </div>
	    
      <div class="pagename">
        :: <?php 
tpl_link(wl($ID, 'do=backlink'), tpl_pagename($ID));
?>
 ~ 
		<div class="logoicons">
			<?php 
tpl_link(wl('disclaimer'), '<img src="' . $DOKU_TPL . 'images/20/info.png" title="Disclaimer" alt="Disclaimer"></img>', 'class="img16"');
tpl_link('feed.php?ns=blog&amp;num=10&amp;linkto=current&amp;content=html', '<img src="' . $DOKU_TPL . 'images/rss.png" title="TLW RSS" alt="TLW RSS"></img>');
tpl_actionlink('edit', '', '', '<img src="' . $DOKU_TPL . 'images/20/edit.png" class="img16" title="Edit" alt="Edit"></img>');
tpl_actionlink('history', '', '', '<img src="' . $DOKU_TPL . 'images/20/history.png" class="img16" title="Previous versions" alt="Previous versions"></img>');
?>
		</div>
      </div>


      <div class="clearer"></div>
    </div>
    <!-- header stop -->

    <?php 
/*old includehook*/
@(include dirname(__FILE__) . '/header.html');
?>
コード例 #5
0
ファイル: main.php プロジェクト: n1trux/cw-bootstrap
echo $showSidebar ? 'hasSidebar' : '';
?>
">
        <div class="navbar navbar-default navbar-fixed-top"><div class="container">
            <?php 
tpl_includeFile('header.html');
?>
            <div class="navbar-header">
                <button class="navbar-toggle" data-toggle="collapse" data-target="#topnav" type="button">
                    <span class="sr-only">Toggle Navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <?php 
tpl_link(wl(), $conf['title'], 'accesskey="h" title="[H]" class="navbar-brand"');
?>
            </div>
            <div class="navbar-collapse collapse" id="topnav">
                <ul class="nav navbar-nav navbar-right">
                    <?php 
if ($showTools) {
    ?>
                        <?php 
    tpl_action('edit', 1, 'li');
    ?>
                    <?php 
}
?>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php 
コード例 #6
0
    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);
    $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>
<?php 
}
コード例 #7
0
?>
 </li>
            <li ><?php 
tpl_actionlink('admin');
?>
 </li>
            <li ><?php 
tpl_actionlink('profile');
?>
 </li>
         </ul>
      </div>
      
      <div id="oaTmplHeaderLogo">
         <div id="oaTmplHeaderLogoLogo"> <?php 
tpl_link(wl(), $myLogo, 'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"');
?>
 </div>
      </div>

      <div class="clearer"> </div>
</div>
<div class="clearer"></div>


<div id="oaTmplPageHeaderColorBox">
      <div class="oaTmplPageLeft2">
          <div class="colorBox" > </div>
      </div>
      
      <div class="oaTmplPageContent2">
コード例 #8
0
    <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php 
echo $ACT;
?>
">
        <?php 
html_msgarea();
?>
        <?php 
@(include dirname(__FILE__) . '/header.html');
?>

        <!-- ********** HEADER ********** -->
        <div id="dokuwiki__header"><div class="pad">

            <h1><?php 
tpl_link(wl(), $conf['title'], 'id="dokuwiki__top" accesskey="h" title="[ALT+H]"');
?>
</h1>
            <h2>[[<?php 
echo $ID;
?>
]]</h2>

            <!-- BREADCRUMBS -->
            <?php 
if ($conf['breadcrumbs']) {
    ?>
                <div class="breadcrumbs"><?php 
    tpl_breadcrumbs();
    ?>
</div>
コード例 #9
0
ファイル: main.php プロジェクト: reidab/osbp_dokuwiki_theme
 * mmClean DokuWiki Template
 *
 * @author Marcin Mierzejewski <*****@*****.**>
 */
require_once dirname(__FILE__) . '/tpl_functions.php';
@(include dirname(__FILE__) . '/header.php');
?>
<body>
<?php 
@(include dirname(__FILE__) . '/topheader.html');
?>
<div id="wrapper">
   <div id="header">
      <div class='inner_container'>
         <h1 id="site-title"><span><?php 
tpl_link(wl(), $conf['title'], 'name="top" accesskey="h" title="[ALT+H]"');
?>
</span></h1>
         <div id="site-description">
            <h2>The conference for open source citizens</h2>
            <p id='conference-date-location'>June 17&ndash;19, 2009 <span class='separator'>|</span> Portland, Oregon</p>
         </div>
      </div>
    </div>

   <div id="access">
    <div class="skip-link">
      <a href="#content" title="Skip to content">Skip to content</a>
    </div>

    <div id="menu">
コード例 #10
0
echo $showSidebar ? 'hasSidebar' : '';
?>
">
        <?php 
html_msgarea();
?>
        <?php 
tpl_includeFile('header.html');
?>

        <!-- ********** HEADER ********** -->
        <div id="dokuwiki__header"><div class="pad">

            <div class="headings">
                <h1><?php 
tpl_link(wl(), $conf['title'], 'accesskey="h" title="[H]"');
?>
</h1>
                <?php 
/* how to insert logo instead (if no CSS image replacement technique is used):
   upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
   tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */
?>
                <?php 
if ($conf['tagline']) {
    ?>
                    <p class="claim"><?php 
    echo $conf['tagline'];
    ?>
</p>
                <?php 
コード例 #11
0
/**
 * Hierarchical breadcrumbs with Bootstrap style
 *
 * This code was suggested as replacement for the usual breadcrumbs.
 * It only makes sense with a deep site structure.
 *
 * @author Andreas Gohr <*****@*****.**>
 * @author Nigel McNie <*****@*****.**>
 * @author Sean Coates <*****@*****.**>
 * @author <*****@*****.**>
 * @author Giuseppe Di Terlizzi <*****@*****.**>
 * @todo   May behave strangely in RTL languages
 *
 * @return bool
 */
function bootstrap3_youarehere()
{
    global $conf;
    global $ID;
    global $lang;
    // check if enabled
    if (!$conf['youarehere']) {
        return false;
    }
    $parts = explode(':', $ID);
    $count = count($parts);
    $semantic = bootstrap3_conf('semantic');
    echo '<ol class="breadcrumb"' . ($semantic ? ' itemscope itemtype="http://schema.org/BreadcrumbList"' : '') . '>';
    echo '<li>' . rtrim($lang['youarehere'], ':') . '</li>';
    // always print the startpage
    echo '<li' . ($semantic ? ' itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"' : '') . '>';
    tpl_link(wl($conf['start']), ($semantic ? '<span itemprop="name">' : '') . '<i class="fa fa-fw fa-home"></i>' . ($semantic ? '</span>' : ''), ($semantic ? ' itemprop="item" ' : '') . 'title="' . $conf['start'] . '"');
    echo '</li>';
    // print intermediate namespace links
    $part = '';
    for ($i = 0; $i < $count - 1; $i++) {
        $part .= $parts[$i] . ':';
        $page = $part;
        if ($page == $conf['start']) {
            continue;
        }
        // Skip startpage
        // output
        echo '<li' . ($semantic ? ' itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"' : '') . '>';
        $link = html_wikilink($page);
        $link = str_replace(' class="curid"', '', html_wikilink($page));
        if ($semantic) {
            $link = str_replace(array('<a', '<span'), array('<a itemprop="item" ', '<span itemprop="name" '), $link);
        }
        echo $link;
        echo '</li>';
    }
    // print current page, skipping start page, skipping for namespace index
    resolve_pageid('', $page, $exists);
    if (isset($page) && $page == $part . $parts[$i]) {
        echo '</ol>';
        return true;
    }
    $page = $part . $parts[$i];
    if ($page == $conf['start']) {
        echo '</ol>';
        return true;
    }
    echo '<li class="active"' . ($semantic ? ' itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"' : '') . '>';
    $link = html_wikilink($page);
    $link = str_replace(' class="curid"', '', html_wikilink($page));
    if ($semantic) {
        $link = str_replace(array('<a', '<span'), array('<a itemprop="item" ', '<span itemprop="name" '), $link);
    }
    echo $link;
    echo '</li>';
    echo '</ol>';
    return true;
}
コード例 #12
0
function tpl_arctic_mbo_pagename($sep = ' &raquo; ')
{
    global $conf;
    global $ID;
    global $lang;
    $parts = explode(':', $ID);
    $count = count($parts);
    if ($GLOBALS['ACT'] == 'search') {
        $parts = array($conf['start']);
        $count = 1;
    }
    // always print the site title
    tpl_link(wl(), $conf['title'], 'name="dokuwiki__top" id="dokuwiki__top" title="' . $conf['start'] . '"');
    // print intermediate namespace links
    $part = '';
    for ($i = 0; $i < $count - 1; $i++) {
        $part .= $parts[$i] . ':';
        $page = $part;
        resolve_pageid('', $page, $exists);
        if ($page == $conf['start']) {
            continue;
        }
        // Skip startpage
        // output
        echo $sep;
        if ($exists && auth_quickaclcheck($page) >= AUTH_READ) {
            $title = useHeading('navigation') ? p_get_first_heading($page) : $parts[$i];
            tpl_link(wl($page), hsc($title), 'title="' . $page . '"');
        } else {
            tpl_link(wl($page), $parts[$i], 'title="' . $page . '" class="wikilink2" rel="nofollow"');
        }
    }
    // print current page, skipping start page, skipping for namespace index
    if (isset($page) && $page == $part . $parts[$i]) {
        return;
    }
    $page = $part . $parts[$i];
    if ($page == $conf['start']) {
        return;
    }
    echo $sep;
    if (page_exists($page) && auth_quickaclcheck($page) >= AUTH_READ) {
        $title = useHeading('navigation') ? p_get_first_heading($page) : $parts[$i];
        tpl_link(wl($page), hsc($title), 'title="' . $page . '"');
    } else {
        tpl_link(wl($page), $parts[$i], 'title="' . $page . '" class="wikilink2" rel="nofollow"');
    }
    return true;
}
コード例 #13
0
            
            <div class='codowiki_west_header'>
            <div class="headings group">
        <ul class="a11y skip">
            <li><a href="#dokuwiki__content"><?php 
echo $lang['skip_to_content'];
?>
</a></li>
        </ul>

        <h1><?php 
// get logo either out of the template images folder or data/media folder
$logoSize = array();
$logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/wiki.png'), false, $logoSize);
// display logo and wiki title in a link to the home page
tpl_link(wl(), '<img style="width:135px;margin:0 auto 10px" src="' . $logo . '" ' . $logoSize[3] . ' alt="" /> <p style="text-align:center">' . $conf['title'] . '</p>', 'accesskey="h" title="[H]"');
?>
</h1>
        <?php 
if ($conf['tagline']) {
    ?>
            <p class="claim"><?php 
    echo $conf['tagline'];
    ?>
</p>
        <?php 
}
?>
    </div>
            
            
コード例 #14
0
	        <?php 
tpl_actionlink('top');
?>
		</span>
      </div>
    </div>

   <?php 
/*old includehook*/
@(include dirname(__FILE__) . '/pagefooter.html');
?>

    <div class="bar" id="bar__bottom">
       &copy; 2010 TuS R&uuml;ppurr, Abteilung Volleyball -
       <?php 
tpl_link(wl(':impressum', ''), 'Impressum');
?>
       <?php 
/*old includehook*/
@(include dirname(__FILE__) . '/footer.html');
?>
       <div class="clearer"></div>
    </div>
    
  </div>

</div>

<div class="no"><?php 
/* provide DokuWiki housekeeping, required in all templates */
tpl_indexerWebBug();
コード例 #15
0
                <li class="dropdown navbar-right"
                ">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                   aria-haspopup="true" aria-expanded="false">
                    <?php 
echo $lang['page_tools'];
?>
<span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <?php 
$data = array('view' => 'main', 'items' => array('edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>')));
// TODO: Possible to add action ?
if ($INFO['ismanager']) {
    $data['items']['purge'] = '<li>' . tpl_link(wl($ID, ['purge' => true]), '<span>Purge this page</span>', 'class="action purge"', $return = true) . '</li>';
    $data['items']['purge_css'] = '<li>' . tpl_link("/lib/exe/css.php?purge=true", '<span>Purge Css</span>', 'class="action purge"', $return = true) . '</li>';
    $data['items']['purge_js'] = '<li>' . tpl_link("/lib/exe/js.php?purge=true", '<span>Purge Js</span>', 'class="action purge"', $return = true) . '</li>';
}
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if ($evt->advise_before()) {
    foreach ($evt->data['items'] as $k => $html) {
        echo $html;
    }
}
$evt->advise_after();
unset($data);
unset($evt);
?>
                </ul>
                </li>
コード例 #16
0
ファイル: main.php プロジェクト: BackupTheBerlios/grafity-svn
    } else {
        tpl_link(wl($ID, 'do=login'), 'Log in');
    }
}
?>
        <?php 
tpl_link(wl($ID, 'do=diff'), 'Changes');
?>
        <?php 
tpl_link(wl($ID, 'do=backlink'), 'Backlinks');
?>
        <?php 
tpl_link(wl($ID, 'do=recent'), 'Recent');
?>
        <?php 
tpl_link(wl($ID, 'do=index'), 'Sitemap');
?>
      </div>
    </div>
    <div id="content">
      <div id="foo"><?php 
if ($conf['useacl'] && $_SERVER['REMOTE_USER']) {
    tpl_button('edit');
}
?>
</div>
      <?php 
tpl_content();
?>
      <!-- ?php tpl_pageinfo()? -->
    </div>
コード例 #17
0
ファイル: template.php プロジェクト: highpictv/wiki
/**
 * Hierarchical breadcrumbs
 *
 * This code was suggested as replacement for the usual breadcrumbs.
 * It only makes sense with a deep site structure.
 *
 * @author Andreas Gohr <*****@*****.**>
 * @author Nigel McNie <*****@*****.**>
 * @author Sean Coates <*****@*****.**>
 * @author <*****@*****.**>
 * @todo   May behave strangely in RTL languages
 */
function tpl_youarehere($sep = ' &raquo; ')
{
    global $conf;
    global $ID;
    global $lang;
    // check if enabled
    if (!$conf['youarehere']) {
        return false;
    }
    $parts = explode(':', $ID);
    $count = count($parts);
    if ($GLOBALS['ACT'] == 'search') {
        $parts = array($conf['start']);
        $count = 1;
    }
    echo '<span class="bchead">' . $lang['youarehere'] . ': </span>';
    // always print the startpage
    $title = useHeading('navigation') ? p_get_first_heading($conf['start']) : $conf['start'];
    if (!$title) {
        $title = $conf['start'];
    }
    tpl_link(wl($conf['start']), hsc($title), 'title="' . $conf['start'] . '"');
    // print intermediate namespace links
    $part = '';
    for ($i = 0; $i < $count - 1; $i++) {
        $part .= $parts[$i] . ':';
        $page = $part;
        resolve_pageid('', $page, $exists);
        if ($page == $conf['start']) {
            continue;
        }
        // Skip startpage
        // output
        echo $sep;
        if ($exists) {
            $title = useHeading('navigation') ? p_get_first_heading($page) : $parts[$i];
            tpl_link(wl($page), hsc($title), 'title="' . $page . '"');
        } else {
            tpl_link(wl($page), $parts[$i], 'title="' . $page . '" class="wikilink2" rel="nofollow"');
        }
    }
    // print current page, skipping start page, skipping for namespace index
    if (isset($page) && $page == $part . $parts[$i]) {
        return;
    }
    $page = $part . $parts[$i];
    if ($page == $conf['start']) {
        return;
    }
    echo $sep;
    if (page_exists($page)) {
        $title = useHeading('navigation') ? p_get_first_heading($page) : $parts[$i];
        tpl_link(wl($page), hsc($title), 'title="' . $page . '"');
    } else {
        tpl_link(wl($page), $parts[$i], 'title="' . $page . '" class="wikilink2" rel="nofollow"');
    }
    return true;
}
コード例 #18
0
function _mixture_actionlink($type, $pre = '', $inner = '', $context = null, $return = true, $button = false)
{
    global $lang, $uhp;
    $data = tpl_get_action($type);
    if (!is_array($data)) {
        if ($type == 'home') {
            $target = explode("=", wl())[1];
            $label = tpl_getLang('wikihome');
        } elseif ($type == 'userpublic' and isset($uhp['public']['id'])) {
            // Without Userhomepage plugin, Public Page namespace is set by 'user' value in 'conf/interwiki.conf'
            $target = $uhp['public']['id'];
            if (isset($uhp['public']['string'])) {
                $label = $uhp['public']['string'];
            } else {
                $label = tpl_getLang('userpublic');
            }
            // Currently, Mixture only manages user's private namespace generated by Userhomepage plugin
        } elseif ($type == 'userprivate' and isset($uhp['private']['id'])) {
            $target = $uhp['private']['id'];
            $label = $uhp['private']['string'];
        } else {
            $target = null;
        }
        if ($target != null) {
            if ($button != false) {
                $classes = 'btn ' . $button;
                $modLabel = null;
            } else {
                $classes = 'action ' . $type . _mixture_menuitem_classes($type);
                $modLabel = _mixture_menuitem_string($label, $context);
            }
            $out = tpl_link(wl($target), _mixture_glyph($type, $context, $button) . $modLabel, 'class="' . $classes . '" title="' . $label . ' (' . $target . ')"', true);
        } else {
            return false;
        }
    } else {
        /**
         * $data array content:
         * @var string $accesskey
         * @var string $id
         * @var string $method
         * @var bool   $nofollow
         * @var array  $params
         * @var string $replacement
         */
        extract($data);
        if (strpos($id, '#') === 0) {
            $linktarget = $id;
        } else {
            $linktarget = wl($id, $params);
        }
        $caption = $lang['btn_' . $type];
        /*
        if(strpos($caption, '%s')){
            $caption = sprintf($caption, $replacement);
        }
        */
        $akey = $addTitle = '';
        if ($accesskey) {
            $akey = 'accesskey="' . $accesskey . '" ';
            $addTitle = ' [' . strtoupper($accesskey) . ']';
        }
        $rel = $nofollow ? 'rel="nofollow" ' : '';
        if ($button != false) {
            $classes = 'btn ' . $button;
            $modLabel = _mixture_glyph($type, $context, $button);
        } else {
            $classes = 'action ' . $type . _mixture_menuitem_classes($type);
            $modLabel = _mixture_menuitem_string($inner ? $inner : $caption, $context);
        }
        $out = tpl_link($linktarget, $pre . $modLabel . $suf, 'class="' . $classes . '" ' . $akey . $rel . 'title="' . hsc($caption) . $addTitle . '"', true);
    }
    if ($return) {
        return $out;
    }
    echo $out;
    return true;
}
コード例 #19
0
ファイル: main.php プロジェクト: projectesIF/Ateneu
/**
 * prints a horizontal navigation bar (composed of <li> items and some CSS tricks)
 * with the current active item highlited
 */
function tpl_tabnavi()
{
    global $ID;
    global $ACT;
    global $conf;
    // afegit jordi
    global $lang;
    // afegit jordi
    global $auth;
    // afegit jordi
    global $USERINFO;
    // afegit jordi
    $buttons = array();
    parse_str(tpl_getConf('navbar_buttons'), $buttons);
    echo "<ul>\n";
    foreach ($buttons as $title => $pagename) {
        echo '<li';
        // MODIFICAT  JORDI
        // Afegim control, per mostrar/no mostrar opció "Autoria" segons si l'usuari està validat (hi ha nom d'usuari) o no
        if ($USERINFO[name] == "") {
            if ($title != "Autoria") {
                if (strcasecmp($ID, $pagename) == 0 && $ACT == 'show') {
                    echo ' id="current"><div id="current_inner">' . $title . '</div>';
                } else {
                    echo '>';
                    tpl_link(wl($pagename), $title);
                }
            }
        } else {
            if (strcasecmp($ID, $pagename) == 0 && $ACT == 'show') {
                echo ' id="current"><div id="current_inner">' . $title . '</div>';
            } else {
                echo '>';
                tpl_link(wl($pagename), $title);
            }
        }
        echo "</li>\n";
    }
    // MODIFICAT JORDI
    //always add link to recent page, unless $action id already 'recent'
    if (tpl_getConf('navbar_recent')) {
        if ($ACT == 'recent') {
            echo '<li id="current"><div id="current_inner">' . tpl_getConf('navbar_recent') . '</div></li>';
        } else {
            echo '<li>';
            tpl_actionlink('recent', '', '', tpl_getConf('navbar_recent'));
            echo "</li>\n";
        }
    }
    echo "</ul>\n";
}
コード例 #20
0
ファイル: main.php プロジェクト: houshuang/folders2web
  <?php 
html_msgarea();
?>

  <div class="stylehead">

    <div class="header">
      <div class="pagename">
        [[<?php 
tpl_link(wl($ID, 'do=backlink'), tpl_pagetitle($ID, true), 'title="' . $lang['btn_backlink'] . '"');
?>
]]
      </div>
      <div class="logo">
        <?php 
tpl_link(wl(), $conf['title'], 'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]"');
?>
      </div>

      <div class="clearer"></div>
    </div>

    <?php 
/*old includehook*/
@(include dirname(__FILE__) . '/header.html');
?>

    <div class="bar" id="bar__top">
      <div class="bar-left" id="bar__topleft">
        <?php 
tpl_button('edit');
コード例 #21
0
?>

</head>
<body>
<?php 
/*old includehook*/
@(include dirname(__FILE__) . '/topheader.html');
?>
<div id="dokuwiki">


  <div id="header">
    <div class="site">
      <div id="logo">
        <?php 
tpl_link(wl(), '<img src="' . DOKU_TPL . 'images/logo-7.png">', 'name="dokuwiki__top" accesskey="h" title="' . $conf['title'] . '"');
?>
      </div>
      <?php 
tpl_login_dialog();
?>


    </div>
  </div>

  <div id="mainmenu">
    <div class="site">
      <?php 
if (tpl_getConf('search') == 'menu') {
    ?>
コード例 #22
0
</a></li>
      </ul>

      <?php 
if (tpl_getConf('tpl_mtb_schotland_2016:showLogoInHeader')) {
    ?>
        <h1><?php 
    // get logo either out of the template images folder or data/media folder
    $logoSize = array();
    $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
    // display logo and wiki title in a link to the home page
    // @tpl_mtb_schotland_2016-template@ : Title is optional in this template
    if (tpl_getConf("tpl_mtb_schotland_2016:showTitleInHeader")) {
        tpl_link(wl(), '<img src="' . $logo . '" ' . $logoSize[3] . ' alt="" /> <span>' . $conf['title'] . '</span>', 'accesskey="h" title="[H]"');
    } else {
        tpl_link(wl(), '<img src="' . $logo . '" ' . $logoSize[3] . ' alt="" />', 'accesskey="h" title="[H]"');
    }
    ?>
</h1>
      <?php 
}
?>
      <?php 
if ($conf['tagline']) {
    ?>
        <p class="claim"><?php 
    echo $conf['tagline'];
    ?>
</p>
      <?php 
}
コード例 #23
0
    if (strpos(tpl_getConf('elements'), 'header_title') !== false and $conf['title'] != null) {
        ?>
                    <div id="dokuwiki__title" class='container col-12 justify-center'>
                        <?php 
        tpl_link(wl(), '<span>' . $conf['title'] . '</span>', 'accesskey="h" title="' . tpl_getLang('wikihome') . ' [H]" class="color-white"');
        ?>
                    </div>
                <?php 
    }
    ?>
                <?php 
    if (strpos(tpl_getConf('elements'), 'header_tagline') !== false and $conf['tagline'] != null) {
        ?>
                    <div id="dokuwiki__tagline" class='container col-12 justify-center'>
                        <?php 
        tpl_link(wl(), '<span>' . $conf['tagline'] . '</span>', 'accesskey="h" title="' . tpl_getLang('wikihome') . ' [H]" class="color-dark"');
        ?>
                    </div>
                <?php 
    }
    ?>
            </div><!-- #mixture__brand_text -->
        <?php 
}
?>
    </div><!-- #mixture__brand -->
    <!-- NAVIGATION -->
    <div id="mixture__menu" class="container<?php 
echo _mixture_area_width("main_nav");
?>
 col-md-auto">
コード例 #24
0
      <a href="doku.php?id=manual:00_introduction">About</a><br />
      <a href="http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/src2pkg/">Download</a>
    </div>
    
    <!-- link set one (off the main page) -->
    <div class="linksone">
      <a href="doku.php?id=manual">The manual</a><br />
      <a href="doku.php?id=developers">For developers</a><br />
      <a href="doku.php?id=tutorials">Tutorials and samples</a>
    </div>
	
    </div> <!-- // header -->

	<div class="pagename">
		[[<?php 
tpl_link(wl($ID, 'do=backlink'), tpl_pagename($ID));
?>
]]
	</div>
	
	<div class="pageinfo">
       <?php 
tpl_actionlink('history');
?>
<br />
        <?php 
tpl_actionlink('edit');
?>
	</div>
    
	<div class="clearer"></div>
コード例 #25
0
ファイル: template.php プロジェクト: neosunchess/dokuwiki
/**
 * Print the breadcrumbs trace
 *
 * @author Andreas Gohr <*****@*****.**>
 * @param string $sep Separator between entries
 * @return bool
 */
function tpl_breadcrumbs($sep = '•')
{
    global $lang;
    global $conf;
    //check if enabled
    if (!$conf['breadcrumbs']) {
        return false;
    }
    $crumbs = breadcrumbs();
    //setup crumb trace
    //reverse crumborder in right-to-left mode, add RLM character to fix heb/eng display mixups
    if ($lang['direction'] == 'rtl') {
        $crumbs = array_reverse($crumbs, true);
        $crumbs_sep = ' &#8207;<span class="bcsep">' . $sep . '</span>&#8207; ';
    } else {
        $crumbs_sep = ' <span class="bcsep">' . $sep . '</span> ';
    }
    //render crumbs, highlight the last one
    print '<span class="bchead">' . $lang['breadcrumb'] . ':</span>';
    $last = count($crumbs);
    $i = 0;
    foreach ($crumbs as $id => $name) {
        $i++;
        echo $crumbs_sep;
        if ($i == $last) {
            print '<span class="curid">';
        }
        tpl_link(wl($id), hsc($name), 'class="breadcrumbs" title="' . $id . '"');
        if ($i == $last) {
            print '</span>';
        }
    }
    return true;
}
コード例 #26
0
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>

      <?php 
// get logo either out of the template images folder or data/media folder
$logoSize = array();
$logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
$title = $conf['title'];
$tagline = $conf['tagline'] ? '<span id="dw__tagline">' . $conf['tagline'] . '</span>' : '';
$logo_size = 'width="20" height="20"';
if ($tagline) {
    $logo_size = 'width="32" height="32" style="margin-top:-5px"';
}
// display logo and wiki title in a link to the home page
tpl_link(wl(), '<img src="/sprout.svg" alt="' . $title . '" class="pull-left" style="width: 30px; height: 30px; margin-right: 8px; margin-top:-5px;" /><span id="dw__title" style="color: #fff; margin-right:5px;">sprout wiki</span><i class="fa fa-lg fa-terminal"></i>', 'accesskey="h" title="' . $title . '" class="navbar-brand"');
?>

    </div>

    <div class="collapse navbar-collapse">

      <ul class="nav navbar-nav" id="dw__navbar">
        <?php 
tpl_includeFile('navbar.html');
?>
      </ul>

      <div class="navbar-right">

        <?php 
コード例 #27
0
ファイル: main.php プロジェクト: highpictv/wiki
  <?php 
tpl_flush();
?>

  <div class="stylefoot">

    <div class="meta">
      <div class="user">
        <?php 
tpl_userinfo();
?>
      </div>
      <div class="doc">
		[[<?php 
tpl_link(wl($ID, 'do=backlink'), tpl_pagetitle($ID, true), 'title="' . $lang['btn_backlink'] . '"');
?>
]]
        <?php 
tpl_pageinfo();
?>
      </div>
    </div>

   <?php 
/*old includehook*/
@(include dirname(__FILE__) . '/pagefooter.html');
?>

    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
コード例 #28
0
/**
 * Hierarchical breadcrumbs with Bootstrap style
 *
 * This code was suggested as replacement for the usual breadcrumbs.
 * It only makes sense with a deep site structure.
 *
 * @author Andreas Gohr <*****@*****.**>
 * @author Nigel McNie <*****@*****.**>
 * @author Sean Coates <*****@*****.**>
 * @author <*****@*****.**>
 * @author Giuseppe Di Terlizzi <*****@*****.**>
 * @todo   May behave strangely in RTL languages
 *
 * @return bool
 */
function bootstrap3_youarehere()
{
    global $conf;
    global $ID;
    global $lang;
    // check if enabled
    if (!$conf['youarehere']) {
        return false;
    }
    $parts = explode(':', $ID);
    $count = count($parts);
    echo '<ol class="breadcrumb">';
    echo '<li>' . rtrim($lang['youarehere'], ':') . '</li>';
    // always print the startpage
    echo '<li>';
    tpl_link(wl($conf['start']), '<i class="fa fa-fw fa-home"></i>', 'title="' . $conf['start'] . '"');
    echo '</li>';
    // print intermediate namespace links
    $part = '';
    for ($i = 0; $i < $count - 1; $i++) {
        $part .= $parts[$i] . ':';
        $page = $part;
        if ($page == $conf['start']) {
            continue;
        }
        // Skip startpage
        // output
        echo '<li>';
        echo str_replace('curid', '', html_wikilink($page));
        echo '</li>';
    }
    // print current page, skipping start page, skipping for namespace index
    resolve_pageid('', $page, $exists);
    if (isset($page) && $page == $part . $parts[$i]) {
        echo '</ol>';
        return true;
    }
    $page = $part . $parts[$i];
    if ($page == $conf['start']) {
        echo '</ol>';
        return true;
    }
    echo '<li class="active">';
    echo str_replace('curid', '', html_wikilink($page));
    echo '</li>';
    echo '</ol>';
    return true;
}
コード例 #29
0
        <?php 
_tpl_include('header.html');
?>

        <!-- ********** HEADER ********** -->
        <div id="dokuwiki__header"><div class="pad">

            <div class="headings">
                <h1><?php 
tpl_link(wl(), $conf['title'], 'id="dokuwiki__top" accesskey="h" title="OpenData à Toulouse et ses environs"');
?>
</h1>
                <?php 
/* how to insert logo instead (if no CSS image replacement technique is used):
   upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:*/
tpl_link(wl(), '<img src="' . ml('logo2.png') . '" alt="' . $conf['title'] . '" />', 'id="dokuwiki__top" accesskey="h" title="OpenData à Toulouse et ses environs"');
?>
                <?php 
if (tpl_getConf('tagline')) {
    ?>
                    <p class="claim"><?php 
    echo tpl_getConf('tagline');
    ?>
</p>
                <?php 
}
?>

                <ul class="a11y">
                    <li><a href="#dokuwiki__content"><?php 
echo tpl_getLang('skip_to_content');
コード例 #30
0
ファイル: tpl_header.php プロジェクト: easemob/docs
<!-- ********** HEADER ********** -->
<div id="dokuwiki__header" style="display:none;"><div class="pad group">

            <li><a href="#dokuwiki__content"><?php 
echo $lang['skip_to_content'];
?>
</a></li>
        </ul>

        <h1><?php 
// get logo either out of the template images folder or data/media folder
$logoSize = array();
$logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
// display logo and wiki title in a link to the home page
tpl_link(wl(), '<img src="' . $logo . '" ' . $logoSize[3] . ' alt="" /> <span>' . $conf['title'] . '</span>', 'accesskey="h" title="[H]"');
?>
</h1>
        <?php 
if ($conf['tagline']) {
    ?>
            <p class="claim"><?php 
    echo $conf['tagline'];
    ?>
</p>
        <?php 
}
?>
    </div>

    <div class="tools group">