PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
class
/
elements
/
views
<?php /** * Nav Menu View Class * * @package jeg-elementor-kit * @author Jegtheme * @since 1.0.0 */ namespace Jeg\Elementor_Kit\Elements\Views; /** * Class Nav_Menu_View * * @package Jeg\Elementor_Kit\Elements\Views */ class Nav_Menu_View extends View_Abstract { /** * Build block content */ public function build_content() { $menu_direction = esc_attr( $this->attribute['sg_menu_direction'] ); $menu_breakpoint = esc_attr( $this->attribute['sg_menu_breakpoint'] ); $submenu_position = esc_attr( $this->attribute['sg_menu_sub_position'] ); $mobile_logo_size = esc_attr( $this->attribute['sg_mobile_menu_logo_size_imagesize_size'] ); $mobile_logo_image = $this->render_image_element( $this->attribute['sg_mobile_menu_logo'], $mobile_logo_size ); $submenu_click_on_title = 'yes' === $this->attribute['sg_mobile_menu_submenu_click'] ? 'submenu-click-title' : 'submenu-click-icon'; $mobile_menu_icon = $this->render_icon_element( $this->attribute['sg_mobile_menu_icon'] ); $mobile_close_icon = $this->render_icon_element( $this->attribute['sg_mobile_close_icon'] ); $item_indicator = $this->render_icon_element( $this->attribute['st_submenu_item_indicator'] ); $item_indicator = esc_attr( preg_replace( '~[\r\n\s]+~', ' ', $item_indicator ) ); $menu = wp_nav_menu( array( 'menu' => esc_attr( $this->attribute['sg_menu_choose'] ), 'menu_class' => 'jkit-menu jkit-menu-direction-' . $menu_direction . ' jkit-submenu-position-' . $submenu_position, 'container_class' => 'jkit-menu-container', 'echo' => false, ) ); if ( 'default' === $this->attribute['sg_mobile_menu_link'] ) { $mobile_logo_image = '<a href="' . home_url() . '" class="jkit-nav-logo">' . $mobile_logo_image . '</a>'; } else { $mobile_logo_image = $this->render_url_element( $this->attribute['sg_mobile_menu_custom_link'], null, 'jkit-nav-logo', $mobile_logo_image ); } $button_open_class = 'jkit-hamburger-menu'; $button_close_class = 'jkit-close-menu'; if ( 'gradient' === $this->attribute['st_hamburger_menu_icon_background_background_background'] || 'gradient' === $this->attribute['st_hamburger_menu_icon_background_hover_background_background'] ) { $button_open_class .= ' hover-gradient'; $mobile_menu_icon = '<span>' . $mobile_menu_icon . '</span>'; } if ( 'gradient' === $this->attribute['st_hamburger_menu_close_background_background_background'] || 'gradient' === $this->attribute['st_hamburger_menu_close_background_hover_background_background'] ) { $button_close_class .= ' hover-gradient'; $mobile_close_icon = '<span>' . $mobile_close_icon . '</span>'; } $button_open = '<button aria-label="open-menu" class="' . $button_open_class . '">' . $mobile_menu_icon . '</button>'; $button_close = '<button aria-label="close-menu" class="' . $button_close_class . '">' . $mobile_close_icon . '</button>'; $output = $button_open . ' <div class="jkit-menu-wrapper">' . $menu . ' <div class="jkit-nav-identity-panel"> <div class="jkit-nav-site-title">' . $mobile_logo_image . '</div> ' . $button_close . ' </div> </div> <div class="jkit-overlay"></div>'; return $this->render_wrapper( 'nav-menu', $output, array( 'break-point-' . $menu_breakpoint, $submenu_click_on_title ), array( 'item-indicator' => $item_indicator ) ); } }
[-] 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]