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); } }
<?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>
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; }
<?php defined('ABSPATH') or die("No script kiddies please!"); get_header(); $content_bg = esc_url(AfterSetupTheme::bautySpa_return_thme_option('blog-details-head-para', 'url')) != null ? 'style="background: url(' . esc_url(AfterSetupTheme::bautySpa_return_thme_option('blog-details-head-para', 'url')) . ') no-repeat center center; background-size:cover;"' : null; ?> <section class="breadcrumbs" <?php echo $content_bg; ?> > <div class="container"> <div class="page-header"> <h1><?php echo esc_html(AfterSetupTheme::bautySpa_return_thme_option('blog-page-details-head')); ?> </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
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>