Changeset 1637969
- Timestamp:
- 04/15/2017 04:29:13 AM (9 years ago)
- Location:
- wpsid-shortcode/trunk
- Files:
-
- 1 added
- 5 edited
-
classes/class-opensid.php (modified) (2 diffs)
-
controllers/controller-frontend.php (modified) (2 diffs)
-
init.php (modified) (2 diffs)
-
opensid.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
shortcodes/shortcode-version.php (added)
Legend:
- Unmodified
- Added
- Removed
-
wpsid-shortcode/trunk/classes/class-opensid.php
r1637954 r1637969 2 2 defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); 3 3 abstract class OpenSID { 4 const version = '1.0 ';4 const version = '1.0.6.2'; 5 5 public static $model_opensid; 6 6 public static $controller; … … 11 11 12 12 do_action( 'opensid_run' ); 13 14 add_filter('widget_text', 'do_shortcode'); 13 15 14 16 self::$model_opensid = self::load_model( 'opensid' ); -
wpsid-shortcode/trunk/controllers/controller-frontend.php
r1633985 r1637969 11 11 12 12 public function init_shortcodes() { 13 14 self::opensid_shortcode($this, 'version'); 15 13 16 self::opensid_shortcode($this, 'data_wilayah'); 14 17 … … 83 86 self::opensid_shortcode($this, 'data_akta_kelahiran_pie'); 84 87 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); 85 96 } 86 97 -
wpsid-shortcode/trunk/init.php
r1637822 r1637969 1 1 <?php 2 2 defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); 3 load_plugin_textdomain( 'wpsid-shortcode', false, basename( dirname( __FILE__ ) ) . '/locale' ); 3 define( 'OPENSID_OPTION_KEY', 'wpsid_config' ); 4 define( 'OPENSID_ABSPATH', plugin_dir_path( OPENSID__FILE__ ) ); 5 define( 'OPENSID_DIR_URL', plugin_dir_url( OPENSID__FILE__ ) ); 6 define( 'OPENSID_BASENAME', plugin_basename( OPENSID__FILE__ ) ); 7 load_plugin_textdomain( 'wpsid-shortcode', false, OPENSID_ABSPATH . '/locale' ); 4 8 register_activation_hook( OPENSID__FILE__, 'opensid_init' ); 5 9 … … 33 37 return $options[$key]; 34 38 } 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') ); 39 defined('OPENSID_DB_NAME') or define( 'OPENSID_DB_NAME', opensid_get_option('db_name') ); 40 defined('OPENSID_DB_USER') or define( 'OPENSID_DB_USER', opensid_get_option('db_user') ); 41 defined('OPENSID_DB_PASS') or define( 'OPENSID_DB_PASS', opensid_get_option('db_pass') ); 42 defined('OPENSID_DB_HOST') or define( 'OPENSID_DB_HOST', opensid_get_option('db_host') ); 43 defined('OPENSID_APPPATH') or define( 'OPENSID_APPPATH', opensid_get_option('sid_path') ); 44 defined('OPENSID_HOMEURL') or define( 'OPENSID_HOMEURL', opensid_get_option('sid_home') ); 51 45 define( 'OPENSID_CONNECT', 'mysqli://' . OPENSID_DB_USER . ':' . OPENSID_DB_PASS . '@' . OPENSID_DB_HOST . '/' . OPENSID_DB_NAME); 52 46 -
wpsid-shortcode/trunk/opensid.php
r1637822 r1637969 9 9 * Author: Simasta 10 10 * Author URI: http://simasta.siini.com 11 * Version: 1.0.6 11 * Version: 1.0.6.2 12 12 * Text Domain: wpsid-shortcode 13 13 * Domain Path: /locale/ … … 40 40 41 41 // Define certain plugin variables as constants. 42 define( 'OPENSID_ABSPATH', plugin_dir_path( __FILE__ ) );43 define( 'OPENSID_DIR_URL', plugin_dir_url( __FILE__ ) );44 42 define( 'OPENSID__FILE__', __FILE__ ); 45 define( 'OPENSID_BASENAME', plugin_basename( OPENSID__FILE__ ) );46 define( 'OPENSID_OPTION_KEY', 'wpsid_config' );47 43 48 44 require_once 'init.php'; -
wpsid-shortcode/trunk/readme.txt
r1637822 r1637969 5 5 Requires at least: 4.3 6 6 Tested up to: 4.7.3 7 Stable tag: 1.0.6 7 Stable tag: 1.0.6.2 8 8 License: GPLv2 or later 9 9 … … 39 39 './wp-content/plugins/wpsid-shortcode/*' 40 40 1. Activate plugin at "Plugins" administration page. 41 1. Place shortcodes build in opensid plugin to your post, page, or widget .41 1. Place shortcodes build in opensid plugin to your post, page, or widget, or use `echo do_shortcode("[name_shortcode]")` code. 42 42 43 43 = The Shortcodes = 44 44 45 * [opensid_version[ type="plain|html"]] 45 46 * [opensid_data_wilayah] 46 47 * [opensid_data_pendidikan] … … 118 119 == Changelog == 119 120 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 120 130 = 1.0.6 = 121 131 *Release Date - 2017/04/14*
Note: See TracChangeset
for help on using the changeset viewer.