Changeset 956040
- Timestamp:
- 07/28/2014 02:38:56 PM (12 years ago)
- Location:
- eliteprospects-player-link/trunk
- Files:
-
- 2 added
- 2 deleted
- 3 edited
-
README.md (modified) (1 diff)
-
ep_link.css (added)
-
ep_link.js (added)
-
ep_player_dialog.css (deleted)
-
ep_player_link.js (deleted)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eliteprospects-player-link/trunk/README.md
r668870 r956040 1 Eliteprospects player profilelink1 Eliteprospects link 2 2 ================================== 3 3 -
eliteprospects-player-link/trunk/index.php
r925856 r956040 3 3 /************************************************************************** 4 4 5 Plugin Name: Eliteprospects PlayerLink5 Plugin Name: Eliteprospects Link 6 6 Plugin URI: http://eliteprospects.com 7 Description: Link to player profiles on Eliteprospects.com8 Version: 0. 4.17 Description: Link to Eliteprospects profile pages for players and staff 8 Version: 0.5 9 9 Author: Carl Grundberg, Menmo 10 10 Author URI: http://www.menmo.se … … 19 19 20 20 // 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; 24 23 } 24 25 add_filter("mce_external_plugins", "add_ep_tinymce_plugin"); 26 add_filter('mce_buttons', 'register_ep_button'); 25 27 26 28 wp_enqueue_script('jquery'); 27 29 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__ )); 29 31 } 30 32 31 33 function 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"); 34 36 return $buttons; 35 37 } 36 38 37 39 function 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__ ); 39 41 return $plugin_array; 40 42 } -
eliteprospects-player-link/trunk/readme.txt
r925856 r956040 1 === Eliteprospects playerlink ===1 === Eliteprospects link === 2 2 Contributors: carlgrundberg 3 3 Donate link: 4 Tags: eliteprospects, hockey, football,sports, player, profile4 Tags: eliteprospects, hockey, sports, player, profile 5 5 Requires at least: 3.9 6 Tested up to: 3.9 7 Stable tag: 0. 4.16 Tested up to: 3.9.1 7 Stable tag: 0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Adds buttons to the TinyMCE editor in WordPress to create links to p layer profiles on Eliteprospects.com.11 Adds buttons to the TinyMCE editor in WordPress to create links to profile pages on Eliteprospects.com. 12 12 13 13 == Description == 14 14 15 This plugin will add two buttonsthe TinyMCE editor in Wordpress.15 This plugin will add a button to the TinyMCE editor in Wordpress. 16 16 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.17 When you select a name and click one of the buttons, a search will be made to find a player or staff with that name. 18 18 19 Please note that this plugin uses an Ajax call to http://www.eliteprospects.com to search for players .19 Please note that this plugin uses an Ajax call to http://www.eliteprospects.com to search for players and staff. 20 20 21 21 More information at: … … 29 29 30 30 == 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 31 36 32 37 = 0.4 =
Note: See TracChangeset
for help on using the changeset viewer.