Esempio n. 1
0
 function lsvr_shortcodes_content_filter_aqpb_unregister_defaults()
 {
     // remove ajax action of default Tabs block
     global $aq_registered_blocks;
     $aq_tabs_class = $aq_registered_blocks['aq_tabs_block'];
     remove_action('wp_ajax_aq_block_tab_add_new', array($aq_tabs_class, 'add_tab'));
     // unregister default blocks, styles and scripts
     aq_unregister_block('aq_text_block');
     aq_unregister_block('aq_alert_block');
     aq_unregister_block('aq_clear_block');
     aq_unregister_block('aq_widgets_block');
     aq_unregister_block('aq_column_block');
     aq_unregister_block('aq_tabs_block');
     wp_deregister_style('aqpb-view-css');
     wp_dequeue_script('aqpb-view-js');
 }
Esempio n. 2
0
    require_once get_stylesheet_directory() . '/inc/blocks/pp-alert-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-testimonials-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-notice-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-pricing-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-team-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-image-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-slider-block.php';
    require_once get_stylesheet_directory() . '/inc/blocks/pp-blog-block.php';
    if (is_woocommerce_activated()) {
        require_once get_stylesheet_directory() . '/inc/blocks/pp-woocommerce-block.php';
        aq_register_block('PP_Woocommerce_Block');
    }
    //register the blocks
    aq_unregister_block('AQ_Tabs_Block');
    aq_register_block('PP_Tabs_Block');
    aq_register_block('PP_Headline_Block');
    aq_register_block('PP_Notice_Block');
    aq_register_block('PP_Featured_Block');
    aq_register_block('PP_Portfolio_Block');
    aq_register_block('PP_Clients_Block');
    aq_unregister_block('AQ_Alert_Block');
    aq_register_block('PP_Alert_Block');
    aq_register_block('PP_Social_Block');
    aq_register_block('PP_Skills_Block');
    aq_register_block('PP_Testimonials_Block');
    aq_register_block('PP_Pricing_Block');
    aq_register_block('PP_Team_Block');
    aq_register_block('PP_Image_Block');
    aq_register_block('PP_Slider_Block');
    aq_register_block('PP_Blog_Block');
}
/**
 * Page Builder Functions
 * Queue Up Framework
 * @since version 1.0
 * @author TommusRhodus
 */
if (class_exists('AQ_Page_Builder')) {
    /**
     * Dre-register defaults
     */
    aq_unregister_block('AQ_Text_Block');
    aq_unregister_block('AQ_Tabs_Block');
    aq_unregister_block('AQ_Alert_Block');
    aq_unregister_block('AQ_Richtext_Block');
    aq_unregister_block('AQ_Clear_Block');
    aq_unregister_block('AQ_Widgets_Block');
    /**
     * Register custom blocks
     * Override by copying block file of your choice to your child theme, and then require & register from your child theme functions.php
     * Ensure that you use aq_regiser_block() in your child theme to register the block with the page builder.
     */
    if (!class_exists('AQ_Spacer_Block')) {
        require_once "page_builder_blocks/spacer_block.php";
        aq_register_block('AQ_Spacer_Block');
    }
    if (!class_exists('AQ_Section_Block')) {
        require_once "page_builder_blocks/section_block.php";
        aq_register_block('AQ_Section_Block');
    }
    if (!class_exists('AQ_Section_Title_Block')) {
        require_once "page_builder_blocks/section_title_block.php";
<?php

if (class_exists('AQ_Page_Builder')) {
    //UNREGISTER DEFAULT TABS
    aq_unregister_block('AQ_Text_Block');
    //UNREGISTER DEFAULT TABS
    aq_unregister_block('AQ_Tabs_Block');
    //UNREGISTER ALERT BLOCK
    aq_unregister_block('AQ_Alert_Block');
    //UNREGISTER RICH TEXT BLOCK
    aq_unregister_block('AQ_Richtext_Block');
    //UNREGISTER CLEAR BLOCK
    aq_unregister_block('AQ_Clear_Block');
    //REGISTER TABS
    if (!class_exists('AQ_Ebor_Tabs_Block')) {
        require_once "page_builder_blocks/tabs_block.php";
        aq_register_block('AQ_Ebor_Tabs_Block');
    }
    //REGISTER TEXT
    if (!class_exists('AQ_Ebor_Text_Block')) {
        require_once "page_builder_blocks/text_block.php";
        aq_register_block('AQ_Ebor_Text_Block');
    }
    //REGISTER ALERTS
    if (!class_exists('AQ_Ebor_Alert_Block')) {
        require_once "page_builder_blocks/alert_block.php";
        aq_register_block('AQ_Ebor_Alert_Block');
    }
    //REGISTER IMAGE
    if (!class_exists('AQ_Ebor_Image_Block')) {
        require_once "page_builder_blocks/image_block.php";