Plugin Directory

Changeset 170902


Ignore:
Timestamp:
11/06/2009 11:01:17 AM (16 years ago)
Author:
Fredpointzero
Message:

Path of included file are independant from the path of the directory where the plugin is

Location:
article-accordion/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • article-accordion/trunk/articleAccordion.php

    r149994 r170902  
    44Plugin URI: http://fredpointzero.com/2009/08/plugin-wordpress-article-accordion/
    55Description: Display categorie articles in an accordion sidebar widget
    6 Version: 0.1.1
     6Version: 0.1.2
    77Author: Frederic Vauchelles, Cathy Vauchelles
    88Author URI: http://fredpointzero.com
     
    2828    /// Constructor
    2929    private function __construct(){
     30        $this->dir = '/'.str_replace( ABSPATH, '', dirname( __FILE__ ) );
    3031        /// Widget rendering initialization
    31         add_action('init', array($this, 'init'));
    32         add_action("plugins_loaded", array( $this, "widget_init" ) );
     32        add_action( 'init', array( $this, 'init' ) );
     33        add_action( "plugins_loaded", array( $this, "widget_init" ) );
    3334        /// Admin initilization
    3435        if ( is_admin() ){
     
    4748        wp_enqueue_script(
    4849            'jqueryui',
    49             '/wp-content/plugins/articleAccordion/js/jquery-ui.js',
     50            $this->dir.'/js/jquery-ui.js',
    5051            array('jquery')
    5152        );
    5253        wp_enqueue_script(
    5354            'articleAccordion.ready',
    54             '/wp-content/plugins/articleAccordion/js/ready.js',
     55            $this->dir.'/js/ready.js',
    5556            array('jqueryui')
    5657        );
    5758        wp_enqueue_style(
    5859            'jqueryui',
    59             '/wp-content/plugins/articleAccordion/css/ui-theme/ui.all.css'
     60            $this->dir.'/css/ui-theme/ui.all.css'
    6061        );
    6162        wp_enqueue_style(
    6263            'articleAccordion.style',
    63             '/wp-content/plugins/articleAccordion/css/style.css'
     64            $this->dir.'/css/style.css'
    6465        );
    6566        load_plugin_textdomain( 'articleaccordion', null, 'articleAccordion/lang');
  • article-accordion/trunk/readme.txt

    r149994 r170902  
    44Tags: article, accordion, categorie, widget
    55Requires at least: 2.8.3
    6 Tested up to: 2.8.3
    7 Stable tag: 0.1.1
     6Tested up to: 2.8.4
     7Stable tag: 0.1.2
    88
    99Article Accordion display articles of seletected categories in an accordion.
     
    4747== Changelog ==
    4848
     49= 0.1.2 =
     50* Included file path are independant from the path of the directory where the plugin is.
     51
    4952= 0.1.1 =
    5053* Object oriented code
Note: See TracChangeset for help on using the changeset viewer.