PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
class
/
elements
/
views
<?php /** * Social Share View Class * * @author Jegtheme * @since 1.6.0 * @package jeg-elementor-kit */ namespace Jeg\Elementor_Kit\Elements\Views; /** * Class Social Share View * * @package Jeg\Elementor_Kit\Elements\Views */ class Social_Share_View extends View_Abstract { /** * Build block content * * @return mixed */ public function build_content() { $lists = ''; $style = $this->attribute['sg_social_style']; $icon_position = $this->attribute['sg_social_icon_position']; foreach ( $this->attribute['sg_social_list'] as $social ) { $label_icon = ''; $id = 'elementor-repeater-item-' . esc_attr( $social['_id'] ); $brand = esc_attr( $social['sg_social_brand'] ); $label = esc_attr( $social['sg_social_label'] ); $class = $brand . ' social-icon'; $link_attr = array( 'url' => '#', 'is_external' => '', 'nofollow' => '', 'custom_attributes' => 'aria-label|social-share', ); if ( 'icon' === $style ) { $label_icon = $this->render_icon_element( $social['sg_social_icon'] ); } elseif ( 'text' === $style ) { $label_icon = $label; } else { if ( 'before' === $icon_position ) { $label_icon = '<span class="icon-position-' . $icon_position . '">' . $this->render_icon_element( $social['sg_social_icon'] ) . $label . '</span>'; } else { $label_icon = '<span class="icon-position-' . $icon_position . '">' . $label . $this->render_icon_element( $social['sg_social_icon'] ) . '</span>'; } } if ( 'gradient' === $social['sg_social_normal_background_background_background'] || 'gradient' === $social['sg_social_hover_background_background_background'] || 'gradient' === $this->attribute['st_social_normal_background_background_background'] || 'gradient' === $this->attribute['st_social_hover_background_background_background'] ) { $class .= ' hover-gradient'; $label_icon = '<span>' . $label_icon . '</span>'; } $lists .= '<li class="' . $id . '" data-social="' . $brand . '"> ' . $this->render_url_element( $link_attr, null, $class, $label_icon ) . ' </li>'; } return $this->render_wrapper( 'social-share', '<ul class="social-share-list">' . $lists . '</ul>' ); } }
[-] class-view-abstract.php
[edit]
[-] class-post-terms-view.php
[edit]
[-] class-post-title-view.php
[edit]
[-] class-pie-chart-view.php
[edit]
[-] class-product-carousel-view.php
[edit]
[-] class-image-box-view.php
[edit]
[-] class-animated-text-view.php
[edit]
[-] class-feature-list-view.php
[edit]
[-] class-post-date-view.php
[edit]
[-] class-contact-form-7-view.php
[edit]
[-] class-post-featured-image-view.php
[edit]
[-] class-post-list-view.php
[edit]
[-] class-icon-box-view.php
[edit]
[-] class-post-comment-view.php
[edit]
[-] class-view-woocommerce-abstract.php
[edit]
[-] class-post-content-view.php
[edit]
[-] class-accordion-view.php
[edit]
[+]
..
[-] class-post-block-view.php
[edit]
[-] class-social-share-view.php
[edit]
[-] class-nav-menu-view.php
[edit]
[-] class-mailchimp-view.php
[edit]
[-] class-dual-button-view.php
[edit]
[-] class-client-logo-view.php
[edit]
[-] class-product-categories-view.php
[edit]
[-] class-banner-view.php
[edit]
[-] class-fun-fact-view.php
[edit]
[-] class-portfolio-gallery-view.php
[edit]
[-] class-post-excerpt-view.php
[edit]
[-] class-button-view.php
[edit]
[-] class-product-grid-view.php
[edit]
[-] class-post-author-view.php
[edit]
[-] class-progress-bar-view.php
[edit]
[-] class-video-button-view.php
[edit]
[-] class-gallery-view.php
[edit]
[-] class-tabs-view.php
[edit]
[-] class-countdown-view.php
[edit]
[-] class-team-view.php
[edit]
[-] class-testimonials-view.php
[edit]
[-] class-search-view.php
[edit]
[-] class-heading-view.php
[edit]
[-] class-off-canvas-view.php
[edit]
[-] class-category-list-view.php
[edit]