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


PHP Url::templatePath方法代码示例

本文整理汇总了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 
开发者ID:alejandrozepeda,项目名称:dcorrido,代码行数:31,代码来源:header.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>


开发者ID:alejandrozepeda,项目名称:dcorrido,代码行数:24,代码来源:Inicio.php

示例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>
开发者ID:alejandrozepeda,项目名称:dcorrido,代码行数:13,代码来源:footerAdmin.php

示例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>
开发者ID:fabiensebban,项目名称:the-pic-contest,代码行数:21,代码来源:header.php

示例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>
开发者ID:sisnox,项目名称:framework,代码行数:30,代码来源:header.php

示例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";
?>
开发者ID:alejandrozepeda,项目名称:dcorrido,代码行数:31,代码来源:headerAdmin.php


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