PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
templates
/
elements
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Shortcode: us_iconbox * * 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 $icon string Icon * @param $style string Icon style: 'default' / 'circle' / 'outlined' * @param $color string Icon color: 'primary' / 'secondary' / 'light' / 'contrast' / 'custom' * @param $icon_color string Icon color value * @param $bg_color string Icon circle color * @param $iconpos string Icon position: 'top' / 'left' * @param $size string Icon size in pixels * @param $img int Icon image (from WordPress media) * @param $title string Title * @param $title_tag string Title HTML tag: 'div' / 'h2'/ 'h3'/ 'h4'/ 'h5'/ 'h6'/ 'p' * @param $title_size string Title Size * @param $link string Link in a serialized format: 'url:http%3A%2F%2Fwordpress.org|title:WP%20Website|target:_blank|rel:nofollow' * @param $alignment string Alignment of the whole element * @param $el_class string Extra class name */ $classes = $icon_html = $link_opener = $link_closer = ''; $classes .= ' iconpos_' . $iconpos; $classes .= ' style_' . $style; $classes .= ' color_' . $color; $classes .= ' align_' . $alignment; if ( $title == '' ) { $classes .= ' no_title'; } if ( $content == '' ) { $classes .= ' no_text'; } 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 ) . '"' ) : ''; // Use image instead icon, if set if ( $img != '' ) { $classes .= ' icontype_img'; if ( is_numeric( $img ) ) { $icon_html = us_get_attachment_image( intval( $img ), 'full' ); } else { // Direct link to image is set in the shortcode attribute $icon_html = '<img src="' . $img . '" alt="' . $title . '">'; } } elseif ( $icon != '' ) { $icon_html = us_prepare_icon_tag( $icon ); } // Link $link_atts = us_generate_link_atts( $link ); if ( ! empty( $link_atts ) ) { if ( $title != '' ) { $link_atts .= ' aria-label="' . esc_attr( $title ) . '"'; } else { $link_atts .= ' aria-hidden="true"'; } $link_opener = '<a class="w-iconbox-link"' . $link_atts . '>'; $link_closer = '</a>'; } $icon_inline_css = us_prepare_inline_css( array( 'font-size' => ( $size == '36px' ) ? '' : $size, 'box-shadow' => empty( $circle_color ) ? '' : '0 0 0 2px ' . $circle_color . ' inset', 'background' => $circle_color, 'color' => $icon_color, ) ); // Output the element $output = '<div class="w-iconbox' . $classes . '"' . $el_id . '>'; if ( in_array( $iconpos, array( 'top', 'left' ) ) ) { $output .= $link_opener; $output .= '<div class="w-iconbox-icon"' . $icon_inline_css . '>' . $icon_html . '</div>'; $output .= $link_closer; $output .= '<div class="w-iconbox-meta">'; } elseif ( $iconpos == 'right' ) { $output .= '<div class="w-iconbox-meta">'; } if ( $title != '' ) { $output .= $link_opener; $title_inline_css = us_prepare_inline_css( array( 'font-size' => $title_size, ) ); $output .= '<' . $title_tag . ' class="w-iconbox-title"' . $title_inline_css . '>' . $title . '</' . $title_tag . '>'; $output .= $link_closer; } if ( $content != '' ) { $output .= '<div class="w-iconbox-text">' . do_shortcode( wpautop( $content ) ) . '</div>'; } if ( in_array( $iconpos, array( 'top', 'left' ) ) ) { $output .= '</div>'; } elseif ( $iconpos == 'right' ) { $output .= '</div>'; $output .= $link_opener; $output .= '<div class="w-iconbox-icon"' . $icon_inline_css . '>' . $icon_html . '</div>'; $output .= $link_closer; } $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]