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


PHP template_url函数代码示例

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


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


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