芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/www/wp-content/themes/betheme/functions/modules/class-mfn-megamenu.php
id = $id; $mm_width = get_post_meta($this->id, 'megamenu_width', true); $mm_pos = get_post_meta($this->id, 'megamenu_custom_position', true); $this->classes[] = !empty($mm_width) ? 'mfn-megamenu-'.$mm_width : 'mfn-megamenu-full-width'; // custom, full or grid if( !empty($mm_width) && $mm_width == 'custom-width' && get_post_meta($this->id, 'megamenu_custom_width', true) ){ $this->inlinecss = 'style="width: '.get_post_meta($this->id, 'megamenu_custom_width', true).'"'; if( $mm_pos ){ $this->classes[] = 'mfn-megamenu-pos-'.$mm_pos; }else{ $this->classes[] = 'mfn-megamenu-pos-left'; } } } public function classes() { return $this->classes; } public function render(){ echo '
inlinecss.'>'; $mfn_mm_builder = new Mfn_Builder_Front( $this->id ); $mfn_mm_builder->show(); echo '
'; $this->css(); } public function css(){ $get_styles = get_post_meta($this->id, 'mfn-page-options-style', true); if( $get_styles ){ $styles = $get_styles; echo ''; } } }