function lab_text_autotype_process_entry($typed_syntax = '', $typed_options = array()) { $typed_element = $typed_script = ''; if (in_array('*', array(substr($typed_syntax, 0, 1), substr($typed_syntax, -1, 1)))) { // Typed.js Defaults $defaults = array('cursorChar' => '|', 'contentType' => 'html', 'loop' => false, 'loopCount' => false, 'typeSpeed' => 40, 'backSpeed' => 0, 'startDelay' => 0, 'backDelay' => 500); $defaults = array_merge($defaults, $typed_options); // Text Split and Map $element_id = 'el_' . uniqid(); $typed_syntax = substr($typed_syntax, 1, -1); # Escape <script inject $typed_syntax = lab_esc_script($typed_syntax); $animate_entries = explode(';', $typed_syntax); $animate_entries = array_map('trim', $animate_entries); $defaults = array_merge($defaults, array('strings' => $animate_entries)); // Text ob_start(); ?> <div class="lab-autotype-text-entry" id="<?php echo esc_attr($element_id); ?> "></div> <?php $typed_element = ob_get_clean(); // Script ob_start(); $json_data = json_encode($defaults); if (version_compare(phpversion(), '5.3.3', '>=')) { $json_data = json_encode($defaults, JSON_NUMERIC_CHECK); } ?> jQuery("#<?php echo esc_attr($element_id); ?> ").typed(<?php echo $json_data; ?> ); <?php $typed_script = ob_get_clean(); } return array('el' => $typed_element, 'script' => $typed_script); }
function laborator_escape_content_xss($content) { return lab_esc_script($content); }
<?php if ($checklist['checklist_title']) { ?> <h3><?php echo esc_html($checklist['checklist_title']); ?> </h3> <?php } ?> <ul> <?php foreach ($checklist_arr as $checklist_line) { ?> <li><?php echo lab_esc_script($checklist_line); # escaped by get_field ?> </li> <?php } ?> </ul> </div> <?php } ?> </div> <?php }
} else { ?> <?php echo esc_attr($title); ?> <?php } ?> </h3> <?php if ($description) { ?> <div class="description"> <?php echo lab_esc_script(wpautop($description)); ?> </div> <?php } ?> </div> </div> <?php } ?> </div> </div> <?php if (($client_logo_index + 1) % $columns_count == 0) {
?> </div> <?php } ?> <?php if ($footer_text) { ?> <div class="<?php echo $footer_text_right ? 'col-sm-5' : 'col-xs-12'; ?> "> <div class="copyright"> <p><?php echo lab_esc_script(do_shortcode($footer_text)); ?> </p> </div> </div> <?php } ?> </div> </div> </div> </div> <?php } ?>
$map_locations = array(); if (preg_match_all('/' . get_shortcode_regex() . '/', $content, $map_locations_match)) { foreach ($map_locations_match[0] as $location) { $location = preg_replace("/^\\[[^\\s]+/i", "", substr($location, 0, -1)); $location_details = $this->prepareAtts(shortcode_parse_atts($location)); $location_details = shortcode_atts(array('marker_image' => '', 'retina_marker' => '', 'latitude' => '0', 'longitude' => '0', 'marker_title' => '', 'marker_description' => ''), $location_details); if ($location_details['marker_image']) { $pin = wp_get_attachment_image_src($location_details['marker_image'], 'original'); if ($pin) { $location_details['marker_image'] = $pin[0]; $location_details['marker_image_size'] = array($pin[1], $pin[2]); } } else { $location_details['marker_image'] = THEMEASSETS . 'images/icons/map/cd-icon-location.svg'; } $location_details['marker_description'] = lab_esc_script(wpautop($location_details['marker_description'])); $map_locations[] = $location_details; } } # Pan By $map_panby = explode(',', $map_panby); if (!is_numeric($map_panby[0])) { $map_panby[0] = 0; } if (!isset($map_panby[1])) { $map_panby[1] = 0; } if (!in_array('pan-by', $map_options)) { $map_panby = array(0, 0); } # Element Class
if ($show_title_description) { ?> <div class="pt-column"> <div class="section-title no-bottom-margin"> <?php if ($portfolio_title) { ?> <h1><?php echo esc_html($portfolio_title); ?> </h1> <?php } ?> <?php echo lab_esc_script(wpautop($portfolio_description)); ?> </div> </div> <?php } ?> <?php if ($portfolio_category_filter && $portfolio_categories) { ?> <div class="pt-column"> <div class="product-filter"> <ul> <li class="portfolio-category-all <?php when_match($current_portfolio_category == '', 'active');
function lab_strip_script($str = '', $tags = '') { $str = strip_tags($str, $tags); return lab_esc_script($str); }
*/ global $maintenance_mode_title; define("KALIUM_NO_HEADER", true); define("KALIUM_NO_FOOTER", true); $maintenance_mode_title = trim(get_data('maintenance_mode_title')); $maintenance_mode_description = trim(get_data('maintenance_mode_description')); add_filter('body_class', create_function('$classes', '$classes[] = "bg-main-color maintenance-mode"; return $classes;')); if ($maintenance_mode_title) { add_filter('wp_title', 'laborator_maintenance_title'); function laborator_maintenance_title($title, $sep = '–') { global $maintenance_mode_title; return $maintenance_mode_title; } } get_header(); ?> <div class="container"> <div class="page-container"> <div class="coming-soon-container"> <div class="message-container wow fadeIn"> <i class="icon icon-ecommerce-megaphone"></i> <?php echo lab_esc_script(wpautop($maintenance_mode_description)); ?> </div> </div> </div> </div> <?php get_footer();
echo $author_info_details ? 'col-md-10 col-sm-9 pull-right-md' : 'col-xs-12'; ?> "> <div class="row"> <div class="col-xs-12"> <div class="blog-content-holder"> <div class="section-title blog-title"> <h1><?php the_title(); ?> </h1> </div> <div class="post-content post-formatting"> <?php echo lab_esc_script(apply_filters('the_content', $post_content)); ?> </div> <?php wp_link_pages(array('before' => '<div class="pagination post-pagination">', 'after' => '</div>', 'pagelink' => '<span class="active">%</span>', 'next_or_number' => 'next', 'previouspagelink' => '« ' . __('Previous page', 'kalium'), 'nextpagelink' => __('Next page', 'kalium') . ' »')); ?> <?php if ($blog_tags) { the_tags('<div class="tags-holder">', ' ', '</div>'); } ?> </div> </div>
global $coming_soon_mode_title; return $coming_soon_mode_title; } } get_header(); ?> <div class="container"> <div class="page-container"> <div class="coming-soon-container"> <div class="message-container wow fadeIn"> <?php get_template_part('tpls/logo'); ?> <?php echo lab_esc_script(wpautop($coming_soon_mode_description)); ?> </div> <?php if ($coming_soon_mode_countdown) { ?> <div class="countdown-holder"> <div class="col-sm-12"> <ul class="countdown"> <div class="row"> <div data-wow-duration="1.0s" data-wow-delay="0.1" class="col-sm-offset-2 col-sm-2 col-xs-3 wow fadeIn"> <span class="days"> </span> <p class="timeRefDays"> </p> </div> <div data-wow-duration="1.5s" data-wow-delay="0.2" class="col-sm-2 col-xs-3 wow fadeIn">
"> <a href="<?php echo $is_video ? esc_url($fi_alt) : esc_url($fi_href); ?> " class="nivo"> <?php laborator_show_image_placeholder($post_thumbnail_id, apply_filters('kalium_single_portfolio_gallery_image', 'portfolio-single-img-1')); ?> </a> <?php if ($caption) { ?> <div class="caption"> <?php echo nl2br(lab_esc_script($caption)); ?> </div> <?php } ?> </div> <?php } ?> <div class="title section-title<?php echo $is_centered ? ' text-on-center' : ''; ?> "> <h1><?php
$the_description = $force_heading_description; } } if (isset($show_heading_title) && $show_heading_title && ($the_title || $the_description)) { ?> <div class="container page-heading-title"> <div class="row"> <div class="col-sm-12"> <div class="section-title"> <h2><?php echo lab_esc_script($the_title); ?> </h2> <?php if ($the_description) { echo lab_esc_script(apply_filters('the_content', $the_description)); } ?> </div> <?php if (get_field('petite_actu')) { ?> <div class='actu'><p><?php the_field('petite_actu'); ?> </p></div> <?php } ?> </div> </div>
/** * Heading Box * * Laborator.co * www.laborator.co */ # Atts $defaults = array('title' => '', 'contnent' => '', 'el_class' => '', 'css' => ''); #$atts = vc_shortcode_attribute_parse($defaults, $atts); if (function_exists('vc_map_get_attributes')) { $atts = vc_map_get_attributes($this->getShortcode(), $atts); } extract($atts); # Element Class $class = $this->getExtraClass($el_class); $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class, $this->settings['base'], $atts); $css_class = "section-title {$css_class}"; ?> <div class="<?php echo esc_attr($css_class) . vc_shortcode_custom_css_class($css, ' '); ?> "> <h2><?php echo esc_html($title); ?> </h2> <?php echo lab_esc_script(wpautop($content)); ?> </div>
break; case 'error': $css_class .= ' alert-danger'; break; default: $css_class .= ' alert-default'; } ?> <div class="<?php echo esc_attr($css_class) . vc_shortcode_custom_css_class($css, ' '); ?> fade in" role="alert"> <?php if ($close_button) { ?> <button type="button" class="close" data-dismiss="alert"> <span aria-hidden="true"></span> <span class="sr-only"><?php echo _e('Close', 'kalium'); ?> </span> </button> <?php } ?> <?php echo lab_esc_script(apply_filters('the_content', $message)); ?> </div>
"> <a href="<?php echo $is_video ? esc_url($alt_text) : esc_url($href); ?> " data-lightbox-gallery="post-gallery"> <?php laborator_show_image_placeholder($img['id'], $main_thumbnail_size, 'do-lazy-load-on-shown'); ?> </a> <?php if ($caption) { ?> <div class="caption"> <?php echo lab_esc_script($caption); ?> </div> <?php } ?> </div> </div> <?php } // End: Image Type // Image Slider if ($gallery_item['acf_fc_layout'] == 'images_slider') { $gallery_images = $gallery_item['images']; $auto_switch = $gallery_item['auto_switch'];
* Laborator.co * www.laborator.co */ if ($blog_show_header && ($blog_title || $blog_description)) { ?> <div class="section-title"> <?php if ($blog_title) { ?> <h1><?php echo lab_esc_script($blog_title); ?> </h1> <?php } ?> <?php if ($blog_description) { ?> <p><?php echo nl2br(lab_esc_script($blog_description)); ?> </p> <?php } ?> </div> <?php }