• jade.stewart

    (@jadestewartgmailcom)


    Hi I’m trying to create a plugin using http://www.speakingofcode.com/index.php/developer/9-interactive-jquery-price-slider-calculator i don’t have much knowledge of jQuery

    this is the code that ive done so far

    <?php/*
    Plugin Name: price slider
    Plugin URI: http://www.rgbdesignuk.com/plugins //using jquery taken
    //from http://www.speakingofcode.com/index.php/developer/9-interactive-jquery-price-slider-calculator
    Description: Implementation of jQuery price slider orignaly  designed by Sean Brennan // PLugin Description
    Version: 1.0 //Version of your plugin
    Author: Jade Stewart //Name of the author
    Author URI: http://www.rgbdesignuk.com/ //Url of your site
    License: Creative Commons Attribution-ShareAlike //Licence
    
    //Other terms and conditions
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    */
    
    //Add the stylesheet into the header
    wp_enqueue_style("priceslider",WP_PLUGIN_URL."css/global.css",false,"1.3.1");
    wp_enqueue_style("priceslider",WP_PLUGIN_URL."css/jquery-ui.css",false,"1.3.1");
    
    //Add the scripts in the footer
    wp_enqueue_script("jquery");
    wp_enqueue_script("jquery.", WP_PLUGIN_URL."js/jquery-1.6.2.min.js", array("jquery"));
    wp_enqueue_script("jquery.myscript", WP_PLUGIN_URL."js/myscript.js", array("jquery"));
    wp_enqueue_script("jquery.jquery-ui", WP_PLUGIN_URL."js/jquery-ui.js", array("jquery"));
    ?>

    but I’m getting a error when ever i try to activate the plugin

    Parse error: syntax error, unexpected ‘wp_enqueue_style’ (T_STRING) in /Volumes/Work/jadesites/wordpress/wp-content/plugins/priceslider/init.php on line 20

  • The topic ‘creating a plugin using a jquery plugin’ is closed to new replies.