Plugin Directory

Changeset 1021995


Ignore:
Timestamp:
11/08/2014 11:36:01 AM (11 years ago)
Author:
dipendrapancholi
Message:

Update new version 1.0.1

Location:
plugin-sample-shortcode/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • plugin-sample-shortcode/trunk/index.php

    r1021075 r1021995  
    11<?php
    22//Silence is golden
     3?>
  • plugin-sample-shortcode/trunk/readme.txt

    r1021075 r1021995  
    11=== Plugin Sample Shortcode ===
    22Contributors: dipendrapancholi
    3 Tags: Plugin, shortcode, Sample shortcode, sample plugin shortcode, sample plugin
     3Tags: Plugin, shortcode, Sample shortcode, sample plugin shortcode, sample plugin, shortcode plugin
    44Donate link:
    5 Requires at least: 3.8
     5Requires at least: 3.5
    66Tested up to: 4.0
    77Stable tag: 2.2.4
     
    1313== Description ==
    1414
    15 In this plugin we have create a shoortcode only for sample.
     15The Plugin Sample Shortcode is a simple plugin for shortcode tutorial. How to use shortcode.
     16
     17**Features of this plugin include:**
     18* Process Shortcode
     19
     20== Screenshots ==
     21
     22== Installation ==
     23
     24= Minimum Requirements =
     25- WordPress 3.5 or greater
     26- PHP version 5.2.4 or greater
     27- MySQL version 5.0 or greater
     28
     29
     30= Manual Installation =
     31The manual installation requires you to download the plugin from WordPress.org and uploading it to your webserver using your favorite FTP application.
     32
     331. Download the Plugin Sample Shortcode
     342. Unzip the file and upload the plugin-sample-shortcode folder to the /wp-content/plugins/ directory using your FTP application
     353. Activate the Plugin Sample Shortcode plugin through the 'Plugins' menu in WordPress
     36
     37
     38= Version 1.0.1 (2014-11-08) =
     39* Update coding standared
     40* change shortcode from "wp_pss" to "wp_pss_sample"
     41* Add parameter to shortcode
     42= Version 1.0.0 (2014-11-06) =
     43* Initial Release
  • plugin-sample-shortcode/trunk/wp-sample-shortcode.php

    r1021075 r1021995  
    44 * Plugin URI: http://www.wordpress.org/
    55 * Description: In this plugin we have create a shoortcode only for sample.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Dipendra Pancholi
    88 * Author URI: http://wordpress.org
     
    9494    }
    9595   
    96     /**
    97      * shortcode simple tutorial
    98      *
    99      * @package Plugin Sample Shortcode
    100      * @since 1.0.0
    101      */
    102     function wp_pss_shortcode( $atts ) {
    103        
    104         $atts   = shortcode_atts( array(
    105                                     'param1'    => 'parameter 1',
    106                                     'param2'    => 'parameter 2'
    107                                 ), $atts );
     96    //Global variables
     97    global $wp_pss_shortcode;
    10898   
    109         return "param1 = {$atts['param1']}";
    110     }
     99    //Shortcode related functionality
     100    require_once( WP_PSS_DIR . '/includes/class-wp-pss-shortcode.php' );
     101    $wp_pss_shortcode   = new Wp_Pss_Shortcodes();
     102    $wp_pss_shortcode->add_hooks();
    111103   
    112     add_shortcode( 'wp_pss', 'wp_pss_shortcode' );
    113104}
Note: See TracChangeset for help on using the changeset viewer.