Plugin Directory

Changeset 1948787


Ignore:
Timestamp:
09/28/2018 07:04:39 PM (7 years ago)
Author:
klushep
Message:

Style & scripts enqueues correction

Location:
elemental-calculator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • elemental-calculator/trunk/elemental_calculator_plugin.php

    r1948745 r1948787  
    44Plugin URI:   http://www.amauryrambaud.fr/elemental-calculator-plugin/
    55Description:  Simple calculator widget and shortcode
    6 Version:      1.0
     6Version:      1.1
    77Author:       Amaury Rambaud
    88Author URI:   http://www.amauryrambaud.fr/
     
    2727
    2828if(!is_admin()){
    29     add_action('wp_enqueue_scripts', 'elemental_calculator_css',15);
    30     add_action('wp_enqueue_scripts', 'elemental_calculator_js',15);
     29    add_action('wp_enqueue_scripts', 'elemental_calculator_scripts');
    3130}
    3231
    33 function elemental_calculator_css(){
    34     wp_enqueue_style('elemental_calculator_plugin', plugins_url('elemental_calculator_plugin/elemental_calculator.css'));
    35 }
    36 function elemental_calculator_js(){
    37     wp_enqueue_script('elemental_calculator_plugin', plugins_url('elemental_calculator_plugin/elemental_calculator.js'));
     32function elemental_calculator_scripts(){
     33    wp_enqueue_style('elemental_calculator_style', plugins_url('/elemental_calculator.css', __FILE__));
     34    wp_enqueue_script('elemental_calculator_script', plugins_url('/elemental_calculator.js', __FILE__));
    3835}
    3936
  • elemental-calculator/trunk/readme.txt

    r1948745 r1948787  
    77Stable tag: trunk
    88Plugin URI:   http://www.amauryrambaud.fr/elemental-calculator-plugin/
    9 Version:      1.0
     9Version:      1.1
    1010Author:       Amaury Rambaud
    1111Author URI:   http://www.amauryrambaud.fr/
Note: See TracChangeset for help on using the changeset viewer.