Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
				<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 
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
</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);
Ejemplo n.º 5
0
	
		<?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');
?>
Ejemplo n.º 6
0
 /**
  * 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;
 }
Ejemplo n.º 7
0
 /**
  * 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;
 }
Ejemplo n.º 8
0
?>
"></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>