Plugin Directory

Changeset 1668908


Ignore:
Timestamp:
06/01/2017 04:10:58 PM (9 years ago)
Author:
developerdinesh1
Message:

New Version release with fixing readme.txt data

Location:
dg-accordian
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • dg-accordian/dg-accordian.php

    r1667998 r1668908  
    1010*
    1111* @link              http://dinesh-ghimire.com.np/
    12 * @since             1.0.0
     12* @since             1.0.1
    1313* @package           Dg_Accordian
    1414*
     
    6565* not affect the page life cycle.
    6666*
    67 * @since    1.0.0
     67* @since    1.0.1
    6868*/
    6969function run_dg_accordian() {
  • dg-accordian/public/class-dg-accordian-public.php

    r1667988 r1668908  
    55*
    66* @link       http://projects.dinesh-ghimire.com.np/
    7 * @since      1.0.0
     7* @since      1.0.1
    88*
    99* @package    Dg_Accordian
     
    4141private $version;
    4242
    43     /**
    44     * Initialize the class and set its properties.
    45     *
    46     * @since    1.0.0
    47     * @param      string    $plugin_name       The name of the plugin.
    48     * @param      string    $version    The version of this plugin.
    49     */
    50     public function __construct( $plugin_name, $version ) {
     43/**
     44* Initialize the class and set its properties.
     45*
     46* @since    1.0.0
     47* @param      string    $plugin_name       The name of the plugin.
     48* @param      string    $version    The version of this plugin.
     49*/
     50public function __construct( $plugin_name, $version ) {
    5151
    52     $this->plugin_name = $plugin_name;
    53     $this->version = $version;
    54     $this->shortcode();
     52$this->plugin_name = $plugin_name;
     53$this->version = $version;
     54$this->shortcode();
    5555
    56     }
     56}
    5757
    5858/**
     
    6363public function enqueue_styles() {
    6464
    65     /**
    66     * This function is provided for demonstration purposes only.
    67     *
    68     * An instance of this class should be passed to the run() function
    69     * defined in Dg_Accordian_Loader as all of the hooks are defined
    70     * in that particular class.
    71     *
    72     * The Dg_Accordian_Loader will then create the relationship
    73     * between the defined hooks and the functions defined in this
    74     * class.
    75     */
     65/**
     66* This function is provided for demonstration purposes only.
     67*
     68* An instance of this class should be passed to the run() function
     69* defined in Dg_Accordian_Loader as all of the hooks are defined
     70* in that particular class.
     71*
     72* The Dg_Accordian_Loader will then create the relationship
     73* between the defined hooks and the functions defined in this
     74* class.
     75*/
    7676
    77     wp_enqueue_style( 'jquery-ui', plugin_dir_url( __FILE__ ) . 'css/jquery-ui-1.12.1.css', array(), $this->version, 'all' );
    78     wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dg-accordian-public.css', array(), $this->version, 'all' );
     77wp_enqueue_style( 'jquery-ui', plugin_dir_url( __FILE__ ) . 'css/jquery-ui-1.12.1.css', array(), $this->version, 'all' );
     78wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dg-accordian-public.css', array(), $this->version, 'all' );
    7979
    8080}
     
    8787public function enqueue_scripts() {
    8888
    89     /**
    90     * This function is provided for demonstration purposes only.
    91     *
    92     * An instance of this class should be passed to the run() function
    93     * defined in Dg_Accordian_Loader as all of the hooks are defined
    94     * in that particular class.
    95     *
    96     * The Dg_Accordian_Loader will then create the relationship
    97     * between the defined hooks and the functions defined in this
    98     * class.
    99     */
     89/**
     90* This function is provided for demonstration purposes only.
     91*
     92* An instance of this class should be passed to the run() function
     93* defined in Dg_Accordian_Loader as all of the hooks are defined
     94* in that particular class.
     95*
     96* The Dg_Accordian_Loader will then create the relationship
     97* between the defined hooks and the functions defined in this
     98* class.
     99*/
    100100
    101     wp_enqueue_script( 'jquery', plugin_dir_url( __FILE__ ) . 'js/jquery-1.12.4.js', array( ), $this->version, false );
    102     wp_enqueue_script( 'jquery-ui', plugin_dir_url( __FILE__ ) . 'js/jquery-ui-1.12.1.js', array( 'jquery' ), $this->version, false );
    103     wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dg-accordian-public.js', array( 'jquery-ui' ), $this->version, false );
    104 
    105     }
    106    
    107     public function shortcode(){
    108         /**
    109          * The class responsible for defining Accordian Shortcode.
    110          */
    111         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-dg-accordian-shortcode.php';
    112 
    113     }
     101wp_enqueue_script( 'jquery', plugin_dir_url( __FILE__ ) . 'js/jquery-1.12.4.js', array( ), $this->version, false );
     102wp_enqueue_script( 'jquery-ui', plugin_dir_url( __FILE__ ) . 'js/jquery-ui-1.12.1.js', array( 'jquery' ), $this->version, false );
     103wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dg-accordian-public.js', array( 'jquery-ui' ), $this->version, false );
    114104
    115105}
    116106
     107public function shortcode(){
     108/**
     109* The class responsible for defining Accordian Shortcode.
     110*/
     111require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-dg-accordian-shortcode.php';
     112
     113}
     114
     115}
     116
  • dg-accordian/public/partials/dg-accordian-public-display.php

    r1667988 r1668908  
    66*
    77* @link       http://projects.dinesh-ghimire.com.np/
    8 * @since      1.0.0
     8* @since      1.0.1
    99*
    1010* @package    Dg_Accordian
     
    2121<div id="accordion">
    2222    <?php while($query->have_posts()):$query->the_post(); ?>
    23     <h3 class="post-title"><?php the_title(); ?></h3>
    24     <div class="post-excerpt post-<?php echo get_the_ID(); ?> ">
    25         <?php the_excerpt(); ?>
    26     </div>
     23        <h3 class="post-title"><?php the_title(); ?></h3>
     24        <div class="post-excerpt post-<?php echo get_the_ID(); ?> ">
     25            <?php the_excerpt(); ?>
     26        </div>
    2727    <?php endwhile; ?>
    2828</div>
Note: See TracChangeset for help on using the changeset viewer.