Plugin Directory

Changeset 3165528


Ignore:
Timestamp:
10/09/2024 08:23:22 AM (14 months ago)
Author:
cubewp1211
Message:

New tag update 1.1.19

Location:
cubewp-framework/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cubewp-framework/trunk/cube.php

    r3161906 r3165528  
    44* Plugin URI: https://cubewp.com/
    55* Description: CubeWP is an end-to-end dynamic content framework for WordPress to help you save up to 90% of your coding time.
    6 * Version: 1.1.18
     6* Version: 1.1.19
    77* Author: CubeWP
    88* Author URI: https://cubewp.com
  • cubewp-framework/trunk/cube/assets/admin/js/custom-fields.js

    r3155340 r3165528  
    2525    cwp_fields_sortable();
    2626    cwp_conditional_fields();
    27     jQuery('#cwp-add-new-field-btn').click(function (e){
     27    jQuery(document).on('click', '#cwp-add-new-field-btn', function (e) {
    2828        e.preventDefault();
    2929        var e_this = jQuery(this);
     
    4747    });
    4848
    49     jQuery('.duplicate-field').click(function (e){
     49    jQuery(document).on('click', '.duplicate-field', function (e) {
    5050        e.preventDefault();
    5151        e.stopPropagation();
     
    9494    });
    9595   
    96     jQuery('.cwp-custom-fields-post-types').change(function() {
     96    jQuery(document).on('change', '.cwp-custom-fields-post-types', function (e) {
    9797       
    9898        var selected_post_types = jQuery(".cwp-custom-fields-post-types:checkbox:checked").map(function(){
  • cubewp-framework/trunk/cube/assets/frontend/js/cubewp-alerts.js

    r3155340 r3165528  
    111111        url: cwp_alert_ui_params.ajax_url,
    112112        type: 'POST',
    113         data : 'action=cubewp_remove_saved_posts&post-id='+ pid,
     113        data : 'action=cubewp_remove_saved_posts&post-id='+ pid + '&nonce=' + cwp_alert_ui_params.nonce,
    114114        dataType: "json",
    115115        success: function (response) {
  • cubewp-framework/trunk/cube/classes/class-cubewp-frontend-templates.php

    r3155446 r3165528  
    179179        if ( !$this->elementor_single_template_include() ) {
    180180
     181            // If bricks builder is active and single page tempplate is built with bricks
     182            if (class_exists('Bricks\Helpers') && method_exists('Bricks\Helpers', 'render_with_bricks')) {
     183                $post_id = get_the_ID(); // Get the current post/page ID               
     184                // Now call the method safely
     185                if (Bricks\Helpers::render_with_bricks( $post_id, 'content') && !CubeWp_Theme_Builder::is_cubewp_theme_builder_active('single')) {
     186                    // If the method returns true, the post is built with Bricks Builder
     187                    return $template;
     188                }
     189            }
     190
     191            // If post type created with CubeWP and single page template not created with theme builder
    181192            if (
    182193                !array_key_exists(get_post_type(), CWP_types())
     
    208219    public function cubewp_archive_template($template = '',$type = '',$templates = '') {
    209220        if ( !$this->elementor_archive_template_include() ) {
     221
     222            // If bricks builder is active and Archive page template is built with bricks
     223            if (class_exists('Bricks\Database') && method_exists('Bricks\Database', 'get_template_data')) {
     224                // Now call the method safely
     225                if (
     226                    (Bricks\Database::get_template_data('archive') || Bricks\Database::get_template_data('search'))
     227                    && !CubeWp_Theme_Builder::is_cubewp_theme_builder_active('archive')
     228                    )
     229                {
     230                    // If the method returns true, the Archive is built with Bricks Builder
     231                    return $template;
     232                }
     233            }
    210234
    211235            $current_term = get_queried_object();
  • cubewp-framework/trunk/cube/classes/class-cubewp-load.php

    r3161906 r3165528  
    2121     * @var string
    2222     */
    23     public static $CubeWp_version = '1.1.18';
     23    public static $CubeWp_version = '1.1.19';
    2424   
    2525    /**
  • cubewp-framework/trunk/cube/modules/post-types/class-cubewp-posttype-custom-fields-display.php

    r3155340 r3165528  
    269269                $checked = '';
    270270            }
    271             $html .= '<li class="pull-left">';
     271            $html .= '<li>';
    272272            $html .= '<input type="checkbox" class="cwp-custom-fields-post-types" name="cwp[group][types][]" '.$checked.' value="'.$type.'">'.$type.' <br>';
    273273            $html .= '</li>';
  • cubewp-framework/trunk/cube/modules/theme-builder/class-cubewp-theme-builder-rules.php

    r3155346 r3165528  
    8484        foreach (self::get_public_post_types() as $post_type) {
    8585            $template_options .= '<option value="single_' . esc_attr($post_type['name']) . '">Single ' . esc_html($post_type['label']) . '</option>';
    86             $exclude_options .= '<option value="exclude_single_' . esc_attr($post_type['name']) . '">Exclude Single ' . esc_html($post_type['label']) . '</option>';
     86            //$exclude_options .= '<option value="exclude_single_' . esc_attr($post_type['name']) . '">Exclude Single ' . esc_html($post_type['label']) . '</option>';
    8787        }
    8888        $template_options .= '</optgroup>';
     
    102102        foreach (self::get_public_taxonomies() as $taxonomy) {
    103103            $template_options .= '<option value="archive_' . esc_attr($taxonomy['name']) . '">Archive ' . esc_html($taxonomy['label']) . '</option>';
    104             $exclude_options .= '<option value="exclude_archive_' . esc_attr($taxonomy['name']) . '">Exclude Archive ' . esc_html($taxonomy['label']) . '</option>';
     104            //$exclude_options .= '<option value="exclude_archive_' . esc_attr($taxonomy['name']) . '">Exclude Archive ' . esc_html($taxonomy['label']) . '</option>';
    105105        }
    106106        $template_options .= '<option value="archive_author">Author Archive</option>';
     
    112112            if ($post_type['hasArchive']) {
    113113                $template_options .= '<option value="archive_' . esc_attr($post_type['name']) . '">Archive ' . esc_html($post_type['label']) . '</option>';
    114                 $exclude_options .= '<option value="exclude_archive_' . esc_attr($post_type['name']) . '">Exclude Archive ' . esc_html($post_type['label']) . '</option>';
     114                //$exclude_options .= '<option value="exclude_archive_' . esc_attr($post_type['name']) . '">Exclude Archive ' . esc_html($post_type['label']) . '</option>';
    115115            }
    116116        }
     
    198198        $template_type = sanitize_text_field($_POST['template_type']);
    199199        $template_options = '';
    200         $exclude_options = '';
     200        //$exclude_options = '';
    201201   
    202202        switch ($template_type) {
     
    226226        wp_send_json_success([
    227227            'template_options' => $template_options,
    228             'exclude_options' => $exclude_options
     228            //'exclude_options' => $exclude_options
    229229        ]);
    230230    }
  • cubewp-framework/trunk/cube/modules/theme-builder/class-cubewp-theme-builder.php

    r3155346 r3165528  
    224224        if (isset($form_data['ctb_edit_template_id']) && !empty($form_data['ctb_edit_template_id'])) {
    225225            $post_id = $form_data['ctb_edit_template_id'];
    226             if ( get_post_status ( $post_id ) == 'inactive' ) {
    227                 wp_update_post(array(
    228                     'ID' => $post_id,
    229                     'post_status' => 'publish'
    230                 ));
    231             }
     226            wp_update_post(array(
     227                'ID' => $post_id,
     228                'post_title' => $template_name,
     229            ));
    232230        }
    233231
  • cubewp-framework/trunk/readme.txt

    r3161906 r3165528  
    66Requires PHP: 7.4
    77Tested up to: 6.4.3
    8 Stable tag: 1.1.18
     8Stable tag: 1.1.19
    99License: GPLv2 or later
    1010
     
    377377== Changelog ==
    378378
     379= 1.1.19 2024-10-09
     380
     381- Compatibility Of CubeWP Theme Builder with Bricks Builder Template Conditions. Now if you have build templates with Bricks Builder, They will work properly.
     382- FIXED: VC Elements post element query loop issue.
     383- FIXED: Nonce issue fixed while Bookmarking or saving.
     384- FIXED: CubeWP Theme Builder Edit template name issue.
     385
    379386= 1.1.18 2024-10-02
    380387
    381388-  FIXED: CubeWP Posts Element order control (ascending/descending) now functions correctly. Resolved fatal error when no posts were found.
    382 
    383389-  UPDATED: Prevented numeric slugs for CubeWP Post Types and Taxonomies during creation.
    384390
Note: See TracChangeset for help on using the changeset viewer.