'is_main_sidebar_area_active', 'display_main_sidebar_widgets' => 'display_main_sidebar_widgets', 'is_primary_sidebar_active' => 'is_primary_sidebar_active', 'display_primary_sidebar' => 'display_primary_sidebar', 'is_footer_area_active' => 'is_footer_area_active', 'display_footer_area_widgets' => 'display_footer_area_widgets', 'is_footer_area__active' => 'is_footer_area__active', 'display_footer__area_widgets' => 'display_footer__area_widgets', 'is_footer_area___active' => 'is_footer_area___active', 'display_footer___area_widgets' => 'display_footer___area_widgets', 'is_footer_area____active' => 'is_footer_area____active', 'display_footer____area_widgets' => 'display_footer____area_widgets', 'is_above_footer_active' => 'is_above_footer_active', 'display_above_footer_widgets' => 'display_above_footer_widgets', ]; } function template_sidebars_body(): array { return [ 'is_body_area_active' => 'is_body_area_active', 'display_body_area_widgets' => 'display_body_area_widgets', 'is_body_area__active' => 'is_body_area__active', 'display_body__area_widgets' => 'display_body__area_widgets', 'is_body_area___active' => 'is_body_area___active', 'display_body___area_widgets' => 'display_body___area_widgets', 'is_body_area____active' => 'is_body_area____active', 'display_body____area_widgets' => 'display_body____area_widgets', 'is_above_body_active' => 'is_above_body_active', 'display_above_body_widgets' => 'display_above_body_widgets', 'is_bottom_body_active' => 'is_bottom_body_active', 'display_bottom_body_widgets' => 'display_bottom_body_widgets', ]; } function template_sidebars_home(): array { return [ 'is_home_area_active' => 'is_home_area_active', 'display_home_area_widgets' => 'display_home_area_widgets', 'is_home_area__active' => 'is_home_area__active', 'display_home__area_widgets' => 'display_home__area_widgets', 'is_home_area___active' => 'is_home_area___active', 'display_home___area_widgets' => 'display_home___area_widgets', 'is_home_area____active' => 'is_home_area____active', 'display_home____area_widgets' => 'display_home____area_widgets', 'is_above_home_active' => 'is_above_home_active', 'display_above_home_widgets' => 'display_above_home_widgets', 'is_bottom_home_active' => 'is_bottom_home_active', 'display_bottom_home_widgets' => 'display_bottom_home_widgets', ]; } function action_register_sidebars_home() { register_sidebar(array( 'name' => esc_html__('Above home', 'aspace'), 'id' => 'above-home-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('home Sidebar 1', 'aspace'), 'id' => 'home-sidebar_1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('home Sidebar 2', 'aspace'), 'id' => 'home-sidebar_2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('home Sidebar 3', 'aspace'), 'id' => 'home-sidebar_3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('home Full Width', 'aspace'), 'id' => 'home-sidebar_4', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Bottom home', 'aspace'), 'id' => 'bottom-home-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } function is_home_area_active() { return is_active_sidebar('home-sidebar_1'); } function display_home_area_widgets() { dynamic_sidebar('home-sidebar_1'); } function is_home_area__active() { return is_active_sidebar('home-sidebar_2'); } function display_home__area_widgets() { dynamic_sidebar('home-sidebar_2'); } function is_home_area___active() { return is_active_sidebar('home-sidebar_3'); } function display_home___area_widgets() { dynamic_sidebar('home-sidebar_3'); } function is_home_area____active() { return is_active_sidebar('home-sidebar_4'); } function display_home____area_widgets() { dynamic_sidebar('home-sidebar_4'); } function is_above_home_active() { return is_active_sidebar('above-home-sidebar'); } function display_above_home_widgets() { dynamic_sidebar('above-home-sidebar'); } function is_bottom_home_active() { return is_active_sidebar('bottom-home-sidebar'); } function display_bottom_home_widgets() { dynamic_sidebar('bottom-home-sidebar'); } function action_register_sidebars_body() { register_sidebar(array( 'name' => esc_html__('Shop Widget Area 1', 'aspace'), 'id' => 'above-product-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Shop Widget Area 2', 'aspace'), 'id' => 'bottom-product-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Body Sidebar 1', 'aspace'), 'id' => 'body-sidebar_1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Body Sidebar 2', 'aspace'), 'id' => 'body-sidebar_2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Body Sidebar 3', 'aspace'), 'id' => 'body-sidebar_3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Body Full Width', 'aspace'), 'id' => 'body-sidebar_4', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } function is_body_area_active() { return is_active_sidebar('body-sidebar_1'); } function display_body_area_widgets() { dynamic_sidebar('body-sidebar_1'); } function is_body_area__active() { return is_active_sidebar('body-sidebar_2'); } function display_body__area_widgets() { dynamic_sidebar('body-sidebar_2'); } function is_body_area___active() { return is_active_sidebar('body-sidebar_3'); } function display_body___area_widgets() { dynamic_sidebar('body-sidebar_3'); } function is_body_area____active() { return is_active_sidebar('body-sidebar_4'); } function display_body____area_widgets() { dynamic_sidebar('body-sidebar_4'); } function is_above_body_active() { return is_active_sidebar('above-product-sidebar'); } function display_above_body_widgets() { dynamic_sidebar('above-product-sidebar'); } function is_bottom_body_active() { return is_active_sidebar('bottom-product-sidebar'); } function display_bottom_body_widgets() { dynamic_sidebar('bottom-product-sidebar'); } function action_register_sidebars() { register_sidebar(array( 'name' => esc_html__('Main Sidebar', 'aspace'), 'id' => 'main-sidebar', 'description' => esc_html__('Add widgets here.', 'aspace'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Above Footer', 'aspace'), 'id' => 'primary-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Sidebar 1', 'aspace'), 'id' => 'footer-sidebar_1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Sidebar 2', 'aspace'), 'id' => 'footer-sidebar_2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Sidebar 3', 'aspace'), 'id' => 'footer-sidebar_3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Full Width', 'aspace'), 'id' => 'footer-sidebar_4', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Social widgets', 'aspace'), 'id' => 'footer-sidebar_5', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } function is_main_sidebar_area_active() { return is_active_sidebar('main-sidebar'); } function display_main_sidebar_widgets() { dynamic_sidebar('main-sidebar'); } function is_primary_sidebar_active() { return is_active_sidebar('primary-sidebar'); } function display_primary_sidebar() { dynamic_sidebar('primary-sidebar'); } function is_footer_area_active() { return is_active_sidebar('footer-sidebar_1'); } function display_footer_area_widgets() { dynamic_sidebar('footer-sidebar_1'); } function is_footer_area__active() { return is_active_sidebar('footer-sidebar_2'); } function display_footer__area_widgets() { dynamic_sidebar('footer-sidebar_2'); } function is_footer_area___active() { return is_active_sidebar('footer-sidebar_3'); } function display_footer___area_widgets() { dynamic_sidebar('footer-sidebar_3'); } function is_footer_area____active() { return is_active_sidebar('footer-sidebar_4'); } function display_footer____area_widgets() { dynamic_sidebar('footer-sidebar_4'); } function is_above_footer_active() { return is_active_sidebar('footer-sidebar_5'); } function display_above_footer_widgets() { dynamic_sidebar('footer-sidebar_5'); } function get_cat_unique_first() { $id = get_the_ID(); $categories = get_the_category( $id ); if ( ! empty( $categories ) ){ echo '' . esc_html( $categories[0]->name ) . ''; } } function justify_menu_options() { //$elements = redux_demo_get_option('menu_justify'); //return $elements; } function get_justify_menu() { $options = justify_menu_options(); if ($options == 'left') { move_to_left(); } if ($options == 'center') { move_to_center(); } if ($options == 'right') { move_to_right(); } return $options; } function list_topbar_elements() { $elements = redux_demo_get_option('header_top_l'); return $elements; } function get_element_layout() { $options = list_topbar_elements(); if ($options == 'date') { mydate(); } if ($options == 'phone_top') { myphone_number(); } if (redux_demo_get_option('breadcrumb_on') && redux_demo_get_option('breadcrumb_on') == true && $options == 'breadc' ) { royal_breadcrumb(); } if (redux_demo_get_option('breadcrumb_on') == false && $options == 'breadc' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('social_global_share_v1') && redux_demo_get_option('social_global_share_v1') == true && $options == 'sshare' ) { get_social_share(); } if (redux_demo_get_option('text_address') && redux_demo_get_option('text_address') == true && $options == 'address' ) { aspace_business_address(); } if (redux_demo_get_option('text_time_open') && redux_demo_get_option('text_time_open') == true && $options == 'op_hour' ) { aspace_op_hour(); } if (redux_demo_get_option('left_top_button') && redux_demo_get_option('left_top_button') == true && $options == 'btn_action_left' ) { aspace_topbar_button_left(); } if (redux_demo_get_option('right_top_button') && redux_demo_get_option('right_top_button') == true && $options == 'btn_action_right' ) { aspace_topbar_button_right(); } if (redux_demo_get_option('show_top_button') && redux_demo_get_option('show_top_button') == true && $options == 'btn_action_login' ) { aspace_topbar_button_login(); } if (redux_demo_get_option('social_global_share_v1') == false && $options == 'sshare' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('one_banner_topbar') && redux_demo_get_option('one_banner_topbar') == true && $options == 'banner1' ) { banner_ads_v1(); } if (redux_demo_get_option('two_banner_topbar') && redux_demo_get_option('two_banner_topbar') == true && $options == 'banner2' ) { banner_ads_v2(); } if (redux_demo_get_option('show_top_searchform') && redux_demo_get_option('show_top_searchform') == true && $options == 'searchform' ) { search_form_top(); } if (redux_demo_get_option('text_email') && redux_demo_get_option('text_email') == true && $options == 'email' ) { mytext_email(); } if (redux_demo_get_option('text_email') == false && $options == 'email' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('cart_shop') == false && $options == 'cart' ) { aspace_around_cart(); } return $options; } function list_topbar_elements_() { $elements = redux_demo_get_option('header_top_c'); return $elements; } function get_element_layout_() { $options = list_topbar_elements_(); if ($options == 'date') { mydate(); } if ($options == 'phone_top') { myphone_number(); } if (redux_demo_get_option('breadcrumb_on') && redux_demo_get_option('breadcrumb_on') == true && $options == 'breadc' ) { royal_breadcrumb(); } if (redux_demo_get_option('breadcrumb_on') == false && $options == 'breadc' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('social_global_share_v1') && redux_demo_get_option('social_global_share_v1') == true && $options == 'sshare' ) { get_social_share(); } if (redux_demo_get_option('text_address') && redux_demo_get_option('text_address') == true && $options == 'address' ) { aspace_business_address(); } if (redux_demo_get_option('text_time_open') && redux_demo_get_option('text_time_open') == true && $options == 'op_hour' ) { aspace_op_hour(); }if (redux_demo_get_option('right_top_button') && redux_demo_get_option('right_top_button') == true && $options == 'btn_action_right' ) { aspace_topbar_button_right(); } if (redux_demo_get_option('left_top_button') && redux_demo_get_option('left_top_button') == true && $options == 'btn_action_left' ) { aspace_topbar_button_left(); }if (redux_demo_get_option('show_top_button') && redux_demo_get_option('show_top_button') == true && $options == 'btn_action_login' ) { aspace_topbar_button_login(); } if (redux_demo_get_option('social_global_share_v1') == false && $options == 'sshare' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('one_banner_topbar') && redux_demo_get_option('one_banner_topbar') == true && $options == 'banner1' ) { banner_ads_v1(); } if (redux_demo_get_option('two_banner_topbar') && redux_demo_get_option('two_banner_topbar') == true && $options == 'banner2' ) { banner_ads_v2(); } if (redux_demo_get_option('text_email') && redux_demo_get_option('text_email') == true && $options == 'email' ) { mytext_email(); } if (redux_demo_get_option('text_email') == false && $options == 'email' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('cart_shop') == false && $options == 'cart' ) { aspace_around_cart(); } return $options; } function list_topbar_elements__() { $elements = redux_demo_get_option('header_top_r'); return $elements; } function get_element_layout__() { $options = list_topbar_elements__(); if ($options == 'date') { mydate_light(); } if ($options == 'phone_top') { myphone_number(); } if (redux_demo_get_option('breadcrumb_on') && redux_demo_get_option('breadcrumb_on') == true && $options == 'breadc' ) { royal_breadcrumb(); } if (redux_demo_get_option('breadcrumb_on') == false && $options == 'breadc' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('social_global_share_v1') && redux_demo_get_option('social_global_share_v1') == true && $options == 'sshare' ) { get_social_share(); } if (redux_demo_get_option('text_address') && redux_demo_get_option('text_address') == true && $options == 'address' ) { aspace_business_address(); } if (redux_demo_get_option('text_time_open') && redux_demo_get_option('text_time_open') == true && $options == 'op_hour' ) { aspace_op_hour(); }if (redux_demo_get_option('show_top_button') && redux_demo_get_option('show_top_button') == true && $options == 'btn_action_login' ) { aspace_topbar_button_login(); } if (redux_demo_get_option('right_top_button') && redux_demo_get_option('right_top_button') == true && $options == 'btn_action_right' ) { aspace_topbar_button_right(); } if (redux_demo_get_option('social_global_share_v1') == false && $options == 'sshare' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('one_banner_topbar') && redux_demo_get_option('one_banner_topbar') == true && $options == 'banner1' ) { banner_ads_v1(); } if (redux_demo_get_option('two_banner_topbar') && redux_demo_get_option('two_banner_topbar') == true && $options == 'banner2' ) { banner_ads_v2(); } if (redux_demo_get_option('text_email') && redux_demo_get_option('text_email') == true && $options == 'email' ) { mytext_email(); } if (redux_demo_get_option('text_email') == false && $options == 'email' ) { get_template_part('template-parts/button/button-3'); } if (redux_demo_get_option('cart_shop') == false && $options == 'cart' ) { aspace_around_cart(); } return $options; } function choose_column_start(){ if(redux_demo_get_option('topbar_layout') && redux_demo_get_option('topbar_layout') == 1 ) { echo '
'; } } function choose_column_end(){ if(redux_demo_get_option('topbar_layout') && redux_demo_get_option('topbar_layout') == 1 ) { echo '
'; } } if( !function_exists('aspace_around_cart') ) { function aspace_around_cart() { // get_template_part('template-parts/cart/cart'); if (!function_exists('woocommerce') && redux_demo_get_option('show_button_cart') == true) { get_template_part('template-parts/cart/cart'); } elseif (function_exists('woocommerce') && redux_demo_get_option('show_button_cart') == true) { ?>

please activate woocommerce

'; the_title(); echo '

'; } } function royal_breadcrumb_elementor() { if (redux_demo_get_option('breadcrumb_on')) { echo '

'; the_title(); echo '

'; } } function royal_breadcrumb_color() { if (redux_demo_get_option('breadcrumb_on')) { echo '
'; if (is_single()) { echo '
  • '; //echo ' '; echo '
  • '; } elseif (is_page_template( 'page-elementor.php' )) { echo '
  • '; //echo ' '; //echo the_title(); echo '
  • '; } } elseif (is_page()) { echo '
  • '; //echo ' '; //echo the_title(); echo '
  • '; } elseif (is_tag()) { echo '
  • '; //echo the_title(); echo '
  • '; } if ( function_exists( 'woocommerce_get_page_id' ) ): if( function_exists('is_shop') && is_shop() || ( function_exists('is_product') && is_product()) || ( function_exists('is_woocommerce') && is_woocommerce()) ? 'product' : ''){ echo '
  • '; echo '
  • '; } endif; } elseif (is_page()) { echo '
  • '; echo 'Home'; echo '
  • '; } elseif (is_tag()) { single_tag_title(); } elseif (is_day()) { echo "
  • Archive for "; the_time('F jS, Y'); echo '
  • '; } elseif (is_month()) { echo "
  • Archive for "; the_time('F, Y'); echo '
  • '; } elseif (is_year()) { echo "
  • Archive for "; the_time('Y'); echo '
  • '; } elseif (is_author()) { echo "
  • Author Archive"; echo '
  • '; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo "
  • Blog Archives"; echo '
  • '; } elseif (is_search()) { echo "
  • Search Results"; echo '
  • '; } elseif (is_404()) { echo "
  • Search Results"; echo '
  • '; } echo '

    '; the_title(); echo '

    '; } } if ( ! function_exists( 'aspace_post_thumbnail' ) ) : function aspace_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>
    is_main_query() && !is_admin() && $query->is_search()) { $query->set('post_type', array('post')); $query->set('post_per_page', 3); } return $query; } add_action('pre_get_posts', 'custom_search_results'); function aspace_get_footer_widget() { global $redux_demo; $widget_class = redux_demo_get_option('footer_widget', 10); switch ('') { case include get_template_directory() . '/template-parts/footer/footer-1.php': $widget_class = 'widget-1'; break; case include get_template_directory() . '/template-parts/footer/footer-2.php': $widget_class = 'widget-2'; break; case include get_template_directory() . '/template-parts/footer/footer-3.php': $widget_class = 'widget-3'; break; case include get_template_directory() . '/template-parts/footer/footer-4.php': $widget_class = 'widget-4'; break; } return $widget_class; } function aspace_page_layout_class() { global $redux_demo; $page_layout_class = redux_demo_get_option('page_sidebar_position', 10); switch ('') { case 'page-templates/no-sidebar.php': $page_layout_class = 'no-sidebar'; break; case 'page-templates/sidebar-left.php': $page_layout_class = 'sidebar-left'; break; case 'page-templates/sidebar-right.php': $page_layout_class = 'sidebar-right'; break; } return $page_layout_class; } function add_meta_desc() { if (redux_demo_get_option('description_top') && redux_demo_get_option('description_top') == true ) { ?> '; ?> '; ?> '; ?> '; ?>
    name ); ?>
    max_num_pages; if (!$pages) { $pages = 1; } } if (1 != $pages) { $html .= '
    '; $html .= '"; $html .= "
    "; } return $html; } function add_analytic_script() { if (redux_demo_get_option('analytics_top') && redux_demo_get_option('analytics_top') == true ) { echo redux_demo_get_option( 'custom_analytic' ); } } function aspace_show_sliderhome() { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_mainho = redux_demo_get_option('slider-main-template21'); echo do_shortcode($slider_mainho); } } function aspace_footer_sliderhome() { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 3 ) { $slider_main = redux_demo_get_option('slider-main-template21'); echo do_shortcode($slider_main); } } function aspace_show_slidesingle() { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_mains = redux_demo_get_option('slider-main-template31'); echo do_shortcode($slider_mains); } } function aspace_footer_slidesingle() { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 3 ) { $slider_msingle = redux_demo_get_option('slider-main-template31'); echo do_shortcode($slider_msingle); } } function aspace_fuulboxed_sliderpage() { get_header('boxed'); if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_main = redux_demo_get_option('slider-main1'); echo do_shortcode($slider_main); } } function aspace_show_sliderpage() { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_main = redux_demo_get_option('slider-main1'); echo do_shortcode($slider_main); } } function slider_run() { if ( function_exists('slide-anything') || is_plugin_active('slide-slider/slide-anything.php')) { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_main = redux_demo_get_option('slider-main-template11'); echo do_shortcode($slider_main); } } } function reate_slide() { if (redux_demo_get_option('slider-header-on-meta') == true ) { if (redux_demo_get_option('active-slider-meta') && redux_demo_get_option('active-slider-meta') == 2 ) { $slider_main_meta = redux_demo_get_option('slider-main1-meta'); echo do_shortcode($slider_main_meta); } } } function reate_fullboxedslide() { get_header('boxed'); if (redux_demo_get_option('slider-header-on-meta') == true ) { if (redux_demo_get_option('active-slider-meta') && redux_demo_get_option('active-slider-meta') == 2 ) { $slider_main_ometa = redux_demo_get_option('slider-main1-meta'); echo do_shortcode($slider_main_ometa); } } } function reate_slide_glo() { if (redux_demo_get_option('slider-header-on') == true ) { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_main_1 = redux_demo_get_option('slider-main1'); echo do_shortcode($slider_main_1); } } } function reate_slide_fullboxedglo() { get_header('boxed'); if (redux_demo_get_option('slider-header-on') == true ) { if (redux_demo_get_option('active-slider') && redux_demo_get_option('active-slider') == 2 ) { $slider_main_2 = redux_demo_get_option('slider-main1'); echo do_shortcode($slider_main_2); } } } // funcion page fullboxed mostrar slider com[paracion principal slider y slider metabox] function slide_on_fullboxedglo() { $slide_opt_glo = redux_demo_get_option('slider-header-on'); $slide_opt_int = redux_demo_get_option('slider-header-on-meta'); if ( $slide_opt_glo == true and $slide_opt_int == false ) { echo reate_slide_fullboxedglo(); } elseif ( $slide_opt_glo == true and $slide_opt_int == true ) { echo reate_fullboxedslide(); } else { echo reate_fullboxedslide(); } } // funcion para paginas mostrar slider com[paracion principal slider y slider metabox] function slide_on_glo() { $slide_opt_glo = redux_demo_get_option('slider-header-on'); $slide_opt_int = redux_demo_get_option('slider-header-on-meta'); if ( $slide_opt_glo == true and $slide_opt_int == false ) { echo reate_slide_glo(); } elseif ( $slide_opt_glo == true and $slide_opt_int == true ) { echo reate_slide(); } else { echo reate_slide(); } } function reate_slide_footer() { if (redux_demo_get_option('slider-header-on-meta') == true ) { if (redux_demo_get_option('active-slider-meta') && redux_demo_get_option('active-slider-meta') == 3 ) { $slider_main_meta = redux_demo_get_option('slider-main1-meta'); echo do_shortcode($slider_main_meta); } } } add_filter('term_links-post_tag','limitar_tags'); function limitar_tags($terms) { return array_slice($terms,0,5,true); } function get_btn_login_topbar() { $claseaspace = new Aspace_Login(); $claseaspace -> login_topbar_notice_content(); $claseaspace -> login_topbar_styles_and_scripts(); } add_action('topbar_login', 'get_btn_login_topbar'); function aspace_hover_image_single() { $img_hoveraspace = new Aspace_Img_Hover_Single(); $img_hoveraspace -> img_hover_notice_content(); $img_hoveraspace -> img_hover_styles_and_scripts(); } add_action('img_hover_singles', 'aspace_hover_image_single'); function aspace_hover_image_blog() { $img_hoveraspace = new Aspace_Img_Hover_Blog(); $img_hoveraspace -> img_hover1_notice_content(); $img_hoveraspace -> img_hover1_styles_and_scripts(); } add_action('img_hover_blogs', 'aspace_hover_image_blog'); function aspace_hover_image_blog3() { $img_hoveraspace = new Aspace_Img_Hover_Blog3(); $img_hoveraspace -> img_hover3_notice_content(); $img_hoveraspace -> img_hover3_styles_and_scripts(); } add_action('img_hover_blog3', 'aspace_hover_image_blog3'); function aspace_hover_image_blog4() { $img_hoveraspace = new Aspace_Img_Hover_Blog4(); $img_hoveraspace -> img_hover4_notice_content(); $img_hoveraspace -> img_hover4_styles_and_scripts(); } add_action('img_hover_blog3', 'aspace_hover_image_blog4'); function aspace_hover_image_blog5() { $img_hoveraspace = new Aspace_Img_Hover_Blog5(); $img_hoveraspace -> img_hover5_notice_content(); $img_hoveraspace -> img_hover5_styles_and_scripts(); } add_action('img_hover_blog3', 'aspace_hover_image_blog4'); function get_btn_login_footer() { $claseaspace = new Aspace_Footer_Login(); $claseaspace -> bmi_notice_content_footer(); } add_action('footer_login', 'get_btn_login_footer'); function aut_search_form() { require get_template_directory() . '/searchform-top.php'; } function aut_search_form_footer() { require get_template_directory() . '/searchform-bottom.php'; } function wpdc_enable_gutenberg_custom_spacing() { add_theme_support( 'custom-spacing' ); } add_action( 'after_setup_theme', 'wpdc_enable_gutenberg_custom_spacing' ); if ( function_exists( 'register_block_pattern_category' ) ) { register_block_pattern_category( 'aspace', array( 'label' => esc_html__( 'Aspace Pattern', 'aspace' ) ) ); } function aspace_get_pattern_content( $template_path ) { ob_start(); get_template_part( $template_path ); $pattern_content = ob_get_contents(); ob_end_clean(); return $pattern_content; } $pattern_overlapping = aspace_get_pattern_content('template-parts/pattern/overlapping-img'); register_block_pattern( 'aspace/overlapping-images', [ 'title' => esc_html__( 'Overlapping images', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Three images inside an overlapping columns block.', 'Block pattern description', 'aspace' ), 'content' => $pattern_overlapping, ] ); //$pattern_cover = aspace_get_pattern_content('template-parts/pattern/cover'); $pattern_tabs = aspace_get_pattern_content('template-parts/pattern/tabs'); register_block_pattern( 'aspace/tabs-presentation-work', [ 'title' => esc_html__( 'Tabs with some presentation info', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Tabs with some info.', 'Block pattern description', 'aspace' ), 'content' => $pattern_tabs, ] ); $pattern_cover = aspace_get_pattern_content('template-parts/pattern/cover'); register_block_pattern( 'aspace/cover-heading-text-button', [ 'title' => esc_html__( 'Cover with heading, paragraph, and button', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Nice cover with heading, paragraph, and button.', 'Block pattern description', 'aspace' ), 'content' => $pattern_cover, ] ); $pattern_two_column = aspace_get_pattern_content('template-parts/pattern/two-column'); register_block_pattern( 'aspace/two-column-button', [ 'title' => esc_html__( 'Two column, heading, paragraph, and button', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Two column, heading, paragraph, and button.', 'Block pattern description', 'aspace' ), 'content' => $pattern_two_column, ] ); $pattern_cover_two_column = aspace_get_pattern_content('template-parts/pattern/cover-two-column'); register_block_pattern( 'aspace/cover-two-column', [ 'title' => esc_html__( 'Cover with two column, heading, paragraph, and button', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Cover with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cover_two_column, ] ); $pattern_three_cover = aspace_get_pattern_content('template-parts/pattern/three-cover'); register_block_pattern( 'aspace/three-cover', [ 'title' => esc_html__( 'Three covers with images ang parallax style', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Covers parallax style with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_three_cover, ] ); $pattern_cta = aspace_get_pattern_content('template-parts/pattern/cta'); register_block_pattern( 'aspace/cta', [ 'title' => esc_html__( 'Cta', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Cta with heading and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cta, ] ); $pattern_cta_two_col = aspace_get_pattern_content('template-parts/pattern/cta-two-column'); register_block_pattern( 'aspace/cta-two-column', [ 'title' => esc_html__( 'Cta two column', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Covers parallax style with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cta_two_col, ] ); $pattern_cta_gradient = aspace_get_pattern_content('template-parts/pattern/cta-gradient'); register_block_pattern( 'aspace/cta-gradient', [ 'title' => esc_html__( 'Cta gradient one column', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Covers parallax style with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cta_gradient, ] ); $pattern_cta_gradient_heading = aspace_get_pattern_content('template-parts/pattern/cta-gradient-heading'); register_block_pattern( 'aspace/cta-gradient-heading', [ 'title' => esc_html__( 'Cta gradient two columns', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Covers parallax style with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cta_gradient_heading, ] ); $pattern_cover_three_column = aspace_get_pattern_content('template-parts/pattern/cover-three-column'); register_block_pattern( 'aspace/cover-three-column', [ 'title' => esc_html__( 'Cta gradient and images overlapping', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Covers parallax style with two column, heading, paragraph, and button', 'Block pattern description', 'aspace' ), 'content' => $pattern_cover_three_column, ] ); $pattern_add = aspace_get_pattern_content('template-parts/pattern/add'); register_block_pattern( 'aspace/cover-three-column-paragraph', [ 'title' => esc_html__( 'Three Cover with three columns', 'aspace' ), 'categories' => array( 'aspace' ), 'viewportWidth' => 1024, 'description' => esc_html_x( 'Three Cover with three columns with button', 'Block pattern description', 'aspace' ), 'content' => $pattern_add, ] ); function redux_plugin_check() { $plugin__deactivate = 'aspace-options/aspace-options.php'; if(!function_exists('redux_plugin_check')){ require_once ABSPATH . 'wp-admin/includes/plugin.php'; } if(!is_plugin_active($plugin__deactivate)){ $url = get_template_part('template-parts/button/subscribe'); wp_redirect($url); exit(); } } function aspace_escape_svg() { $kses_defaults = wp_kses_allowed_html( 'post' ); $rich_text_that_might_include_SVGs = ''; $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, // <= Must be lower case! ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'path' => array( 'd' => true, 'fill' => true, ), ); $allowed_tags = array_merge( $kses_defaults, $svg_args ); echo wp_kses( $rich_text_that_might_include_SVGs, $allowed_tags ); return $rich_text_that_might_include_SVGs; } add_action('escape_svg', 'aspace_escape_svg'); function limit_string_on_posts(){ // strip tags to avoid breaking any html $string = strip_tags($string); if (strlen($string) > 500) { // truncate string $stringCut = substr($string, 0, 500); $endPoint = strrpos($stringCut, ' '); //if the string doesn't contain any space then it will cut without word basis. $string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0); $string .= '... Read More'; } echo $string; } add_action('new_string_on_posts', 'limit_string_on_posts'); /* custom metaboxes */ //function execute_metaboxes(){ // Predefined custom fields for Homepage Slides /* $key_homepage_slide = "_udt_homepage_slide_meta"; $meta_boxes_homepage_slide = array( "caption_style" => array( "name" => "caption_style", "title" => "Caption Style", "description" => 'Select the caption style you would like to use with this slide.' ) ); function create_homepage_slide_meta_box() { global $key_homepage_slide; if( function_exists( 'add_meta_box' ) ) { add_meta_box( 'new-meta-boxes', __('Slide Options','ego'), 'display_homepage_slide_meta_box', 'udt_homepage_slider', 'normal', 'high'); } } function display_homepage_slide_meta_box() { global $post, $meta_boxes_homepage_slide, $key_homepage_slide; ?>
    ID, $key_homepage_slide, true); ?>

    array( "name" => "caption_style", "title" => "Caption Style", "description" => 'Select the caption style you would like to use with this price.' ) ); function create_ads_price_meta_box() { global $key_ads_price; if( function_exists( 'add_meta_box' ) ) { add_meta_box( 'new-meta-boxes', __('price Options','ego'), 'display_ads_price_meta_box', 'udt_homepage_pricer', 'normal', 'high'); } } function display_ads_price_meta_box() { global $post, $meta_boxes_homepage_price, $key_ads_price; ?>
    ID, $key_ads_price, true); ?>
    Symbol Position


    */