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


PHP Url::templateAdminPath方法代码示例

本文整理汇总了PHP中helpers\Url::templateAdminPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::templateAdminPath方法的具体用法?PHP Url::templateAdminPath怎么用?PHP Url::templateAdminPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在helpers\Url的用法示例。


在下文中一共展示了Url::templateAdminPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<head>

	<!-- Site meta -->
	<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'] . ' - ' . SITETITLE;
//SITETITLE defined in app/core/config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', '//cdnjs.cloudflare.com/ajax/libs/metisMenu/2.0.1/metisMenu.min.css', Url::templateAdminPath() . 'css/sb-admin-2.css', Url::templateAdminPath() . 'css/paddingmargin.css'));
?>
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
</head>
<body>
    <div id="wrapper">
        
    <nav class="navbar navbar-blue navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
开发者ID:T-PHP,项目名称:Simple-MVC-Blog,代码行数:31,代码来源:header.php

示例2:

<?php

use Helpers\Assets;
use Helpers\Url;
?>

</div> <!-- /#page-wrapper -->

</div> <!-- /#wrapper -->

<!-- JS -->
<?php 
Assets::js(array(Url::templateAdminPath() . 'js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js', '//cdnjs.cloudflare.com/ajax/libs/metisMenu/2.0.1/metisMenu.min.js', Url::templateAdminPath() . 'js/tinymce/tinymce.min.js', Url::templateAdminPath() . 'js/sb-admin-2.js'));
?>
<script>
tinymce.init({
    selector: "textarea.tinymce",
    plugins: [
         "advlist autolink link image lists charmap preview hr anchor pagebreak",
         "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
         "save table contextmenu directionality emoticons paste textcolor jbimages sh4tinymce"
   ],
   toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | preview media | forecolor backcolor emoticons jbimages sh4tinymce", 
    relative_urls : false
 }); 
    
</script>

<?php 
echo $data['js'];
?>
开发者ID:T-PHP,项目名称:Simple-MVC-Blog,代码行数:31,代码来源:footer.php


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