/home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/inc
NameSizeModeActions
class-ajax-filter.php97700644editdlrm
class-ajax.php71080644editdlrm
class-cmb2-customize.php7120644editdlrm
class-customize.php269570644editdlrm
class-elementor.php294210644editdlrm
class-hook.php112390644editdlrm
class-main.php107280644editdlrm
class-widgets.php12620644editdlrm
class-woo.php70230644editdlrm
functions.php43410644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/inc/class-hook.php (11239B)
frontend->get_builder_content_for_display( $post_id_header ); }else if ( moore_is_elementor_active() && !isset( $header_split[1] ) ) { return get_template_part( 'template-parts/header', $header_split[0] ); }else if ( !moore_is_elementor_active() ) { return get_template_part( 'template-parts/header', 'default' ); } } public function moore_render_footer(){ $current_id = moore_get_current_id(); // Get Footer default from customizer $global_footer = get_theme_mod('global_footer', 'default' ); // Footer in Metabox of Post, Page $meta_footer = get_post_meta( $current_id, 'ova_met_footer_version', 'true' ); if( $current_id != '' && $meta_footer != 'global' && $meta_footer != '' ){ $footer = $meta_footer; }else if( moore_is_blog_archive() ){ $footer = get_theme_mod('blog_footer', 'default'); }else if( is_singular('post') ){ $footer = get_theme_mod('single_footer', 'default'); }else{ $footer = $global_footer; } $footer_split = explode(',', apply_filters( 'moore_footer_customize', $footer, $footer )); if ( moore_is_elementor_active() && isset( $footer_split[1] ) ) { $post_id_footer = moore_get_id_by_slug( $footer_split[1] ); // Check WPML if( function_exists( 'icl_object_id' ) ){ $post_id_footer = icl_object_id($post_id_footer, 'ova_framework_hf_el', false); } return Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post_id_footer ); }else if ( moore_is_elementor_active() && !isset( $footer_split[1] ) ) { get_template_part( 'template-parts/footer', $footer_split[0] ); }else if( !moore_is_elementor_active() ){ get_template_part( 'template-parts/footer', 'default' ); } } function moore_list_header(){ $hf_header_array['default'] = esc_html__( 'Default', 'moore' ); if( !moore_is_elementor_active() ) return $hf_header_array; $args_hf = array( 'post_type' => 'ova_framework_hf_el', 'post_status' => 'publish', 'posts_per_page' => '-1', 'meta_query' => array( array( 'key' => 'hf_options', 'value' => 'header', 'compare' => '=', ), ) ); $hf = new WP_Query( $args_hf ); if($hf->have_posts()): while($hf->have_posts()) : $hf->the_post(); global $post; $hf_header_array[ 'ova,'.$post->post_name ] = get_the_title(); endwhile;endif; wp_reset_postdata(); return $hf_header_array; } function moore_list_footer(){ $hf_footer_array['default'] = esc_html__( 'Default', 'moore' ); if( !moore_is_elementor_active() ) return $hf_footer_array; $args_hf = array( 'post_type' => 'ova_framework_hf_el', 'post_status' => 'publish', 'posts_per_page' => '-1', 'meta_query' => array( array( 'key' => 'hf_options', 'value' => 'footer', 'compare' => '=', ), ) ); $hf = new WP_Query( $args_hf ); if($hf->have_posts()): while($hf->have_posts()) : $hf->the_post(); global $post; $hf_footer_array[ 'ova,'.$post->post_name ] = get_the_title(); endwhile;endif; wp_reset_postdata(); return $hf_footer_array; } function moore_define_layout(){ return array( 'layout_1c' => esc_html__('No Sidebar', 'moore'), 'layout_2r' => esc_html__('Right Sidebar', 'moore'), 'layout_2l' => esc_html__('Left Sidebar', 'moore'), ); } function moore_get_layout(){ $current_id = moore_get_current_id(); $layout = get_post_meta( $current_id, 'ova_met_main_layout', true ); $width_sidebar = get_theme_mod( 'global_sidebar_width', '320' ); if( is_singular( 'post' ) ){ $layout = get_theme_mod( 'single_layout', 'layout_2r' ); }else if( moore_is_woo_active() && is_product() ){ $layout = get_theme_mod( 'woo_product_layout', 'woo_layout_1c' ); $width_sidebar = get_theme_mod( 'woo_sidebar_width', '320' ); } else if( moore_is_woo_active() && ( is_product_category() || is_product_tag() || is_shop() ) ){ $layout = get_theme_mod( 'woo_archive_layout', 'woo_layout_1c' ); $width_sidebar = get_theme_mod( 'woo_sidebar_width', '320' ); }else if( moore_is_blog_archive() ){ $layout = get_theme_mod( 'blog_layout', 'layout_2r' ); } if( $current_id ){ $layout = get_post_meta( $current_id, 'ova_met_main_layout', true ); if( $layout == 'global' && is_singular( 'post' ) ){ $layout = get_theme_mod( 'single_layout', 'layout_2r' ); } else if( $layout == 'global' && !is_singular( 'post' ) ){ $layout = get_theme_mod( 'global_layout', 'layout_2r' ); } } // Check if page is posts (settings >> reading >> posts page) if( get_option( 'page_for_posts' ) == $current_id ){ $layout = get_post_meta( $current_id, 'ova_met_main_layout', true ); if( $layout == 'global' ) $layout = get_theme_mod( 'blog_layout', 'layout_2r' ); } if( isset( $_GET['layout_sidebar'] ) ){ $layout = $_GET['layout_sidebar']; } if( !$layout ){ $layout = get_theme_mod( 'global_layout', 'layout_2r' ); $width_sidebar = get_theme_mod( 'global_sidebar_width', '320' ); } if( moore_is_woo_active() && ( is_product_category() || is_product_tag() || is_shop() ) ){ if( !is_active_sidebar('woo-sidebar') ){ $layout = 'woo_layout_1c'; $width_sidebar = 0; } }else if( moore_is_woo_active() && is_product() ){ if( !is_active_sidebar('woo-sidebar') ){ $layout = 'woo_layout_1c'; $width_sidebar = 0; } }else if( !is_active_sidebar('main-sidebar') ){ $layout = 'layout_1c'; $width_sidebar = 0; } return array( $layout, $width_sidebar ); } function moore_wide_site(){ $current_id = moore_get_current_id(); $width_site = get_post_meta( $current_id, 'ova_met_wide_site', true ); if( $current_id && $width_site != 'global' ){ $width = $width_site; }else{ $width = get_theme_mod( 'global_wide_site', 'wide' ); } return $width; } function moore_theme_sidebar(){ $layout_sidebar = apply_filters( 'moore_get_layout', '' ); return $layout_sidebar[0]; } function moore_define_wide_boxed(){ return array( 'wide' => esc_html__('Wide', 'moore'), 'boxed' => esc_html__('Boxed', 'moore'), ); } function moore_blog_template(){ $blog_template = get_theme_mod( 'blog_template', 'default' ); if( isset( $_GET['blog_template'] ) ){ $blog_template = $_GET['blog_template']; } return $blog_template; } function moore_comment_form_defaults( $defaults ){ $defaults['comment_field'] = sprintf( '

%s

', '' ); return $defaults; } function moore_comment_form_default_fields( $fields ){ $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $html_req = ( $req ? " required='required'" : '' ); $html5 = true; $fields['author'] = sprintf( '

%s

', sprintf( '', esc_attr( $commenter['comment_author'] ), $html_req ) ); $fields['email'] = sprintf( '

%s

', sprintf( '', ( $html5 ? 'type="email"' : 'type="text"' ), esc_attr( $commenter['comment_author_email'] ), $html_req ) ); $fields['url'] = sprintf( '

%s

', sprintf( '', ( $html5 ? 'type="url"' : 'type="text"' ), esc_attr( $commenter['comment_author_url'] ) ) ); return $fields; } } } new Moore_Hooks();