Plugin Directory

Changeset 3201304


Ignore:
Timestamp:
12/03/2024 04:35:54 AM (16 months ago)
Author:
palscode
Message:

Update to version 1.3.17 from GitHub

Location:
support-genix-lite
Files:
8 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • support-genix-lite/tags/1.3.17/appcore/APBDWPOfferLite.php

    r3033085 r3201304  
    7070            add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
    7171            add_action( 'admin_init', [ $this, 'run_offer' ], 999999 );
     72           
     73            $this->check_transient_deletion();
    7274        }
    7375
     
    467469        }
    468470
     471        /**
     472         * Check and handle transient deletion.
     473         */
     474        public function check_transient_deletion() {
     475
     476            $transient_data = get_transient( $this->prefix . '_htiop_data' );
     477            $current_version = SUPPORT_GENIX_LITE_VERSION;
     478            $last_deleted_version = get_option( $this->prefix . '_offer_last_deleted_version', '' );
     479
     480            if ( $transient_data &&  ! $last_deleted_version ) {
     481                // Delete the transient
     482                delete_transient( $this->prefix . '_htiop_data' );
     483                update_option( $this->prefix . '_htiop_data','no' );
     484                // Update the version in options
     485                update_option( $this->prefix . '_offer_last_deleted_version', $current_version );
     486            }
     487        }
     488
    469489    }
    470490
  • support-genix-lite/tags/1.3.17/core/AppsBDKarnelLite.php

    r3113675 r3201304  
    11351135            add_action( 'admin_notices', [ $this, "OnAdminNotices" ]);
    11361136            $this->CheckPluginVersionUpdate();
     1137            // Dashboard Widget.
     1138            add_action( 'wp_dashboard_setup', [ $this, 'dashboard_widget' ], 9999 );
     1139        }
     1140
     1141        /**
     1142         * [dashboard_widget] Register Dashboard Widget
     1143         * @return [void]
     1144         */
     1145        public function dashboard_widget() {
     1146            wp_add_dashboard_widget(
     1147                'hasthemes-dashboard-stories',
     1148                esc_html__( 'HasThemes Stories', 'support-genix-lite' ),
     1149                [ $this, 'dashboard_hasthemes_widget' ]
     1150            );
     1151
     1152            // Metaboxes Array.
     1153            global $wp_meta_boxes;
     1154
     1155            $dashboard_widget_list = $wp_meta_boxes['dashboard']['normal']['core'];
     1156
     1157            $hastheme_dashboard_widget = [
     1158                'hasthemes-dashboard-stories' => $dashboard_widget_list['hasthemes-dashboard-stories']
     1159            ];
     1160
     1161            $all_dashboard_widget = array_merge( $hastheme_dashboard_widget, $dashboard_widget_list );
     1162
     1163            $wp_meta_boxes['dashboard']['normal']['core'] = $all_dashboard_widget;
     1164
     1165        }
     1166
     1167        /**
     1168         * [dashboard_hasthemes_widget] Dashboard Stories Widget
     1169         * @return [void]
     1170         */
     1171        public function dashboard_hasthemes_widget() {
     1172
     1173            ob_start();
     1174            $tmp_file = SUPPORT_GENIX_FILE_PATH . '/template/dashboard-widget.php';
     1175            if ( file_exists( $tmp_file ) ) {
     1176                include_once( $tmp_file );
     1177            }
     1178            echo ob_get_clean();
    11371179        }
    11381180
  • support-genix-lite/tags/1.3.17/models/database/Mapbd_wps_custom_field.php

    r3132437 r3201304  
    420420             <div class="form-group col-sm">
    421421                 <label class="col-form-label" for="choose_category"><?php $this->_ee("Choose Category"); ?></label>
    422                  <?php $options_choose_category = Mapbd_wps_ticket_category::FetchAllKeyValue("id", "title");
    423                  $choose_category_list = APBD_PostValue("category_arr", explode(',', $mainobj->choose_category));
     422                 <?php
     423                 $options_choose_category = Mapbd_wps_ticket_category::FetchAllKeyValue("id", "title");
     424
     425                 $choose_category_list = null !== $mainobj->choose_category ? explode(',', $mainobj->choose_category) : array();
     426                 $choose_category_list = APBD_PostValue("category_arr", $choose_category_list);
    424427                 ?>
    425428                 <select class="custom-select app-select2-picker form-control-sm" multiple="multiple"
  • support-genix-lite/tags/1.3.17/readme.txt

    r3169084 r3201304  
    66Tested up to: 6.6
    77Requires PHP: 7.2
    8 Stable tag: 1.3.16
     8Stable tag: 1.3.17
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    177177
    178178== Changelog ==
     179
     180= Version: 1.3.17 - Date: 03 December, 2024 =
     181* Improved: Various minor areas.
     182* Fixed: Several minor issues.
     183* Fixed: Resolved text domain loading issue introduced in WordPress 6.7.
     184* Tested: Compatibility with the latest version of WordPress.
    179185
    180186= Version: 1.3.16 - Date: 15 October, 2024 =
  • support-genix-lite/tags/1.3.17/support-genix-lite.php

    r3169084 r3201304  
    44Plugin URI: http://supportgenix.com
    55Description: Client ticketing app for Wordpress
    6 Version: 1.3.16
     6Version: 1.3.17
    77Author: Support Genix
    88Author URI: https://supportgenix.com
     
    1515$appWpSUpportLiteFile = __FILE__;
    1616$appWpSUpportLitePath = dirname( $appWpSUpportLiteFile );
    17 $appWpSUpportLiteVersion = '1.3.16';
     17$appWpSUpportLiteVersion = '1.3.17';
     18
     19if (!defined('SUPPORT_GENIX_FILE_PATH')) {
     20    define('SUPPORT_GENIX_FILE_PATH', $appWpSUpportLitePath);
     21}
     22
     23if (!defined('SUPPORT_GENIX_LITE_VERSION')) {
     24    define('SUPPORT_GENIX_LITE_VERSION', $appWpSUpportLiteVersion);
     25}
    1826
    1927include_once ABSPATH . 'wp-admin/includes/plugin.php';
     
    2129include_once $appWpSUpportLitePath . '/appcore/APBDWPLoaderLite.php';
    2230include_once $appWpSUpportLitePath . '/appcore/APBDWPOfferLite.php';
     31include_once $appWpSUpportLitePath . '/appcore/APBDWPHasThemesNewsAPI.php';
    2332
    2433$appWpSUpportLiteLoad = APBDWPLoaderLite::isReadyToLoad( $appWpSUpportLiteFile, $appWpSUpportLiteVersion );
    2534
    2635if ( true === $appWpSUpportLiteLoad ) {
     36    include_once $appWpSUpportLitePath . '/appcore/APBDWPPromoBannerNotice.php';
     37
    2738    include_once $appWpSUpportLitePath . '/core/helper_lite.php';
    2839    include_once $appWpSUpportLitePath . '/appcore/plugin_helper.php';
  • support-genix-lite/trunk/appcore/APBDWPOfferLite.php

    r3033085 r3201304  
    7070            add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
    7171            add_action( 'admin_init', [ $this, 'run_offer' ], 999999 );
     72           
     73            $this->check_transient_deletion();
    7274        }
    7375
     
    467469        }
    468470
     471        /**
     472         * Check and handle transient deletion.
     473         */
     474        public function check_transient_deletion() {
     475
     476            $transient_data = get_transient( $this->prefix . '_htiop_data' );
     477            $current_version = SUPPORT_GENIX_LITE_VERSION;
     478            $last_deleted_version = get_option( $this->prefix . '_offer_last_deleted_version', '' );
     479
     480            if ( $transient_data &&  ! $last_deleted_version ) {
     481                // Delete the transient
     482                delete_transient( $this->prefix . '_htiop_data' );
     483                update_option( $this->prefix . '_htiop_data','no' );
     484                // Update the version in options
     485                update_option( $this->prefix . '_offer_last_deleted_version', $current_version );
     486            }
     487        }
     488
    469489    }
    470490
  • support-genix-lite/trunk/core/AppsBDKarnelLite.php

    r3113675 r3201304  
    11351135            add_action( 'admin_notices', [ $this, "OnAdminNotices" ]);
    11361136            $this->CheckPluginVersionUpdate();
     1137            // Dashboard Widget.
     1138            add_action( 'wp_dashboard_setup', [ $this, 'dashboard_widget' ], 9999 );
     1139        }
     1140
     1141        /**
     1142         * [dashboard_widget] Register Dashboard Widget
     1143         * @return [void]
     1144         */
     1145        public function dashboard_widget() {
     1146            wp_add_dashboard_widget(
     1147                'hasthemes-dashboard-stories',
     1148                esc_html__( 'HasThemes Stories', 'support-genix-lite' ),
     1149                [ $this, 'dashboard_hasthemes_widget' ]
     1150            );
     1151
     1152            // Metaboxes Array.
     1153            global $wp_meta_boxes;
     1154
     1155            $dashboard_widget_list = $wp_meta_boxes['dashboard']['normal']['core'];
     1156
     1157            $hastheme_dashboard_widget = [
     1158                'hasthemes-dashboard-stories' => $dashboard_widget_list['hasthemes-dashboard-stories']
     1159            ];
     1160
     1161            $all_dashboard_widget = array_merge( $hastheme_dashboard_widget, $dashboard_widget_list );
     1162
     1163            $wp_meta_boxes['dashboard']['normal']['core'] = $all_dashboard_widget;
     1164
     1165        }
     1166
     1167        /**
     1168         * [dashboard_hasthemes_widget] Dashboard Stories Widget
     1169         * @return [void]
     1170         */
     1171        public function dashboard_hasthemes_widget() {
     1172
     1173            ob_start();
     1174            $tmp_file = SUPPORT_GENIX_FILE_PATH . '/template/dashboard-widget.php';
     1175            if ( file_exists( $tmp_file ) ) {
     1176                include_once( $tmp_file );
     1177            }
     1178            echo ob_get_clean();
    11371179        }
    11381180
  • support-genix-lite/trunk/models/database/Mapbd_wps_custom_field.php

    r3132437 r3201304  
    420420             <div class="form-group col-sm">
    421421                 <label class="col-form-label" for="choose_category"><?php $this->_ee("Choose Category"); ?></label>
    422                  <?php $options_choose_category = Mapbd_wps_ticket_category::FetchAllKeyValue("id", "title");
    423                  $choose_category_list = APBD_PostValue("category_arr", explode(',', $mainobj->choose_category));
     422                 <?php
     423                 $options_choose_category = Mapbd_wps_ticket_category::FetchAllKeyValue("id", "title");
     424
     425                 $choose_category_list = null !== $mainobj->choose_category ? explode(',', $mainobj->choose_category) : array();
     426                 $choose_category_list = APBD_PostValue("category_arr", $choose_category_list);
    424427                 ?>
    425428                 <select class="custom-select app-select2-picker form-control-sm" multiple="multiple"
  • support-genix-lite/trunk/readme.txt

    r3169084 r3201304  
    66Tested up to: 6.6
    77Requires PHP: 7.2
    8 Stable tag: 1.3.16
     8Stable tag: 1.3.17
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    177177
    178178== Changelog ==
     179
     180= Version: 1.3.17 - Date: 03 December, 2024 =
     181* Improved: Various minor areas.
     182* Fixed: Several minor issues.
     183* Fixed: Resolved text domain loading issue introduced in WordPress 6.7.
     184* Tested: Compatibility with the latest version of WordPress.
    179185
    180186= Version: 1.3.16 - Date: 15 October, 2024 =
  • support-genix-lite/trunk/support-genix-lite.php

    r3169084 r3201304  
    44Plugin URI: http://supportgenix.com
    55Description: Client ticketing app for Wordpress
    6 Version: 1.3.16
     6Version: 1.3.17
    77Author: Support Genix
    88Author URI: https://supportgenix.com
     
    1515$appWpSUpportLiteFile = __FILE__;
    1616$appWpSUpportLitePath = dirname( $appWpSUpportLiteFile );
    17 $appWpSUpportLiteVersion = '1.3.16';
     17$appWpSUpportLiteVersion = '1.3.17';
     18
     19if (!defined('SUPPORT_GENIX_FILE_PATH')) {
     20    define('SUPPORT_GENIX_FILE_PATH', $appWpSUpportLitePath);
     21}
     22
     23if (!defined('SUPPORT_GENIX_LITE_VERSION')) {
     24    define('SUPPORT_GENIX_LITE_VERSION', $appWpSUpportLiteVersion);
     25}
    1826
    1927include_once ABSPATH . 'wp-admin/includes/plugin.php';
     
    2129include_once $appWpSUpportLitePath . '/appcore/APBDWPLoaderLite.php';
    2230include_once $appWpSUpportLitePath . '/appcore/APBDWPOfferLite.php';
     31include_once $appWpSUpportLitePath . '/appcore/APBDWPHasThemesNewsAPI.php';
    2332
    2433$appWpSUpportLiteLoad = APBDWPLoaderLite::isReadyToLoad( $appWpSUpportLiteFile, $appWpSUpportLiteVersion );
    2534
    2635if ( true === $appWpSUpportLiteLoad ) {
     36    include_once $appWpSUpportLitePath . '/appcore/APBDWPPromoBannerNotice.php';
     37
    2738    include_once $appWpSUpportLitePath . '/core/helper_lite.php';
    2839    include_once $appWpSUpportLitePath . '/appcore/plugin_helper.php';
Note: See TracChangeset for help on using the changeset viewer.