Plugin Directory

Changeset 3167922


Ignore:
Timestamp:
10/13/2024 10:48:50 AM (14 months ago)
Author:
cubewp1211
Message:

New tag update 1.1.20

Location:
cubewp-framework/trunk
Files:
8 edited

Legend:

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

    r3165528 r3167922  
    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.19
     6* Version: 1.1.20
    77* Author: CubeWP
    88* Author URI: https://cubewp.com
  • cubewp-framework/trunk/cube/assets/admin/css/cwpform-builder.css

    r3155340 r3167922  
    699699    width: 200px;
    700700    text-overflow: ellipsis;
    701     white-space: nowrap;
    702     overflow: hidden;
     701    /* white-space: nowrap;
     702    overflow: hidden; */
    703703}
    704704.form-settings .cwpform-settings .cwpform-setting-fields .cwpform-setting-field input,
  • cubewp-framework/trunk/cube/classes/class-cubewp-add-ons.php

    r3073465 r3167922  
    3333        //license system
    3434        add_action( 'admin_init', array( $this, 'check_license' ) );
     35        add_action('admin_init', array( $this, 'updates_enable_for_free_addon'));
    3536        add_action( 'admin_init', array( $this, 'check_for_plugin_update'), 0 );
    3637        add_action( self::CUBEWP.'/'.self::ADDON.'/'.self::ACTI.self::VATION, array($this,'_plugins'), 9, 1 );
     
    8687            ),
    8788            'cubewp-addon-claim' => array(
    88                 'item_name' => 'CubeWP Claim',
     89                'item_name' => 'CubeWP Post Claim',
    8990                'slug' => 'cubewp-addon-claim',
    9091                'author' => 'Emraan Cheema',
     
    9293                'path' => plugin_dir_path( dirname(dirname(__DIR__)) ).'cubewp-addon-claim/cube/',
    9394                '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',
    98101                'author' => 'Emraan Cheema',
    99102                'base' => 'cubewp-addon-social-logins/cubewp-social-logins.php',
    100103                'path' => plugin_dir_path( dirname(dirname(__DIR__)) ).'cubewp-addon-social-logins/cube/',
    101104                'load' => CUBEWP.'_Social_Logins_Load',
     105                'license_type' => 'free',
     106                'key'   => '9663701ddf66d0f23096c3fb186726c5',
    102107            ),
    103108            'cubewp-addon-classified' => array(
     
    178183                $item_name = $add_ons[$plugin]['item_name'];
    179184                $slug = $add_ons[$plugin]['slug'];
     185                $license_type = isset($add_ons[$plugin]['license_type']) ? $add_ons[$plugin]['license_type']: '';
    180186                $file = $path . "config.txt";
    181187
     
    190196
    191197                        $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
    193206                        // data to send in our API request
    194207                        $api_params = array(
     
    348361    }
    349362
     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
    350394    public static function init() {
    351395        $CubeClass = __CLASS__;
  • cubewp-framework/trunk/cube/classes/class-cubewp-form-builder.php

    r3155340 r3167922  
    701701    public static function cubewp_search_filters_builder_settings( $form_fields ) {
    702702        $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>';
    704704        $input_attrs = array(
    705705            'name'        => 'conditional_filters',
  • cubewp-framework/trunk/cube/classes/class-cubewp-load.php

    r3165528 r3167922  
    2121     * @var string
    2222     */
    23     public static $CubeWp_version = '1.1.19';
     23    public static $CubeWp_version = '1.1.20';
    2424   
    2525    /**
  • cubewp-framework/trunk/cube/classes/class-cubewp-plugin-updater.php

    r2820891 r3167922  
    4343            $this->plugin_title = $_plugin_update_data[ 'plugin_title' ];
    4444        }
     45        //delete_site_transient('update_plugins');
    4546        // Set up hooks.
    4647        $this->init();
  • cubewp-framework/trunk/cube/includes/shortcodes/class-cubewp-frontend-search-filter.php

    r3155340 r3167922  
    364364                    $terms  = get_post_meta($fieldOptions['group_id'], '_cwp_group_terms', true);
    365365                    if(isset($terms) && !empty($terms)){
    366                         $termSLug = cwp_term_by('id','comma', $terms, false);
    367                         $fieldOptions['container_attrs'] = ' data-terms="'. $termSLug .'"';
     366                        //$termSLug = cwp_term_by('id','comma', $terms, false);
     367                        $fieldOptions['container_attrs'] = ' data-terms="'. $terms .'"';
    368368                        $fieldOptions['container_class'] = ' cwp-conditional-by-term';
    369369                    }
  • cubewp-framework/trunk/readme.txt

    r3165528 r3167922  
    66Requires PHP: 7.4
    77Tested up to: 6.4.3
    8 Stable tag: 1.1.19
     8Stable tag: 1.1.20
    99License: GPLv2 or later
    1010
     
    377377== Changelog ==
    378378
     379= 1.1.20 2024-10-13
     380
     381- FIXED: Taxonomy-Based Conditional Custom Fields in Search Fitlers.
     382
    379383= 1.1.19 2024-10-09
    380384
Note: See TracChangeset for help on using the changeset viewer.