Ejemplo n.º 1
0
?>
 col-xs-<?php 
echo esc_attr($class);
?>
'>
                      <a class="logo" href="<?php 
echo home_url('/');
?>
">
                        <?php 
$logo_url = st()->get_option('logo', get_template_directory_uri() . '/img/logo-invert.png');
$logo = TravelHelper::get_attchment_size($logo_url, true);
?>
                        <img <?php 
if ($logo) {
    echo balancetags(" width='" . $logo['width'] . "px' height ='" . $logo['height'] . "px' ");
}
?>
 src="<?php 
echo esc_url($logo_url);
?>
" alt="logo" title="<?php 
bloginfo('name');
?>
">
                    </a>
                </div>
                
                <div class='col-lg-8 col-md-8 col-sm-12 col-xs-12'>
                    <div class="nav">
                        <?php 
Ejemplo n.º 2
0
							<img src="<?php 
            echo esc_url($class_temp_img[0]);
            ?>
" alt="<?php 
            the_title();
            ?>
">
						</div>

						<div class="col-md-6">
							<h3><?php 
            the_title();
            ?>
</h3>
							<p class="subtitle"><?php 
            echo balancetags($class_session);
            ?>
</p>
							<div class="content">
								<?php 
            echo the_excerpt();
            ?>
							</div>

							<div class="button-normal green">
								<a href="<?php 
            the_permalink();
            ?>
"><?php 
            esc_html_e('VIEW MORE', 'kindergarten');
            ?>
Ejemplo n.º 3
0
			</div>
		</div>
	</div>
	<?php 
    }
    ?>

	<!-- MAP START
	============================================= -->
	<div class="map">
		<div class="acf-map">
			<div class="marker" id="map" data-lat="<?php 
    echo balancetags($google_maps['lat']);
    ?>
" data-lng="<?php 
    echo balancetags($google_maps['lng']);
    ?>
">
			</div>
		</div>
	</div>
	<!-- MAP END -->

	<!-- CONTACT CONTENT START
	============================================= -->
	<div class="contact-section">
		<div class="container">
			<div class="row">
				
				<div class="contact-details col-md-4 wow fadeIn">
				<?php 
Ejemplo n.º 4
0
										<h6 class="title"><?php 
                esc_html_e('Class Size', 'kindergarten');
                ?>
</h6>
										<p><?php 
                echo sanitize_text_field($class_size);
                ?>
</p>
									</div>
								<?php 
            }
            if (!empty($class_price)) {
                ?>
									<div class="class-price">
										<h3><?php 
                echo balancetags($class_price);
                ?>
</h3>
									</div>
								<?php 
            }
            ?>
							</div>
						</div>
					</div>
				</a>
			</div>
			<?php 
        }
        wp_reset_postdata();
    }
    $st_location_style = STInput::request('style');
}
if ($st_location_style == "list") {
    $return .= '<ul class="booking-list loop-activities style_list">';
} else {
    $return .= '<div class="row row-wrap">';
}
$activity = new STActivity();
add_filter('posts_join', array($activity, '_get_join_query'));
add_filter('posts_where', array($activity, '_get_where_query_tab_location'));
query_posts($query);
remove_filter('posts_join', array($activity, '_get_join_query'));
remove_filter('posts_where', array($activity, '_get_where_query_tab_location'));
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $return .= st()->load_template('activity/elements/loop/loop-1', null);
    }
} else {
    echo '<div class="col-xs-12"><div class="alert alert-warning">' . __("There are no available activity for this location, time and/or date you selected.", ST_TEXTDOMAIN) . '</div></div>';
}
if ($st_location_style == "list") {
    $return .= '</ul>';
} else {
    $return .= "</div>";
}
$array = array('post_type' => $post_type, 'location_title' => $location_title, 'location_id' => $location_id);
$return .= st()->load_template('location/result_string', null, $array);
wp_reset_query();
echo "<div class='col-md-12 col-xs-12'>" . balancetags($return) . "</div>";
Ejemplo n.º 6
0
    public function form($instance)
    {
        if (isset($instance['title'])) {
            $title = $instance['title'];
        } else {
            $title = __('Title', ST_TEXTDOMAIN);
        }
        if (isset($instance['post_type'])) {
            $post_type = $instance['post_type'];
        } else {
            $post_type = __('Post type', ST_TEXTDOMAIN);
        }
        if (isset($instance['background'])) {
            $bgr = $instance['background'];
        } else {
        }
        if (isset($instance['use_feature'])) {
            $use_feature = $instance['use_feature'];
        } else {
            $use_feature = "feature";
        }
        $imgid = isset($instance['imgid']) ? $instance['imgid'] : "";
        $img = wp_get_attachment_image_src($imgid, 'thumbnail');
        ?>
		<div class='location_widget_item'>
			<p>
				<label for="<?php 
        echo balancetags($this->get_field_id('title'));
        ?>
"><?php 
        _e('Title:');
        ?>
</label> 
				<br>
				<input class="widefat" id="<?php 
        echo balancetags($this->get_field_id('title'));
        ?>
" name="<?php 
        echo balancetags($this->get_field_name('title'));
        ?>
" type="text" value="<?php 
        echo esc_attr($title);
        ?>
" />
			</p>

			<!-- select post type -->
			<p>
				<label for="<?php 
        echo balancetags($this->get_field_id('post_type'));
        ?>
"><?php 
        _e('Select post type:');
        ?>
</label> 
				<br>
				<select name="<?php 
        echo balancetags($this->get_field_name('post_type'));
        ?>
" >
					<option <?php 
        if ($post_type == "st_cars") {
            echo balancetags("selected");
        }
        ?>
  value='st_cars'>Cars</option>
					<option <?php 
        if ($post_type == "st_hotel") {
            echo balancetags("selected");
        }
        ?>
  value='st_hotel'>Hotels</option>
					<option <?php 
        if ($post_type == "st_rental") {
            echo balancetags("selected");
        }
        ?>
  value='st_rental'>Rentals</option>
					<option <?php 
        if ($post_type == "st_tours") {
            echo balancetags("selected");
        }
        ?>
  value='st_tours'>Tours</option>
					<option <?php 
        if ($post_type == "st_activity") {
            echo balancetags("selected");
        }
        ?>
  value='st_activity'>Activities</option>
				</select>
			</p>

			<input <?php 
        if ($use_feature == "feature") {
            echo "checked";
        }
        ?>
 type="radio" id ="<?php 
        echo balancetags($this->get_field_id('use_feature'));
        ?>
" name="<?php 
        echo balancetags($this->get_field_name('use_feature'));
        ?>
" id="<?php 
        echo balancetags($this->get_field_id('use_feature'));
        ?>
" value="feature" />
			<label class="checked_label_location">Use random feature image post type</label><br><br>
			<input <?php 
        if ($use_feature == "static") {
            echo "checked";
        }
        ?>
 type="radio" id ="<?php 
        echo balancetags($this->get_field_id('use_feature'));
        ?>
" name="<?php 
        echo balancetags($this->get_field_name('use_feature'));
        ?>
" id="<?php 
        echo balancetags($this->get_field_id('use_feature'));
        ?>
" value="static" />
			<label class ="checked_label_location">Use static background</label>

			<!-- image select  -->
			<p>
			
			<?php 
        if ($bgr != "") {
            echo wp_get_attachment_image($bgr, array(240, 240), false, array('class' => "bgr_location"));
        }
        ?>
	        <br>
			<input type="text" value="<?php 
        echo esc_attr($bgr);
        ?>
" class="widefat bgr_info_hidden" id="<?php 
        echo balancetags($this->get_field_id('background'));
        ?>
" name="<?php 
        echo balancetags($this->get_field_name('background'));
        ?>
" max="" min="1" step="1">
	            
	        <button class="set_custom_images button">Set background</button>	        
			</p>
		</div>
		<?php 
    }
Ejemplo n.º 7
0
 function shortcode_tabs($atts, $content = null)
 {
     $variables = array('title' => '', 'style' => '', 'bg_color' => '', 'class' => '', 'img_src' => '', 'img_height' => '', 'img_width' => '', 'img_alt' => 'tab-image');
     //available style values ( ''|style1|trans-style|full-width-style )
     extract(shortcode_atts($variables, $atts));
     $this->tabs_first_tab = true;
     $result = '';
     if (!empty($title)) {
         $result .= '<h2>' . esc_html($title) . '</h2>';
     }
     if ($style == 'trans-style' && !empty($img_src)) {
         $img_alt = $img_alt != '' ? " alt='" . esc_attr($img_alt) . "'" : '';
         $img_width = $img_width != '' ? " width='" . esc_attr($img_width) . "'" : '';
         $img_height = $img_height != '' ? " height='" . esc_attr($img_height) . "'" : '';
         $result .= '<img class="full-width" src="' . esc_url($img_src) . '"' . $img_alt . $img_width . $img_height . '/>';
     }
     $class = empty($class) ? '' : ' ' . $class;
     $bg_color = empty($bg_color) ? '' : ' ' . $bg_color;
     $result .= '<div class="tab-container ' . esc_attr($style . $class . $bg_color) . '">';
     $result .= '<ul class="tabs">';
     $active = ' class="active"';
     foreach ($atts as $key => $tab) {
         if (!array_key_exists($key, $variables)) {
             $result .= '<li' . $active . '><a href="#' . esc_attr($key) . '" data-toggle="tab">' . balancetags(htmlspecialchars_decode($tab), true) . '</a></li>';
             $active = '';
         }
     }
     $result .= '</ul>';
     $result .= '<div class="tab-content">';
     $result .= do_shortcode($content);
     $result .= '</div></div>';
     return $result;
 }
    ?>
" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_<?php 
    echo esc_attr($stm_tab_id);
    ?>
">
			<div class="panel-body">
				<div class="course-panel-body">
					<?php 
    // Check for private content only on course page
    if (!empty($private_lesson) and $private_lesson) {
        if ($bought_course) {
            echo $content;
        } else {
            // placeholder
            if (!empty($private_placeholder)) {
                echo balancetags($private_placeholder);
            } else {
                echo esc_attr(_e('The content of this lesson is locked. To unlock it, you need to Buy this Course.', 'stm_domain'));
            }
        }
    } else {
        echo $content;
    }
    ?>
				</div>
			</div>
		</div>
	<?php 
}
?>
</div>
Ejemplo n.º 9
0
 function _show_wc_cart_item_information_btn($cart_item_key = array())
 {
     //print balancetags("<br><p class ='btn btn-primary' data-toggle='collapse' data-target='#st_cart_item".md5(json_encode($cart_item_key))."'>".__("Details" , ST_TEXTDOMAIN)."</p>");
     print balancetags('<br><span data-hide = "' . __("Less", ST_TEXTDOMAIN) . ' <i class=&quot;fa fa-angle-up&quot;>" data-target= "#st_cart_item' . md5(json_encode($cart_item_key)) . '" data-toggle="collapse" class="_show_wc_cart_item_information_btn text-color booking-item-review-expand-more">' . __("More", ST_TEXTDOMAIN) . ' <i class="fa fa-angle-down"></i></span>');
 }
Ejemplo n.º 10
0
    public function form($instance)
    {
        // title
        // list post type checkbox
        // review checkbox
        // location select
        if (isset($instance['title'])) {
            $title = $instance['title'];
        } else {
            $title = __('Title', ST_TEXTDOMAIN);
        }
        if (isset($instance['post_type'])) {
            $post_type = $instance['post_type'];
        }
        if (isset($instance['count_review'])) {
            $count_review = $instance['count_review'];
        }
        ?>
		<div class='location_widget_item'>
			<p>
				<label ><?php 
        echo balancetags("Title", ST_TEXTDOMAIN);
        ?>
</label>
				<input value='<?php 
        echo esc_attr($title);
        ?>
' type='text' name='<?php 
        echo $this->get_field_name('title');
        ?>
'/>
			</p>
			<p>
				<label><?php 
        echo balancetags("Post type select ", ST_TEXTDOMAIN);
        ?>
</label>
				<?php 
        $get_post_type_list_active = STLocation::get_post_type_list_active();
        if (!empty($get_post_type_list_active) and is_array($get_post_type_list_active)) {
            foreach (STLocation::get_post_type_list_active() as $key => $value) {
                ?>
						<br>
						<input <?php 
                if (!empty($post_type) and $post_type and in_array($value, $post_type)) {
                    echo esc_attr('checked');
                }
                ?>
 
						id ='<?php 
                echo esc_attr("st_w_" . $value);
                ?>
'  
						value = '<?php 
                echo esc_attr($value);
                ?>
' 
						type='checkbox' 
						name='<?php 
                echo balancetags($this->get_field_name('post_type'));
                ?>
[]'/> 
						<label ><?php 
                echo esc_attr(STLocation::get_post_type_name($value, true));
                ?>
</label>
						<?php 
            }
        }
        ?>
			</p>
			<p>
				<label><?php 
        echo balancetags("Count Review", ST_TEXTDOMAIN);
        ?>
</label>
				<input <?php 
        if (!empty($count_review) and $count_review == 'on') {
            echo "checked";
        }
        ?>
 type='checkbox' name='<?php 
        echo balancetags($this->get_field_name('count_review'));
        ?>
'/>
			</p>
			<p>
				<label><?php 
        echo esc_attr("Location select", ST_TEXTDOMAIN);
        ?>
</label>
				<?php 
        $list_location = TravelerObject::get_list_location();
        if (!empty($instance['location'])) {
            $old_location = $instance['location'];
        }
        //$old_location = $instance['location'];
        ?>
				<select name="<?php 
        echo balancetags($this->get_field_name('location'));
        ?>
" class="form-control">
			       <option value=""><?php 
        _e('-- Select --', ST_TEXTDOMAIN);
        ?>
</option>
			       <?php 
        foreach ($list_location as $k => $v) {
            ?>
			            <option <?php 
            if (!empty($old_location) and $old_location == $v['id']) {
                echo 'selected';
            }
            ?>
 value="<?php 
            echo esc_html($v['id']);
            ?>
">
			                <?php 
            echo esc_html($v['title']);
            ?>
			            </option>
			       <?php 
        }
        ?>
			   </select>
		   </p>
		</div>
		<?php 
    }
Ejemplo n.º 11
0
<div class='row'>
	<div class="bg-holder">
	    <div class="bg-mask"></div>
	<div class="bg-parallax" style="background-image: url(<?php 
echo esc_url($background_image);
?>
); background-position: 50% -62.4px;"></div>
	    <div class="bg-content" style='padding: 60px 15px 40px 15px '>
	        <div class="container gap gap-big text-white">
	            <h2 class='text-uc mb20'><?php 
echo esc_html($welcome_text);
?>
</h2>
	               
	                <?php 
echo balancetags($content);
?>
  
	            
	        </div>
	    </div>
	</div>
</div>
 public function get_landing_page()
 {
     echo balancetags($this->load_view('landing_page/landing_page'));
 }
Ejemplo n.º 13
0
        $link = admin_url('/admin.php?page=' . $value['menu_slug']);
        $title = $value['page_title'];
        $active = "";
        if ($page == $value['menu_slug']) {
            $active = "nav-tab-active";
            $link = " # ";
        }
        ?>
							<a class ="st-nav-tab nav-tab <?php 
        echo balancetags($active);
        ?>
 " href="<?php 
        echo balancetags($link);
        ?>
"><?php 
        echo balancetags($title);
        ?>
</a>
							<?php 
    }
}
?>
	    		
    		</h2>
		</section>
		<section class='landing_page_content'>
			<?php 
echo $this->load_view('landing_page/landing_page', STInput::request('page'));
?>
			<div class="traveler-thanks">
		        <p class="description"><?php 
Ejemplo n.º 14
0
        function shortcode_pricing_table($atts, $content = null)
        {
            $variables = array('class' => '', 'style' => '', 'price' => '', 'title' => '', 'btn_title' => 'Buy Now!', 'btn_url' => '', 'btn_target' => '_blank', 'btn_color' => '', 'btn_class' => '', 'ribbon_img_url' => '', 'is_featured' => '');
            extract(shortcode_atts($variables, $atts));
            $result = '';
            if (empty($style)) {
                $classes = array('plan');
                if (!empty($is_featured)) {
                    $classes[] = 'plan-tall';
                }
                if ($class != '') {
                    $classes[] = $class;
                }
                $result .= '<div class="' . esc_attr(implode(' ', $classes)) . '">';
                if (!empty($ribbon_img_url)) {
                    $result .= '<span class="ribbon_table" style="background:url(' . esc_url($ribbon_img_url) . ') no-repeat 0 0"></span>';
                }
                $result .= '<h2 class="plan-title">' . esc_html($title) . '</h2>';
                $result .= '<p class="plan-price">' . balancetags($price) . '</p>';
                $content = preg_replace('/<ul>/', '<ul class="plan-features">', $content, 1);
                $result .= do_shortcode($content);
                $result .= '<p><a href="' . esc_url($btn_url) . '" class="btn_1 ' . esc_attr($btn_color . ' ' . $btn_class) . '" target="' . esc_html($btn_target) . '">' . esc_html($btn_title) . '</a></p>';
                $result .= '</div>';
            } else {
                $classes = array('pricing-table');
                $classes[] = !empty($is_featured) && $is_featured != 'no' ? 'green' : 'black';
                if ($class != '') {
                    $classes[] = $class;
                }
                $result .= '<div class="' . esc_attr(implode(' ', $classes)) . '">';
                $result .= '<span class="ribbon_2" style="background:url(' . esc_url($ribbon_img_url) . ') no-repeat 0 0"></span>';
                $result .= '<div class="pricing-table-header">
							<span class="heading">' . esc_html($title) . '</span>
							<div class="price-value">' . balancetags($price) . '</div>
						</div>';
                $result .= '<div class="pricing-table-features">' . do_shortcode($content) . '</div>';
                $result .= '<div class="pricing-table-sign-up">';
                $result .= '<a href="' . esc_url($btn_url) . '" class="btn_1 ' . esc_attr($btn_color . ' ' . $btn_class) . '" target="' . esc_html($btn_target) . '">' . esc_html($btn_title) . '</a>';
                $result .= '</div></div><!-- End pricing-table-->';
            }
            return $result;
        }
Ejemplo n.º 15
0
            if ('no' != $sidebar_position) {
                $content_class .= ' col-md-9';
            }
            $header_content = get_post_meta($post_id, '_header_content', true);
            ?>

			<section class="parallax-window" data-parallax="scroll" data-image-src="<?php 
            echo esc_url($header_img_scr);
            ?>
" data-natural-width="1400" data-natural-height="<?php 
            echo esc_attr($header_img_height);
            ?>
">
				<div class="parallax-content-1">
					<?php 
            echo balancetags($header_content);
            ?>
				</div>
			</section><!-- End section -->
			<div id="position">

		<?php 
        } else {
            ?>
			<div id="position" class="blank-parallax">
		<?php 
        }
        ?>

			<div class="container"><?php 
        ct_breadcrumbs();
Ejemplo n.º 16
0
 function st_location_list_activity_func($attr)
 {
     $data = shortcode_atts(array('st_location_style' => "", 'st_location_num' => "", 'st_location_orderby' => "", 'st_location_order' => ""), $attr, 'st_location_list_car');
     extract($data);
     $return;
     $query = array('post_type' => 'st_activity', 'meta_key' => 'id_location', 'meta_value' => get_the_ID(), 'posts_per_page' => $st_location_num, 'order' => $st_location_order, 'orderby' => $st_location_orderby, 'post_status' => 'publish');
     if (STInput::request('style')) {
         $st_location_style = STInput::request('style');
     }
     if ($st_location_style == 'list') {
         $return .= "<ul class='booking-list loop-tours style_list loop-activity-location'>";
     } else {
         $return .= '<div class="row row-wrap grid-activity-location">';
     }
     query_posts($query);
     while (have_posts()) {
         the_post();
         if ($st_location_style == 'list') {
             $return .= st()->load_template('activity/elements/loop/loop-1', null, array('is_location' => true));
         } else {
             $return .= st()->load_template('activity/elements/loop/loop-2', null, array('is_location' => true));
         }
     }
     wp_reset_query();
     if ($st_location_style == 'list') {
         $return .= "</ul>";
     } else {
         $return .= '</div>';
     }
     $link = STLocation::get_total_text_footer('st_activity');
     $return .= balancetags($link);
     return $return;
 }
Ejemplo n.º 17
0
/* Count slide and columns of slides */
$slide_col = 12 / $expert_slides_per_row;
?>

<?php 
if ($experts->have_posts()) {
    $count = 0;
    ?>
	<div class="experts_main_wrapper simple_carousel_wrapper">
		<div class="clearfix experts_control_bar_top">
			<?php 
    if (!empty($experts_title)) {
        ?>
				<div class="pull-left">
					<h2 class="experts_main_title"><?php 
        echo balancetags($experts_title, true);
        ?>
</h2>
				</div>
			<?php 
    }
    ?>
			<div class="pull-right experts_control_bar">
				<div class="clearfix">
					<?php 
    if ($experts_output_style == 'experts_carousel') {
        ?>
						<div class="pull-right">
							<a href="#" class="btn-carousel-control simple_carousel_prev" title="<?php 
        _e('Scroll Carousel left', 'stm_domain');
        ?>
Ejemplo n.º 18
0
			<div class="bookinst_save_attributeg-item booking-item booking-item-small">
                <div class="row">
                    <div class="<?php 
        if ($layout == 'layout2') {
            echo 'col-xs-12';
        } else {
            echo 'col-xs-4';
        }
        ?>
">
                        <a href="<?php 
        echo esc_url($link);
        ?>
">
                        <?php 
        echo balancetags($thumbnail);
        ?>
                        </a>
                    </div>
                    <div class="<?php 
        if ($layout == 'layout2') {
            echo 'col-xs-12';
        } else {
            echo 'col-xs-5';
        }
        ?>
">
                        <h5 class="booking-item-title" <?php 
        if ($layout == 'layout2') {
            echo 'style="font-size: 20px;"';
        }