Plugin Directory

Changeset 674754

Timestamp:
02/28/2013 08:55:33 PM (11 years ago)
Author:
logikal16
Message:

Shortcode Manager 1.3.0

Location:
shortbus/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • shortbus/trunk/admin-ajax.php

    r387788 r674754  
    11<?php
     2
    23global $wpdb;
    34
    4 $id = (int) $_POST['id'];
    5 $method = $_POST['method'];
     5if (!is_admin()) {
     6    echo $this->json_response('error', 'Access denied.');
     7    die();
     8}
     9
     10$id = isset($_POST['id']) ? (int) $_POST['id'] : 0;
     11$method = isset($_POST['method']) ? $_POST['method'] : '';
    612
    713// load
     
    7884    echo $this->json_response('ok', 'Import successful.');
    7985}
     86
    8087die();
  • shortbus/trunk/index.php

    r622431 r674754  
    44Plugin URI: http://wordpress.org/extend/plugins/shortbus/
    55Description: Quickly and easily manage shortcodes.
    6 Version: 1.2.5
     6Version: 1.
    77Author: Matt Gibbs
    88Author URI: http://uproot.us/
     
    1818
    1919    function __construct() {
    20         $this->version = '1.2.5';
     20        $this->version = '1.';
    2121        $this->init();
    2222    }
     
    5252
    5353        // Add hooks
    54         add_action('admin_init', array($this, 'help_box'));
    5554        add_action('admin_menu', array($this, 'admin_menu'));
    5655        add_action('admin_head', array($this, 'admin_scripts'));
     
    143142            include(WP_PLUGIN_DIR . '/shortbus/admin-scripts.php');
    144143        }
    145     }
    146 
    147     /*--------------------------------------------------------------------------------------
    148     *
    149     *    Contextual help
    150     *
    151     *    @author Matt Gibbs
    152     *    @since 1.0.0
    153     *
    154     *-------------------------------------------------------------------------------------*/
    155 
    156     function help_box() {
    157         ob_start();
    158 ?>
    159         <div><strong>To add a shortcode:</strong></div>
    160         <div>Enter a shortcode name into the text box and click <strong>Add New</strong>.</div>
    161         <div style="margin-top:15px"><strong>To edit a shortcode:</strong></div>
    162         <div>Select an existing shortcode from the dropdown.</div>
    163         <div style="margin-top:15px"><strong>To use a shortcode:</strong></div>
    164         <div>Add <span class="code">[sb name="My Shortcode"]</span> within your pages, posts, or widgets.</div>
    165 <?php
    166         $help_text = ob_get_clean();
    167         add_contextual_help('tools_page_shortbus', $help_text);
    168144    }
    169145
     
    214190        <div id="save-area">
    215191            <input type="submit" class="button-primary" id="edit-shortcode" value="Save Changes" />
    216             or <a id="delete-shortcode" href="javascript:;">Delete Shortcode</a>
     192            or <a id="delete-shortcode" href="javascript:;">Delete</a>
    217193        </div>
    218194        <div id="loading-area" class="hidden">
     
    221197    </div>
    222198    <div id="shortcode-intro">
    223         <div><strong>Migrate your shortcodes</strong></div>
    224         <div><a id="import" href="javascript:;">Import</a> and <a id="export" href="javascript:;">export</a> within seconds.</div>
     199        <h3>Migrate shortcodes:</h3>
     200        <div>
     201            <a id="import" class="button" href="javascript:;">Import</a>
     202            <a id="export" class="button" href="javascript:;">Export</a>
     203        </div>
    225204        <div id="export-area">
    226205            <textarea id="export-content"></textarea>
     
    232211            <div><input type="submit" class="button-primary" id="do-import" value="Import" /></div>
    233212        </div>
    234         <div style="margin-top:15px"><strong>What do you think of this plugin?</strong></div>
    235         <div>
    236             Please
    237             <a href="http://wordpress.org/extend/plugins/shortbus/" target="_blank">rate it</a>,
    238             <a href="http://wordpress.org/tags/shortbus?forum_id=10" target="_blank">visit the forum</a>, or
    239             <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JMVGK3L35X6BU" target="_blank">consider donating</a>.
    240         </div>
    241213    </div>
    242214</div>
  • shortbus/trunk/readme.txt

    r622431 r674754  
    44Tags: shortcode, shortcodes, shortcode manager, manager, posts, pages, content management
    55Requires at least: 3.0
    6 Tested up to: 3.5
     6Tested up to: 3.
    77Stable tag: trunk
    88
     
    3939
    4040== Changelog ==
     41
     42
     43
     44
    4145
    4246= 1.2.5 =
  • shortbus/trunk/style.css

    r387795 r674754  
    3737#sb-select-value {
    3838    padding: 3px;
    39     background: url(images/icon-down.png) 199px 9px no-repeat;
     39    background: url(images/icon-down.png) 199px px no-repeat;
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.