Plugin Directory

Changeset 1436162


Ignore:
Timestamp:
06/14/2016 02:03:33 AM (10 years ago)
Author:
Bigbabert
Message:

fixed all warning

Location:
woocommerce-alter-inventory/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-alter-inventory/trunk/admin/class-woocommerce-alter-inventory-admin.php

    r1436146 r1436162  
    250250     * @return Pages with inventory and reports.
    251251     */       
    252     public function get_alter_inventory_front() {
     252   public static function get_alter_inventory_front() {
    253253            $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>';
    254254            $user = wp_get_current_user();
  • woocommerce-alter-inventory/trunk/public/class-woocommerce-alter-inventory-public.php

    r1436161 r1436162  
    7575    public function __construct() {
    7676
    77         //$this->plugin_name = $plugin_name;
    78         //$this->version = $version;
    7977    }
    8078
     
    102100            if (current_user_can('manage_options')) {
    103101                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');
    105103                }
    106104            }
     
    110108                global $post;
    111109                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');
    113111                }
    114112            }
     
    138136                global $post;
    139137                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);
    144142                }
    145143            }
  • woocommerce-alter-inventory/trunk/readme.txt

    r1436155 r1436162  
    55Requires at least: 3.6.1
    66Tested up to: 4.5
    7 Stable tag: 1.2.7
     7Stable tag: 1.2.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • woocommerce-alter-inventory/trunk/woocommerce-alter-inventory.php

    r1436155 r1436162  
    1010 *
    1111 * @link              http://www.altertech.it/
    12  *  Version: 1.2.7
     12 *  Version: 1.2.8
    1313 * @package           Woocommerce_Alter_Inventory
    1414 *
Note: See TracChangeset for help on using the changeset viewer.