本文整理汇总了PHP中tpl_getMediaFile函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_getMediaFile函数的具体用法?PHP tpl_getMediaFile怎么用?PHP tpl_getMediaFile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_getMediaFile函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
<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']) {
?>
开发者ID:RobBosman,项目名称:private.tpl_mtb_schotland_2016,代码行数:30,代码来源:tpl_header.php
示例2: tpl_getMediaFile
<!-- 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';
开发者ID:alanthonyc,项目名称:dokuwiki-template-bootie,代码行数:31,代码来源:main.php
示例3: tpl_favicon
/**
* Returns <link> tag for various icon types (favicon|mobile|generic)
*
* @author Anika Henke <[email protected]>
* @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;
}
开发者ID:neosunchess,项目名称:dokuwiki,代码行数:29,代码来源:template.php
示例4: header
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();
}
开发者ID:omusico,项目名称:isle-web-framework,代码行数:31,代码来源:feed.php
示例5: tpl_indexerWebBug
</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>
开发者ID:cpolzer,项目名称:dokutwitterbootstrap,代码行数:30,代码来源:main.php
示例6: hsc
?>
</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>
开发者ID:araname,项目名称:template-lisps,代码行数:31,代码来源:main.php
示例7: tpl_includeFile
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,
开发者ID:ofsole,项目名称:dokuwiki,代码行数:31,代码来源:main.php
示例8: tpl_metaheaders
]</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";
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:31,代码来源:main.php
示例9: header
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();
}
开发者ID:nblock,项目名称:dokuwiki,代码行数:31,代码来源:feed.php
示例10:
</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 {
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:main.php
注:本文中的tpl_getMediaFile函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论