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


PHP Asset::get_filepath_img方法代码示例

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


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

示例1: _remap

 /**
  * Catch all requests to this page in one mega-function.
  *
  * @param string $method The method to call.
  */
 public function _remap($method)
 {
     // This page has been routed to with pages/view/whatever
     if ($this->uri->rsegment(1, '') . '/' . $method == 'pages/view') {
         $url_segments = $this->uri->total_rsegments() > 0 ? array_slice($this->uri->rsegment_array(), 2) : null;
     } else {
         if (($url_segments = $this->uri->uri_string()) === 'favicon.ico') {
             $favicon = Asset::get_filepath_img('theme::favicon.ico');
             if (file_exists(FCPATH . $favicon) && is_file(FCPATH . $favicon)) {
                 header('Content-type: image/x-icon');
                 readfile(FCPATH . $favicon);
             } else {
                 set_status_header(404);
             }
             exit;
         }
         $url_segments = $this->uri->total_segments() > 0 ? $this->uri->segment_array() : null;
     }
     // If it has .rss on the end then parse the RSS feed
     $url_segments && preg_match('/.rss$/', end($url_segments)) ? $this->_rss($url_segments) : $this->_page($url_segments);
 }
开发者ID:rishikeshwalawalkar,项目名称:GetARide,代码行数:26,代码来源:pages.php

示例2: form_open

				<div class="error-box">
					<?php 
    echo $error_string;
    ?>
				</div>
		<?php 
}
?>
	<?php 
echo form_open('register', array('id' => 'register'));
?>
		<div class="col-sm-6 col-sm-offset-3">
			<div class="explain">
				<img class="img-responsive center-block"
					src="<?php 
echo Asset::get_filepath_img('aff-design-share-sell.png');
?>
">
				<h3 class="text-center">Design. Share. Profit.</h3>
			
			
					
					<div class="form-group">
					<label class="required" for="first_name"><?php 
echo lang('global:first_last_name');
?>
 </label>
					<?php 
$pl = lang('global:first_last_name');
?>
					<?php 
开发者ID:nockout,项目名称:tshpro,代码行数:31,代码来源:register.php

示例3: image_path

 /**
  * Asset Image Path
  *
  * Helps generate image paths.
  *
  * Usage:
  *
  * {{ asset:image_path file="" }}
  *
  * @return string Path to the image asset relative to web root
  */
 public function image_path()
 {
     $file = $this->attribute('file');
     return BASE_URI . Asset::get_filepath_img($file, false);
 }
开发者ID:gamchantoi,项目名称:sisfo-ft,代码行数:16,代码来源:asset.php

示例4: function

</script>
<?php 
}
?>
<script type="text/javascript"><!--
$(document).ready(function(){
	$('#review_button').bind('click', function(){
		var url = '<?php 
echo $review_action;
?>
';
		$('#name_id').removeClass('error').html('');
		$('#review_id').removeClass('error').html('');
		$('#captcha_id').removeClass('error').html('');
		var img_close = '<img class="close" alt="" src="<?php 
echo Asset::get_filepath_img('close.png', true);
?>
">';
		var data = {product_id: $('input[name=productId]').val(),
					name: $('input[name=name]').val(), 
					review: $('textarea[name=review]').val(), 
					rating: $('input[name=rating]:checked').val(), 
					captcha: $('input[name=captcha]').val()};
		$.ajax({
			type:"POST",
			data: data,
			url: url,
			dataType:"json",
			success: function(response)	{
				if (response.type == 1) {
					$('#name_id').addClass('error').html(response.error_name);
开发者ID:nvmanh,项目名称:codeigniter-shop,代码行数:31,代码来源:product.php

示例5: foreach

	
		<?php 
    foreach ($images as $img) {
        ?>
		<img style="width:90px;heith:320px" data-pyroimage="true" alt="your art" src="<?php 
        echo isset($img) ? $img : "";
        ?>
" id="target">
		<?php 
    }
    ?>
		<?php 
} else {
    ?>
		<img style="width:90px;heith:90px"  alt="your art" src="<?php 
    echo Asset::get_filepath_img("load-art.jpg");
    ?>
" id="target">
		<?php 
}
?>
		</fieldset>
		</div>
			
		<div class="one_half">
			<fieldset>
			<ul>
				<li>
					<label for="title"><?php 
echo lang('global:title');
?>
开发者ID:nockout,项目名称:tshpro,代码行数:30,代码来源:form.php

示例6: favicon

 /**
  * Theme Favicon
  *
  * Insert a link tag for favicon from your theme
  *
  * Specs:
  *
  *     http://www.w3.org/TR/html5/links.html#rel-icon
  *
  * Usage:
  *
  *     {{ theme:favicon file="" [rel="foo"] [type="bar"] [sizes="16x16 72x72 …"] }}
  *
  * @return string The link HTML tag for the favicon.
  */
 public function favicon()
 {
     $this->load->library('asset');
     $file = Asset::get_filepath_img($this->attribute('file', 'favicon.ico'), true);
     $rel = $this->attribute('rel', 'shortcut icon');
     $sizes = $this->attribute('sizes', '');
     $type = $this->attribute('type', 'image/x-icon');
     $is_xhtml = str_to_bool($this->attribute('xhtml', true));
     $link = '<link ';
     $link .= 'href="' . $file . '" ';
     $link .= 'rel="' . $rel . '" ';
     $link .= $sizes ? 'sizes="' . $sizes . '" ' : '';
     $link .= 'type="' . $type . '" ';
     $link .= ($is_xhtml ? '/' : '') . '>';
     return $link;
 }
开发者ID:nockout,项目名称:tshpro,代码行数:31,代码来源:theme.php

示例7: favicon

 /**
  * Theme Favicon
  *
  * Insert a link tag for favicon from your theme
  *
  * Usage:
  *   {{ theme:favicon file="" [rel="foo"] [type="bar"] }}
  *
  * @return string The link HTML tag for the favicon.
  */
 public function favicon()
 {
     $this->load->library('asset');
     $file = Asset::get_filepath_img($this->attribute('file', 'favicon.ico'), true);
     $rel = $this->attribute('rel', 'shortcut icon');
     $type = $this->attribute('type', 'image/x-icon');
     $is_xhtml = in_array($this->attribute('xhtml', 'true'), array('1', 'y', 'yes', 'true'));
     $link = '<link ';
     $link .= 'href="' . $file . '" ';
     $link .= 'rel="' . $rel . '" ';
     $link .= 'type="' . $type . '" ';
     $link .= ($is_xhtml ? '/' : '') . '>';
     return $link;
 }
开发者ID:ramonleenders,项目名称:pyrocms,代码行数:24,代码来源:theme.php

示例8: base_url

?>
"></a>
						<a href="#" ><img alt="" src="<?php 
echo Asset::get_filepath_img('gr-link.png', true);
?>
"></a>
						<a href="#" ><img alt="" src="<?php 
echo Asset::get_filepath_img('tumblr.png', true);
?>
"></a>
						<a href="#" ><img alt="" src="<?php 
echo Asset::get_filepath_img('youtube-icon.png', true);
?>
"></a>
						<a href="#" ><img alt="" src="<?php 
echo Asset::get_filepath_img('vnexpress-icon.png', true);
?>
"></a>
					</div>
				</div>
			</div>
			<div align="center" class="copyright margin-top-20 margin-bottom-20 width fl">
				<div style="color: #848484;" class="footer-unit">
					Copyright &copy; 2012 by <a href="<?php 
echo base_url();
?>
">Nhật Minh Shop.</a>
				</div>
			</div>
		</div>
	</div>
开发者ID:nvmanh,项目名称:codeigniter-shop,代码行数:31,代码来源:footer.php


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