Plugin Directory

Changeset 964699


Ignore:
Timestamp:
08/12/2014 06:23:39 PM (12 years ago)
Author:
nickohrn
Message:

Version 1.1.4

Location:
better-links/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • better-links/trunk/better-links.php

    r943480 r964699  
    44Plugin URI: http://boostwp.com/products/better-links/
    55Description: Quickly and easily create a variety of links for your site.
    6 Version: 1.1.3
     6Version: 1.1.4
    77Author: BoostWP
    88Author URI: http://boostwp.com/
     
    1515    // This constant can be overridden by a prior define statement
    1616    // for development purposes (to prevent caching of resources)
    17     define('BETTER_LINKS_VERSION', '1.1.3');
     17    define('BETTER_LINKS_VERSION', '1.1.4');
    1818}
    1919
  • better-links/trunk/modules/better-links/better-links.php

    r943480 r964699  
    399399
    400400    public static function enqueue_scripts() {
    401         wp_register_script('zero-clipboard', plugins_url('resources/vendor/zero-clipboard.min.js', __FILE__), array(), '1.3.5', true);
    402 
    403         wp_enqueue_style('better-links-backend', plugins_url('resources/backend/better-links.css', __FILE__), array('media-views'), BETTER_LINKS_VERSION);
    404 
    405         wp_enqueue_script('knockout', plugins_url('resources/vendor/knockout.min.js', __FILE__), array(), '3.0.0', true);
    406         wp_enqueue_script('better-links-backend', plugins_url('resources/backend/better-links.js', __FILE__), array('knockout', 'jquery', 'zero-clipboard'), BETTER_LINKS_VERSION, true);
    407         wp_localize_script('better-links-backend', 'Better_Links', apply_filters('better_links_localize_script', array(
    408             'ajaxAction' => 'better-links',
    409 
    410             'copiedText' => __('Copied!'),
    411             'copyText' => __('Copy'),
    412 
    413             'shortcode' => 'bl',
    414 
    415             'stateName' => 'iframe:better_links',
    416             'stateTitle' => __('EasyAzon'),
    417 
    418             'zeroClipboardSwfUrl' => plugins_url('resources/vendor/zero-clipboard.swf', __FILE__),
    419         )));
    420 
    421         do_action('better_links_enqueue_scripts');
     401        $screen = get_current_screen();
     402
     403        if(
     404            (isset($screen->post_type) && self::TYPE_LINK === $screen->post_type)
     405            ||
     406            (isset($screen->base) && 'post' === $screen->base)
     407            ||
     408            (isset($screen->base) && 'media-upload' === $screen->base && isset($_GET['tab']) && 'better_links' === $_GET['tab'])
     409        ) {
     410
     411            wp_register_script('zero-clipboard', plugins_url('resources/vendor/zero-clipboard.min.js', __FILE__), array(), '1.3.5', true);
     412
     413            wp_enqueue_style('better-links-backend', plugins_url('resources/backend/better-links.css', __FILE__), array('media-views'), BETTER_LINKS_VERSION);
     414
     415            wp_enqueue_script('knockout', plugins_url('resources/vendor/knockout.min.js', __FILE__), array(), '3.0.0', true);
     416            wp_enqueue_script('better-links-backend', plugins_url('resources/backend/better-links.js', __FILE__), array('knockout', 'jquery', 'zero-clipboard'), BETTER_LINKS_VERSION, true);
     417            wp_localize_script('better-links-backend', 'Better_Links', apply_filters('better_links_localize_script', array(
     418                'ajaxAction' => 'better-links',
     419
     420                'copiedText' => __('Copied!'),
     421                'copyText' => __('Copy'),
     422
     423                'shortcode' => 'bl',
     424
     425                'stateName' => 'iframe:better_links',
     426                'stateTitle' => __('EasyAzon'),
     427
     428                'zeroClipboardSwfUrl' => plugins_url('resources/vendor/zero-clipboard.swf', __FILE__),
     429            )));
     430
     431            do_action('better_links_enqueue_scripts');
     432        }
    422433    }
    423434
  • better-links/trunk/readme.txt

    r943485 r964699  
    33Tags: admin, links, editor
    44Requires at least: 3.9
    5 Tested up to: 3.9.1
    6 Stable tag: 1.1.3
     5Tested up to: 3.9.2
     6Stable tag: 1.1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Easily create, manage and insert shortened Better Links that originate from your WordPress domain name. Forget link shortening services - use Better Links instead.
     10Easily create, manage and insert shortened Better Links that originate from your WordPress domain. Forget link shortening services - use Better Links.
    1111
    1212== Description ==
     
    6464
    65651. Easily add new links for your WordPress powered website and control link behavior on a link by link basis if you choose.
    66 
    67662. Better Links also has a link dashboard which lets you see all of your links along with the clicks in the last 30 days, overall clicks and when the link was created.
    68 
    69673. Better Links can be copy and pasted for use anywhere on the web, but to make it easy for you we offer a way to insert your Better Links from within the WordPress post / page editor at the click of a button.
    70 
    71684. When inserting links from within the WordPress post / page editor you can easily search or sort for your Better Links before inserting them into your content.
    72 
    73695. After clicking the Better Links button in the WordPress post / page editor you can even create links from within your post editor instead of having to head back to the link creation screen.
    74 
    75706. Better Links are added to your content area using raw HTML code or short codes - your choice. Using short codes allows you to update all of the link behavior at once or if you insert via HTML and want to change later you'd need to manually make changes for no follow, new window etc
    76 
    77717. To help better manage all of your links you can also create link categories for your links as well.
    78 
    79728. Our link tools make it easier to get started using Better Links. You can even import your links from Pretty Link if you were using that plugin before.
    80 
    81739. Managing site wide link settings is a breeze. Simply select your settings once and you're on your way.
    8274
    8375== Changelog ==
     76
     77= 1.1.4 =
     78* Minor text changes
    8479
    8580= 1.1.2 =
     
    9691== Upgrade Notice ==
    9792
     93= 1.1.4 =
     94* Fixed tag in WordPress repository
     95
    9896= 1.1.2 =
    9997* Miscellaneous bug fixes
Note: See TracChangeset for help on using the changeset viewer.