Changeset 3418382
- Timestamp:
- 12/12/2025 03:16:24 PM (4 weeks ago)
- Location:
- raffle-play-woo/trunk
- Files:
-
- 2 added
- 5 edited
-
includes/RafflePlayWoo_LifeCycle.php (modified) (8 diffs)
-
includes/RafflePlayWoo_Plugin.php (modified) (4 diffs)
-
includes/releases/RafflePlayWoo_Release_251.php (added)
-
includes/w/W_RafflePlayWoo_QrCode.php (added)
-
includes/w/W_RafflePlayWoo_Releases.php (modified) (1 diff)
-
raffle-play-woo.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
raffle-play-woo/trunk/includes/RafflePlayWoo_LifeCycle.php
r3391281 r3418382 22 22 include_once('w/W_RafflePlayWoo_Lucky.php'); 23 23 include_once('w/W_RafflePlayWoo_Logs.php'); 24 include_once('w/W_RafflePlayWoo_QrCode.php'); 24 25 25 26 use RafflePlayWoo_InstallIndicator\RafflePlayWoo_InstallIndicator as RafflePlayWoo_InstallIndicator; … … 39 40 use W_RafflePlayWoo_Lucky\W_RafflePlayWoo_Lucky as Lucky; 40 41 use W_RafflePlayWoo_Logs\W_RafflePlayWoo_Logs as Logs; 42 use W_RafflePlayWoo_QrCode\W_RafflePlayWoo_QrCode as QrCode; 41 43 42 44 … … 187 189 $this->addRafflePromotionPage(); 188 190 $this->addRaffleLuckyPage(); 189 $this->addRaffleReportsPage(); 191 $this->addRaffleQrCode(); 192 $this->addRaffleReportsPage(); 190 193 $this->addRaffleInstructionsPage(); 191 194 $this->addRaffleReleasesPage(); … … 240 243 protected function getPluginReleasesSlug(){ 241 244 return 'Raffle_raffle_play_releases'; 245 } 246 247 protected function getPluginQrCodeSlug(){ 248 return 'raffle-play-qrcode'; 242 249 } 243 250 … … 328 335 array( &$this, 'drp_lucky_page'), 329 336 173 337 ); 338 } 339 340 protected function addRaffleQrCode(){ 341 global $rpwoo_qrcode_page; 342 $displayName = esc_html__('QR Code', 'raffle-play-woo' ); 343 344 $rpwoo_qrcode_page = add_submenu_page( $this->getPluginSlug(), 345 $displayName, 346 $displayName, 347 'manage_options', 348 $this->getPluginQrCodeSlug(), 349 array( &$this, 'drp_qrcode_page'), 350 176 330 351 ); 331 352 } … … 1426 1447 ) 1427 1448 ); 1449 1450 $checkbox_slider = array( 1451 'label' => esc_html__('Show Raffle Tickets Slider in the Product & Cards Shop page (***Premium FEATURE***)', 'raffle-play-woo') . '<a href="https://youtu.be/KZ_bSUylgVs" target="_blank"> Watch Setup Video </a>', // Text in Label 1452 'class' => '', 1453 'style' => '', 1454 'wrapper_class' => '', 1455 'id' => 'raffle_ckb_slider', 1456 'name' => 'raffle_ckb_slider', 1457 'desc_tip' => '', 1458 'custom_attributes' => '', 1459 'description' => esc_html__('Show raffle tickets slider in the product page', 'raffle-play-woo') 1460 ); 1428 1461 1429 1462 $raffles = $this->get_simple_raffles(); … … 1441 1474 } 1442 1475 1443 woocommerce_wp_checkbox( $checkbox_raffle ); 1444 woocommerce_wp_text_input( $no_of_tickets ); 1476 woocommerce_wp_checkbox( $checkbox_raffle ); 1477 woocommerce_wp_text_input( $no_of_tickets ); 1478 1479 if( $product_object->get_type() != 'variable'){ 1480 woocommerce_wp_checkbox( $checkbox_slider ); 1481 } 1445 1482 woocommerce_wp_select( $raffle_type ); 1446 1483 … … 2131 2168 } 2132 2169 2170 public function drp_qrcode_page(){ 2171 2172 if ( is_user_logged_in() && 2173 current_user_can( 'manage_options' ) && 2174 is_admin() ) { 2175 2176 $settings = array( 2177 ); 2178 2179 QrCode::drp_qrCodePage( $settings ); 2180 2181 } 2182 } 2183 2133 2184 } -
raffle-play-woo/trunk/includes/RafflePlayWoo_Plugin.php
r3391281 r3418382 63 63 KEY catid_two (catid_two), 64 64 KEY order_status (order_status), 65 key deleted (deleted), 65 66 KEY created_at (created_at), 66 67 KEY live_order (live_order), … … 290 291 } catch (\Throwable $th) { 291 292 RafflePlayWoo_error_log( 'Raffle Play woo - Error adding column reserved - ' . $th->getMessage() ); 293 } 294 295 //add index to deleted column 296 try { 297 $del_index_columns = $wpdb->get_results(" SHOW INDEX FROM {$table_main} WHERE key_name = 'deleted'; "); 298 if( count( $del_index_columns ) == 0) { 299 $wpdb->query("ALTER TABLE {$table_main} ADD KEY deleted (deleted)"); 300 } 301 } catch (\Throwable $th) { 302 RafflePlayWoo_error_log( 'Raffle Play woo - Error adding key to deleted - ' . $th->getMessage() ); 292 303 } 293 304 … … 528 539 global $rpwoo_lucky_page; 529 540 global $rpwoo_logs_page; 541 global $rpwoo_qrcode_page; 530 542 531 543 if( $hook === 'edit.php'){ … … 539 551 ($rpwoo_winners_page != $hook ) && ( $rpwoo_releases_page != $hook ) && 540 552 ($rpwoo_promotion_page != $hook ) && ( $rpwoo_lucky_page != $hook ) && 541 ($rpwoo_logs_page != $hook ) )553 ($rpwoo_logs_page != $hook ) && ( $rpwoo_qrcode_page != $hook ) ) 542 554 return; 543 555 -
raffle-play-woo/trunk/includes/w/W_RafflePlayWoo_Releases.php
r3352657 r3418382 35 35 <div class="tab-pane fade active show" id="v-pills-release221" role="tabpanel" 36 36 aria-labelledby="v-pills-release221-tab"> 37 38 <?php 39 include_once( RAFFLE_PLAY_WOO_DIR_PATH . '/includes/releases/RafflePlayWoo_Release_251.php'); 40 ?> 37 41 38 42 <?php -
raffle-play-woo/trunk/raffle-play-woo.php
r3391281 r3418382 4 4 * Requires Plugins: woocommerce 5 5 * Plugin URI: https://tuskcode.com 6 * Version: 2.5. 06 * Version: 2.5.1 7 7 * Author: dan009 8 8 * Author URI: https://tuskcode.com … … 18 18 die('No Access to this page'); 19 19 20 if( ! defined('RAFFLE_PLAY_WOO_VERSION')) define('RAFFLE_PLAY_WOO_VERSION', '2.5. 0');21 if( ! defined('RAFFLE_PLAY_WOO_WP_TESTED')) define('RAFFLE_PLAY_WOO_WP_TESTED', '6. 8');20 if( ! defined('RAFFLE_PLAY_WOO_VERSION')) define('RAFFLE_PLAY_WOO_VERSION', '2.5.1'); 21 if( ! defined('RAFFLE_PLAY_WOO_WP_TESTED')) define('RAFFLE_PLAY_WOO_WP_TESTED', '6.9'); 22 22 if( ! defined('RAFFLE_PLAY_WOO_URL')) define( 'RAFFLE_PLAY_WOO_URL', esc_url( plugins_url( '', __FILE__ ) ) ); 23 23 if( ! defined('RAFFLE_PLAY_WOO_DIR_PATH') ) define('RAFFLE_PLAY_WOO_DIR_PATH', plugin_dir_path( __FILE__ )); 24 24 if( ! defined('RAFFLE_PLAY_WOO_LOG_FILE')) define( 'RAFFLE_PLAY_WOO_LOG_FILE', RAFFLE_PLAY_WOO_DIR_PATH . 'logs/RafflePlayWoo_error.log' ); 25 25 26 function RafflePlayWoo_RaffleNotLicensed(){27 echo '<div class="notice notice-error is-dismissible"><strong>' .28 esc_html__( 'Raffle Play Woo', 'raffle-play-woo' ). '<br/>' .29 esc_html__( 'The plugin is not licensed', 'raffle-play-woo' ) .' </strong></div>';30 }31 26 32 27 function RafflePlayWoo_NoticeWoocommerceNotInstalled(){ … … 34 29 esc_html__( 'Raffle Play Woo', 'raffle-play-woo' ). '<br/>' . 35 30 esc_html__( ' WooCommerce is not installed/active', 'raffle-play-woo' ) .' </strong></div>'; 36 }37 38 function RafflePlayWoo_InvalidLicense(){39 echo '<div class="notice notice-warning is-dismissible"><p><strong>' .40 esc_html__( 'Raffle Play Woo', 'raffle-play-woo' ). ' - ' .41 esc_html__( 'Your license is not valid', 'raffle-play-woo' ) .' </strong></p></div>';42 31 } 43 32 -
raffle-play-woo/trunk/readme.txt
r3391281 r3418382 4 4 Tags: raffle, lottery, contest, giveaway, raffle tickets, raffle generator, woocommerce raffle 5 5 Requires at least: 5.0.1 6 Tested up to: 6. 87 Stable tag: 2.5. 06 Tested up to: 6.9 7 Stable tag: 2.5.1 8 8 Requires PHP: 5.2 9 9 License: GPLv2 or later … … 37 37 38 38 == Changelog == 39 40 = 2025-12-12 41 * Tested with Wordpress 6.9 42 * Added index to column 'deleted' in main table 43 * Added QR code tab for premium display 44 * Added slider option checkbox in the product page - premium display 39 45 40 46 = 2025-11-06
Note: See TracChangeset
for help on using the changeset viewer.