Changeset 368143
- Timestamp:
- 04/02/2011 04:09:28 PM (15 years ago)
- Location:
- hrecipe/trunk
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
hrecipe.class.php (modified) (1 diff)
-
hrecipe.css (modified) (1 diff)
-
js/hrecipe_format.js (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
view/lightbox.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hrecipe/trunk
-
Property
svn:ignore
set to
.project
.gitignore
-
Property
svn:ignore
set to
-
hrecipe/trunk/hrecipe.class.php
r366041 r368143 50 50 //wp_enqueue_script('hrecipe-reciply'); 51 51 wp_register_script('hrecipeformat',plugins_url('hrecipe/js/hrecipe_format.js', dirname(__FILE__)),'','',true); 52 wp_register_script('hrecipescript',plugins_url('hrecipe/js/hrecipescript.js', dirname(__FILE__))); 53 wp_localize_script('hrecipescript','hrecipe_handle',hrecipe_localize_vars()); 52 //wp_register_script('hrecipescript',plugins_url('hrecipe/js/hrecipescript.js', dirname(__FILE__))); 53 //wp_localize_script('hrecipescript','hrecipe_handle',hrecipe_localize_vars()); 54 wp_localize_script('hrecipeformat','hrecipe_handle',hrecipe_localize_vars()); 54 55 55 56 // TODO: Move the enqueue to where it's needed. 56 wp_enqueue_script('hrecipescript');57 //wp_enqueue_script('hrecipescript'); 57 58 wp_enqueue_script('hrecipeformat'); 58 59 } -
hrecipe/trunk/hrecipe.css
r288193 r368143 91 91 92 92 /* div-based layouts */ 93 94 div.hrecipe h4 { 95 font-weight: bold; 96 font-size: 115%; 97 } 98 93 99 div.hrecipe p.item { 94 100 font-size: 1.6em; -
hrecipe/trunk/js/hrecipe_format.js
r366041 r368143 3 3 /*global tinyMCE, edInsertContent, edCanvas */ 4 4 5 6 /* 7 * enqueue this script with a dependency on 'quicktags' 8 */ 5 9 //(function () { 6 10 … … 24 28 25 29 hrecipe_qttoolbar = document.getElementById("ed_toolbar"); 30 /* 26 31 if (hrecipe_qttoolbar === null) { 27 32 alert("ed_toolber element is null"); 28 33 } 34 */ 29 35 //if (hrecipe_qttoolbar = document.getElementById("ed_toolbar")) { 30 36 if (hrecipe_qttoolbar !== null) { … … 163 169 } 164 170 171 172 /* 173 function format_summary(itemSummary) { 174 var markup = ''; 175 if (itemSummary === '') { return; } 176 markup = '<h4 class="summary">'; 177 markup += hrecipe_handle.hrecipe_summary_text; 178 markup += '<em>' + itemSummary + '</em>'; 179 markup += '</h4>'; 180 return markup; 181 } 182 */ 183 165 184 /** 166 185 * Thanks for Michael Allen Smith for help … … 186 205 } 187 206 207 208 /** 209 * Refactor format_item into something which can be used for all the 210 * pieces of hrecipe output to reduce the maintenance load for 211 * changing formatting etc. 212 */ 188 213 189 214 function format_item(hrclass, hrtext, hritem) { -
hrecipe/trunk/readme.txt
r361090 r368143 4 4 Requires at least: 3.0 5 5 Tested up to: 3.1 6 Stable tag: 0.5.4. 46 Stable tag: 0.5.4.5 7 7 8 8 This is a plugin to allow the easy entry of microformat content for … … 88 88 89 89 == Changelog == 90 91 = 0.5.4.5 = 92 * Scripting cleanup including s/$/jQeury/ and enqueueing script with variables now localized. 90 93 91 94 = 0.5.4.4 = -
hrecipe/trunk/view/lightbox.php
r366041 r368143 7 7 // http://ottodestruct.com/blog/2010/dont-include-wp-load-please/ 8 8 // http://ottopress.com/2010/passing-parameters-from-php-to-javascripts-in-plugins/ 9 //require_once('../../../../wp-load.php'); // Ugly directory stuff 10 require_once('../../../../wp-admin/admin.php'); // Ugly directory stuff 11 // This is not working, and it should. 12 //require_once(ABSPATH.'wp-admin/admin.php'); // Ugly directory stuff 13 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 9 require_once('../../../../wp-admin/admin.php'); 10 11 //@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 14 12 ?> 15 13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 16 14 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 17 15 <head> 16 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 17 <title><?php bloginfo('name') ?> › <?php _e('hRecipe'); ?> — <?php _e('WordPress'); ?></title> 18 18 <?php 19 19 wp_enqueue_style( 'global' ); … … 27 27 <script type="text/javascript"> 28 28 29 $(document).ready(function() {29 jQuery(document).ready(function() { 30 30 31 31 //Default Action … … 235 235 //]]> 236 236 </script> 237 238 239 240 237 241 238 <?php … … 464 461 </div> 465 462 </form></div> 463 <?php 464 //do_action('admin_print_footer_scripts'); 465 ?> 466 466 </body> 467 467 </html>
Note: See TracChangeset
for help on using the changeset viewer.