public static function bautySpa_add_css_js()
 {
     $src_css = get_template_directory_uri() . "/css/";
     $src = get_template_directory_uri() . "/js/";
     $js = array('modernizr' => 'modernizr.custom.63321.js', 'bootstrap.min.js' => 'bootstrap.min.js', 'wow.min.js' => 'wow.min.js', 'placeholders.js' => 'placeholders.js', 'superslides' => 'jquery.superslides.min.js', 'prettyPhoto' => 'jquery.prettyPhoto.js', 'datetimepicker' => 'jquery.datetimepicker.js', 'carousel' => 'owl-carousel2/owl.carousel.min.js', 'master.js' => 'master.js');
     // ////////////==============JS ENQUEue =========///
     wp_enqueue_script('jquery');
     // wp_enqueue_script ( 'gmapapi', 'http://maps.google.com/maps/api/js?sensor=false&language=en', '', '', true );
     foreach ($js as $key => $value) {
         wp_enqueue_script($key, $src . $value, '', '', true);
     }
     // ///=================CSS ENQUEue===========///
     $css_file = AfterSetupTheme::bautySpa_return_thme_option('style_switcher');
     if ($css_file == null) {
         $css_file = 'style1';
     }
     $css = array('bootstrap.css' => 'bootstrap.min.css', 'loading.css' => 'loading.css', 'animate.min.css' => 'animate.min.css', 'style-main.css' => 'style1.css', 'datetimepicker1' => 'jquery.datetimepicker1.css', 'prettyPhoto' => 'prettyPhoto.css', 'owl.carousel.min.css' => 'assets/owl.carousel.min.css', 'owl.theme.default.min.css' => 'assets/owl.theme.default.min.css', $css_file => $css_file . '.css');
     wp_register_style("googlefont", 'http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic');
     wp_register_style("googlefont1", 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,600,600italic,700,700italic,800,800italic,300italic');
     wp_register_style("fontawesome", get_template_directory_uri() . '/fonts/font-awesome/css/font-awesome.min.css');
     wp_enqueue_style("googlefont");
     wp_enqueue_style("googlefont1");
     wp_enqueue_style("fontawesome");
     foreach ($css as $key => $value) {
         wp_register_style($key, $src_css . $value);
         wp_enqueue_style($key);
     }
 }
?>
	<!--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 {
Esempio n. 3
0
<?php

defined('ABSPATH') or die("No script kiddies please!");
?>

<footer id="copyright" class="page-block-small wow fgadeInDown" data-wow-offset="70" data-wow-delay="700ms">
  <div class="container text-center"> 
    <div class="row">
    
      <?php 
echo apply_filters('the_content', AfterSetupTheme::bautySpa_return_thme_option('copyright'));
?>
      
    </div>
  </div>
</footer>

<a href="#tops" class="top"><i class="fa fa-arrow-up fa-lg"></i></a>

<?php 
wp_footer();
?>
</body>
</html>
$content_bg = esc_url($thumbnail_src[0]) != null ? 'style="background: url(' . esc_url($thumbnail_src[0]) . ') no-repeat center center; background-size:cover;"' : null;
?>

<section class="breadcrumbs" <?php 
echo $content_bg;
?>
>
	<div class="container">
		<div class="page-header">
			<h1><?php 
wp_title('');
?>
</h1>
		</div>
		<?php 
AfterSetupTheme::beautySpa_breadcrumb();
?>
	</div>
</section>

<?php 
get_template_part('menu-section');
?>
<section class="page-block">
	<div class="container">
		<div class="row">
			<div class="col-md-9 col-sm-8 content" id="content">
		<?php 
$paged = get_query_var('paged') ? intval(get_query_var('paged')) : 1;
$args = array('posts_per_page' => get_option('posts_per_page'), 'paged' => $paged);
query_posts($args);
<?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)) {
    ?>
 static function get_next_post_link($id)
 {
     $args = array('posts_per_page' => -1, 'offset' => 0, 'category' => '', 'category_name' => '', 'orderby' => 'date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'author' => '', 'post_status' => 'publish', 'suppress_filters' => true);
     $posts_array = get_posts($args);
     self::$all_posts_id = array();
     foreach ($posts_array as $key => $single) {
         array_push(self::$all_posts_id, $single->ID);
     }
     $index = '';
     $link = '<ul>';
     $prev = '';
     $next = '';
     $count = count(self::$all_posts_id);
     if (!empty(self::$all_posts_id)) {
         for ($i = 0; $i < $count; $i++) {
             if (self::$all_posts_id[$i] == $id) {
                 $index = $i;
                 break;
             }
         }
         if ($index == 0) {
             $prev = '<li class="prev"><a href="' . get_permalink(self::$all_posts_id[$count - 1]) . '"><i class="icon-left-open-big"></i></a></li>';
             $next = '<li class="next"><a href="' . get_permalink(self::$all_posts_id[1]) . '"><i class="icon-right-open-big"></i></a></li>';
         } elseif ($index == $count - 1) {
             $prev = '<li class="prev"><a href="' . get_permalink(self::$all_posts_id[$count - 2]) . '"><i class="icon-left-open-big"></i></a></li>';
             $next = '<li class="next"><a href="' . get_permalink(self::$all_posts_id[0]) . '"><i class="icon-right-open-big"></i></a></li>';
         } else {
             $prev = '<li class="prev"><a href="' . get_permalink(self::$all_posts_id[$index - 1]) . '"><i class="icon-left-open-big"></i></a></li>';
             $next = '<li class="next"><a href="' . get_permalink(self::$all_posts_id[$index + 1]) . '"><i class="icon-right-open-big"></i></a></li>';
         }
     }
     $link .= $prev . '<li><a href="#"><i class="icon-layout"></i></a></li>' . $next;
     $link .= '</ul>';
     return $link;
 }
    static function testimonial_wrapper($args, $content = null)
    {
        $default = array('heading' => '', 'img_url' => '');
        $sanitized_args = shortcode_atts($default, $args);
        if (AfterSetupTheme::bautySpa_return_thme_option('theme_switcher') == 'para') {
            $para_class = "para";
        } else {
            $para_class = 'none';
        }
        $content_bg = esc_url($sanitized_args['img_url']) != null ? 'style="background: url(' . esc_url($sanitized_args['img_url']) . ') no-repeat center center; background-size:cover;"' : null;
        $break_text = explode('//', esc_html($sanitized_args['heading']));
        $text = '<h1 class="wow fadeInDown" data-wow-offset="200" data-wow-delay="300ms">';
        foreach ($break_text as $key => $single_text) {
            if ($key % 2 != 0) {
                $text .= '<strong>' . $single_text . '</strong>';
            } else {
                $text .= $single_text;
            }
        }
        $text .= '</h1>';
        $html = '<div class="quotes">
	<div class="highlightBox ' . $para_class . '" ' . $content_bg . '>
    	<div class="boxBg">
    		<div class="page-block-big">
            		<i class="fa fa-quote-left wow bounceIn" data-wow-offset="200" data-wow-delay="100ms"></i><i class="fa fa-quote-right wow bounceIn" data-wow-offset="200" data-wow-delay="100ms"></i>
            	 ' . $text . '
                  <div id="testimonial" class="carousel slide container" data-ride="carousel">' . do_shortcode($content) . ' </div><!-- end testimonial -->
			</div><!-- end page-block-bi -->
        </div><!-- end boxBg -->
    </div><!-- end highlightBox -->
</div>';
        self::$count_service_content = 0;
        self::$count_service_nav = 0;
        return $html;
    }
Esempio n. 8
0
 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;
 }
 static function get_terms($id)
 {
     // $args = array('orderby' => 'name', 'order' => 'ASC', 'fields' => 'name');
     $terms = '<ul>';
     $get = false;
     $getTerms = wp_get_post_terms($id);
     $getCat = get_the_category($id);
     $count = count($getTerms);
     if ($count != 0) {
         foreach ($getTerms as $key => $value) {
             $link = is_wp_error(get_term_link($value->slug)) ? '#' : get_term_link($value->slug);
             if ($key == $count - 1) {
                 $terms .= '<li><a href="' . $link . '">' . $value->name . '</a></li>';
             } else {
                 $terms .= '<li><a href="' . $link . '">' . $value->name . ', </a></li>';
             }
         }
         $get = true;
     } elseif (count($getCat) != 0) {
         foreach ($getCat as $key => $value) {
             if ($key == count($getCat) - 1) {
                 $terms .= '<li><a href="' . get_category_link($value->cat_ID) . '">' . $value->name . '</a></li>';
             } else {
                 $terms .= '<li><a href="' . get_category_link($value->cat_ID) . '">' . $value->name . ', </a></li>';
             }
         }
         $get = true;
     } else {
         $get = false;
     }
     $terms .= '</ul>';
     if ($get) {
         return $terms;
     } else {
         return AfterSetupTheme::get_custom_taxonomies();
     }
 }
Esempio n. 10
0
if (AfterSetupTheme::bautySpa_return_thme_option('loader') != 1) {
    ?>
	<div id="preloader">
		<div class="loading">
			<ul class="spinner">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</div>
<?php 
}
?>
<div id='tops'></div>

<div class="container">
	<div class="row">
       
       <a class="logo wow fadeInDown" data-wow-iteration="1" href="<?php 
echo esc_url(home_url('/'));
?>
" title="Beautyspa">
            <img class="img-responsive" src="<?php 
echo esc_url(AfterSetupTheme::bautySpa_return_thme_option('logo', 'url'));
?>
" alt="Beautyspa" />
       </a>
    </div>
</div>
Esempio n. 11
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 
Esempio n. 12
0
	<!--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>
Esempio n. 13
0
        }
        ?>
						<?php 
        echo the_content();
        wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'pranon') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'pranon') . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>'));
        ?>

						<div class="tagsSingle clearfix">
								<h4>
									<i class="icon-tag-1"></i><?php 
        echo esc_html__('Tags', 'pranon');
        ?>
 :
							</h4>
							<?php 
        echo AfterSetupTheme::get_terms(get_the_ID());
        ?>
						</div>



						</div>
						<!--End post content-->

					</div>
					<!--End post single-->


				</div>
				<!--End blog single details inner-->
			</div>
    ?>
			<!--Project intro-->
		<div class="pSingleIntro  ofsTSmall">
			<p><?php 
    echo get_the_excerpt();
    ?>
</p>
		</div>
		<!--End project intro-->
<?php 
}
?>

		<!--Projects share-->
		<?php 
echo AfterSetupTheme::social_share(get_permalink());
?>
		<!--End project share-->


	</div>
	<!--End container-->



<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<div class="projShowcase margTop">
 static function pranon_products_column_change()
 {
     return AfterSetupTheme::pranon_return_thme_option('number-of-product');
 }