Plugin Directory

Changeset 1637969


Ignore:
Timestamp:
04/15/2017 04:29:13 AM (9 years ago)
Author:
simasta
Message:

Version 1.0.6.2

Location:
wpsid-shortcode/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • wpsid-shortcode/trunk/classes/class-opensid.php

    r1637954 r1637969  
    22defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
    33abstract class OpenSID {
    4     const version = '1.0';
     4    const version = '1.0.6.2';
    55    public static $model_opensid;
    66    public static $controller;
     
    1111           
    1212            do_action( 'opensid_run' );
     13           
     14            add_filter('widget_text', 'do_shortcode');
    1315           
    1416            self::$model_opensid = self::load_model( 'opensid' );
  • wpsid-shortcode/trunk/controllers/controller-frontend.php

    r1633985 r1637969  
    1111   
    1212    public function init_shortcodes() {
     13       
     14        self::opensid_shortcode($this, 'version');
     15       
    1316        self::opensid_shortcode($this, 'data_wilayah');
    1417       
     
    8386        self::opensid_shortcode($this, 'data_akta_kelahiran_pie');
    8487       
     88    }
     89   
     90    public function version( $atts, $content = null ) {
     91         $shortcode_atts = shortcode_atts( array(
     92              'type' => 'plain', //default: plain
     93         ), $atts );
     94         
     95        return OpenSID::load_shortcode( 'version', $shortcode_atts);
    8596    }
    8697   
  • wpsid-shortcode/trunk/init.php

    r1637822 r1637969  
    11<?php
    22defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
    3 load_plugin_textdomain( 'wpsid-shortcode', false, basename( dirname( __FILE__ ) ) . '/locale' );
     3define( 'OPENSID_OPTION_KEY', 'wpsid_config' );
     4define( 'OPENSID_ABSPATH', plugin_dir_path( OPENSID__FILE__ ) );
     5define( 'OPENSID_DIR_URL', plugin_dir_url( OPENSID__FILE__ ) );
     6define( 'OPENSID_BASENAME', plugin_basename( OPENSID__FILE__ ) );
     7load_plugin_textdomain( 'wpsid-shortcode', false, OPENSID_ABSPATH . '/locale' );
    48register_activation_hook( OPENSID__FILE__, 'opensid_init' );
    59 
     
    3337    return $options[$key];
    3438}
    35 defined('OPENSID_DB_NAME') or
    36     define( 'OPENSID_DB_NAME', opensid_get_option('db_name') );
    37    
    38 defined('OPENSID_DB_USER') or
    39     define( 'OPENSID_DB_USER', opensid_get_option('db_user') );
    40    
    41 defined('OPENSID_DB_PASS') or
    42     define( 'OPENSID_DB_PASS', opensid_get_option('db_pass') );
    43    
    44 defined('OPENSID_DB_HOST') or
    45     define( 'OPENSID_DB_HOST', opensid_get_option('db_host') );
    46 defined('OPENSID_APPPATH') or
    47     define( 'OPENSID_APPPATH', opensid_get_option('sid_path') );
    48    
    49 defined('OPENSID_HOMEURL') or
    50     define( 'OPENSID_HOMEURL', opensid_get_option('sid_home') );
     39defined('OPENSID_DB_NAME') or define( 'OPENSID_DB_NAME', opensid_get_option('db_name') );
     40defined('OPENSID_DB_USER') or define( 'OPENSID_DB_USER', opensid_get_option('db_user') );
     41defined('OPENSID_DB_PASS') or define( 'OPENSID_DB_PASS', opensid_get_option('db_pass') );
     42defined('OPENSID_DB_HOST') or define( 'OPENSID_DB_HOST', opensid_get_option('db_host') );
     43defined('OPENSID_APPPATH') or define( 'OPENSID_APPPATH', opensid_get_option('sid_path') );
     44defined('OPENSID_HOMEURL') or define( 'OPENSID_HOMEURL', opensid_get_option('sid_home') );
    5145define( 'OPENSID_CONNECT', 'mysqli://' . OPENSID_DB_USER . ':' . OPENSID_DB_PASS . '@' . OPENSID_DB_HOST . '/' . OPENSID_DB_NAME);
    5246 
  • wpsid-shortcode/trunk/opensid.php

    r1637822 r1637969  
    99 * Author: Simasta
    1010 * Author URI: http://simasta.siini.com
    11  * Version: 1.0.6
     11 * Version: 1.0.6.2
    1212 * Text Domain: wpsid-shortcode
    1313 * Domain Path: /locale/
     
    4040 
    4141// Define certain plugin variables as constants.
    42 define( 'OPENSID_ABSPATH', plugin_dir_path( __FILE__ ) );
    43 define( 'OPENSID_DIR_URL', plugin_dir_url( __FILE__ ) );
    4442define( 'OPENSID__FILE__', __FILE__ );
    45 define( 'OPENSID_BASENAME', plugin_basename( OPENSID__FILE__ ) );
    46 define( 'OPENSID_OPTION_KEY', 'wpsid_config' );
    4743
    4844require_once 'init.php';
  • wpsid-shortcode/trunk/readme.txt

    r1637822 r1637969  
    55Requires at least: 4.3
    66Tested up to: 4.7.3
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.6.2
    88License: GPLv2 or later
    99
     
    3939  './wp-content/plugins/wpsid-shortcode/*'
    40401. Activate plugin at "Plugins" administration page.
    41 1. Place shortcodes build in opensid plugin to your post, page, or widget.
     411. Place shortcodes build in opensid plugin to your post, page, or widget, or use `echo do_shortcode("[name_shortcode]")` code.
    4242
    4343= The Shortcodes =
    4444
     45* [opensid_version[ type="plain|html"]]
    4546* [opensid_data_wilayah]
    4647* [opensid_data_pendidikan]
     
    118119== Changelog ==
    119120
     121= 1.0.6.2 =
     122*Release Date - 2017/04/15*
     123* Fixed shortcode [opensid_version]
     124
     125= 1.0.6.1 =
     126*Release Date - 2017/04/15*
     127* Added **[opensid_version]** shortcode tag
     128* Fixed mirror
     129
    120130= 1.0.6 =
    121131*Release Date - 2017/04/14*
Note: See TracChangeset for help on using the changeset viewer.