Changeset 1208920
- Timestamp:
- 07/29/2015 11:06:33 AM (10 years ago)
- Location:
- spotim-comments/trunk
- Files:
-
- 2 added
- 5 edited
-
inc/abstract-class-spotim-api-base.php (added)
-
inc/class-spotim-admin.php (modified) (1 diff)
-
inc/class-spotim-api-dispatcher.php (added)
-
language/wp-spotim.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
spotim-comments.php (modified) (4 diffs)
-
templates/comments-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
spotim-comments/trunk/inc/class-spotim-admin.php
r1204036 r1208920 67 67 'id' => 'spot_id', 68 68 'page' => $this->slug, 69 'desc' => 'Find your Spot\'s ID at the <a href="https://www.spot.im/ spots" target="_blank">Spot management dashboard</a>.<br> Don\'t have an account? <a href="http://www.spot.im/spots" target="_blank">Create one</a> for free!'69 'desc' => 'Find your Spot\'s ID at the <a href="https://www.spot.im/login" target="_blank">Spot management dashboard</a>.<br> Don\'t have an account? <a href="http://www.spot.im/" target="_blank">Create one</a> for free!' 70 70 ) 71 71 ); -
spotim-comments/trunk/language/wp-spotim.pot
r1204128 r1208920 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: wp-spotim 1.0. 3\n"9 "Project-Id-Version: wp-spotim 1.0.4\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2015-07-2 2 17:02+0000\n"11 "POT-Creation-Date: 2015-07-29 11:04+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
spotim-comments/trunk/readme.txt
r1204128 r1208920 4 4 Requires at least: 3.8 5 5 Tested up to: 4.2 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 176 176 == Changelog == 177 177 178 = 1.0.3 = 179 * Added padding to comment box, frontend 180 * Updated action links in settings page 181 * Various bug fixes 182 178 183 = 1.0.2 = 179 184 * Launch -
spotim-comments/trunk/spotim-comments.php
r1204128 r1208920 9 9 Description: Description for wp-spotim should be here 10 10 Author: Maor Chasen 11 Version: 1.0. 311 Version: 1.0.4 12 12 Author URI: http://maorchasen.com/ 13 13 */ … … 18 18 require_once 'inc/class-spotim-util.php'; 19 19 require_once 'inc/class-spotim-frontend.php'; 20 require_once 'inc/abstract-class-spotim-api-base.php'; 21 require_once 'inc/class-spotim-api-dispatcher.php'; 20 22 21 23 class WP_SpotIM { 22 private static $_instance = null; 24 private static $_instance; 25 26 const AUTH_OPTION = 'spotim_auth'; 23 27 24 28 protected function __construct() { 25 29 $this->admin = new SpotIM_Admin; 30 $this->api = new SpotIM_API_Dispatcher; 26 31 27 32 // setup AJAX … … 38 43 */ 39 44 public static function instance() { 40 $class = __CLASS__;41 42 45 if ( is_null( self::$_instance ) ) 43 self::$_instance = new $class;46 self::$_instance = new self; 44 47 45 48 return self::$_instance; … … 49 52 add_action( 'wp_ajax_spot-generate-json', array( 'SpotIM_Export', 'generate_json' ) ); 50 53 } 54 55 public static function activation_hook() { 56 // create a spot via API 57 self::instance()->api->initiate_setup(); 58 } 51 59 } 52 60 53 add_action( 'plugins_loaded', array( 'WP_SpotIM', 'instance' ) ); 61 function spotim_instance() { 62 return WP_SpotIM::instance(); 63 } 64 add_action( 'plugins_loaded', 'spotim_instance' ); 65 66 register_activation_hook( __FILE__, array( 'WP_SpotIM', 'activation_hook' ) ); -
spotim-comments/trunk/templates/comments-template.php
r1204036 r1208920 1 1 <div class="spot-im-comments comments-area"> 2 <div id="spot-im-frame-inpage" data-post-id="<?php the_ID(); ?>" ></div>2 <div id="spot-im-frame-inpage" data-post-id="<?php the_ID(); ?>" style="padding: 0 10px;"></div> 3 3 </div>
Note: See TracChangeset
for help on using the changeset viewer.