當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。