Changeset 3167922
- Timestamp:
- 10/13/2024 10:48:50 AM (14 months ago)
- Location:
- cubewp-framework/trunk
- Files:
-
- 8 edited
-
cube.php (modified) (1 diff)
-
cube/assets/admin/css/cwpform-builder.css (modified) (1 diff)
-
cube/classes/class-cubewp-add-ons.php (modified) (6 diffs)
-
cube/classes/class-cubewp-form-builder.php (modified) (1 diff)
-
cube/classes/class-cubewp-load.php (modified) (1 diff)
-
cube/classes/class-cubewp-plugin-updater.php (modified) (1 diff)
-
cube/includes/shortcodes/class-cubewp-frontend-search-filter.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cubewp-framework/trunk/cube.php
r3165528 r3167922 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. 196 * Version: 1.1.20 7 7 * Author: CubeWP 8 8 * Author URI: https://cubewp.com -
cubewp-framework/trunk/cube/assets/admin/css/cwpform-builder.css
r3155340 r3167922 699 699 width: 200px; 700 700 text-overflow: ellipsis; 701 white-space: nowrap;702 overflow: hidden; 701 /* white-space: nowrap; 702 overflow: hidden; */ 703 703 } 704 704 .form-settings .cwpform-settings .cwpform-setting-fields .cwpform-setting-field input, -
cubewp-framework/trunk/cube/classes/class-cubewp-add-ons.php
r3073465 r3167922 33 33 //license system 34 34 add_action( 'admin_init', array( $this, 'check_license' ) ); 35 add_action('admin_init', array( $this, 'updates_enable_for_free_addon')); 35 36 add_action( 'admin_init', array( $this, 'check_for_plugin_update'), 0 ); 36 37 add_action( self::CUBEWP.'/'.self::ADDON.'/'.self::ACTI.self::VATION, array($this,'_plugins'), 9, 1 ); … … 86 87 ), 87 88 'cubewp-addon-claim' => array( 88 'item_name' => 'CubeWP Claim',89 'item_name' => 'CubeWP Post Claim', 89 90 'slug' => 'cubewp-addon-claim', 90 91 'author' => 'Emraan Cheema', … … 92 93 'path' => plugin_dir_path( dirname(dirname(__DIR__)) ).'cubewp-addon-claim/cube/', 93 94 'load' => CUBEWP.'_Claim_Load', 94 ), 95 'cubewp-addon-social-logins' => array( 96 'item_name' => 'CubeWP Social Logins', 97 'slug' => 'cubewp-addon-social-logins', 95 'license_type' => 'free', 96 'key' => '35a2833bea9bbf02ee48cb5fcce2e2cf', 97 ), 98 'cubewp-addon-social-login' => array( 99 'item_name' => 'CubeWP Social Login', 100 'slug' => 'cubewp-addon-social-login', 98 101 'author' => 'Emraan Cheema', 99 102 'base' => 'cubewp-addon-social-logins/cubewp-social-logins.php', 100 103 'path' => plugin_dir_path( dirname(dirname(__DIR__)) ).'cubewp-addon-social-logins/cube/', 101 104 'load' => CUBEWP.'_Social_Logins_Load', 105 'license_type' => 'free', 106 'key' => '9663701ddf66d0f23096c3fb186726c5', 102 107 ), 103 108 'cubewp-addon-classified' => array( … … 178 183 $item_name = $add_ons[$plugin]['item_name']; 179 184 $slug = $add_ons[$plugin]['slug']; 185 $license_type = isset($add_ons[$plugin]['license_type']) ? $add_ons[$plugin]['license_type']: ''; 180 186 $file = $path . "config.txt"; 181 187 … … 190 196 191 197 $key = file_get_contents ( $file ); 192 198 199 // If plugin is free 200 if($license_type == 'free'){ 201 CWP()->update_cubewp_options($slug.'_key', $key); 202 unlink ( $file ); 203 return; 204 } 205 193 206 // data to send in our API request 194 207 $api_params = array( … … 348 361 } 349 362 363 public function updates_enable_for_free_addon() { 364 //cwp_pre(get_option('cubewp-addon-social-logins_key')); 365 //delete_option('cubewp-addon-social-logins_key'); 366 367 $add_ons = self::cubewp_add_ons(); 368 $all_plugins = array('cubewp-addon-claim'); 369 foreach($all_plugins as $plugin){ 370 if(isset($add_ons[$plugin])){ 371 $path = $add_ons[$plugin]['path']; 372 $slug = $add_ons[$plugin]['slug']; 373 $license_type = isset($add_ons[$plugin]['license_type']) ? $add_ons[$plugin]['license_type']: ''; 374 $file = $path . "config.txt"; 375 $existing_key = get_option($slug.'_key'); 376 if (empty($existing_key) && $license_type == 'free') { 377 // If file exists 378 if(file_exists($file)){ 379 $key = file_get_contents ( $file ); 380 CWP()->update_cubewp_options($slug.'_key', $key); 381 unlink ( $file ); 382 return; 383 }else{ 384 $key = isset($add_ons[$plugin]['key']) ? $add_ons[$plugin]['key']: ''; 385 CWP()->update_cubewp_options($slug.'_key', $key); 386 return; 387 } 388 389 } 390 } 391 } 392 } 393 350 394 public static function init() { 351 395 $CubeClass = __CLASS__; -
cubewp-framework/trunk/cube/classes/class-cubewp-form-builder.php
r3155340 r3167922 701 701 public static function cubewp_search_filters_builder_settings( $form_fields ) { 702 702 $output = '<div class="cwpform-setting-field">'; 703 $output .= '<label>' . esc_html__( "Enable Conditional Fields", "cubewp-framework" ) . '</label>';703 $output .= '<label>' . esc_html__( "Enable Taxonomy-Based Conditional Fields in Filters", "cubewp-framework" ) . '</label>'; 704 704 $input_attrs = array( 705 705 'name' => 'conditional_filters', -
cubewp-framework/trunk/cube/classes/class-cubewp-load.php
r3165528 r3167922 21 21 * @var string 22 22 */ 23 public static $CubeWp_version = '1.1. 19';23 public static $CubeWp_version = '1.1.20'; 24 24 25 25 /** -
cubewp-framework/trunk/cube/classes/class-cubewp-plugin-updater.php
r2820891 r3167922 43 43 $this->plugin_title = $_plugin_update_data[ 'plugin_title' ]; 44 44 } 45 //delete_site_transient('update_plugins'); 45 46 // Set up hooks. 46 47 $this->init(); -
cubewp-framework/trunk/cube/includes/shortcodes/class-cubewp-frontend-search-filter.php
r3155340 r3167922 364 364 $terms = get_post_meta($fieldOptions['group_id'], '_cwp_group_terms', true); 365 365 if(isset($terms) && !empty($terms)){ 366 $termSLug = cwp_term_by('id','comma', $terms, false);367 $fieldOptions['container_attrs'] = ' data-terms="'. $term SLug.'"';366 //$termSLug = cwp_term_by('id','comma', $terms, false); 367 $fieldOptions['container_attrs'] = ' data-terms="'. $terms .'"'; 368 368 $fieldOptions['container_class'] = ' cwp-conditional-by-term'; 369 369 } -
cubewp-framework/trunk/readme.txt
r3165528 r3167922 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.4.3 8 Stable tag: 1.1. 198 Stable tag: 1.1.20 9 9 License: GPLv2 or later 10 10 … … 377 377 == Changelog == 378 378 379 = 1.1.20 2024-10-13 380 381 - FIXED: Taxonomy-Based Conditional Custom Fields in Search Fitlers. 382 379 383 = 1.1.19 2024-10-09 380 384
Note: See TracChangeset
for help on using the changeset viewer.