Changeset 1397153
- Timestamp:
- 04/16/2016 08:50:18 AM (10 years ago)
- Location:
- showdown/trunk
- Files:
-
- 2 deleted
- 5 edited
-
css/wp-showdown.css.old (deleted)
-
css/wp-showdown.css.php (modified) (1 diff)
-
php/post_enhancer.php (modified) (3 diffs)
-
php/postenhancer_plugin.js (modified) (2 diffs)
-
presstrends.php (deleted)
-
readme.txt (modified) (3 diffs)
-
showdown.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
showdown/trunk/css/wp-showdown.css.php
r926299 r1397153 112 112 /* Voted */ 113 113 .wp-showdown-youvoted { padding: 0 0 20px; text-align: center; } 114 .wp-showdown-youvotedimg a { display: block; height: 100px; } 114 .wp-showdown-youvotedimg a { display: block; height: 100px; box-shadow: none !important; } 115 .wp-showdown-youvotedimg img { display: block; margin: auto; } 115 116 .wp-showdown-youvoted p.wp-showdown-youvotedvote { font-size: 10px; margin: 0; padding: 0 0 10px; width: auto; } 116 117 .wp-showdown-youvoted p.wp-showdown-youvotedvote span { color: #EA0E0E; font-weight: bold; } -
showdown/trunk/php/post_enhancer.php
r926299 r1397153 12 12 13 13 function action_admin_init() { 14 14 15 // only hook up these filters if we're in the admin panel, and the current user has permission 15 16 // to edit posts and pages … … 47 48 } 48 49 49 50 50 if ( $showbutton ) { 51 add_filter( 'mce_buttons', array( $this, ' filter_mce_button' ) );52 add_filter( 'mce_external_plugins', array( $this, ' filter_mce_plugin' ) );51 add_filter( 'mce_buttons', array( $this, 'showdown_mce_button' ) ); 52 add_filter( 'mce_external_plugins', array( $this, 'showdown_mce_plugin' ) ); 53 53 } 54 54 } 55 55 } 56 56 57 function filter_mce_button( $buttons ) {58 array_push( $buttons, ' |', 'showdown_button' );57 function showdown_mce_button( $buttons ) { 58 array_push( $buttons, 'showdown_button' ); 59 59 return $buttons; 60 60 } 61 61 62 function filter_mce_plugin( $plugins ) {62 function showdown_mce_plugin( $plugins ) { 63 63 // this plugin file will work the magic of our button 64 $plugins['showdown '] = plugin_dir_url( __FILE__ ) . 'postenhancer_plugin.js';64 $plugins['showdown_button'] = plugin_dir_url( __FILE__ ) . 'postenhancer_plugin.js'; 65 65 return $plugins; 66 66 } … … 85 85 <p>To enter shortcodes into your Post, use the shortcode generator provided in the Visual mode.</p> 86 86 <p><strong>Basic Shortcodes</strong></p> 87 <p>[ wphotornot] - This will show one Competitor at a time for voting. The shortcode generator (lightning bolt icon) can help you enter customized shortcodes.</p>87 <p>[showdown] - This will show one Competitor at a time for voting. The shortcode generator (lightning bolt icon) can help you enter customized shortcodes.</p> 88 88 ", "showdownplugin"); 89 89 } -
showdown/trunk/php/postenhancer_plugin.js
r926299 r1397153 1 1 // closure to avoid namespace collision 2 (function(){ 3 // creates the plugin 4 tinymce.create('tinymce.plugins.showdown', { 5 // creates control instances based on the control's id. 6 // our button's id is "showdown_button" 7 createControl : function(id, controlManager) { 8 if (id == 'showdown_button') { 9 // creates the button 10 var button = controlManager.createButton('showdown_button', { 11 title : 'ShowDown Shortcode', // title of the button 12 image : '../wp-content/plugins/hot-or-not/css/icon.png', // path to the button's image 13 onclick : function() { 14 // triggers the thickbox 15 var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width; 16 W = W - 80; 17 H = H - 84; 18 tb_show( 'ShowDown Shortcode', '#TB_inline?width=' + W + '&height=' + H + '&inlineId=showdown-form' ); 19 } 20 }); 21 return button; 2 (function() { 3 4 tinymce.PluginManager.add("showdown_button", function( editor, url ) { 5 6 editor.addButton( "showdown_button", { 7 title: 'Showdown', 8 icon: 'icon showdown-icon', 9 onclick : function() { 10 // triggers the thickbox 11 var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width; 12 W = W - 80; 13 H = H - 84; 14 tb_show( 'Hot Or Not Shortcode', '#TB_inline?width=' + W + '&height=' + H + '&inlineId=showdown-form' ); 22 15 } 23 return null; 24 } 25 }); 26 27 // registers the plugin. DON'T MISS THIS STEP!!! 28 tinymce.PluginManager.add('showdown', tinymce.plugins.showdown); 29 16 }); 17 }); 18 30 19 // executes this when the DOM is ready 31 20 jQuery(function(){ … … 36 25 <th><label for="showdown-type">Shortcode Type</label></th>\ 37 26 <td><select name="showdown-type" id="showdown-type">\ 38 <option value="hotornot"> ShowDown</option>\39 <option value="hotornotstats"> ShowDownStats</option>\27 <option value="hotornot">Hot Or Not</option>\ 28 <option value="hotornotstats">Hot or Not Stats</option>\ 40 29 </select><br />\ 41 30 <small>Which shortcode are you after?</small></td>\ -
showdown/trunk/readme.txt
r926302 r1397153 3 3 Donate link: http://test.weborithm.com/hotornot/ 4 4 Tags: hot or not, contests, popularity, polls, rating, photo rating 5 Requires at least: 3.06 Tested up to: 3.55 Requires at least: 4.0 6 Tested up to: 4.5 7 7 Stable tag: /trunk/ 8 8 License: GPLv2 or later … … 69 69 * Other Notable Features: Tweet to twitter, show/hide IP address, turn ON/OFF Group name and more...! 70 70 71 More information at: [ShowDown](http://showdownplugin.com " Hot or Not Script").71 More information at: [ShowDown](http://showdownplugin.com "ShowDown"). 72 72 73 73 == Screenshots == … … 79 79 80 80 == Changelog == 81 82 = 1.2 = 83 * WordPress v4.5 compatibility 81 84 82 85 = 1.1 = -
showdown/trunk/showdown.php
r926299 r1397153 4 4 Plugin URI: http://showdownplugin.com 5 5 Description: Engage your readers by creating Yay/Nay contests (formerly known as Hot or Not). Use the Competitor custom post type to host your images and your content. 6 Version: 1. 16 Version: 1.2 7 7 Author: Owen Cutajar & Hyder Jaffari 8 8 Author URI: http://weborithm.com … … 14 14 .2 - Fixed missing icons 15 15 v1.1 - Name change to Showdown 16 v1.2 - WordPress v4.5 compatibility 16 17 */ 17 18 18 $arena_version = "1. 1";19 $arena_version = "1.2"; 19 20 20 21 define("WPSDOWN_DIR", dirname(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.