Changeset 434192
- Timestamp:
- 09/06/2011 05:27:15 PM (15 years ago)
- Location:
- getmecooking-recipe-template/trunk
- Files:
-
- 6 edited
-
readme.txt (modified) (1 diff)
-
recipe-template-edit-params.php (modified) (1 diff)
-
recipe-template-functions.php (modified) (3 diffs)
-
recipe-template-main.php (modified) (1 diff)
-
recipe-template-shortcode.php (modified) (2 diffs)
-
recipe-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
getmecooking-recipe-template/trunk/readme.txt
r433688 r434192 79 79 80 80 == Changelog == 81 = 1.05 = 82 * Fixed custom themes, the plugin was hiding the featured image box and other sidebar boxes 83 81 84 = 1.04 = 82 85 * Added missing CSS to hide recipe title if it's the same as the blog post -
getmecooking-recipe-template/trunk/recipe-template-edit-params.php
r433329 r434192 112 112 <span> 113 113 <b> 114 Can the recipe be associated with any diet ry requirements?114 Can the recipe be associated with any dietary requirements? 115 115 </b> (Tick all that apply) 116 116 </span> </label><div class="gmc-admin-fullline"> 117 117 <?php $gmallparams=array("Diabetic", "Gluten Free", "Vegan", "Vegetarian"); ?> 118 <?php $gmparams=(array)unserialize(get_post_meta($post->ID,'gmc-recopt-diet ry',true)); ?>118 <?php $gmparams=(array)unserialize(get_post_meta($post->ID,'gmc-recopt-dietary',true)); ?> 119 119 <?php foreach($gmallparams as $gmp) { ?> 120 120 121 121 <p> 122 <input value="<?php echo $gmp; ?>" name="gmc-recopt-diet ry[]" type="checkbox" <?php echo (in_array($gmp, $gmparams) ? "checked='checked'" : ""); ?> />122 <input value="<?php echo $gmp; ?>" name="gmc-recopt-dietary[]" type="checkbox" <?php echo (in_array($gmp, $gmparams) ? "checked='checked'" : ""); ?> /> 123 123 <?php echo $gmp; ?> 124 124 -
getmecooking-recipe-template/trunk/recipe-template-functions.php
r433688 r434192 66 66 67 67 function gmc_after_setup_theme() { 68 add_theme_support('post-thumbnails', array( 'recipe', 'recipestep')); 69 // add_theme_support('post-thumbnails', array( 'recipe', 'recipestep', 'recipeingredient' )); 68 //add_theme_support('post-thumbnails', array( 'recipe', 'recipestep')); 70 69 } 71 70 … … 832 831 updateOrDeleteOption("gmc-label-allergy", $_POST["gmc-label-allergy"]); 833 832 updateOrDeleteOption("gmc-label-occasion", $_POST["gmc-label-occasion"]); 834 updateOrDeleteOption("gmc-label-diet ry", $_POST["gmc-label-dietry"]);833 updateOrDeleteOption("gmc-label-dietary", $_POST["gmc-label-dietary"]); 835 834 updateOrDeleteOption("gmc-label-misc", $_POST["gmc-label-misc"]); 836 835 updateOrDeleteOption("gmc-label-region", $_POST["gmc-label-region"]); … … 970 969 } 971 970 972 if (!empty($_POST['gmc-recopt-diet ry'])) {973 update_post_meta($post_ID, "gmc-recopt-diet ry", serialize($_POST['gmc-recopt-dietry']));971 if (!empty($_POST['gmc-recopt-dietary'])) { 972 update_post_meta($post_ID, "gmc-recopt-dietary", serialize($_POST['gmc-recopt-dietary'])); 974 973 } else { 975 delete_post_meta($post_ID, "gmc-recopt-diet ry");974 delete_post_meta($post_ID, "gmc-recopt-dietary"); 976 975 } 977 976 -
getmecooking-recipe-template/trunk/recipe-template-main.php
r433329 r434192 175 175 </th><td><input type="text" name="gmc-label-allergy" value="<?php echo get_option("gmc-label-allergy");?>" /></td> </tr><tr> 176 176 <th> 177 Diet ry178 </th><td><input type="text" name="gmc-label-diet ry" value="<?php echo get_option("gmc-label-dietry");?>" /></td> </tr><tr>177 Dietary 178 </th><td><input type="text" name="gmc-label-dietary" value="<?php echo get_option("gmc-label-dietary");?>" /></td> </tr><tr> 179 179 <th> 180 180 Meal type -
getmecooking-recipe-template/trunk/recipe-template-shortcode.php
r433688 r434192 55 55 56 56 </td> </tr> <?php } ?> 57 <?php $diet ry = get_post_meta($post->ID,'gmc-recopt-dietry',true); ?>58 <?php if (!empty($diet ry)) { ?>59 60 <?php $gmparams=(array)unserialize($diet ry); ?>61 <tr> 62 <td class="gmc-heading"> 63 <?php echo get_option("gmc-label-diet ry") ? get_option("gmc-label-dietry") . ':' : "Dietry:"; ?>64 65 <?php $output = ''; ?> 66 <?php foreach($gmparams as $gmp) { ?> 67 68 <?php $output.= gmc_recipe_filter_link($gmp, 'diet ry').", "; ?>57 <?php $dietary = get_post_meta($post->ID,'gmc-recopt-dietary',true); ?> 58 <?php if (!empty($dietary)) { ?> 59 60 <?php $gmparams=(array)unserialize($dietary); ?> 61 <tr> 62 <td class="gmc-heading"> 63 <?php echo get_option("gmc-label-dietary") ? get_option("gmc-label-dietary") . ':' : "Dietary:"; ?> 64 65 <?php $output = ''; ?> 66 <?php foreach($gmparams as $gmp) { ?> 67 68 <?php $output.= gmc_recipe_filter_link($gmp, 'dietary').", "; ?> 69 69 <?php } ?> 70 70 </td><td> … … 366 366 </div> <?php if (!empty($post->post_content) && get_option('gmc-note-position') == '1') { ?> 367 367 368 <h2 class="gmc-recipe-subtitle"><?php echo get_option("gmc-label-note") ? get_option("gmc-label-note") : "Note"; ?></h2> <?php global $gmc_skip_content; ?> 369 <?php $gmc_skip_content=true; ?> 370 <?php the_content(); ?> 371 <?php $gmc_skip_content=false; ?> 368 <h2 class="gmc-recipe-subtitle"><?php echo get_option("gmc-label-note") ? get_option("gmc-label-note") : "Note"; ?></h2> <?php echo wpautop(get_the_content()); ?> 369 372 370 <?php } ?> 373 371 <?php } ?> -
getmecooking-recipe-template/trunk/recipe-template.php
r433688 r434192 4 4 Plugin URI: http://www.getmecooking.com/recipe-template 5 5 Description: <strong>For food bloggers - allows you to add recipes to your blog</strong>. Includes recipe title, photographs, list of ingredients, recipe steps and Search Engine Optimisation (SEO). Also your recipes can be added to <a href="http://www.getmecooking.com/">http://www.getmecooking.com</a>, which will give your recipes additional functionality, more exposure and increased traffic. Visit the <a href="http://www.getmecooking.com/recipe-template/">information page</a> for full details. 6 Version: 1.0 46 Version: 1.05 7 7 Author: GetMeCooking 8 8 Author URI: http://www.getmecooking.com/ … … 10 10 11 11 define('GMC_URL', 'http://www.getmecooking.com/recipeservice.svc/submitrecipe'); 12 define('GMC_CSS_VERSION', '1.0 4');13 define('GMC_JS_VERSION', '1.0 4');12 define('GMC_CSS_VERSION', '1.05'); 13 define('GMC_JS_VERSION', '1.05'); 14 14 15 15 include('lib/owt-translate.php');
Note: See TracChangeset
for help on using the changeset viewer.