WordPress.org

Plugin Directory

Changeset 1651631


Ignore:
Timestamp:
05/05/17 13:02:30 (4 months ago)
Author:
ratkosolaja
Message:

Update to 1.0.7

Location:
rs-save-for-later
Files:
74 added
3 edited

Legend:

Unmodified
Added
Removed
  • rs-save-for-later/trunk/README.txt

    r1650789 r1651631  
    44Requires at least: 3.0 
    55Tested up to: 4.7.4 
    6 Stable tag: 1.0.6 
     6Stable tag: 1.0.7 
    77License: GNU General Public License version 3.0 
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    7272== Changelog == 
    7373 
     74= 1.0.7 = 
     75* Load button directly. 
     76 
    7477= 1.0.6 = 
    7578* Fixed a bug where on some server specific settings when user is logged in, saving item wouldn't work. 
  • rs-save-for-later/trunk/public/class-rs-save-for-later-public.php

    r1650789 r1651631  
    149149         */ 
    150150        $options = get_option( $this->plugin_name . '-settings' ); 
    151          
     151 
    152152        if ( ! empty( $options['toggle-css'] ) && $options['toggle-css'] == 1 ) { 
    153153            wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/rs-save-for-later-public.css', array(), $this->version, 'all' ); 
     
    271271 
    272272        if ( $toggle_logged_in == 1 && is_user_logged_in() || $toggle_logged_in == 0 ) { 
    273             echo '<a href="' . esc_url( $page_link ) . '" class="rs-saved-trigger empty" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $saved_txt ) . '">' . file_get_contents( plugin_dir_url( __FILE__ ) . 'img/save-for-later.svg' ) . '<span class="rs-count">' . esc_html( $count ) . '</span></a>'; 
     273            echo '<a href="' . esc_url( $page_link ) . '" class="rs-saved-trigger empty" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $saved_txt ) . '"><svg width="15px" height="15px" viewBox="200 89 46 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs></defs><path d="M241.571429,89.7142857 C242.11905,89.7142857 242.642855,89.8214275 243.142857,90.0357143 C243.928575,90.3452396 244.553569,90.83333 245.017857,91.5 C245.482145,92.16667 245.714286,92.9047579 245.714286,93.7142857 L245.714286,139.75 C245.714286,140.559528 245.482145,141.297616 245.017857,141.964286 C244.553569,142.630956 243.928575,143.119046 243.142857,143.428571 C242.690474,143.619049 242.16667,143.714286 241.571429,143.714286 C240.428566,143.714286 239.44048,143.333337 238.607143,142.571429 L222.857143,127.428571 L207.107143,142.571429 C206.249996,143.357147 205.26191,143.75 204.142857,143.75 C203.595235,143.75 203.071431,143.642858 202.571429,143.428571 C201.78571,143.119046 201.160717,142.630956 200.696429,141.964286 C200.232141,141.297616 200,140.559528 200,139.75 L200,93.7142857 C200,92.9047579 200.232141,92.16667 200.696429,91.5 C201.160717,90.83333 201.78571,90.3452396 202.571429,90.0357143 C203.071431,89.8214275 203.595235,89.7142857 204.142857,89.7142857 L241.571429,89.7142857 Z" id="rs-bookmark-button" stroke="none" fill="#000000" fill-rule="evenodd"></path></svg><span class="rs-count">' . esc_html( $count ) . '</span></a>'; 
    274274        } 
    275275 
     
    382382            'update'  => $saved, 
    383383            'message' => esc_attr( $no_content ), 
    384             'count'   => esc_attr( $count )  
     384            'count'   => esc_attr( $count ) 
    385385        ); 
    386386 
     
    458458        if ( $toggle_logged_in == 1 && is_user_logged_in() || $toggle_logged_in == 0 ) { 
    459459            if ( $saved == true ) { 
    460                 return '<a href="#" class="rs-save-for-later-button saved" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $unsave ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( $object_id ) . '">' . file_get_contents( plugin_dir_url( __FILE__ ) . 'img/save-for-later.svg' ) . '</a><a href="' . esc_url( $page_link ) . '" class="rs-see-saved" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $number ) . ' ' . esc_attr( $count ) . '">' . esc_html( $saved_txt ) . '</a>'; 
     460                return '<a href="#" class="rs-save-for-later-button saved" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $unsave ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( $object_id ) . '"><svg width="15px" height="15px" viewBox="200 89 46 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs></defs><path d="M241.571429,89.7142857 C242.11905,89.7142857 242.642855,89.8214275 243.142857,90.0357143 C243.928575,90.3452396 244.553569,90.83333 245.017857,91.5 C245.482145,92.16667 245.714286,92.9047579 245.714286,93.7142857 L245.714286,139.75 C245.714286,140.559528 245.482145,141.297616 245.017857,141.964286 C244.553569,142.630956 243.928575,143.119046 243.142857,143.428571 C242.690474,143.619049 242.16667,143.714286 241.571429,143.714286 C240.428566,143.714286 239.44048,143.333337 238.607143,142.571429 L222.857143,127.428571 L207.107143,142.571429 C206.249996,143.357147 205.26191,143.75 204.142857,143.75 C203.595235,143.75 203.071431,143.642858 202.571429,143.428571 C201.78571,143.119046 201.160717,142.630956 200.696429,141.964286 C200.232141,141.297616 200,140.559528 200,139.75 L200,93.7142857 C200,92.9047579 200.232141,92.16667 200.696429,91.5 C201.160717,90.83333 201.78571,90.3452396 202.571429,90.0357143 C203.071431,89.8214275 203.595235,89.7142857 204.142857,89.7142857 L241.571429,89.7142857 Z" id="rs-bookmark-button" stroke="none" fill="#000000" fill-rule="evenodd"></path></svg></a><a href="' . esc_url( $page_link ) . '" class="rs-see-saved" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $number ) . ' ' . esc_attr( $count ) . '">' . esc_html( $saved_txt ) . '</a>'; 
    461461            } else { 
    462                 return '<a href="#" class="rs-save-for-later-button" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $save ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( $object_id ) . '">' . file_get_contents( plugin_dir_url( __FILE__ ) . 'img/save-for-later.svg' ) . '</a>'; 
     462                return '<a href="#" class="rs-save-for-later-button" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $save ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( $object_id ) . '"><svg width="15px" height="15px" viewBox="200 89 46 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs></defs><path d="M241.571429,89.7142857 C242.11905,89.7142857 242.642855,89.8214275 243.142857,90.0357143 C243.928575,90.3452396 244.553569,90.83333 245.017857,91.5 C245.482145,92.16667 245.714286,92.9047579 245.714286,93.7142857 L245.714286,139.75 C245.714286,140.559528 245.482145,141.297616 245.017857,141.964286 C244.553569,142.630956 243.928575,143.119046 243.142857,143.428571 C242.690474,143.619049 242.16667,143.714286 241.571429,143.714286 C240.428566,143.714286 239.44048,143.333337 238.607143,142.571429 L222.857143,127.428571 L207.107143,142.571429 C206.249996,143.357147 205.26191,143.75 204.142857,143.75 C203.595235,143.75 203.071431,143.642858 202.571429,143.428571 C201.78571,143.119046 201.160717,142.630956 200.696429,141.964286 C200.232141,141.297616 200,140.559528 200,139.75 L200,93.7142857 C200,92.9047579 200.232141,92.16667 200.696429,91.5 C201.160717,90.83333 201.78571,90.3452396 202.571429,90.0357143 C203.071431,89.8214275 203.595235,89.7142857 204.142857,89.7142857 L241.571429,89.7142857 Z" id="rs-bookmark-button" stroke="none" fill="#000000" fill-rule="evenodd"></path></svg></a>'; 
    463463            } 
    464464        } elseif ( $toggle_logged_in == 1 && ! is_user_logged_in() ) { 
     
    555555                            echo '</a>'; 
    556556                            echo '<div class="rs-item-nav">'; 
    557                                 echo '<a href="#" class="rs-save-for-later-button saved saved-in-list" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $unsave ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( get_the_ID() ) . '">' . file_get_contents( plugin_dir_url( __FILE__ ) . 'img/save-for-later.svg' ) . '</a>'; 
     557                                echo '<a href="#" class="rs-save-for-later-button saved saved-in-list" data-toggle="tooltip" data-placement="top" data-title="' . esc_attr( $unsave ) . '" data-nonce="' . wp_create_nonce( 'rs_object_save_for_later' ) . '" data-object-id="' . esc_attr( get_the_ID() ) . '"><svg width="15px" height="15px" viewBox="200 89 46 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs></defs><path d="M241.571429,89.7142857 C242.11905,89.7142857 242.642855,89.8214275 243.142857,90.0357143 C243.928575,90.3452396 244.553569,90.83333 245.017857,91.5 C245.482145,92.16667 245.714286,92.9047579 245.714286,93.7142857 L245.714286,139.75 C245.714286,140.559528 245.482145,141.297616 245.017857,141.964286 C244.553569,142.630956 243.928575,143.119046 243.142857,143.428571 C242.690474,143.619049 242.16667,143.714286 241.571429,143.714286 C240.428566,143.714286 239.44048,143.333337 238.607143,142.571429 L222.857143,127.428571 L207.107143,142.571429 C206.249996,143.357147 205.26191,143.75 204.142857,143.75 C203.595235,143.75 203.071431,143.642858 202.571429,143.428571 C201.78571,143.119046 201.160717,142.630956 200.696429,141.964286 C200.232141,141.297616 200,140.559528 200,139.75 L200,93.7142857 C200,92.9047579 200.232141,92.16667 200.696429,91.5 C201.160717,90.83333 201.78571,90.3452396 202.571429,90.0357143 C203.071431,89.8214275 203.595235,89.7142857 204.142857,89.7142857 L241.571429,89.7142857 Z" id="rs-bookmark-button" stroke="none" fill="#000000" fill-rule="evenodd"></path></svg></a>'; 
    558558                            echo '</div>'; 
    559559                        echo '</div>'; 
  • rs-save-for-later/trunk/rs-save-for-later.php

    r1650789 r1651631  
    99 * Plugin URI:  https://wordpress.org/plugins/rs-save-for-later/ 
    1010 * Description: Save content for later. 
    11  * Version:     1.0.6 
     11 * Version:     1.0.7 
    1212 * Author:      Simplicity LLC 
    1313 * Author URI:  http://www.simplicity.rs/ 
Note: See TracChangeset for help on using the changeset viewer.