本文整理汇总了PHP中Url::templatePath方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::templatePath方法的具体用法?PHP Url::templatePath怎么用?PHP Url::templatePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Url
的用法示例。
在下文中一共展示了Url::templatePath方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
//place to pass data / plugable hook zone
Assets::css(['https://fonts.googleapis.com/icon?family=Material+Icons', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css', Url::templatePath() . 'css/style.css', Url::templatePath() . 'css/slippry.css', Url::templatePath() . 'css/materialize.min.css']);
echo $css;
//place to pass data / plugable hook zone
?>
</head>
<body>
<?php
echo $afterBody;
//place to pass data / plugable hook zone
?>
<header>
<nav class="nav-logo brown">
<div class="nav-wrapper">
<span class="brand-logo center padding-logo"><img src="<?php
echo Url::templatePath() . 'images/dcorrido.png';
?>
" height="150"></span>
</div>
</nav>
<nav class="grey darken-4" role="navigation">
<div class="nav-wrapper container">
<ul class="left hide-on-med-and-down">
<li class="<?php
echo $data['pagina'] == 'inicio' ? "active" : "";
?>
"><a href="<?php
echo DIR;
?>
" class="exo-font">INICIO</a></li>
<li class="<?php
示例2:
<div class="section">
<div class="card-panel grey darken-4">
<ul id="slippry-demo">
<li>
<a href="#slide1"><img src="<?php
echo Url::templatePath() . 'images/banner/image-1.jpg';
?>
" alt="Welcome to Slippry!"></a>
</li>
<li>
<a href="#slide2"><img src="<?php
echo Url::templatePath() . 'images/banner/image-2.jpg';
?>
" alt="This is an awesome jQuery slider plugin."></a>
</li>
<li>
<a href="#slide3"><img src="<?php
echo Url::templatePath() . 'images/banner/image-4.jpg';
?>
" alt="Check it out, you are going to <span class='red'>♥</span> it :)"></a>
</li>
</ul>
</div>
</div>
示例3:
</div
</main>
<?php
Assets::js(['https://code.jquery.com/jquery-2.1.1.min.js', Url::templatePath() . 'js/materialize.min.js', Url::templatePath() . 'js/materialize.clockpicker.js', Url::templatePath() . 'js/slippry.min.js', Url::templatePath() . 'js/init.js']);
echo $js;
//place to pass data / plugable hook zone
echo $footer;
//place to pass data / plugable hook zone
?>
</body>
</html>
示例4:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php
echo $data['title'];
?>
</title>
<meta name="description" content="Source code generated using layoutit.com">
<meta name="author" content="LayoutIt!">
<!-- CSS -->
<?php
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', Url::templatePath() . 'backoffice/css/AdminLTE.css', Url::templatePath() . 'backoffice/css/skins/skin-blue.css'));
?>
</head>
<body>
示例5:
<a href='<?php
echo DIR;
?>
language/nl'>Dutch</a> |
<a href='<?php
echo DIR;
?>
language/pl'>Polish</a> |
<a href='<?php
echo DIR;
?>
language/pt'>Portuguese</a> |
<a href='<?php
echo DIR;
?>
language/ro'>Romanian</a> |
<a href='<?php
echo DIR;
?>
language/ru'>Russian</a>
</p>
<div class="clearfix"></div>
<p><img src='<?php
echo Url::templatePath();
?>
images/nova.png' alt='<?php
echo SITETITLE;
?>
'></p>
示例6:
<title><?php
echo $title . ' - ' . SITETITLE;
?>
</title>
<link rel="icon" type="image/x-icon" href="<?php
echo DIR . "/favicon.ico";
?>
" />
<?php
echo $meta;
//place to pass data / plugable hook zone
Assets::css(['https://fonts.googleapis.com/icon?family=Material+Icons', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css', Url::templatePath() . 'css/style.css', Url::templatePath() . 'css/slippry.css', Url::templatePath() . 'css/materialize.min.css', Url::templatePath() . 'css/styleAdmin.css', Url::templatePath() . 'css/materialize.clockpicker.css']);
echo $css;
//place to pass data / plugable hook zone
Assets::js([Url::templatePath() . 'js/nicEdit.js']);
echo $js;
?>
</head>
<body>
<?php
echo $afterBody;
//place to pass data / plugable hook zone
?>
<header>
<nav class="grey darken-4" role="navigation">
<div class="nav-wrapper container">
<ul class="right hide-on-med-and-down">
<li><a href="<?php
echo DIR . "admin-logout";
?>