Changeset 3201304
- Timestamp:
- 12/03/2024 04:35:54 AM (16 months ago)
- Location:
- support-genix-lite
- Files:
-
- 8 added
- 10 edited
- 1 copied
-
tags/1.3.17 (copied) (copied from support-genix-lite/trunk)
-
tags/1.3.17/appcore/APBDWPHasThemesNewsAPI.php (added)
-
tags/1.3.17/appcore/APBDWPOfferLite.php (modified) (2 diffs)
-
tags/1.3.17/appcore/APBDWPPromoBannerNotice.php (added)
-
tags/1.3.17/core/AppsBDKarnelLite.php (modified) (1 diff)
-
tags/1.3.17/images/support-genix-notice.png (added)
-
tags/1.3.17/models/database/Mapbd_wps_custom_field.php (modified) (1 diff)
-
tags/1.3.17/readme.txt (modified) (2 diffs)
-
tags/1.3.17/support-genix-lite.php (modified) (3 diffs)
-
tags/1.3.17/template/dashboard-widget.php (added)
-
trunk/appcore/APBDWPHasThemesNewsAPI.php (added)
-
trunk/appcore/APBDWPOfferLite.php (modified) (2 diffs)
-
trunk/appcore/APBDWPPromoBannerNotice.php (added)
-
trunk/core/AppsBDKarnelLite.php (modified) (1 diff)
-
trunk/images/support-genix-notice.png (added)
-
trunk/models/database/Mapbd_wps_custom_field.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/support-genix-lite.php (modified) (3 diffs)
-
trunk/template/dashboard-widget.php (added)
Legend:
- Unmodified
- Added
- Removed
-
support-genix-lite/tags/1.3.17/appcore/APBDWPOfferLite.php
r3033085 r3201304 70 70 add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] ); 71 71 add_action( 'admin_init', [ $this, 'run_offer' ], 999999 ); 72 73 $this->check_transient_deletion(); 72 74 } 73 75 … … 467 469 } 468 470 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 469 489 } 470 490 -
support-genix-lite/tags/1.3.17/core/AppsBDKarnelLite.php
r3113675 r3201304 1135 1135 add_action( 'admin_notices', [ $this, "OnAdminNotices" ]); 1136 1136 $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(); 1137 1179 } 1138 1180 -
support-genix-lite/tags/1.3.17/models/database/Mapbd_wps_custom_field.php
r3132437 r3201304 420 420 <div class="form-group col-sm"> 421 421 <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); 424 427 ?> 425 428 <select class="custom-select app-select2-picker form-control-sm" multiple="multiple" -
support-genix-lite/tags/1.3.17/readme.txt
r3169084 r3201304 6 6 Tested up to: 6.6 7 7 Requires PHP: 7.2 8 Stable tag: 1.3.1 68 Stable tag: 1.3.17 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 177 177 178 178 == 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. 179 185 180 186 = Version: 1.3.16 - Date: 15 October, 2024 = -
support-genix-lite/tags/1.3.17/support-genix-lite.php
r3169084 r3201304 4 4 Plugin URI: http://supportgenix.com 5 5 Description: Client ticketing app for Wordpress 6 Version: 1.3.1 66 Version: 1.3.17 7 7 Author: Support Genix 8 8 Author URI: https://supportgenix.com … … 15 15 $appWpSUpportLiteFile = __FILE__; 16 16 $appWpSUpportLitePath = dirname( $appWpSUpportLiteFile ); 17 $appWpSUpportLiteVersion = '1.3.16'; 17 $appWpSUpportLiteVersion = '1.3.17'; 18 19 if (!defined('SUPPORT_GENIX_FILE_PATH')) { 20 define('SUPPORT_GENIX_FILE_PATH', $appWpSUpportLitePath); 21 } 22 23 if (!defined('SUPPORT_GENIX_LITE_VERSION')) { 24 define('SUPPORT_GENIX_LITE_VERSION', $appWpSUpportLiteVersion); 25 } 18 26 19 27 include_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 21 29 include_once $appWpSUpportLitePath . '/appcore/APBDWPLoaderLite.php'; 22 30 include_once $appWpSUpportLitePath . '/appcore/APBDWPOfferLite.php'; 31 include_once $appWpSUpportLitePath . '/appcore/APBDWPHasThemesNewsAPI.php'; 23 32 24 33 $appWpSUpportLiteLoad = APBDWPLoaderLite::isReadyToLoad( $appWpSUpportLiteFile, $appWpSUpportLiteVersion ); 25 34 26 35 if ( true === $appWpSUpportLiteLoad ) { 36 include_once $appWpSUpportLitePath . '/appcore/APBDWPPromoBannerNotice.php'; 37 27 38 include_once $appWpSUpportLitePath . '/core/helper_lite.php'; 28 39 include_once $appWpSUpportLitePath . '/appcore/plugin_helper.php'; -
support-genix-lite/trunk/appcore/APBDWPOfferLite.php
r3033085 r3201304 70 70 add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] ); 71 71 add_action( 'admin_init', [ $this, 'run_offer' ], 999999 ); 72 73 $this->check_transient_deletion(); 72 74 } 73 75 … … 467 469 } 468 470 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 469 489 } 470 490 -
support-genix-lite/trunk/core/AppsBDKarnelLite.php
r3113675 r3201304 1135 1135 add_action( 'admin_notices', [ $this, "OnAdminNotices" ]); 1136 1136 $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(); 1137 1179 } 1138 1180 -
support-genix-lite/trunk/models/database/Mapbd_wps_custom_field.php
r3132437 r3201304 420 420 <div class="form-group col-sm"> 421 421 <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); 424 427 ?> 425 428 <select class="custom-select app-select2-picker form-control-sm" multiple="multiple" -
support-genix-lite/trunk/readme.txt
r3169084 r3201304 6 6 Tested up to: 6.6 7 7 Requires PHP: 7.2 8 Stable tag: 1.3.1 68 Stable tag: 1.3.17 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 177 177 178 178 == 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. 179 185 180 186 = Version: 1.3.16 - Date: 15 October, 2024 = -
support-genix-lite/trunk/support-genix-lite.php
r3169084 r3201304 4 4 Plugin URI: http://supportgenix.com 5 5 Description: Client ticketing app for Wordpress 6 Version: 1.3.1 66 Version: 1.3.17 7 7 Author: Support Genix 8 8 Author URI: https://supportgenix.com … … 15 15 $appWpSUpportLiteFile = __FILE__; 16 16 $appWpSUpportLitePath = dirname( $appWpSUpportLiteFile ); 17 $appWpSUpportLiteVersion = '1.3.16'; 17 $appWpSUpportLiteVersion = '1.3.17'; 18 19 if (!defined('SUPPORT_GENIX_FILE_PATH')) { 20 define('SUPPORT_GENIX_FILE_PATH', $appWpSUpportLitePath); 21 } 22 23 if (!defined('SUPPORT_GENIX_LITE_VERSION')) { 24 define('SUPPORT_GENIX_LITE_VERSION', $appWpSUpportLiteVersion); 25 } 18 26 19 27 include_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 21 29 include_once $appWpSUpportLitePath . '/appcore/APBDWPLoaderLite.php'; 22 30 include_once $appWpSUpportLitePath . '/appcore/APBDWPOfferLite.php'; 31 include_once $appWpSUpportLitePath . '/appcore/APBDWPHasThemesNewsAPI.php'; 23 32 24 33 $appWpSUpportLiteLoad = APBDWPLoaderLite::isReadyToLoad( $appWpSUpportLiteFile, $appWpSUpportLiteVersion ); 25 34 26 35 if ( true === $appWpSUpportLiteLoad ) { 36 include_once $appWpSUpportLitePath . '/appcore/APBDWPPromoBannerNotice.php'; 37 27 38 include_once $appWpSUpportLitePath . '/core/helper_lite.php'; 28 39 include_once $appWpSUpportLitePath . '/appcore/plugin_helper.php';
Note: See TracChangeset
for help on using the changeset viewer.