Plugin Directory

Changeset 1397153


Ignore:
Timestamp:
04/16/2016 08:50:18 AM (10 years ago)
Author:
owencutajar
Message:

New version

Location:
showdown/trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • showdown/trunk/css/wp-showdown.css.php

    r926299 r1397153  
    112112/* Voted */
    113113.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; }
    115116.wp-showdown-youvoted p.wp-showdown-youvotedvote { font-size: 10px; margin: 0; padding: 0 0 10px; width: auto; }
    116117.wp-showdown-youvoted p.wp-showdown-youvotedvote span { color: #EA0E0E; font-weight: bold; }
  • showdown/trunk/php/post_enhancer.php

    r926299 r1397153  
    1212   
    1313    function action_admin_init() {
     14       
    1415        // only hook up these filters if we're in the admin panel, and the current user has permission
    1516        // to edit posts and pages
     
    4748      }
    4849     
    49      
    5050      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' ) );
    5353      }
    5454        }
    5555    }
    5656   
    57     function filter_mce_button( $buttons ) {
    58         array_push( $buttons, '|', 'showdown_button' );
     57    function showdown_mce_button( $buttons ) {
     58        array_push( $buttons, 'showdown_button' );
    5959        return $buttons;
    6060    }
    6161   
    62     function filter_mce_plugin( $plugins ) {
     62    function showdown_mce_plugin( $plugins ) {
    6363        // 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';
    6565        return $plugins;
    6666    }
     
    8585    <p>To enter shortcodes into your Post, use the shortcode generator provided in the Visual mode.</p>
    8686    <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>
    8888    ", "showdownplugin");
    8989  }
  • showdown/trunk/php/postenhancer_plugin.js

    r926299 r1397153  
    11// 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' );
    2215            }
    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       
    3019    // executes this when the DOM is ready
    3120    jQuery(function(){
     
    3625                <th><label for="showdown-type">Shortcode Type</label></th>\
    3726                <td><select name="showdown-type" id="showdown-type">\
    38                     <option value="hotornot">ShowDown</option>\
    39                     <option value="hotornotstats">ShowDown Stats</option>\
     27                    <option value="hotornot">Hot Or Not</option>\
     28                    <option value="hotornotstats">Hot or Not Stats</option>\
    4029                </select><br />\
    4130                <small>Which shortcode are you after?</small></td>\
  • showdown/trunk/readme.txt

    r926302 r1397153  
    33Donate link: http://test.weborithm.com/hotornot/
    44Tags: hot or not, contests, popularity, polls, rating, photo rating
    5 Requires at least: 3.0
    6 Tested up to: 3.5
     5Requires at least: 4.0
     6Tested up to: 4.5
    77Stable tag: /trunk/
    88License: GPLv2 or later
     
    6969* Other Notable Features: Tweet to twitter, show/hide IP address, turn ON/OFF Group name and more...!
    7070
    71 More information at: [ShowDown](http://showdownplugin.com "Hot or Not Script").
     71More information at: [ShowDown](http://showdownplugin.com "ShowDown").
    7272
    7373== Screenshots ==
     
    7979
    8080== Changelog ==
     81
     82= 1.2 =
     83* WordPress v4.5 compatibility
    8184
    8285= 1.1 =
  • showdown/trunk/showdown.php

    r926299 r1397153  
    44Plugin URI: http://showdownplugin.com
    55Description: 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.1
     6Version: 1.2
    77Author: Owen Cutajar & Hyder Jaffari
    88Author URI: http://weborithm.com
     
    1414        .2 - Fixed missing icons
    1515    v1.1 - Name change to Showdown
     16    v1.2 - WordPress v4.5 compatibility
    1617*/
    1718 
    18 $arena_version = "1.1";
     19$arena_version = "1.2";
    1920
    2021define("WPSDOWN_DIR", dirname(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.