Changeset 1436162
- Timestamp:
- 06/14/2016 02:03:33 AM (10 years ago)
- Location:
- woocommerce-alter-inventory/trunk
- Files:
-
- 4 edited
-
admin/class-woocommerce-alter-inventory-admin.php (modified) (1 diff)
-
public/class-woocommerce-alter-inventory-public.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
woocommerce-alter-inventory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-alter-inventory/trunk/admin/class-woocommerce-alter-inventory-admin.php
r1436146 r1436162 250 250 * @return Pages with inventory and reports. 251 251 */ 252 public function get_alter_inventory_front() {252 public static function get_alter_inventory_front() { 253 253 $out = '<div class="at_disllowed"><h1 style="color:#F00">'. __('This section is not allowed to users. Please contact the administrator to request the access!', 'woocommerce-alter-inventory' ).'</h1>'; 254 254 $user = wp_get_current_user(); -
woocommerce-alter-inventory/trunk/public/class-woocommerce-alter-inventory-public.php
r1436161 r1436162 75 75 public function __construct() { 76 76 77 //$this->plugin_name = $plugin_name;78 //$this->version = $version;79 77 } 80 78 … … 102 100 if (current_user_can('manage_options')) { 103 101 if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'alter-inventory')) { 104 wp_enqueue_style( $this->plugin_name . '_remove_fields', plugin_dir_url(__FILE__) . 'css/woocommerce-alter-inventory-public_remove_fields.css', array(), $this->version, 'all');102 wp_enqueue_style('Woocommerce_Alter_Inventory_remove_fields', plugin_dir_url(__FILE__) . 'css/woocommerce-alter-inventory-public_remove_fields.css', array(), '1.2.7', 'all'); 105 103 } 106 104 } … … 110 108 global $post; 111 109 if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'alter-inventory')) { 112 wp_enqueue_style( $this->plugin_name . '_public', plugin_dir_url(__FILE__) . 'css/woocommerce-alter-inventory-public.css', array(), $this->version, 'all');110 wp_enqueue_style('Woocommerce_Alter_Inventory_public', plugin_dir_url(__FILE__) . 'css/woocommerce-alter-inventory-public.css', array(), '1.2.7', 'all'); 113 111 } 114 112 } … … 138 136 global $post; 139 137 if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'alter-inventory')) { 140 wp_enqueue_script( $this->plugin_name . '_jquery_table', 'https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js', array('jquery'), $this->version, true);141 wp_enqueue_script( $this->plugin_name . '_bootstap_table', 'https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js', array('jquery'), $this->version, true);142 wp_enqueue_script( $this->plugin_name . '_bootstap_number', plugin_dir_url(__FILE__) . 'js/bootstrap-number-input.js', array('jquery'), $this->version, true);143 wp_enqueue_script( $this->plugin_name . '_at_shortcode_js', plugin_dir_url(__FILE__) . 'js/woocommerce-alter-inventory-shortcode.js', array('jquery'), $this->version, true);138 wp_enqueue_script('Woocommerce_Alter_Inventory_jquery_table', 'https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js', array('jquery'), '1.2.7', true); 139 wp_enqueue_script('Woocommerce_Alter_Inventory_bootstap_table', 'https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js', array('jquery'), '1.2.7', true); 140 wp_enqueue_script('Woocommerce_Alter_Inventory_bootstap_number', plugin_dir_url(__FILE__) . 'js/bootstrap-number-input.js', array('jquery'), '1.2.7', true); 141 wp_enqueue_script('Woocommerce_Alter_Inventory_at_shortcode_js', plugin_dir_url(__FILE__) . 'js/woocommerce-alter-inventory-shortcode.js', array('jquery'), '1.2.7', true); 144 142 } 145 143 } -
woocommerce-alter-inventory/trunk/readme.txt
r1436155 r1436162 5 5 Requires at least: 3.6.1 6 6 Tested up to: 4.5 7 Stable tag: 1.2. 77 Stable tag: 1.2.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woocommerce-alter-inventory/trunk/woocommerce-alter-inventory.php
r1436155 r1436162 10 10 * 11 11 * @link http://www.altertech.it/ 12 * Version: 1.2. 712 * Version: 1.2.8 13 13 * @package Woocommerce_Alter_Inventory 14 14 *
Note: See TracChangeset
for help on using the changeset viewer.