Plugin Directory

Changeset 1257506


Ignore:
Timestamp:
10/01/2015 03:11:21 PM (11 years ago)
Author:
toddnestor
Message:

1.0.7 added, bug fixed, copy buttons added

Location:
sb-connector
Files:
24 added
3 edited

Legend:

Unmodified
Added
Removed
  • sb-connector/trunk/class/class-sb-helper.php

    r1256747 r1257506  
    156156        $post_fields[ 'post_thumbnail' ] = array();
    157157        $thumbnail_id                    = get_post_thumbnail_id( $post[ 'ID' ] );
     158
    158159        if( $thumbnail_id )
    159160        {
     
    216217        $_media_item = array(
    217218            'attachment_id' => strval( $media_item->ID ),
    218             'date_created_gmt' => $this->_convert_date_gmt( $media_item->post_date_gmt, $media_item->post_date ),
     219            'date_created_gmt' => $media_item->post_date_gmt,
    219220            'parent' => $media_item->post_parent,
    220221            'link' => wp_get_attachment_url( $media_item->ID ),
  • sb-connector/trunk/readme.txt

    r1256747 r1257506  
    44Requires at least: 3.6
    55Tested up to: 4.3.1
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPL v2
    88
  • sb-connector/trunk/sb-connector.php

    r1256774 r1257506  
    44 * Description: SpeedBlogging Connector is a plugin that connects your blog with SpeedBlogging system and it enables
    55 * you to publish your blog post fast
    6  * Version: 1.0.6
     6 * Version: 1.0.7
    77 * Author: Internet Marketing Bar
    88 * Author URI: http://internetmarketingbar.com
     
    4545    wp_enqueue_style('bootstrap-css', $plugin_url . 'css/bootstrap.css', array(), '1.0');
    4646    wp_enqueue_script('bootstrap-js', $plugin_url . 'js/bootstrap.js', array('jquery'), '1.0', false);
     47    wp_enqueue_script( 'zeroclipboard-js', $plugin_url . 'js/zeroclipboard-min.js', array( 'jquery' ), '1.0', true );
     48    wp_enqueue_script( 'speedblogging-js', $plugin_url . 'js/main.js', array( 'jquery', 'zeroclipboard-js' ), '1.0', true );
    4749}
    4850
     
    6466    ?>
    6567        <div class="wrap smart_only_area">
    66     <h1 class="page-header">SB Connector <small>version 1.0.6</small></h1>
     68    <h1 class="page-header">SB Connector <small>version 1.0.7</small></h1>
    6769   
    6870    <div class="container-fluid">
     
    7476                       <small>Please add your blog with this key in SpeedBlogging to connect this blog with SpeedBlogging system</small>
    7577                   </label>
    76                    <input type="text" class="form-control input-lg" name="sb-key" value="<?php echo $hash; ?>"/>
     78                   <div class="input-group">
     79                       <input type="text" class="form-control input-lg" name="sb-key" id="sb-key"
     80                              value="<?php echo $hash; ?>"/>
     81                        <span class="input-group-btn">
     82                            <button class="btn btn-lg btn=default zclip" data-method="direct" data-copy-type="value"
     83                                    data-target="input[name=sb-key]" type="button"
     84                                    style="background-color: #fff; border: 1px solid #ccc;">Copy
     85                            </button>
     86                        </span>
     87                   </div>
    7788               </div>
    7889                <div class="form-group">
     
    8192                        <small>This is the API endpoint you will need to add your blog with</small>
    8293                    </label>
    83                     <input type="text" class="form-control input-lg" name="connector_url" value="<?php echo $api_url; ?>"/>
    84                    
     94                    <div class="input-group">
     95                        <input type="text" class="form-control input-lg" name="connector_url" id="connector_url"
     96                               value="<?php echo $api_url; ?>"/>
     97                        <span class="input-group-btn">
     98                            <button class="btn btn-lg btn=default zclip" data-method="direct" data-copy-type="value"
     99                                    data-target="input[name=connector_url]" type="button"
     100                                    style="background-color: #fff; border: 1px solid #ccc;">Copy
     101                            </button>
     102                        </span>
     103                    </div>
    85104                </div>
    86105            </div>
Note: See TracChangeset for help on using the changeset viewer.