• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP template_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中template_url函数的典型用法代码示例。如果您正苦于以下问题:PHP template_url函数的具体用法?PHP template_url怎么用?PHP template_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: _format

 private function _format($id, $data, $type)
 {
     switch ($type) {
         case '1':
             // json
             if (CHARSET == 'gbk') {
                 $data = array_iconv($data, 'gbk', 'utf-8');
             }
             return json_encode($data);
             break;
         case '2':
             // xml
             $xml = Loader::lib('Xml');
             return $xml->xml_serialize($data);
             break;
         case '3':
             // js
             Loader::func('dbsource:global');
             ob_start();
             include template_url($id);
             $html = ob_get_contents();
             ob_clean();
             return format_js($html);
             break;
     }
 }
开发者ID:hubs,项目名称:yuncms,代码行数:26,代码来源:CallController.php


示例2: template_url

    <link href="<?php 
template_url();
?>
assets/css/drawline.css" rel="stylesheet" />
    
    <script src="<?php 
template_url();
?>
assets/pace/pace.min.js" data-pace-options='{ "ajax": true }'></script>
    <link href="<?php 
template_url();
?>
assets/pace/dataurl.css" rel="stylesheet" />
	
    <link rel="stylesheet" type="text/css" href="<?php 
template_url();
?>
assets/sweetalert/sweetalert.css">
    
    
    
  </head>

  <body>

	
	<?php 
if (!on_link("admin_login")) {
    ?>
  
		<?php 
开发者ID:double-web,项目名称:drawline,代码行数:31,代码来源:header.php


示例3: dynamic_css_url

function dynamic_css_url()
{
    if (!is_multisite()) {
        return template_url() . 'assets/css/';
    }
    $upload_info = wp_upload_dir();
    return trailingslashit($upload_info['baseurl']) . 'css/';
}
开发者ID:rinodung,项目名称:myfreetheme,代码行数:8,代码来源:spyropress-core-functions.php


示例4: date

    <!-- Default to the left -->
    <strong>Copyright &copy; <?php 
echo date('Y');
?>
 <a href="http://www.novaframework.com/" target="_blank"><b>Nova Framework <?php 
echo VERSION;
?>
</b></a> - </strong> All rights reserved.
  </footer>

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<?php 
Assets::js(array(template_url('js/bootstrap-rtl.min.js', 'Default'), vendor_url('dist/js/app.min.js', 'almasaeed2010/adminlte'), vendor_url('plugins/select2/select2.full.min.js', 'almasaeed2010/adminlte')));
echo isset($js) ? $js : '';
// Place to pass data / plugable hook zone
echo isset($footer) ? $footer : '';
// Place to pass data / plugable hook zone
?>

<script>
$(function () {
    //Initialize Select2 Elements
    $(".select2").select2();
});
</script>

<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
开发者ID:nova-framework,项目名称:cms,代码行数:31,代码来源:backend-rtl.php


示例5: base_url

    echo base_url();
    ?>
templates/dignity/img/dignity-mem-banner-2b.jpg); 
		max-width:100%;
		height:89px;
	}
	.mar-te{
		padding-left:34%;
	}
}

</style>

			<div id="responsive" class="horizontal-banner">
                 <!--<a href="#"><img src="<?php 
    echo template_url('img/banner.jpg');
    ?>
" alt="Dignity Flowers"></a>-->
				 <div>
					<table width="100%" border="0" class="ta-image" style="">
						<tr>
							<td width="100%" class="mar-te">
								<span style="color:#45BECC;font-size:17px;font-weight:bold;"><?php 
    echo $fun_home->funeral_home;
    ?>
</span><br />
								<span style="font-size:14px;"><?php 
    echo $fun_home->address1;
    ?>
, <?php 
    echo $fun_home->city;
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:top-banner.php


示例6: get_option

   *************************************************/
$color_scheme = get_option('color-scheme', 'mw-template-liteness');
$font = get_option('font', 'mw-template-liteness');
$bgimage = get_option('bgimage', 'mw-template-liteness');
$custom_css_json = get_option('custom_css_json', 'mw-template-liteness');
$custom_bg = get_option('custom_bg', 'mw-template-liteness');
$custom_bg_position = get_option('custom_bg_position', 'mw-template-liteness');
$custom_bg_size = get_option('custom_bg_size', 'mw-template-liteness');
/* Color scheme */
if ($color_scheme == '') {
    $color_scheme = 'default';
}
?>

<link rel="stylesheet" id="colorscss" href="<?php 
print template_url();
?>
css/colors/<?php 
print $color_scheme;
?>
.css" type="text/css" />


<?php 
/* Custom defined colors */
if ($custom_css_json != '' and $custom_css_json != '{}' and json_decode($custom_css_json) != false) {
    $selectors = liteness_template_colors_selectors();
    $json = json_decode($custom_css_json, true);
    $final = '';
    foreach ($json as $item => $value) {
        $final .= $selectors[$item . '_bg'] . '{background-color:' . $value . '}' . "\n";
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:header_options.php


示例7: template_url

			
			 if($('#mas_'+num).find($(".fa")).hasClass('fa-chevron-right')){
				$('#mas_'+num).find($(".fa")).removeClass('fa-chevron-right').addClass('fa-chevron-down');
			 }
			document.getElementById(val).style.display = 'block';
		}else{
			document.getElementById(val).style.display = 'none';
		}
	}
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php 
echo template_url();
?>
js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="<?php 
echo template_url('js/vendor/bootstrap.min.js');
?>
"></script>
<script src="<?php 
echo template_url('js/plugins.js');
?>
"></script>
<script src="<?php 
echo template_url('js/datepicker.js');
?>
"></script>
<script src="<?php 
echo template_url('js/main.js');
?>
"></script>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:bottom.php


示例8: isset

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php 
echo $title;
?>
 | <?php 
echo Config::get('app.name', SITETITLE);
?>
</title>
    <?php 
echo isset($meta) ? $meta : '';
// Place to pass data / plugable hook zone
?>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php 
Assets::css(array(vendor_url('bootstrap/css/bootstrap.min.css', 'almasaeed2010/adminlte'), 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css', vendor_url('dist/css/AdminLTE.min.css', 'almasaeed2010/adminlte'), vendor_url('dist/css/skins/_all-skins.min.css', 'almasaeed2010/adminlte'), vendor_url('plugins/select2/select2.min.css', 'almasaeed2010/adminlte'), template_url('css/style.css', 'AdminLTE')));
echo isset($css) ? $css : '';
// Place to pass data / plugable hook zone
?>

<style>
.pagination {
    margin: 0;
}

.pagination > li > a, .pagination > li > span {
  padding: 5px 10px;
}
</style>

<?php 
开发者ID:nova-framework,项目名称:framework,代码行数:31,代码来源:backend.php


示例9: base_url

	<div id="mobile-header" class="row" style="position:fixed;width:100%;background-color:#ffffff;z-index:5000;margin-top:-10px;padding-top:5px;padding-bottom:5px;margin-bottom:350px;">
			
		<div class="col-lg-12">
			
			<table width="100%" border="0">
				<tr>
					<td width="7%">
					
					</td>
					<td width="86%">
						<a href="<?php 
echo base_url();
?>
"><img src="<?php 
echo template_url('img/dignityflowers-logo-213x45.png');
?>
" width="100%" alt="Dignity Flowers"></a>
					</td>
					<td width="7%">
						
					</td>
				</tr>
			</table>
		
		</div>

		<div class="col-lg-12" style="background-color:#770922;margin-top:5px;">	
			
			<table width="100%">
				<tr height="55">
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:top.php


示例10: date

    <!-- Default to the left -->
    <strong>Copyright &copy; <?php 
echo date('Y');
?>
 <a href="http://www.novaframework.com/" target="_blank"><b>Nova Framework <?php 
echo VERSION;
?>
</b></a> - </strong> All rights reserved.
  </footer>

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<?php 
Assets::js(array(vendor_url('bootstrap/js/bootstrap.min.js', 'almasaeed2010/adminlte'), vendor_url('dist/js/app.min.js', 'almasaeed2010/adminlte'), vendor_url('plugins/select2/select2.full.min.js', 'almasaeed2010/adminlte'), template_url('nestable/nestable.js', 'AdminLte'), site_url('ckeditor/ckeditor.js')));
echo isset($js) ? $js : '';
// Place to pass data / plugable hook zone
echo isset($footer) ? $footer : '';
// Place to pass data / plugable hook zone
?>

<script>
$(function () {
    //Initialize Select2 Elements
    $(".select2").select2();
});

CKEDITOR.editorConfig = function( config ) {
  config.filebrowserBrowseUrl = '<?php 
echo site_url('admin/files/plain');
开发者ID:nova-framework,项目名称:cms,代码行数:31,代码来源:backend.php


示例11: and

	#responsive { display: block; }
}

@media screen and (min-width : 0px) and (max-width : 768px) {
    #mobile-header { display: block; }
	#responsive { display: none; }
	#left-navigation { display: none; }
	#caller-info { display: none; }
	
	body{
		padding-top:0px;
	}
}
</style>

<header>
	<div class="container">
		<div id="responsive" class="row">
			<div class="col-sm-12 text-center">
				<h1><a href="<?php 
echo base_url();
?>
" id="logo"><img src="<?php 
echo template_url('img/memlogo.png');
?>
"  alt="Memorial Flowers"></a></h1>
			</div>
		</div>
	</div>		
</header>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:mymemorial-top.php


示例12: template_url

?>
</b></a></p>
            </div>
            <div class="col-lg-8">
                <p class="text-muted pull-right">
                    <?php 
if (Config::get('app.debug')) {
    ?>
                    <small><!-- DO NOT DELETE! - Profiler --></small>
                    <?php 
}
?>
                </p>
            </div>
        </div>
    </div>
</footer>

<?php 
Assets::js(['https://code.jquery.com/jquery-1.12.4.min.js', template_url('js/bootstrap-rtl.min.js', 'Default')]);
echo isset($js) ? $js : '';
// Place to pass data / plugable hook zone
echo isset($footer) ? $footer : '';
// Place to pass data / plugable hook zone
?>

<!-- DO NOT DELETE! - Forensics Profiler -->

</body>
</html>
开发者ID:LuckyCyborg,项目名称:simple-mvc-framework,代码行数:30,代码来源:footer-rtl.php


示例13: template_url

        <link rel="stylesheet" href="<?php 
echo template_url('css/bootstrap-theme.min.css');
?>
">
        
        <link rel="stylesheet" href="<?php 
echo template_url('css/datepicker.css');
?>
">
        <link rel="stylesheet" href="<?php 
echo template_url('css/main.css');
?>
">
        <!--<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">-->
        <link rel="stylesheet" href="<?php 
echo template_url('css/font-awesome.css');
?>
">
        <script src="<?php 
echo template_url('js/vendor/modernizr-2.8.3-respond-1.4.2.min.js');
?>
"></script>
    </head>
    <body>
	
	<?php 
//echo $this->session->userdata('referer');
?>
        <!--[if lt IE 8]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:header.php


示例14: replace_cards

function replace_cards($string, $cards = array(), $inverse = false)
{
    $default = array_merge(array('%template_url_admin%' => template_url_admin(), '%template_url_base%' => template_url_base(), '%template_url%' => template_url(true), '%content_url%' => content_url(), "%base_url%" => BASE_URL, "%admin_url%" => ADMIN_URL), $cards);
    if ($inverse == false) {
        $string = str_replace(array_keys($default), array_values($default), $string);
    } else {
        $string = str_replace(array_values($default), array_keys($default), $string);
    }
    return $string;
}
开发者ID:double-web,项目名称:drawline,代码行数:10,代码来源:include_fastfunc.php


示例15: template_url

								}
							</style>
							</div>
							
							<div id="mobile-header">
							<style>
								.popover{
									max-width:280px;
								}
							</style>
							</div>
							  
                              <div class="col-sm-5">
                                  <h2 style="border-bottom: 1px solid #EEE;">Billing Information</h2>
                                  <div class="form-group"><img src="<?php 
echo template_url('img/cards.gif');
?>
" ></div>
                                  <div class="form-group <?php 
echo highlight_error(form_error('nameoncard'));
?>
">
                                      <input type="text" class="form-control" value="<?php 
echo isset($vars) ? $vars->nameoncard : '';
?>
" id="nameoncard" name="nameoncard" placeholder="Name on card" />
                                       <?php 
echo form_error('nameoncard', '<div class="err" style="font-size:11px;">', '</div>');
?>
                                  </div>
                                  <div class="form-group <?php 
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:checkout.php


示例16: isset

                <?php 
}
?>
            </ul>
        </div>
    </div>
</nav>

<?php 
echo isset($afterBody) ? $afterBody : '';
// Place to pass data / plugable hook zone
?>

<div class="container">
    <p><img src='<?php 
echo template_url('images/nova.png', 'Default');
?>
' alt='<?php 
echo Config::get('app.name', SITETITLE);
?>
' style="max-width: 360px; height: auto;"></p>

    <?php 
echo $content;
?>
</div>

<footer class="footer">
    <div class="container-fluid">
        <div class="row" style="margin: 15px 0 0;">
            <div class="col-lg-4">
开发者ID:LuckyCyborg,项目名称:simple-mvc-framework,代码行数:31,代码来源:custom.php


示例17: isset

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php 
echo $title;
?>
 | <?php 
echo Config::get('app.name', SITETITLE);
?>
</title>
    <?php 
echo isset($meta) ? $meta : '';
// Place to pass data / plugable hook zone
?>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php 
Assets::css(array(site_url('vendor/almasaeed2010/adminlte/bootstrap/css/bootstrap.min.css'), 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css', site_url('vendor/almasaeed2010/adminlte/dist/css/AdminLTE.min.css'), site_url('vendor/almasaeed2010/adminlte/dist/css/skins/_all-skins.min.css'), site_url('vendor/almasaeed2010/adminlte/plugins/iCheck/square/blue.css'), template_url('css/style.css', 'AdminLte')));
echo isset($css) ? $css : '';
// Place to pass data / plugable hook zone
//Add Controller specific JS files.
Assets::js(array(site_url('vendor/almasaeed2010/adminlte/plugins/jQuery/jquery-2.2.3.min.js')));
?>
    <!-- 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/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-<?php 
echo Config::get('app.color_scheme', 'blue');
?>
开发者ID:LuckyCyborg,项目名称:simple-mvc-framework,代码行数:31,代码来源:default.php


示例18: base_url

			
			<table width="100%" border="0" style="background-color:#fff;">
				<tr>
					<td width="82%" align="center" style="padding-left:13%;">
						<!--<a href="<?php 
echo base_url();
?>
"><img src="<?php 
echo base_url();
?>
templates/dignity/img/dignityflowers-logo-213x45.png" alt="Dignity Flowers"></a>-->
						<a href="<?php 
echo base_url();
?>
"><img src="<?php 
echo template_url();
?>
/img/memlogo.png" class="logo-mobile" alt="Memorial Flowers"></a>
					</td>
					<td width="18%" align="center" style="padding-right:7%;">
						<!--
						<li id="cart-icon">
							<?php 
if (isset($tcart) && $tcart->items > 0) {
    ?>
								<a href="/shop/cart"><span style="margin-top:-10px;"><?php 
    echo $tcart->items;
    ?>
</span></a>
							<?php 
}
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:top.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP template_xlate函数代码示例发布时间:2022-05-23
下一篇:
PHP template_top函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap