PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
templates
/
elements
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Shortcode: us_separator * * Dev note: if you want to change some of the default values or acceptable attributes, overload the shortcodes config. * * @var $shortcode string Current shortcode name * @var $shortcode_base string The original called shortcode name (differs if called an alias) * @var $content string Shortcode's inner content * * @param $size string Separator Height: 'small' / 'medium' / 'large' / 'huge' / 'custom' * @param $height string Separator custom height * @param $show_line bool Show the line in the middle? * @param $line_width string Separator type: 'default' / 'fullwidth' / 'short' * @param $thick string Line thickness: '1' / '2' / '3' / '4' / '5' * @param $style string Line style: 'solid' / 'dashed' / 'dotted' / 'double' * @param $color string Color style: 'border' / 'primary' / 'secondary' / 'custom' * @param $bdcolor string Border color value * @param $icon string Icon * @param $text string Title * @param $title_tag string Title HTML tag: 'h1' / 'h2'/ 'h3'/ 'h4'/ 'h5'/ 'h6'/ 'div' * @param $title_size string Font Size * @param $align string Alignment * @param $link string Link in a serialized format: 'url:http%3A%2F%2Fwordpress.org|title:WP%20Website|target:_blank|rel:nofollow' * @param $el_class string Extra class name * @param $breakpoint_1_width string Screen Width breakpoint 1 * @param $breakpoint_1_height string Separator custom height 1 * @param $breakpoint_2_width string Screen Width breakpoint 2 * @param $breakpoint_2_height string Separator custom height 2 */ $classes = $inner_html = $inline_css = $link_opener = $link_closer = $responsive_styles = ''; // Set element index to apply <style> for responsive CSS if ( $size == 'custom' AND $breakpoint_1_height != '' OR $breakpoint_2_height != '' ) { global $us_separator_index; $us_separator_index = isset( $us_separator_index ) ? ( $us_separator_index + 1 ) : 1; $classes .= ' us_separator_' . $us_separator_index; $responsive_styles = '<style>'; if ( $breakpoint_1_height != '' AND $breakpoint_1_height != $height ) { $responsive_styles .= '@media(max-width:' . esc_attr( $breakpoint_1_width ) . '){.us_separator_' . $us_separator_index . '{height:' . esc_attr( $breakpoint_1_height ) . '!important}}'; } if ( $breakpoint_2_height != '' AND $breakpoint_2_height != $height ) { $responsive_styles .= '@media(max-width:' . esc_attr( $breakpoint_2_width ) . '){.us_separator_' . $us_separator_index . '{height:' . esc_attr( $breakpoint_2_height ) . '!important}}'; } $responsive_styles .= '</style>'; } $classes .= ' size_' . $size; if ( ! empty( $css ) AND function_exists( 'vc_shortcode_custom_css_class' ) ) { $classes .= ' ' . vc_shortcode_custom_css_class( $css ); } $classes .= ( ! empty( $el_class ) ) ? ( ' ' . $el_class ) : ''; $el_id = ( ! empty( $el_id ) ) ? ( ' id="' . esc_attr( $el_id ) . '"' ) : ''; // Link $link_atts = us_generate_link_atts( $link ); if ( ! empty( $link_atts ) ) { $link_opener = '<a' . $link_atts . '>'; $link_closer = '</a>'; } // Generate separator icon and title if ( $show_line ) { $classes .= ' with_line'; $classes .= ' width_' . $line_width; $classes .= ' thick_' . $thick; $classes .= ' style_' . $style; $classes .= ' color_' . $color; $classes .= ' align_' . $align; if ( ! empty( $text ) ) { $inner_html .= '<' . $title_tag . ' class="w-separator-text">'; $inner_html .= $link_opener; $inner_html .= us_prepare_icon_tag( $icon ); $inner_html .= '<span>' . strip_tags( $text, '<br><strong>' ) . '</span>'; $inner_html .= $link_closer; $inner_html .= '</' . $title_tag . '>'; } else { $inner_html .= us_prepare_icon_tag( $icon ); } if ( $inner_html != '' ) { $classes .= ' with_content'; } $inline_css = us_prepare_inline_css( array( 'height' => $height, 'border-color' => $bdcolor, 'color' => $bdcolor, 'font-size' => $title_size, ) ); } else { $inline_css = us_prepare_inline_css( array( 'height' => $height, ) ); } // Output the element $output = '<div class="w-separator' . $classes . '"' . $el_id . $inline_css . '>'; $output .= $responsive_styles; if ( $show_line ) { $output .= '<div class="w-separator-h">' . $inner_html . '</div>'; } $output .= '</div>'; echo $output;
[+]
..
[-] person.php
[edit]
[-] separator.php
[edit]
[-] post_custom_field.php
[edit]
[-] post_image.php
[edit]
[-] page_block.php
[edit]
[-] image_slider.php
[edit]
[-] cform.php
[edit]
[-] progbar.php
[edit]
[-] btn.php
[edit]
[-] product_field.php
[edit]
[-] socials.php
[edit]
[-] cta.php
[edit]
[-] message.php
[edit]
[-] vc_wp_custommenu.php
[edit]
[-] contacts.php
[edit]
[-] post_taxonomy.php
[edit]
[-] flipbox.php
[edit]
[-] grid.php
[edit]
[-] post_comments.php
[edit]
[-] gallery.php
[edit]
[-] sharing.php
[edit]
[-] post_date.php
[edit]
[-] product_ordering.php
[edit]
[-] post_navigation.php
[edit]
[-] add_to_cart.php
[edit]
[-] product_gallery.php
[edit]
[-] gmaps.php
[edit]
[-] vc_tta_tabs.php
[edit]
[-] breadcrumbs.php
[edit]
[-] page_title.php
[edit]
[-] counter.php
[edit]
[-] vc_video.php
[edit]
[-] cart.php
[edit]
[-] post_content.php
[edit]
[-] image.php
[edit]
[-] vc_row_inner.php
[edit]
[-] dropdown.php
[edit]
[-] iconbox.php
[edit]
[-] vc_column.php
[edit]
[-] post_title.php
[edit]
[-] hwrapper.php
[edit]
[-] .elements.php
[edit]
[-] vc_column_text.php
[edit]
[-] additional_menu.php
[edit]
[-] vc_tta_section.php
[edit]
[-] popup.php
[edit]
[-] scroller.php
[edit]
[-] menu.php
[edit]
[-] pricing.php
[edit]
[-] search.php
[edit]
[-] text.php
[edit]
[-] post_author.php
[edit]
[-] vc_row.php
[edit]
[-] itext.php
[edit]
[-] html.php
[edit]