PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
class
/
elements
/
views
<?php /** * Off Canvas View Class * * @package jeg-elementor-kit * @author Jegtheme * @since 1.7.0 */ namespace Jeg\Elementor_Kit\Elements\Views; use Elementor\Plugin; /** * Class Off_Canvas_View * * @package Jeg\Elementor_Kit\Elements\Views */ class Off_Canvas_View extends View_Abstract { /** * Build block content * * @return string */ public function build_content() { $toggle = ''; $toggle_item = ''; $class_toggle = 'offcanvas-sidebar-button'; $panel_position = ! empty( $this->attribute['st_panel_position'] ) ? esc_attr( $this->attribute['st_panel_position'] ) : 'right'; $toggle_type = esc_attr( $this->attribute['sg_setting_open_type'] ); $close_icon = $this->render_icon_element( $this->attribute['sg_setting_close_icon'] ); $template = Plugin::$instance->frontend->get_builder_content( $this->attribute['sg_setting_template'], true ); $link_attr = array( 'url' => '#', 'is_external' => '', 'nofollow' => '', 'custom_attributes' => '', ); if ( 'icon' === $toggle_type ) { $icon = $this->render_icon_element( $this->attribute['sg_setting_open_icon'] ); if ( ! empty( $icon ) ) { $toggle_item = $icon; } } else { $toggle_item = esc_attr( $this->attribute['sg_setting_open_text'] ); } if ( 'gradient' === $this->attribute['st_open_normal_background_background_background'] || 'gradient' === $this->attribute['st_open_hover_background_background_background'] ) { $class_toggle .= ' hover-gradient'; $toggle_item = '<span>' . $toggle_item . '</span>'; } $toggle = $this->render_url_element( $link_attr, null, $class_toggle, $toggle_item ); if ( ! empty( $close_icon ) ) { $class_close_button = 'offcanvas-close-button'; if ( 'gradient' === $this->attribute['st_close_normal_background_background_background'] || 'gradient' === $this->attribute['st_close_hover_background_background_background'] ) { $class_close_button .= ' hover-gradient'; $close_icon = '<span>' . $close_icon . '</span>'; } $close_icon = $this->render_url_element( $link_attr, null, $class_close_button, $close_icon ); } $content = '<div class="toggle-wrapper">' . $toggle . '</div> <div class="offcanvas-sidebar position-' . $panel_position . '"> <div class="bg-overlay"></div> <div class="sidebar-widget"> <div class="widget-container"> <div class="widget-heading">' . $close_icon . '</div> <div class="widget-content">' . $template . '</div> </div> </div> </div>'; return $this->render_wrapper( 'off-canvas', $content ); } }
[-] 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]