コード例 #1
0
    <div class="headings group">
      <ul class="a11y skip">
        <li><a href="#dokuwiki__content"><?php 
echo $lang['skip_to_content'];
?>
</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']) {
    ?>
コード例 #2
0
    <!-- Bootstrap -->
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <!-- Optional theme -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
    <!-- Latest compiled and minified JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

    <!-- Bootstrap css customization -->
    <!-- This Css is not in the framework of Dokuwiki because bootstrap requires a more recent jquery version than Dokuwiki -->
    <!-- Therefore Bootstrap must be placed after the call of tpl_metaheaders-->
    <!-- Version: -->
    <!--    - Jquery: https://github.com/twbs/bootstrap/blob/v3.3.5/bower.json -->
    <!--    - Doku: https://www.dokuwiki.org/devel:jqueryfaq -->
    <link href="<?php 
echo tpl_getMediaFile(array("css/customBootstrap.css"));
?>
" rel="stylesheet">


</head>
<body role="document">
<!--[if lte IE 7 ]>
<div id="IE7"><![endif]-->
<!--[if IE 8 ]>
<div id="IE8"><![endif]-->


<?php 
//Library of template function
include 'tpl_template_NicoBoot.php';
コード例 #3
0
ファイル: template.php プロジェクト: neosunchess/dokuwiki
/**
 * Returns <link> tag for various icon types (favicon|mobile|generic)
 *
 * @author Anika Henke <*****@*****.**>
 * @param  array $types - list of icon types to display (favicon|mobile|generic)
 * @return string
 */
function tpl_favicon($types = array('favicon'))
{
    $return = '';
    foreach ($types as $type) {
        switch ($type) {
            case 'favicon':
                $look = array(':wiki:favicon.ico', ':favicon.ico', 'images/favicon.ico');
                $return .= '<link rel="shortcut icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
                break;
            case 'mobile':
                $look = array(':wiki:apple-touch-icon.png', ':apple-touch-icon.png', 'images/apple-touch-icon.ico');
                $return .= '<link rel="apple-touch-icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
                break;
            case 'generic':
                // ideal world solution, which doesn't work in any browser yet
                $look = array(':wiki:favicon.svg', ':favicon.svg', 'images/favicon.svg');
                $return .= '<link rel="icon" href="' . tpl_getMediaFile($look) . '" type="image/svg+xml" />' . NL;
                break;
        }
    }
    return $return;
}
コード例 #4
0
ファイル: feed.php プロジェクト: omusico/isle-web-framework
        header("X-CacheUsed: {$cache->cache}");
    }
    print $cache->retrieveCache();
    exit;
} else {
    http_conditionalRequest(time());
}
// create new feed
$rss = new DokuWikiFeedCreator();
$rss->title = $conf['title'] . ($opt['namespace'] ? ' ' . $opt['namespace'] : '');
$rss->link = DOKU_URL;
$rss->syndicationURL = DOKU_URL . 'feed.php';
$rss->cssStyleSheet = DOKU_URL . 'lib/exe/css.php?s=feed';
$image = new FeedImage();
$image->title = $conf['title'];
$image->url = tpl_getMediaFile(array(':wiki:favicon.ico', ':favicon.ico', 'images/favicon.ico'), true);
$image->link = DOKU_URL;
$rss->image = $image;
$data = null;
$modes = array('list' => 'rssListNamespace', 'search' => 'rssSearch', 'recent' => 'rssRecentChanges');
if (isset($modes[$opt['feed_mode']])) {
    $data = $modes[$opt['feed_mode']]($opt);
} else {
    $eventData = array('opt' => &$opt, 'data' => &$data);
    $event = new Doku_Event('FEED_MODE_UNKNOWN', $eventData);
    if ($event->advise_before(true)) {
        echo sprintf('<error>Unknown feed mode %s</error>', hsc($opt['feed_mode']));
        exit;
    }
    $event->advise_after();
}
コード例 #5
0
ファイル: main.php プロジェクト: cpolzer/dokutwitterbootstrap
      </div>
    </footer>

    </div></div><!-- /site -->

    <div class="no"><?php 
tpl_indexerWebBug();
?>
</div>
    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

    <!-- load any scripts that may require a newer jQuery library than DokuWiki provides. -->
    <script src="<?php 
echo tpl_getMediaFile(array("js/bootstrap.min.js"));
?>
"></script>
    <script src="<?php 
echo tpl_getMediaFile(array("js/change_dokuwiki_structure.js"));
?>
"></script>

    <!-- restore jQuery for DokuWiki -->
    <script src="<?php 
echo tpl_getMediaFile(array("js/restore_dokuwikis_jquery.js"));
?>
"></script>
</body>
</html>
コード例 #6
0
ファイル: main.php プロジェクト: araname/template-lisps
?>
    </div>	
	<div class="watermark">
		<?php 
if (isset($_SERVER['REMOTE_USER'])) {
    echo 'gedruckt von ' . hsc($INFO['userinfo']['name']);
} else {
    echo 'oeffentlich';
}
?>
	</div>
	<div class="watermark-confidential">
		<?php 
// get watermark either out of the template images folder or data/media folder
$logoSize = array();
$logo = tpl_getMediaFile(array(':wiki:watermark.png', ':watermark.png', 'images/watermark.png'), false, $logoSize);
echo '<img src="' . $logo . '" ' . $logoSize[3] . ' /> ';
?>
	</div>
	</div><!-- /site -->

    <div class="no"><?php 
tpl_indexerWebBug();
?>
</div>
    <div id="screen__mode" class="no"></div><?php 
/* helper to detect CSS media query in script.js */
?>
    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
</body>
</html>
コード例 #7
0
ファイル: main.php プロジェクト: ofsole/dokuwiki
tpl_includeFile('meta.html');
?>
    <link href="<?php 
echo tpl_getMediaFile(array("css/bootstrap-" . tpl_getConf('bootswatch') . ".min.css"));
?>
" rel="stylesheet">
    <link href="<?php 
echo tpl_getMediaFile(array("css/modifications.css"));
?>
" rel="stylesheet">
    <script src="<?php 
echo tpl_getMediaFile(array("js/bootstrap.min.js"));
?>
"></script>
	<script src="<?php 
echo tpl_getMediaFile(array("js/modifications.js"));
?>
"></script>
	
</head>

<body>
    <?php 
/* with these Conditional Comments you can better address IE issues in CSS files,
   precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */
?>
    <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->

    <?php 
/* 	The "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to 
   	classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
コード例 #8
0
]</title>
    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
    <?php 
tpl_metaheaders();
?>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <?php 
echo tpl_favicon(array('favicon', 'mobile'));
?>
    <?php 
tpl_includeFile('meta.html');
?>
    <style type="text/css">
        <?php 
if (strpos(tpl_getConf('elements'), 'header_landing_area') !== false) {
    $landingBg = tpl_getMediaFile(array(':wiki:landing.jpg', ':landing.jpg', 'images/landing.jpg'));
    echo "#mixture__landing.hasBgImage { background-image: url('" . $landingBg . "'); }\n";
    $landingBgId = explode("media=", $landingBg)[1];
    $landingBgNs = explode("landing.jpg", $landingBgId)[0];
    $landingBgPath = DOKU_INC . "data/media/" . str_replace(":", "/", $landingBgNs);
    if (file_exists($landingBgPath . "landing-xs.jpg")) {
        echo "@media (min-width:32em) { #mixture__landing.hasBgImage { background-image: url('/lib/exe/fetch.php?media=" . $landingBgNs . "landing-xs.jpg" . "'); }\n";
    }
    if (file_exists($landingBgPath . "landing-sm.jpg")) {
        echo "@media (min-width:50em) { #mixture__landing.hasBgImage { background-image: url('/lib/exe/fetch.php?media=" . $landingBgNs . "landing-sm.jpg" . "'); }\n";
    }
    if (file_exists($landingBgPath . "landing-md.jpg")) {
        echo "@media (min-width:65em) { #mixture__landing.hasBgImage { background-image: url('/lib/exe/fetch.php?media=" . $landingBgNs . "landing-md.jpg" . "'); }\n";
    }
    if (file_exists($landingBgPath . "landing-lg.jpg")) {
        echo "@media (min-width:75em) { #mixture__landing.hasBgImage { background-image: url('/lib/exe/fetch.php?media=" . $landingBgNs . "landing-lg.jpg" . "'); }\n";
コード例 #9
0
ファイル: feed.php プロジェクト: nblock/dokuwiki
        header("X-CacheUsed: {$cache->cache}");
    }
    print $cache->retrieveCache();
    exit;
} else {
    http_conditionalRequest(time());
}
// create new feed
$rss = new DokuWikiFeedCreator();
$rss->title = $conf['title'] . ($opt['namespace'] ? ' ' . $opt['namespace'] : '');
$rss->link = DOKU_URL;
$rss->syndicationURL = DOKU_URL . 'feed.php';
$rss->cssStyleSheet = DOKU_URL . 'lib/exe/css.php?s=feed';
$image = new FeedImage();
$image->title = $conf['title'];
$image->url = tpl_getMediaFile('favicon.ico', true);
$image->link = DOKU_URL;
$rss->image = $image;
$data = null;
$modes = array('list' => 'rssListNamespace', 'search' => 'rssSearch', 'recent' => 'rssRecentChanges');
if (isset($modes[$opt['feed_mode']])) {
    $data = $modes[$opt['feed_mode']]($opt);
} else {
    $eventData = array('opt' => &$opt, 'data' => &$data);
    $event = new Doku_Event('FEED_MODE_UNKNOWN', $eventData);
    if ($event->advise_before(true)) {
        echo sprintf('<error>Unknown feed mode %s</error>', hsc($opt['feed_mode']));
        exit;
    }
    $event->advise_after();
}
コード例 #10
0
ファイル: main.php プロジェクト: projectesIF/Ateneu
</head>

<body>
<div id='dokuwiki__top' ></div>
<!-- == NAVBAR == -->
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
  <div class="container">
	  <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
	  </button>
	<!-- == LOGO/TITLE == -->
<?php 
$logo = @tpl_getMediaFile(array(':wiki:logo.png', 'images/logo.png'), false);
tpl_link(wl(), '<img src="' . $logo . '" alt="" class="logo"/><span>' . $conf['title'] . '</span>', 'accesskey="h" title="[H]" class="brand"');
?>
	<div class="nav-collapse collapse">
	<ul class="nav">
		<?php 
include 'tpl_menu.php';
?>
		<?php 
if ($conf['useacl']) {
    ?>
		<li class="dropdown user" id="dokuwiki__usertools">
			<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php 
    if ($_SERVER['REMOTE_USER']) {
        tpl_userinfo();
    } else {