Changeset 674754
- Timestamp:
- 02/28/2013 08:55:33 PM (11 years ago)
- Location:
- shortbus/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
shortbus/trunk/admin-ajax.php
r387788 r674754 1 1 <?php 2 2 3 global $wpdb; 3 4 4 $id = (int) $_POST['id']; 5 $method = $_POST['method']; 5 if (!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'] : ''; 6 12 7 13 // load … … 78 84 echo $this->json_response('ok', 'Import successful.'); 79 85 } 86 80 87 die(); -
shortbus/trunk/index.php
r622431 r674754 4 4 Plugin URI: http://wordpress.org/extend/plugins/shortbus/ 5 5 Description: Quickly and easily manage shortcodes. 6 Version: 1. 2.56 Version: 1. 7 7 Author: Matt Gibbs 8 8 Author URI: http://uproot.us/ … … 18 18 19 19 function __construct() { 20 $this->version = '1. 2.5';20 $this->version = '1.'; 21 21 $this->init(); 22 22 } … … 52 52 53 53 // Add hooks 54 add_action('admin_init', array($this, 'help_box'));55 54 add_action('admin_menu', array($this, 'admin_menu')); 56 55 add_action('admin_head', array($this, 'admin_scripts')); … … 143 142 include(WP_PLUGIN_DIR . '/shortbus/admin-scripts.php'); 144 143 } 145 }146 147 /*--------------------------------------------------------------------------------------148 *149 * Contextual help150 *151 * @author Matt Gibbs152 * @since 1.0.0153 *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 <?php166 $help_text = ob_get_clean();167 add_contextual_help('tools_page_shortbus', $help_text);168 144 } 169 145 … … 214 190 <div id="save-area"> 215 191 <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> 217 193 </div> 218 194 <div id="loading-area" class="hidden"> … … 221 197 </div> 222 198 <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> 225 204 <div id="export-area"> 226 205 <textarea id="export-content"></textarea> … … 232 211 <div><input type="submit" class="button-primary" id="do-import" value="Import" /></div> 233 212 </div> 234 <div style="margin-top:15px"><strong>What do you think of this plugin?</strong></div>235 <div>236 Please237 <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>, or239 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JMVGK3L35X6BU" target="_blank">consider donating</a>.240 </div>241 213 </div> 242 214 </div> -
shortbus/trunk/readme.txt
r622431 r674754 4 4 Tags: shortcode, shortcodes, shortcode manager, manager, posts, pages, content management 5 5 Requires at least: 3.0 6 Tested up to: 3. 56 Tested up to: 3. 7 7 Stable tag: trunk 8 8 … … 39 39 40 40 == Changelog == 41 42 43 44 41 45 42 46 = 1.2.5 = -
shortbus/trunk/style.css
r387795 r674754 37 37 #sb-select-value { 38 38 padding: 3px; 39 background: url(images/icon-down.png) 199px 9px no-repeat;39 background: url(images/icon-down.png) 199px px no-repeat; 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.