Example #1
0
 function block($instance)
 {
     $defaults = $this->defaults;
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     echo do_shortcode('[lsvr_pricing_table title="' . $title . '" price="' . $price . '" price_description="' . $price_description . '" button_label="' . $button_label . '" button_link="' . $button_link . '" inview_anim="' . $inview_anim . '" custom_class="' . $custom_class . '"]' . lsvr_field_editor_output($html_content) . '[/lsvr_pricing_table]');
 }
Example #2
0
 function block($instance)
 {
     $defaults = $this->defaults;
     global $lsvr_inview_animations;
     global $lsvr_inview_animations_visible;
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     $inview_anim_data = $inview_anim !== '' && $inview_anim !== 'none' ? ' data-inview-anim="' . $inview_anim . '" ' : '';
     $inview_anim_class = $inview_anim !== '' && $inview_anim !== 'none' && !in_array($inview_anim, $lsvr_inview_animations_visible) ? 'visibility-hidden' : '';
     $classes = $custom_class;
     $classes .= ' ' . $inview_anim_class;
     $classes = trim(preg_replace('/\\s+/', ' ', $classes));
     echo '<div class="c-text-object ' . $classes . '"' . $inview_anim_data . '>' . lsvr_field_editor_output($html_content) . '</div>';
 }
Example #3
0
 function block($instance)
 {
     $defaults = $this->defaults;
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     echo do_shortcode('[lsvr_service image="' . $image . '" title="' . $title . '" link="' . $link . '" inview_anim="' . $inview_anim . '" custom_class="' . $custom_class . '"]' . lsvr_field_editor_output($html_content) . '[/lsvr_service]');
 }
Example #4
0
 function block($instance)
 {
     $defaults = $this->defaults;
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     $fullsize = $fullsize ? 'yes' : 'no';
     $wrap_in_container = $wrap_in_container ? 'yes' : 'no';
     echo do_shortcode('[lsvr_section fullsize="' . $fullsize . '" wrap_in_container="' . $wrap_in_container . '" title="' . $title . '" subtitle="' . $subtitle . '" button_label="' . $button_label . '" button_link="' . $button_link . '" inview_anim="' . $inview_anim . '" custom_class="' . $custom_class . ' custom_id="' . $custom_id . '"]' . lsvr_field_editor_output($html_content) . '[/lsvr_section]');
 }
Example #5
0
 function block($instance)
 {
     $defaults = $this->defaults;
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     $closable = $closable ? 'yes' : 'no';
     echo do_shortcode('[lsvr_alert_message type="' . $type . '" closable="' . $closable . '" inview_anim="' . $inview_anim . '" custom_class="' . $custom_class . '"]' . lsvr_field_editor_output($html_content) . '[/lsvr_alert_message]');
 }