Changeset 1671554
- Timestamp:
- 06/06/2017 07:50:16 AM (9 years ago)
- Location:
- recipepress-reloaded/trunk
- Files:
-
- 6 edited
-
admin/class-rpr-admin-generalmeta.php (modified) (1 diff)
-
admin/class-rpr-admin.php (modified) (2 diffs)
-
public/class-rpr-recipeposttype.php (modified) (1 diff)
-
public/rpr_template_tags.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
recipe-press-reloaded.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recipepress-reloaded/trunk/admin/class-rpr-admin-generalmeta.php
r1624084 r1671554 188 188 $recipe->post_excerpt = $data['rpr_recipe_description']; 189 189 wp_update_post($recipe); 190 //die; 190 191 } 191 192 } -
recipepress-reloaded/trunk/admin/class-rpr-admin.php
r1624084 r1671554 231 231 /** 232 232 * This is done for testing! REMOVE WHEN DONE! 233 var_dump( $_POST); 233 */ 234 //var_dump( $_POST); 234 235 //die; 235 */ 236 //var_dump( $recipe ); 237 //die; 236 238 if( $recipe !== NULL && $recipe->post_type == 'rpr_recipe' ) { 237 239 $errors = false; … … 280 282 $this->nutrition->save_nutritionalmeta($recipe_id, $data, $recipe); 281 283 } 282 if( AdminPageFramework::getOption( 'rpr_options', array( 'metadata', 'use_source') , false ) ) {284 if( AdminPageFramework::getOption( 'rpr_options', array( 'metadata', 'use_source') , false ) ) { 283 285 $this->source->save_sourcemeta($recipe_id, $data, $recipe); 284 286 } -
recipepress-reloaded/trunk/public/class-rpr-recipeposttype.php
r1624084 r1671554 86 86 'plugin_listing_table_title_cell_link' => __( 'RPR recipe post type', 'recipepress-reloaded' ), // (framework specific key). [3.0.6+] 87 87 ), 88 'supports' => array( 'title', 'comments', 'thumbnail', 'excerpt', 'featured', 'author' , 'revisions'),88 'supports' => array( 'title', 'comments', 'thumbnail', 'excerpt', 'featured', 'author' ), 89 89 //'supports' => array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ), 90 90 'public' => true, -
recipepress-reloaded/trunk/public/rpr_template_tags.php
r1645170 r1671554 159 159 } 160 160 $prefix = '<i class="fa ' . $icon_class . '" title=' . esc_html( $tax->labels->name ) . '></i> '; 161 } elseif( $label ) {161 } elseif( $label && $tax ) { 162 162 $prefix = $tax->labels->name . ': '; 163 163 } else { … … 725 725 */ 726 726 $i =0; 727 foreach ( $ingredients as $ingredient ){ 728 /** 729 * Check if the ingredient is a grouptitle 730 */ 731 if( isset( $ingredient['grouptitle'] ) ){ 732 733 /** 734 * Render the grouptitle 735 */ 736 $out .= rpr_render_ingredient_grouptitle( $ingredient ); 737 } else { 738 /** 739 * Start the list on the first item 740 */ 741 if( $i == 0 ) { 742 //if( isset( $ingredient['sort'] ) && $ingredient['sort'] == 1 ){ 743 $out .= '<ul class="rpr-ingredient-list" >'; 744 } 745 /** 746 * Render the ingredient line 747 */ 748 $out .= rpr_render_ingredient_line( $ingredient ); 749 /** 750 * Close the list on the last item 751 */ 752 if( isset( $ingredient['sort'] ) && $ingredient['sort'] == count( $ingredients ) ){ 753 $out .= '</ul>'; 754 } 755 } 756 $i++; 757 } 727 if( is_array( $ingredients ) ){ 728 foreach ( $ingredients as $ingredient ){ 729 /** 730 * Check if the ingredient is a grouptitle 731 */ 732 if( isset( $ingredient['grouptitle'] ) ){ 733 734 /** 735 * Render the grouptitle 736 */ 737 $out .= rpr_render_ingredient_grouptitle( $ingredient ); 738 } else { 739 /** 740 * Start the list on the first item 741 */ 742 if( $i == 0 ) { 743 //if( isset( $ingredient['sort'] ) && $ingredient['sort'] == 1 ){ 744 $out .= '<ul class="rpr-ingredient-list" >'; 745 } 746 /** 747 * Render the ingredient line 748 */ 749 $out .= rpr_render_ingredient_line( $ingredient ); 750 /** 751 * Close the list on the last item 752 */ 753 if( isset( $ingredient['sort'] ) && $ingredient['sort'] == count( $ingredients ) ){ 754 $out .= '</ul>'; 755 } 756 } 757 $i++; 758 } 759 } 758 760 /** 759 761 * Close the list on the last item … … 1094 1096 * Loop over all the ingredients 1095 1097 */ 1096 $i =0; 1097 foreach ( $instructions as $instruction ){ 1098 /** 1099 * Check if the ingredient is a grouptitle 1100 */ 1101 if( isset( $instruction['grouptitle'] ) ){ 1102 /** 1103 * Render the grouptitle 1104 */ 1105 $out .= rpr_render_instruction_grouptitle( $instruction ); 1106 } else { 1107 1108 if( $i == 0 ) { 1109 //isset( $instruction['sort'] ) && $instruction['sort'] == 0 ){ 1110 /** 1111 * Start the list on the first item 1112 */ 1113 $out .= '<ol class="rpr-instruction-list" >'; 1114 } 1115 /** 1116 * Render the instrcution block 1117 */ 1118 $out .= rpr_render_instruction_block( $instruction ); 1119 } 1120 $i++; 1121 } 1098 if( is_array( $instructions ) ){ 1099 $i =0; 1100 foreach ( $instructions as $instruction ){ 1101 /** 1102 * Check if the ingredient is a grouptitle 1103 */ 1104 if( isset( $instruction['grouptitle'] ) ){ 1105 /** 1106 * Render the grouptitle 1107 */ 1108 $out .= rpr_render_instruction_grouptitle( $instruction ); 1109 } else { 1110 1111 if( $i == 0 ) { 1112 //isset( $instruction['sort'] ) && $instruction['sort'] == 0 ){ 1113 /** 1114 * Start the list on the first item 1115 */ 1116 $out .= '<ol class="rpr-instruction-list" >'; 1117 } 1118 /** 1119 * Render the instrcution block 1120 */ 1121 $out .= rpr_render_instruction_block( $instruction ); 1122 } 1123 $i++; 1124 } 1125 } 1122 1126 /** 1123 1127 * Close the list on the last item -
recipepress-reloaded/trunk/readme.txt
r1645170 r1671554 3 3 Tags: recipe, recipes, cooking, baking, food, food blog, recipe sharing, 4 4 Requires at least: 4.0 5 Tested up to: 4. 76 Stable tag: 0.9. 15 Tested up to: 4.8 6 Stable tag: 0.9.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 Donate link: https://paypal.me/dasmaeh 10 10 11 The swiss army knife for your food blog. A tool to add nicely and seo friendly formatted recipes to your blog and to manage your recipe collection. 11 The swiss army knife for your food blog. A tool to add nicely and seo friendly formatted recipes to your blog and to manage your recipe collection. 12 12 13 13 14 == Description == … … 70 71 == Changelog == 71 72 73 = 0.9.2 = 74 * Fixing a bug while saving recipes 75 72 76 = 0.9.1 = 73 77 * Fixing several display bugs such as double numerated items, double post images or hidden elements at the backend … … 101 105 102 106 == Upgrade Notice == 107 = 0.9.2 = 108 0.9.2 Bugfix release: Fixing a bug while saving recipes the first time 109 103 110 = 0.9.1 = 104 111 0.9.1 Bugfix release: Fixing several display bugs. | 0.9.0 New printing system, enhanced compatibilyt for multisite, ... -
recipepress-reloaded/trunk/recipe-press-reloaded.php
r1645170 r1671554 17 17 * Plugin URI: http://tech.cbjck.de/wp-plugins/rpr/ 18 18 * Description: The swiss army knife for your food blog. A tool not only to add nicely and seo friendly formatted recipes to your posts. But also to manage present your recipe collection. 19 * Version: 0.9. 119 * Version: 0.9.2 20 20 * Author: Jan Köster 21 21 * Author URI: http://tech.cbjck.de/author/jan … … 34 34 * Define constants 35 35 */ 36 const RPR_VERSION = '0.9. 1';36 const RPR_VERSION = '0.9.2'; 37 37 const RPR_DBVER = ''; 38 38
Note: See TracChangeset
for help on using the changeset viewer.