Plugin Directory

Changeset 1208920


Ignore:
Timestamp:
07/29/2015 11:06:33 AM (10 years ago)
Author:
maor
Message:

Committing 1.0.4 to trunk

Location:
spotim-comments/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • spotim-comments/trunk/inc/class-spotim-admin.php

    r1204036 r1208920  
    6767                'id'      => 'spot_id',
    6868                '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!'
    7070            )
    7171        );
  • spotim-comments/trunk/language/wp-spotim.pot

    r1204128 r1208920  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: wp-spotim 1.0.3\n"
     9"Project-Id-Version: wp-spotim 1.0.4\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2015-07-22 17:02+0000\n"
     11"POT-Creation-Date: 2015-07-29 11:04+0000\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • spotim-comments/trunk/readme.txt

    r1204128 r1208920  
    44Requires at least: 3.8
    55Tested up to: 4.2
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    176176== Changelog ==
    177177
     178= 1.0.3 =
     179* Added padding to comment box, frontend
     180* Updated action links in settings page
     181* Various bug fixes
     182
    178183= 1.0.2 =
    179184* Launch
  • spotim-comments/trunk/spotim-comments.php

    r1204128 r1208920  
    99Description: Description for wp-spotim should be here
    1010Author: Maor Chasen
    11 Version: 1.0.3
     11Version: 1.0.4
    1212Author URI: http://maorchasen.com/
    1313*/
     
    1818require_once 'inc/class-spotim-util.php';
    1919require_once 'inc/class-spotim-frontend.php';
     20require_once 'inc/abstract-class-spotim-api-base.php';
     21require_once 'inc/class-spotim-api-dispatcher.php';
    2022
    2123class WP_SpotIM {
    22     private static $_instance = null;
     24    private static $_instance;
     25
     26    const AUTH_OPTION = 'spotim_auth';
    2327
    2428    protected function __construct() {
    2529        $this->admin = new SpotIM_Admin;
     30        $this->api = new SpotIM_API_Dispatcher;
    2631
    2732        // setup AJAX
     
    3843     */
    3944    public static function instance() {
    40         $class = __CLASS__;
    41 
    4245        if ( is_null( self::$_instance ) )
    43             self::$_instance = new $class;
     46            self::$_instance = new self;
    4447
    4548        return self::$_instance;
     
    4952        add_action( 'wp_ajax_spot-generate-json', array( 'SpotIM_Export', 'generate_json' ) );
    5053    }
     54
     55    public static function activation_hook() {
     56        // create a spot via API
     57        self::instance()->api->initiate_setup();
     58    }
    5159}
    5260
    53 add_action( 'plugins_loaded', array( 'WP_SpotIM', 'instance' ) );
     61function spotim_instance() {
     62    return WP_SpotIM::instance();
     63}
     64add_action( 'plugins_loaded', 'spotim_instance' );
     65
     66register_activation_hook( __FILE__, array( 'WP_SpotIM', 'activation_hook' ) );
  • spotim-comments/trunk/templates/comments-template.php

    r1204036 r1208920  
    11<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>
    33</div>
Note: See TracChangeset for help on using the changeset viewer.