PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.49.3
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.49.3
3.0.63 3.0.62 3.0.61 3.0.60 3.0.49.49 3.0.49.6 3.0.49.60 3.0.49.61 3.0.49.62 3.0.49.63 3.0.49.64 3.0.49.66 3.0.49.67 3.0.49.69 3.0.49.7 3.0.49.70 3.0.49.72 3.0.49.73 3.0.49.74 3.0.49.76 3.0.49.77 3.0.49.79 3.0.49.9 3.0.49.90 3.0.49.91 3.0.49.92 3.0.49.93 3.0.49.94 3.0.49.96 3.0.49.97 3.0.49.99 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 2.9.17 3.0.47 3.0.49 3.0.49.1 3.0.49.10 3.0.49.11 3.0.49.12 3.0.49.13 3.0.49.16 3.0.49.17 3.0.49.19 3.0.49.2 3.0.49.20 3.0.49.21 3.0.49.22 3.0.49.23 3.0.49.24 3.0.49.26 3.0.49.27 3.0.49.29 3.0.49.3 3.0.49.30 3.0.49.31 3.0.49.32 3.0.49.33 3.0.49.34 3.0.49.36 3.0.49.37 3.0.49.39 3.0.49.4 3.0.49.40 3.0.49.41 3.0.49.42 3.0.49.43 3.0.49.44 3.0.49.46 3.0.49.47
pi-woocommerce-order-date-time-and-type / admin / options-limit.php
pi-woocommerce-order-date-time-and-type / admin Last commit date
css 2 years ago img 2 years ago js 2 years ago class-adv-order-filter.php 2 years ago class-pi-dtt-labels.php 2 years ago class-pi-dtt-order-table.php 2 years ago conflict-fixer.php 2 years ago menu.php 2 years ago options-addons.php 2 years ago options-date.php 2 years ago options-limit.php 2 years ago options-pickup.php 2 years ago options-time-slot.php 2 years ago options-time.php 2 years ago options.php 2 years ago
options-limit.php
76 lines
1 <?php
2
3 class pisol_dtt_option_order_limit{
4
5 private $settings = array();
6
7 private $active_tab;
8
9 private $this_tab = 'pi_time_limit';
10
11 private $tab_name = "Order limit (pro)";
12
13 private $setting_key = 'pisol_time_limit';
14
15 private $pro_version = false;
16
17 public $tab;
18
19 function __construct(){
20
21 $this->pro_version = pi_dtt_pro_check();
22
23 $this->tab = sanitize_text_field(filter_input( INPUT_GET, 'tab'));
24 $this->active_tab = $this->tab != "" ? $this->tab : 'default';
25
26 $this->settings = array(
27 array('field'=>'pi_time_slot')
28
29 );
30
31
32 if($this->this_tab == $this->active_tab){
33 add_action('pisol_dtt_tab_content', array($this,'tab_content'));
34 }
35
36 add_action('pisol_dtt_tab', array($this,'tab'),6);
37
38 $this->register_settings();
39
40
41 }
42
43 function register_settings(){
44
45 foreach($this->settings as $setting){
46 register_setting( $this->setting_key, $setting['field']);
47 }
48
49 }
50
51 function tab(){
52 $page = sanitize_text_field(filter_input( INPUT_GET, 'page'));
53 ?>
54 <a class=" pi-side-menu <?php echo ($this->active_tab == $this->this_tab ? 'bg-primary' : 'bg-secondary'); ?> hide-pro" href="<?php echo admin_url( 'admin.php?page='.$page.'&tab='.$this->this_tab ); ?>">
55 <span class="dashicons dashicons-editor-contract"></span> <?php _e( $this->tab_name, 'pisol-dtt' ); ?>
56 </a>
57 <?php
58 }
59
60 function tab_content(){
61 ?>
62 <div class="alert bg-primary text-light">
63 <strong>Available in PRO</strong>
64 Using this you can set day or date specific order limit
65 </div>
66 <h1>Setting Day specific order limit</h1>
67 <img src="<?php echo PISOL_DTT_URL; ?>admin/img/day-limit.png" class="img-fluid">
68 <h1>Setting Date specific order limit</h1>
69 <img src="<?php echo PISOL_DTT_URL; ?>admin/img/date-limit.png" class="img-fluid">
70 <?php
71 }
72
73 }
74
75 new pisol_dtt_option_order_limit();
76