Changeset 3165528
- Timestamp:
- 10/09/2024 08:23:22 AM (14 months ago)
- Location:
- cubewp-framework/trunk
- Files:
-
- 9 edited
-
cube.php (modified) (1 diff)
-
cube/assets/admin/js/custom-fields.js (modified) (3 diffs)
-
cube/assets/frontend/js/cubewp-alerts.js (modified) (1 diff)
-
cube/classes/class-cubewp-frontend-templates.php (modified) (2 diffs)
-
cube/classes/class-cubewp-load.php (modified) (1 diff)
-
cube/modules/post-types/class-cubewp-posttype-custom-fields-display.php (modified) (1 diff)
-
cube/modules/theme-builder/class-cubewp-theme-builder-rules.php (modified) (5 diffs)
-
cube/modules/theme-builder/class-cubewp-theme-builder.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cubewp-framework/trunk/cube.php
r3161906 r3165528 4 4 * Plugin URI: https://cubewp.com/ 5 5 * 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.1 86 * Version: 1.1.19 7 7 * Author: CubeWP 8 8 * Author URI: https://cubewp.com -
cubewp-framework/trunk/cube/assets/admin/js/custom-fields.js
r3155340 r3165528 25 25 cwp_fields_sortable(); 26 26 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) { 28 28 e.preventDefault(); 29 29 var e_this = jQuery(this); … … 47 47 }); 48 48 49 jQuery( '.duplicate-field').click(function (e){49 jQuery(document).on('click', '.duplicate-field', function (e) { 50 50 e.preventDefault(); 51 51 e.stopPropagation(); … … 94 94 }); 95 95 96 jQuery( '.cwp-custom-fields-post-types').change(function() {96 jQuery(document).on('change', '.cwp-custom-fields-post-types', function (e) { 97 97 98 98 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 111 111 url: cwp_alert_ui_params.ajax_url, 112 112 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, 114 114 dataType: "json", 115 115 success: function (response) { -
cubewp-framework/trunk/cube/classes/class-cubewp-frontend-templates.php
r3155446 r3165528 179 179 if ( !$this->elementor_single_template_include() ) { 180 180 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 181 192 if ( 182 193 !array_key_exists(get_post_type(), CWP_types()) … … 208 219 public function cubewp_archive_template($template = '',$type = '',$templates = '') { 209 220 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 } 210 234 211 235 $current_term = get_queried_object(); -
cubewp-framework/trunk/cube/classes/class-cubewp-load.php
r3161906 r3165528 21 21 * @var string 22 22 */ 23 public static $CubeWp_version = '1.1.1 8';23 public static $CubeWp_version = '1.1.19'; 24 24 25 25 /** -
cubewp-framework/trunk/cube/modules/post-types/class-cubewp-posttype-custom-fields-display.php
r3155340 r3165528 269 269 $checked = ''; 270 270 } 271 $html .= '<li class="pull-left">';271 $html .= '<li>'; 272 272 $html .= '<input type="checkbox" class="cwp-custom-fields-post-types" name="cwp[group][types][]" '.$checked.' value="'.$type.'">'.$type.' <br>'; 273 273 $html .= '</li>'; -
cubewp-framework/trunk/cube/modules/theme-builder/class-cubewp-theme-builder-rules.php
r3155346 r3165528 84 84 foreach (self::get_public_post_types() as $post_type) { 85 85 $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>'; 87 87 } 88 88 $template_options .= '</optgroup>'; … … 102 102 foreach (self::get_public_taxonomies() as $taxonomy) { 103 103 $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>'; 105 105 } 106 106 $template_options .= '<option value="archive_author">Author Archive</option>'; … … 112 112 if ($post_type['hasArchive']) { 113 113 $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>'; 115 115 } 116 116 } … … 198 198 $template_type = sanitize_text_field($_POST['template_type']); 199 199 $template_options = ''; 200 $exclude_options = '';200 //$exclude_options = ''; 201 201 202 202 switch ($template_type) { … … 226 226 wp_send_json_success([ 227 227 'template_options' => $template_options, 228 'exclude_options' => $exclude_options228 //'exclude_options' => $exclude_options 229 229 ]); 230 230 } -
cubewp-framework/trunk/cube/modules/theme-builder/class-cubewp-theme-builder.php
r3155346 r3165528 224 224 if (isset($form_data['ctb_edit_template_id']) && !empty($form_data['ctb_edit_template_id'])) { 225 225 $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 )); 232 230 } 233 231 -
cubewp-framework/trunk/readme.txt
r3161906 r3165528 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.4.3 8 Stable tag: 1.1.1 88 Stable tag: 1.1.19 9 9 License: GPLv2 or later 10 10 … … 377 377 == Changelog == 378 378 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 379 386 = 1.1.18 2024-10-02 380 387 381 388 - FIXED: CubeWP Posts Element order control (ascending/descending) now functions correctly. Resolved fatal error when no posts were found. 382 383 389 - UPDATED: Prevented numeric slugs for CubeWP Post Types and Taxonomies during creation. 384 390
Note: See TracChangeset
for help on using the changeset viewer.