Plugin Directory

Changeset 956040


Ignore:
Timestamp:
07/28/2014 02:38:56 PM (12 years ago)
Author:
carlgrundberg
Message:

Support for staff links. Using API instead of custom search page. Improved dialog

Location:
eliteprospects-player-link/trunk
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • eliteprospects-player-link/trunk/README.md

    r668870 r956040  
    1 Eliteprospects player profile link
     1Eliteprospects link
    22==================================
    33
  • eliteprospects-player-link/trunk/index.php

    r925856 r956040  
    33/**************************************************************************
    44
    5 Plugin Name:  Eliteprospects Player Link
     5Plugin Name:  Eliteprospects Link
    66Plugin URI:   http://eliteprospects.com
    7 Description:  Link to player profiles on Eliteprospects.com
    8 Version:      0.4.1
     7Description:  Link to Eliteprospects profile pages for players and staff
     8Version:      0.5
    99Author:       Carl Grundberg, Menmo
    1010Author URI:   http://www.menmo.se
     
    1919
    2020    // Add only in Rich Editor mode
    21     if ( get_user_option('rich_editing') == 'true') {
    22         add_filter("mce_external_plugins", "add_ep_tinymce_plugin");
    23         add_filter('mce_buttons', 'register_ep_button');
     21    if ( get_user_option('rich_editing') != 'true') {
     22        return;
    2423    }
     24   
     25    add_filter("mce_external_plugins", "add_ep_tinymce_plugin");
     26    add_filter('mce_buttons', 'register_ep_button');
    2527
    2628    wp_enqueue_script('jquery');
    2729    wp_enqueue_script('wpdialogs');
    28     wp_enqueue_style('ep_player_dialog', plugins_url( 'ep_player_dialog.css' , __FILE__ ));
     30    wp_enqueue_style('ep_link', plugins_url( 'ep_link.css' , __FILE__ ));
    2931}
    3032
    3133function register_ep_button($buttons) {
    32     array_push($buttons, "ep_player_link");
    33     array_push($buttons, "ef_player_link");
     34    array_push($buttons, "ep_link");
     35    //array_push($buttons, "ef_player_link");
    3436    return $buttons;
    3537}
    3638
    3739function add_ep_tinymce_plugin($plugin_array) {
    38     $plugin_array['ep_player_link'] = plugins_url( 'ep_player_link.js' , __FILE__ );
     40    $plugin_array['ep_link'] = plugins_url( 'ep_link.js' , __FILE__ );
    3941    return $plugin_array;
    4042}
  • eliteprospects-player-link/trunk/readme.txt

    r925856 r956040  
    1 === Eliteprospects player link ===
     1=== Eliteprospects link ===
    22Contributors: carlgrundberg
    33Donate link:
    4 Tags: eliteprospects, hockey, football, sports, player, profile
     4Tags: eliteprospects, hockey, sports, player, profile
    55Requires at least: 3.9
    6 Tested up to: 3.9
    7 Stable tag: 0.4.1
     6Tested up to: 3.9.1
     7Stable tag: 0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Adds buttons to the TinyMCE editor in WordPress to create links to player profiles on Eliteprospects.com.
     11Adds buttons to the TinyMCE editor in WordPress to create links to profile pages on Eliteprospects.com.
    1212
    1313== Description ==
    1414
    15 This plugin will add two buttons the TinyMCE editor in Wordpress.
     15This plugin will add a button to the TinyMCE editor in Wordpress.
    1616
    17 When you select a name and click one of the buttons, a search will be made to find a player with that name. The red button searches for Hockey players and the green button for football players.
     17When you select a name and click one of the buttons, a search will be made to find a player or staff with that name.
    1818
    19 Please note that this plugin uses an Ajax call to http://www.eliteprospects.com to search for players.
     19Please note that this plugin uses an Ajax call to http://www.eliteprospects.com to search for players and staff.
    2020
    2121More information at:
     
    2929
    3030== Changelog ==
     31
     32= 0.5 =
     33* Added staff links
     34* Using new api from Eliteprospects.com
     35* Renamed plugin since we now include more than players
    3136
    3237= 0.4 =
Note: See TracChangeset for help on using the changeset viewer.