<?php

/**
 * The Template for displaying product archives, including the main shop page which is a post type archive.
 *
 * Override this template by copying it to yourtheme/woocommerce/archive-product.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
defined('ABSPATH') or die("No script kiddies please!");
get_header();
get_template_part('menu-section');
$content_bg = esc_url(AfterSetupTheme::pranon_return_thme_option('shop-single-parallax', 'url')) != null ? esc_url(AfterSetupTheme::pranon_return_thme_option('shop-single-parallax', 'url')) : get_template_directory_uri() . '/images/teaserImages/r1.jpg';
?>
<section class="headerSingle hSingleHeight overlay tCenter" style="background-image: url('<?php 
echo esc_url($content_bg);
?>
');">
	<!--Hero-->
	<div class="hero">


		<!--Title-->
		<div class="title light ofsBottom ">
			<h1>
				<?php 
if (apply_filters('woocommerce_show_page_title', true)) {
    ?>
?>
	<!--Main header-->
	<div class="mainHeader <?php 
echo $menuClass;
?>
 mobile">
		<!--Container-->
		<div class="container clearfix">
			<div class="three columns logoHolder">
				<!--Logo-->
				<div class="logo">
					<a href="<?php 
echo esc_url(home_url('/'));
?>
"><img src="<?php 
echo esc_url(AfterSetupTheme::pranon_return_thme_option('logo', 'url'));
?>
" alt="" /></a>
				</div>
				<!--End logo-->
			</div>
			<div class="thirteen columns tRight">

				<a href="#" class="mobileBtn"><i class="icon-menu"></i></a>
				<!--Navigation-->
				  <?php 
$fornt_page = 'scrollto';
$object;
if (is_front_page()) {
    $object = new Pranon_Nav_Menu($fornt_page);
} else {
 private function getTwitterJSON()
 {
     require $this->lib . 'tmhOAuth.php';
     require $this->lib . 'tmhUtilities.php';
     $tmhOAuth = new tmhOAuth(array('consumer_key' => AfterSetupTheme::pranon_return_thme_option('tweet-consumer-key'), 'consumer_secret' => AfterSetupTheme::pranon_return_thme_option('tweet-consumer-secret'), 'user_token' => AfterSetupTheme::pranon_return_thme_option('tweet-access-token'), 'user_secret' => AfterSetupTheme::pranon_return_thme_option('tweet-access-secret'), 'curl_ssl_verifypeer' => false));
     $url = $_POST['request']['url'];
     $params = $_POST['request']['parameters'];
     $tmhOAuth->request('GET', $tmhOAuth->url($url), $params);
     return $tmhOAuth->response;
 }
示例#4
0
<?php

defined('ABSPATH') or die("No script kiddies please!");
get_header();
get_template_part('menu-section');
$content_bg = esc_url(AfterSetupTheme::pranon_return_thme_option('notfound-single-parallax', 'url')) != null ? 'style="background-image: url(' . esc_url(AfterSetupTheme::pranon_return_thme_option('notfound-single-parallax', 'url')) . ')"' : null;
?>

<!--404 error section-->
		<section class="tCenter bgWhite err" >
			

						<!--Error  holder-->
						<div class="errHolder">
							
							<div class="errImg overlay" <?php 
echo $content_bg;
?>
></div>
							
							<div class="errIntro">
								
								<h1><?php 
_e('404 : Ooops', 'pranon');
?>
</h1>
								<p><?php 
_e('we can not find what you are looking for. Please check the URL to ensure that the path is correct or search again.', 'pranon');
?>
</p>
								 <?php 
	<!--End footer bottom-->
</footer>
<!--End footer-->
</div>
<!--End wrapper-->

<?php 
wp_footer();
if (class_exists('Woocommerce')) {
    $js = '<script type="text/javascript">';
    $js .= "jQuery('.add_to_cart_button').click(function(){";
    $qty = WC()->cart->get_cart_contents_count();
    $qty = $qty + 1;
    $js .= "jQuery('#wc_cart').text(" . $qty . ")";
    $js .= '});</script>';
    echo $js;
}
$custom_css = AfterSetupTheme::pranon_return_thme_option('opt-ace-editor-css');
if ($custom_css != '') {
    $css = ' <style type="text/css">
            ' . $custom_css . '
       </style>';
} else {
    $css = '';
}
echo $css;
?>


</body>
</html>
        } else {
            $attachment_dir = $upload_dir['baseurl'];
        }
        if (isset($img_src['sizes']['single_post']['file'])) {
            $img .= '<li>
				<img class="img-responsive" src="' . esc_url($attachment_dir . '/' . $img_src['sizes']['single_post']['file']) . '" alt="">
			</li>';
        } else {
            $img .= '<li>
				<img class="img-responsive" src="' . esc_url($attachment_dir . '/' . $img_src['sizes']['large']['file']) . '" alt="">
			</li>';
        }
    }
    $img .= '</ul></div>';
}
if (AfterSetupTheme::pranon_return_thme_option('sidebar')) {
    $left = 'eleven';
    $right = 'five';
} else {
    $left = 'sixteen';
    $right = '';
}
get_template_part('menu-section');
?>
<section class="blogSingle bgGrey ofsTop  tCenter">

	<!--Container-->
	<div class="container clearfix">

		<!--Blog single intro inner-->
		<div class="pSingleIntroInner singleOffset ofsBottom">
 static function pranon_products_column_change()
 {
     return AfterSetupTheme::pranon_return_thme_option('number-of-product');
 }