Version Description
- Feature: Filter recipes on manage page by ingredients and tags
- Feature: Change comment rating stars color in the settings
- Improvement: Mobile template of Tastefully Simple
- Fix: Problem with unwanted redirections by the Redirection plugin
- Fix: Problem with unwanted redirections by the Yoast SEO Premium plugin
- Fix: Prevent warnings on settings page
Download this release
Release Info
Developer | BrechtVds |
Plugin | WP Recipe Maker |
Version | 1.13.0 |
Comparing to | |
See all releases |
Code changes from version 1.12.0 to 1.13.0
- assets/css/admin/manage.min.css +1 -1
- assets/css/admin/manage.scss +10 -0
- assets/js/admin/manage.js +42 -0
- assets/js/public/comment-rating.js +3 -1
- includes/admin/class-wprm-migrations.php +1 -1
- includes/admin/class-wprm-recipe-saver.php +13 -2
- includes/admin/import/class-wprm-import-recipecard.php +1 -1
- includes/admin/manage/class-wprm-manage-ingredients.php +6 -1
- includes/admin/manage/class-wprm-manage-recipes.php +24 -1
- includes/admin/manage/class-wprm-manage-taxonomies.php +6 -1
- includes/class-wp-recipe-maker.php +1 -1
- includes/public/class-wprm-settings.php +4 -1
- includes/public/class-wprm-taxonomies.php +16 -2
- includes/public/class-wprm-template-manager.php +5 -0
- languages/wp-recipe-maker-es_ES.mo +0 -0
- languages/wp-recipe-maker-es_ES.po +12 -12
- readme.txt +17 -0
- templates/admin/manage/recipes.php +22 -0
- templates/admin/menu/faq/whats_new.php +10 -0
- templates/admin/settings/appearance.php +8 -0
- templates/public/comment-rating-form.php +1 -1
- templates/recipe/tastefully-simple/tastefully-simple.min.css +1 -1
- templates/recipe/tastefully-simple/tastefully-simple.scss +4 -0
- wp-recipe-maker.php +1 -1
assets/css/admin/manage.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wprm-manage .wprm-manage-datatable{display:none}.wprm-manage .wprm-manage-datatable .wprm-icon{cursor:pointer;color:#444}.wprm-manage .dataTables_wrapper
|
1 |
+
.wprm-manage .dataTables_wrapper,.wprm-manage .wprm-manage-recipes-filters{margin-top:20px}.wprm-manage .wprm-manage-recipes-filters .select2_wprm-container,.wprm-manage .wprm-manage-recipes-filters .wprm-manage-recipes-filter{margin-left:5px}.wprm-manage .wprm-manage-datatable{display:none}.wprm-manage .wprm-manage-datatable .wprm-icon{cursor:pointer;color:#444}.wprm-manage .dataTables_wrapper .wprm-manage-datatable{display:table}.wprm-manage-custom-taxonomies-actions-tooltip,.wprm-manage-ingredients-actions-tooltip,.wprm-manage-recipes-actions-tooltip,.wprm-manage-taxonomies-actions-tooltip{text-align:right;min-width:250px;min-height:70px;font-size:14px}.wprm-manage-custom-taxonomies-actions-tooltip .tooltip-header,.wprm-manage-ingredients-actions-tooltip .tooltip-header,.wprm-manage-recipes-actions-tooltip .tooltip-header,.wprm-manage-taxonomies-actions-tooltip .tooltip-header{margin-bottom:5px;font-weight:700}.wprm-manage-custom-taxonomies-actions-tooltip a,.wprm-manage-ingredients-actions-tooltip a,.wprm-manage-recipes-actions-tooltip a,.wprm-manage-taxonomies-actions-tooltip a{color:#fff;display:block;text-decoration:none}.wprm-manage-custom-taxonomies-actions-tooltip a:hover,.wprm-manage-ingredients-actions-tooltip a:hover,.wprm-manage-recipes-actions-tooltip a:hover,.wprm-manage-taxonomies-actions-tooltip a:hover{text-decoration:underline}
|
assets/css/admin/manage.scss
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
.wprm-manage {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
.wprm-manage-datatable {
|
3 |
display: none;
|
4 |
|
1 |
.wprm-manage {
|
2 |
+
|
3 |
+
.wprm-manage-recipes-filters {
|
4 |
+
margin-top: 20px;
|
5 |
+
|
6 |
+
.wprm-manage-recipes-filter,
|
7 |
+
.select2_wprm-container {
|
8 |
+
margin-left: 5px;
|
9 |
+
}
|
10 |
+
}
|
11 |
+
|
12 |
.wprm-manage-datatable {
|
13 |
display: none;
|
14 |
|
assets/js/admin/manage.js
CHANGED
@@ -38,6 +38,18 @@ wprm_admin.delete_recipe = function(recipe_id) {
|
|
38 |
});
|
39 |
};
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
jQuery(document).ready(function($) {
|
42 |
// Get ID of datatable that's active on this page
|
43 |
var wprm_active_datatable = '';
|
@@ -45,6 +57,18 @@ jQuery(document).ready(function($) {
|
|
45 |
wprm_active_datatable = jQuery(this).attr('id');
|
46 |
});
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
// Init datatable
|
49 |
$.fn.dataTable.ext.errMode = 'throw';
|
50 |
|
@@ -59,6 +83,24 @@ jQuery(document).ready(function($) {
|
|
59 |
d.action = 'wprm_manage_datatable';
|
60 |
d.security = wprm_manage.nonce;
|
61 |
d.table = wprm_active_datatable;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
},
|
64 |
drawCallback: function() {
|
38 |
});
|
39 |
};
|
40 |
|
41 |
+
// Source: http://stackoverflow.com/questions/647259/javascript-query-string
|
42 |
+
wprm_admin.get_query_args = function() {
|
43 |
+
var result = {}, queryString = location.search.slice(1),
|
44 |
+
re = /([^&=]+)=([^&]*)/g, m;
|
45 |
+
|
46 |
+
while (m = re.exec(queryString)) {
|
47 |
+
result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
|
48 |
+
}
|
49 |
+
|
50 |
+
return result;
|
51 |
+
}
|
52 |
+
|
53 |
jQuery(document).ready(function($) {
|
54 |
// Get ID of datatable that's active on this page
|
55 |
var wprm_active_datatable = '';
|
57 |
wprm_active_datatable = jQuery(this).attr('id');
|
58 |
});
|
59 |
|
60 |
+
// Datatable filters.
|
61 |
+
var args = wprm_admin.get_query_args();
|
62 |
+
jQuery('.wprm-manage-recipes-filter').on('change', function() {
|
63 |
+
wprm_datatable.search('').draw();
|
64 |
+
}).each(function() {
|
65 |
+
var taxonomy = jQuery(this).data('taxonomy');
|
66 |
+
|
67 |
+
if(args.hasOwnProperty(taxonomy)) {
|
68 |
+
jQuery(this).val(args[taxonomy]);
|
69 |
+
}
|
70 |
+
}).select2_wprm();
|
71 |
+
|
72 |
// Init datatable
|
73 |
$.fn.dataTable.ext.errMode = 'throw';
|
74 |
|
83 |
d.action = 'wprm_manage_datatable';
|
84 |
d.security = wprm_manage.nonce;
|
85 |
d.table = wprm_active_datatable;
|
86 |
+
|
87 |
+
// Check for advanced search filters.
|
88 |
+
var search_filters = jQuery('.wprm-manage-recipes-filter');
|
89 |
+
|
90 |
+
if(search_filters.length > 0) {
|
91 |
+
var search = jQuery('#wprm-manage-recipes_wrapper').find('input[type="search"]').val();
|
92 |
+
|
93 |
+
search_filters.each(function() {
|
94 |
+
var taxonomy = jQuery(this).data('taxonomy');
|
95 |
+
var value = parseInt(jQuery(this).val());
|
96 |
+
|
97 |
+
if(value > 0) {
|
98 |
+
search += '{{' + taxonomy + '=' + value +'}}';
|
99 |
+
}
|
100 |
+
});
|
101 |
+
|
102 |
+
d.search.value = search;
|
103 |
+
}
|
104 |
}
|
105 |
},
|
106 |
drawCallback: function() {
|
assets/js/public/comment-rating.js
CHANGED
@@ -4,9 +4,11 @@ jQuery(document).ready(function($) {
|
|
4 |
if (jQuery('.wprm-recipe-container').length > 0 || jQuery('body.wp-admin').length > 0) {
|
5 |
jQuery('.comment-form-wprm-rating').show();
|
6 |
|
|
|
|
|
7 |
jQuery(document).on('mouseenter', '.comment-form-wprm-rating .wprm-rating-star', function() {
|
8 |
jQuery(this).prevAll().andSelf().each(function() {
|
9 |
-
jQuery(this).find('polygon').css('fill',
|
10 |
});
|
11 |
jQuery(this).nextAll().each(function() {
|
12 |
jQuery(this).find('polygon').css('fill', 'none');
|
4 |
if (jQuery('.wprm-recipe-container').length > 0 || jQuery('body.wp-admin').length > 0) {
|
5 |
jQuery('.comment-form-wprm-rating').show();
|
6 |
|
7 |
+
var color = jQuery('.comment-form-wprm-rating').data('color');
|
8 |
+
|
9 |
jQuery(document).on('mouseenter', '.comment-form-wprm-rating .wprm-rating-star', function() {
|
10 |
jQuery(this).prevAll().andSelf().each(function() {
|
11 |
+
jQuery(this).find('polygon').css('fill', color);
|
12 |
});
|
13 |
jQuery(this).nextAll().each(function() {
|
14 |
jQuery(this).find('polygon').css('fill', 'none');
|
includes/admin/class-wprm-migrations.php
CHANGED
@@ -69,7 +69,7 @@ class WPRM_Migrations {
|
|
69 |
foreach ( self::$notices as $notice ) {
|
70 |
echo '<div class="notice notice-warning is-dismissible">';
|
71 |
echo '<p><strong>WP Recipe Maker</strong><br/>';
|
72 |
-
echo
|
73 |
echo '</p>';
|
74 |
echo '</div>';
|
75 |
}
|
69 |
foreach ( self::$notices as $notice ) {
|
70 |
echo '<div class="notice notice-warning is-dismissible">';
|
71 |
echo '<p><strong>WP Recipe Maker</strong><br/>';
|
72 |
+
echo wp_kses_post( $notice );
|
73 |
echo '</p>';
|
74 |
echo '</div>';
|
75 |
}
|
includes/admin/class-wprm-recipe-saver.php
CHANGED
@@ -147,7 +147,7 @@ class WPRM_Recipe_Saver {
|
|
147 |
*
|
148 |
* @since 1.0.0
|
149 |
* @param int $id Post ID being saved.
|
150 |
-
* @param
|
151 |
*/
|
152 |
public static function update_post( $id, $post ) {
|
153 |
// Use parent post if we're currently updating a revision.
|
@@ -158,12 +158,23 @@ class WPRM_Recipe_Saver {
|
|
158 |
|
159 |
$recipe_ids = WPRM_Recipe_Manager::get_recipe_ids_from_content( $post->post_content );
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
foreach ( $recipe_ids as $recipe_id ) {
|
162 |
$recipe = array(
|
163 |
'ID' => $recipe_id,
|
164 |
'post_status' => $post->post_status,
|
165 |
'post_author' => $post->post_author,
|
166 |
-
'post_date'
|
167 |
'post_modified' => $post->post_modified,
|
168 |
);
|
169 |
wp_update_post( $recipe );
|
147 |
*
|
148 |
* @since 1.0.0
|
149 |
* @param int $id Post ID being saved.
|
150 |
+
* @param object $post Post being saved.
|
151 |
*/
|
152 |
public static function update_post( $id, $post ) {
|
153 |
// Use parent post if we're currently updating a revision.
|
158 |
|
159 |
$recipe_ids = WPRM_Recipe_Manager::get_recipe_ids_from_content( $post->post_content );
|
160 |
|
161 |
+
// Prevent issue with automatically created redirections.
|
162 |
+
if ( count( $recipe_ids ) > 0 ) {
|
163 |
+
// Redirection plugin.
|
164 |
+
if ( isset( $_POST['redirection_slug'] ) ) { // Input var okay.
|
165 |
+
$_POST['redirection_slug'] = '/';
|
166 |
+
}
|
167 |
+
|
168 |
+
// Yoast SEO Premium plugin.
|
169 |
+
add_filter( 'wpseo_premium_post_redirect_slug_change', '__return_true' );
|
170 |
+
}
|
171 |
+
|
172 |
foreach ( $recipe_ids as $recipe_id ) {
|
173 |
$recipe = array(
|
174 |
'ID' => $recipe_id,
|
175 |
'post_status' => $post->post_status,
|
176 |
'post_author' => $post->post_author,
|
177 |
+
'post_date' => $post->post_date,
|
178 |
'post_modified' => $post->post_modified,
|
179 |
);
|
180 |
wp_update_post( $recipe );
|
includes/admin/import/class-wprm-import-recipecard.php
CHANGED
@@ -169,7 +169,7 @@ class WPRM_Import_Recipecard extends WPRM_Import {
|
|
169 |
|
170 |
foreach ( $rc_instruction_group->lines as $rc_instruction ) {
|
171 |
$group['instructions'][] = array(
|
172 |
-
'
|
173 |
);
|
174 |
}
|
175 |
$instructions[] = $group;
|
169 |
|
170 |
foreach ( $rc_instruction_group->lines as $rc_instruction ) {
|
171 |
$group['instructions'][] = array(
|
172 |
+
'text' => $rc_instruction,
|
173 |
);
|
174 |
}
|
175 |
$instructions[] = $group;
|
includes/admin/manage/class-wprm-manage-ingredients.php
CHANGED
@@ -122,10 +122,15 @@ class WPRM_Manage_Ingredients {
|
|
122 |
|
123 |
foreach ( $terms as $term ) {
|
124 |
$link = get_term_meta( $term->term_id, 'wprmp_ingredient_link', true );
|
|
|
|
|
|
|
|
|
|
|
125 |
$data[] = array(
|
126 |
$term->term_id,
|
127 |
'<span id="wprm-manage-ingredients-name-' . esc_attr( $term->term_id ) . '">' . $term->name . '</span>',
|
128 |
-
$term->count,
|
129 |
'<span id="wprm-manage-ingredients-link-' . esc_attr( $term->term_id ) . '"><a href="' . esc_url( $link ) . '" target="_blank">' . esc_url( $link ) . '</a></span>',
|
130 |
'<span class="dashicons dashicons-admin-tools wprm-icon wprm-manage-ingredients-actions" data-id="' . esc_attr( $term->term_id ) . '" data-count="' . esc_attr( $term->count ) . '"></span>',
|
131 |
);
|
122 |
|
123 |
foreach ( $terms as $term ) {
|
124 |
$link = get_term_meta( $term->term_id, 'wprmp_ingredient_link', true );
|
125 |
+
$recipes_url = add_query_arg( array(
|
126 |
+
'sub' => 'recipes',
|
127 |
+
'wprm_ingredient' => $term->term_id,
|
128 |
+
), admin_url( 'admin.php?page=wprecipemaker' ) );
|
129 |
+
|
130 |
$data[] = array(
|
131 |
$term->term_id,
|
132 |
'<span id="wprm-manage-ingredients-name-' . esc_attr( $term->term_id ) . '">' . $term->name . '</span>',
|
133 |
+
'<a href="' . $recipes_url . '">' . $term->count . '</a>',
|
134 |
'<span id="wprm-manage-ingredients-link-' . esc_attr( $term->term_id ) . '"><a href="' . esc_url( $link ) . '" target="_blank">' . esc_url( $link ) . '</a></span>',
|
135 |
'<span class="dashicons dashicons-admin-tools wprm-icon wprm-manage-ingredients-actions" data-id="' . esc_attr( $term->term_id ) . '" data-count="' . esc_attr( $term->count ) . '"></span>',
|
136 |
);
|
includes/admin/manage/class-wprm-manage-recipes.php
CHANGED
@@ -43,6 +43,28 @@ class WPRM_Manage_Recipes {
|
|
43 |
);
|
44 |
$orderby = isset( $orderby_options[ $datatable['orderby'] ] ) ? $orderby_options[ $datatable['orderby'] ] : $orderby_options[0];
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
$args = array(
|
47 |
'post_type' => WPRM_POST_TYPE,
|
48 |
'post_status' => 'any',
|
@@ -50,7 +72,8 @@ class WPRM_Manage_Recipes {
|
|
50 |
'order' => $datatable['order'],
|
51 |
'posts_per_page' => $datatable['length'],
|
52 |
'offset' => $datatable['start'],
|
53 |
-
'
|
|
|
54 |
);
|
55 |
|
56 |
$query = new WP_Query( $args );
|
43 |
);
|
44 |
$orderby = isset( $orderby_options[ $datatable['orderby'] ] ) ? $orderby_options[ $datatable['orderby'] ] : $orderby_options[0];
|
45 |
|
46 |
+
// Advanced Search.
|
47 |
+
$search = $datatable['search'];
|
48 |
+
$tax_query = array();
|
49 |
+
|
50 |
+
preg_match_all( '/{{(.+?)=(\d*)}}/', $datatable['search'], $search_taxonomies );
|
51 |
+
$search_taxonomies_length = count( $search_taxonomies[0] );
|
52 |
+
if ( $search_taxonomies_length > 0 ) {
|
53 |
+
for ( $i = 0; $i < $search_taxonomies_length; $i++ ) {
|
54 |
+
// Remove advanced search.
|
55 |
+
$search = str_replace( $search_taxonomies[0][ $i ], '', $search );
|
56 |
+
|
57 |
+
// Add taxonomy query.
|
58 |
+
$tax_query[] = array(
|
59 |
+
'taxonomy' => $search_taxonomies[1][ $i ],
|
60 |
+
'field' => 'term_id',
|
61 |
+
'terms' => intval( $search_taxonomies[2][ $i ] ),
|
62 |
+
);
|
63 |
+
}
|
64 |
+
|
65 |
+
$search = trim( $search );
|
66 |
+
}
|
67 |
+
|
68 |
$args = array(
|
69 |
'post_type' => WPRM_POST_TYPE,
|
70 |
'post_status' => 'any',
|
72 |
'order' => $datatable['order'],
|
73 |
'posts_per_page' => $datatable['length'],
|
74 |
'offset' => $datatable['start'],
|
75 |
+
'tax_query' => $tax_query,
|
76 |
+
's' => $search,
|
77 |
);
|
78 |
|
79 |
$query = new WP_Query( $args );
|
includes/admin/manage/class-wprm-manage-taxonomies.php
CHANGED
@@ -74,10 +74,15 @@ class WPRM_Manage_Taxonomies {
|
|
74 |
$terms = get_terms( $args );
|
75 |
|
76 |
foreach ( $terms as $term ) {
|
|
|
|
|
|
|
|
|
|
|
77 |
$data[] = array(
|
78 |
$term->term_id,
|
79 |
'<span id="wprm-manage-taxonomies-name-' . esc_attr( $term->term_id ) . '">' . $term->name . '</span>',
|
80 |
-
$term->count,
|
81 |
'<span class="dashicons dashicons-admin-tools wprm-icon wprm-manage-taxonomies-actions" data-id="' . esc_attr( $term->term_id ) . '" data-count="' . esc_attr( $term->count ) . '"></span>',
|
82 |
);
|
83 |
}
|
74 |
$terms = get_terms( $args );
|
75 |
|
76 |
foreach ( $terms as $term ) {
|
77 |
+
$recipes_url = add_query_arg( array(
|
78 |
+
'sub' => 'recipes',
|
79 |
+
$taxonomy => $term->term_id,
|
80 |
+
), admin_url( 'admin.php?page=wprecipemaker' ) );
|
81 |
+
|
82 |
$data[] = array(
|
83 |
$term->term_id,
|
84 |
'<span id="wprm-manage-taxonomies-name-' . esc_attr( $term->term_id ) . '">' . $term->name . '</span>',
|
85 |
+
'<a href="' . $recipes_url . '">' . $term->count . '</a>',
|
86 |
'<span class="dashicons dashicons-admin-tools wprm-icon wprm-manage-taxonomies-actions" data-id="' . esc_attr( $term->term_id ) . '" data-count="' . esc_attr( $term->count ) . '"></span>',
|
87 |
);
|
88 |
}
|
includes/class-wp-recipe-maker.php
CHANGED
@@ -31,7 +31,7 @@ class WP_Recipe_Maker {
|
|
31 |
* @since 1.0.0
|
32 |
*/
|
33 |
private function define_constants() {
|
34 |
-
define( 'WPRM_VERSION', '1.
|
35 |
define( 'WPRM_PREMIUM_VERSION_REQUIRED', '1.1.1' );
|
36 |
define( 'WPRM_POST_TYPE', 'wprm_recipe' );
|
37 |
define( 'WPRM_DIR', plugin_dir_path( dirname( __FILE__ ) ) );
|
31 |
* @since 1.0.0
|
32 |
*/
|
33 |
private function define_constants() {
|
34 |
+
define( 'WPRM_VERSION', '1.13.0' );
|
35 |
define( 'WPRM_PREMIUM_VERSION_REQUIRED', '1.1.1' );
|
36 |
define( 'WPRM_POST_TYPE', 'wprm_recipe' );
|
37 |
define( 'WPRM_DIR', plugin_dir_path( dirname( __FILE__ ) ) );
|
includes/public/class-wprm-settings.php
CHANGED
@@ -45,6 +45,7 @@ class WPRM_Settings {
|
|
45 |
'template_color_link' => '#000000',
|
46 |
'template_color_header' => '#000000',
|
47 |
'template_color_icon' => '#343434',
|
|
|
48 |
'template_color_accent' => '#2c3e50',
|
49 |
'template_color_accent_text' => '#ffffff',
|
50 |
'template_color_accent2' => '#3498db',
|
@@ -216,6 +217,7 @@ class WPRM_Settings {
|
|
216 |
$template_color_link = isset( $_POST['template_color_link'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_link'] ) ) : ''; // Input var okay.
|
217 |
$template_color_header = isset( $_POST['template_color_header'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_header'] ) ) : ''; // Input var okay.
|
218 |
$template_color_icon = isset( $_POST['template_color_icon'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_icon'] ) ) : ''; // Input var okay.
|
|
|
219 |
$template_color_accent = isset( $_POST['template_color_accent'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent'] ) ) : ''; // Input var okay.
|
220 |
$template_color_accent_text = isset( $_POST['template_color_accent_text'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent_text'] ) ) : ''; // Input var okay.
|
221 |
$template_color_accent2 = isset( $_POST['template_color_accent2'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent2'] ) ) : ''; // Input var okay.
|
@@ -223,7 +225,7 @@ class WPRM_Settings {
|
|
223 |
|
224 |
$default_recipe_template = isset( $_POST['default_recipe_template'] ) ? sanitize_text_field( wp_unslash( $_POST['default_recipe_template'] ) ) : ''; // Input var okay.
|
225 |
$default_print_template = isset( $_POST['default_print_template'] ) ? sanitize_text_field( wp_unslash( $_POST['default_print_template'] ) ) : ''; // Input var okay.
|
226 |
-
$print_credit = isset( $_POST['print_credit'] ) ?
|
227 |
|
228 |
$settings = array();
|
229 |
|
@@ -240,6 +242,7 @@ class WPRM_Settings {
|
|
240 |
if ( $template_color_link ) { $settings['template_color_link'] = $template_color_link; }
|
241 |
if ( $template_color_header ) { $settings['template_color_header'] = $template_color_header; }
|
242 |
if ( $template_color_icon ) { $settings['template_color_icon'] = $template_color_icon; }
|
|
|
243 |
if ( $template_color_accent ) { $settings['template_color_accent'] = $template_color_accent; }
|
244 |
if ( $template_color_accent_text ) { $settings['template_color_accent_text'] = $template_color_accent_text; }
|
245 |
if ( $template_color_accent2 ) { $settings['template_color_accent2'] = $template_color_accent2; }
|
45 |
'template_color_link' => '#000000',
|
46 |
'template_color_header' => '#000000',
|
47 |
'template_color_icon' => '#343434',
|
48 |
+
'template_color_comment_rating' => '#343434',
|
49 |
'template_color_accent' => '#2c3e50',
|
50 |
'template_color_accent_text' => '#ffffff',
|
51 |
'template_color_accent2' => '#3498db',
|
217 |
$template_color_link = isset( $_POST['template_color_link'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_link'] ) ) : ''; // Input var okay.
|
218 |
$template_color_header = isset( $_POST['template_color_header'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_header'] ) ) : ''; // Input var okay.
|
219 |
$template_color_icon = isset( $_POST['template_color_icon'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_icon'] ) ) : ''; // Input var okay.
|
220 |
+
$template_color_comment_rating = isset( $_POST['template_color_comment_rating'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_comment_rating'] ) ) : ''; // Input var okay.
|
221 |
$template_color_accent = isset( $_POST['template_color_accent'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent'] ) ) : ''; // Input var okay.
|
222 |
$template_color_accent_text = isset( $_POST['template_color_accent_text'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent_text'] ) ) : ''; // Input var okay.
|
223 |
$template_color_accent2 = isset( $_POST['template_color_accent2'] ) ? sanitize_text_field( wp_unslash( $_POST['template_color_accent2'] ) ) : ''; // Input var okay.
|
225 |
|
226 |
$default_recipe_template = isset( $_POST['default_recipe_template'] ) ? sanitize_text_field( wp_unslash( $_POST['default_recipe_template'] ) ) : ''; // Input var okay.
|
227 |
$default_print_template = isset( $_POST['default_print_template'] ) ? sanitize_text_field( wp_unslash( $_POST['default_print_template'] ) ) : ''; // Input var okay.
|
228 |
+
$print_credit = isset( $_POST['print_credit'] ) ? wp_kses_post( wp_unslash( $_POST['print_credit'] ) ) : ''; // Input var okay.
|
229 |
|
230 |
$settings = array();
|
231 |
|
242 |
if ( $template_color_link ) { $settings['template_color_link'] = $template_color_link; }
|
243 |
if ( $template_color_header ) { $settings['template_color_header'] = $template_color_header; }
|
244 |
if ( $template_color_icon ) { $settings['template_color_icon'] = $template_color_icon; }
|
245 |
+
if ( $template_color_comment_rating ) { $settings['template_color_comment_rating'] = $template_color_comment_rating; }
|
246 |
if ( $template_color_accent ) { $settings['template_color_accent'] = $template_color_accent; }
|
247 |
if ( $template_color_accent_text ) { $settings['template_color_accent_text'] = $template_color_accent_text; }
|
248 |
if ( $template_color_accent2 ) { $settings['template_color_accent2'] = $template_color_accent2; }
|
includes/public/class-wprm-taxonomies.php
CHANGED
@@ -79,14 +79,28 @@ class WPRM_Taxonomies {
|
|
79 |
* Get the recipe taxonomies.
|
80 |
*
|
81 |
* @since 1.10.0
|
|
|
82 |
*/
|
83 |
-
public static function get_taxonomies() {
|
84 |
$taxonomies = self::get_taxonomies_to_register();
|
85 |
-
|
|
|
|
|
86 |
|
87 |
return $taxonomies;
|
88 |
}
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
/**
|
91 |
* Insert default terms for recipe taxonomies.
|
92 |
*
|
79 |
* Get the recipe taxonomies.
|
80 |
*
|
81 |
* @since 1.10.0
|
82 |
+
* @param boolean $include_internal Wether to include taxonomies used internally.
|
83 |
*/
|
84 |
+
public static function get_taxonomies( $include_internal = false ) {
|
85 |
$taxonomies = self::get_taxonomies_to_register();
|
86 |
+
if ( ! $include_internal ) {
|
87 |
+
unset( $taxonomies['wprm_ingredient'] );
|
88 |
+
}
|
89 |
|
90 |
return $taxonomies;
|
91 |
}
|
92 |
|
93 |
+
/**
|
94 |
+
* Check if a recipe taxonomy exists.
|
95 |
+
*
|
96 |
+
* @since 1.13.0
|
97 |
+
* @param mixed $taxonomy Name of the taxonomy to check.
|
98 |
+
*/
|
99 |
+
public static function exists( $taxonomy ) {
|
100 |
+
$taxonomies = self::get_taxonomies_to_register();
|
101 |
+
return array_key_exists( $taxonomy, $taxonomies );
|
102 |
+
}
|
103 |
+
|
104 |
/**
|
105 |
* Insert default terms for recipe taxonomies.
|
106 |
*
|
includes/public/class-wprm-template-manager.php
CHANGED
@@ -76,6 +76,11 @@ class WPRM_Template_Manager {
|
|
76 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent { color: ' . WPRM_Settings::get( 'template_color_accent_text' ) . '; }';
|
77 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent2 { background-color: ' . WPRM_Settings::get( 'template_color_accent2' ) . '; }';
|
78 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent2 { color: ' . WPRM_Settings::get( 'template_color_accent2_text' ) . '; }';
|
|
|
|
|
|
|
|
|
|
|
79 |
$output .= '</style>';
|
80 |
|
81 |
echo $output;
|
76 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent { color: ' . WPRM_Settings::get( 'template_color_accent_text' ) . '; }';
|
77 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent2 { background-color: ' . WPRM_Settings::get( 'template_color_accent2' ) . '; }';
|
78 |
$output .= $selector . ' .wprm-recipe .wprm-color-accent2 { color: ' . WPRM_Settings::get( 'template_color_accent2_text' ) . '; }';
|
79 |
+
|
80 |
+
// Comment ratings.
|
81 |
+
$output .= ' .wprm-comment-rating svg path, .comment-form-wprm-rating svg path { fill: ' . WPRM_Settings::get( 'template_color_comment_rating' ) . '; }';
|
82 |
+
$output .= ' .wprm-comment-rating svg polygon, .comment-form-wprm-rating svg polygon { stroke: ' . WPRM_Settings::get( 'template_color_comment_rating' ) . '; }';
|
83 |
+
|
84 |
$output .= '</style>';
|
85 |
|
86 |
echo $output;
|
languages/wp-recipe-maker-es_ES.mo
CHANGED
Binary file
|
languages/wp-recipe-maker-es_ES.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: WP Recipe Maker v1.11.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2017-01-14 13:51+0000\n"
|
6 |
-
"PO-Revision-Date: 2017-01-
|
7 |
"Last-Translator: Navarro (http://navarradas.com)\n"
|
8 |
"Language-Team: Spanish (Spain)\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -494,7 +494,7 @@ msgstr "Detalles de la Receta"
|
|
494 |
|
495 |
#: includes/admin/modal/class-wprm-modal.php:138
|
496 |
msgid "Ingredients & Instructions"
|
497 |
-
msgstr "Ingredientes
|
498 |
|
499 |
#: includes/admin/modal/class-wprm-modal.php:144
|
500 |
#: includes/public/class-wprm-template-helper.php:85
|
@@ -709,7 +709,7 @@ msgstr "Autor"
|
|
709 |
#: includes/public/class-wprm-template-helper.php:84
|
710 |
#: templates/admin/modal/tabs/import-text.php:52
|
711 |
msgid "Instructions"
|
712 |
-
msgstr "
|
713 |
|
714 |
#: includes/public/class-wprm-template-helper.php:152
|
715 |
msgid "d"
|
@@ -985,11 +985,11 @@ msgstr "Resumen"
|
|
985 |
|
986 |
#: templates/admin/modal/tabs/import-text.php:45
|
987 |
msgid "Check any ingredient groups in this list:"
|
988 |
-
msgstr "Échale un ojo a los ingredientes
|
989 |
|
990 |
#: templates/admin/modal/tabs/import-text.php:57
|
991 |
msgid "Check any instruction groups in this list:"
|
992 |
-
msgstr "Échale un ojo a
|
993 |
|
994 |
#: templates/admin/modal/tabs/import-text.php:64
|
995 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:22
|
@@ -1065,7 +1065,7 @@ msgstr "Unidad"
|
|
1065 |
|
1066 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:28
|
1067 |
msgid "Ingredient Group"
|
1068 |
-
msgstr "Ingrediente
|
1069 |
|
1070 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:35
|
1071 |
msgid "olive oil"
|
@@ -1081,23 +1081,23 @@ msgstr "Añadir ingrediente"
|
|
1081 |
|
1082 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:45
|
1083 |
msgid "Add Ingredient Group"
|
1084 |
-
msgstr "Añadir ingrediente
|
1085 |
|
1086 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:53
|
1087 |
msgid "Instruction"
|
1088 |
-
msgstr "
|
1089 |
|
1090 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:60
|
1091 |
msgid "Instruction Group"
|
1092 |
-
msgstr "
|
1093 |
|
1094 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:81
|
1095 |
msgid "Add Instruction"
|
1096 |
-
msgstr "Añadir
|
1097 |
|
1098 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:82
|
1099 |
msgid "Add Instruction Group"
|
1100 |
-
msgstr "Añadir
|
1101 |
|
1102 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:88
|
1103 |
msgid ""
|
@@ -1105,7 +1105,7 @@ msgid ""
|
|
1105 |
"ingredients/instructions without having to click the button."
|
1106 |
msgstr ""
|
1107 |
"Usa la tecla TAB para mover fácilmente de campo a capo y para añadir "
|
1108 |
-
"ingredientes/
|
1109 |
|
1110 |
#: templates/admin/modal/tabs/recipe-snippets-jump.php:15
|
1111 |
msgid ""
|
3 |
"Project-Id-Version: WP Recipe Maker v1.11.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2017-01-14 13:51+0000\n"
|
6 |
+
"PO-Revision-Date: 2017-01-29 10:30+0000\n"
|
7 |
"Last-Translator: Navarro (http://navarradas.com)\n"
|
8 |
"Language-Team: Spanish (Spain)\n"
|
9 |
"MIME-Version: 1.0\n"
|
494 |
|
495 |
#: includes/admin/modal/class-wprm-modal.php:138
|
496 |
msgid "Ingredients & Instructions"
|
497 |
+
msgstr "Ingredientes y Elaboración paso a paso"
|
498 |
|
499 |
#: includes/admin/modal/class-wprm-modal.php:144
|
500 |
#: includes/public/class-wprm-template-helper.php:85
|
709 |
#: includes/public/class-wprm-template-helper.php:84
|
710 |
#: templates/admin/modal/tabs/import-text.php:52
|
711 |
msgid "Instructions"
|
712 |
+
msgstr "Elaboración paso a paso"
|
713 |
|
714 |
#: includes/public/class-wprm-template-helper.php:152
|
715 |
msgid "d"
|
985 |
|
986 |
#: templates/admin/modal/tabs/import-text.php:45
|
987 |
msgid "Check any ingredient groups in this list:"
|
988 |
+
msgstr "Échale un ojo a los ingredientes compuestos de esta lista:"
|
989 |
|
990 |
#: templates/admin/modal/tabs/import-text.php:57
|
991 |
msgid "Check any instruction groups in this list:"
|
992 |
+
msgstr "Échale un ojo a los pasos para ingredientes compuestos de esta lista:"
|
993 |
|
994 |
#: templates/admin/modal/tabs/import-text.php:64
|
995 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:22
|
1065 |
|
1066 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:28
|
1067 |
msgid "Ingredient Group"
|
1068 |
+
msgstr "Ingrediente compuesto"
|
1069 |
|
1070 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:35
|
1071 |
msgid "olive oil"
|
1081 |
|
1082 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:45
|
1083 |
msgid "Add Ingredient Group"
|
1084 |
+
msgstr "Añadir ingrediente compuesto"
|
1085 |
|
1086 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:53
|
1087 |
msgid "Instruction"
|
1088 |
+
msgstr "Paso"
|
1089 |
|
1090 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:60
|
1091 |
msgid "Instruction Group"
|
1092 |
+
msgstr "Paso para ingrediente compuesto"
|
1093 |
|
1094 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:81
|
1095 |
msgid "Add Instruction"
|
1096 |
+
msgstr "Añadir paso"
|
1097 |
|
1098 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:82
|
1099 |
msgid "Add Instruction Group"
|
1100 |
+
msgstr "Añadir paso para ingrediente compuesto"
|
1101 |
|
1102 |
#: templates/admin/modal/tabs/recipe-ingredients-instructions.php:88
|
1103 |
msgid ""
|
1105 |
"ingredients/instructions without having to click the button."
|
1106 |
msgstr ""
|
1107 |
"Usa la tecla TAB para mover fácilmente de campo a capo y para añadir "
|
1108 |
+
"ingredientes/pasos sin tener que hacer clic en el botón."
|
1109 |
|
1110 |
#: templates/admin/modal/tabs/recipe-snippets-jump.php:15
|
1111 |
msgid ""
|
readme.txt
CHANGED
@@ -92,6 +92,17 @@ Yes! We pride ourselves on offering awesome support and almost always answer sup
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.12.0 =
|
96 |
* Feature: Print Credit message
|
97 |
* Feature: Add existing recipe through modal
|
@@ -219,6 +230,12 @@ Yes! We pride ourselves on offering awesome support and almost always answer sup
|
|
219 |
|
220 |
== Upgrade notice ==
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
= 1.12.0 =
|
223 |
New import and other features + some bug fixes
|
224 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.13.0 =
|
96 |
+
* Feature: Filter recipes on manage page by ingredients and tags
|
97 |
+
* Feature: Change comment rating stars color in the settings
|
98 |
+
* Improvement: Mobile template of Tastefully Simple
|
99 |
+
* Fix: Problem with unwanted redirections by the Redirection plugin
|
100 |
+
* Fix: Problem with unwanted redirections by the Yoast SEO Premium plugin
|
101 |
+
* Fix: Prevent warnings on settings page
|
102 |
+
|
103 |
+
= 1.12.1 =
|
104 |
+
* Fix: Recipe Card import of instructions
|
105 |
+
|
106 |
= 1.12.0 =
|
107 |
* Feature: Print Credit message
|
108 |
* Feature: Add existing recipe through modal
|
230 |
|
231 |
== Upgrade notice ==
|
232 |
|
233 |
+
= 1.13.0 =
|
234 |
+
Update to prevent warning notices on the settings page
|
235 |
+
|
236 |
+
= 1.12.1 =
|
237 |
+
Update if you want to use the Recipe Card import
|
238 |
+
|
239 |
= 1.12.0 =
|
240 |
New import and other features + some bug fixes
|
241 |
|
templates/admin/manage/recipes.php
CHANGED
@@ -10,6 +10,28 @@
|
|
10 |
*/
|
11 |
|
12 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
<table id="wprm-manage-recipes" class="wprm-manage-datatable" cellspacing="0" width="100%">
|
15 |
<thead>
|
10 |
*/
|
11 |
|
12 |
?>
|
13 |
+
<div class="wprm-manage-recipes-filters">
|
14 |
+
<?php
|
15 |
+
esc_html_e( 'Filter', 'wp-recipe-maker' );
|
16 |
+
$taxonomies = WPRM_Taxonomies::get_taxonomies( true );
|
17 |
+
|
18 |
+
foreach ( $taxonomies as $taxonomy => $labels ) {
|
19 |
+
$terms = get_terms(array(
|
20 |
+
'taxonomy' => $taxonomy,
|
21 |
+
'fields' => 'id=>name',
|
22 |
+
));
|
23 |
+
|
24 |
+
if ( count( $terms ) > 0 ) {
|
25 |
+
echo '<select id="wprm-manage-recipes-filter-' . esc_attr( $taxonomy ) . '" class="wprm-manage-recipes-filter" data-taxonomy="' . esc_attr( $taxonomy ) . '">';
|
26 |
+
echo '<option value="0">' . esc_html__( 'All', 'wp-recipe-maker' ) . ' ' . esc_html( $labels['name'] ) . '</option>';
|
27 |
+
foreach ( $terms as $term_id => $term_name ) {
|
28 |
+
echo '<option value="' . esc_attr( $term_id ) . '">' . esc_html( $term_name ) . '</option>';
|
29 |
+
}
|
30 |
+
echo '</select>';
|
31 |
+
}
|
32 |
+
}
|
33 |
+
?>
|
34 |
+
</div>
|
35 |
|
36 |
<table id="wprm-manage-recipes" class="wprm-manage-datatable" cellspacing="0" width="100%">
|
37 |
<thead>
|
templates/admin/menu/faq/whats_new.php
CHANGED
@@ -11,6 +11,16 @@
|
|
11 |
|
12 |
?>
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
<h3>2017-01-25 | WP Recipe Maker 1.12.0</h3>
|
15 |
<ul>
|
16 |
<li>Feature: Print Credit message</li>
|
11 |
|
12 |
?>
|
13 |
|
14 |
+
<h3>2017-01-31 | WP Recipe Maker 1.13.0</h3>
|
15 |
+
<ul>
|
16 |
+
<li>Feature: Filter recipes on manage page by ingredients and tags</li>
|
17 |
+
<li>Feature: Change comment rating stars color in the settings</li>
|
18 |
+
<li>Improvement: Mobile template of Tastefully Simple</li>
|
19 |
+
<li>Fix: Problem with unwanted redirections by the Redirection plugin</li>
|
20 |
+
<li>Fix: Problem with unwanted redirections by the Yoast SEO Premium plugin</li>
|
21 |
+
<li>Fix: Prevent warnings on settings page</li>
|
22 |
+
</ul>
|
23 |
+
|
24 |
<h3>2017-01-25 | WP Recipe Maker 1.12.0</h3>
|
25 |
<ul>
|
26 |
<li>Feature: Print Credit message</li>
|
templates/admin/settings/appearance.php
CHANGED
@@ -126,6 +126,14 @@
|
|
126 |
<input name="template_color_icon" type="text" id="template_color_icon" value="<?php echo esc_attr( WPRM_Settings::get( 'template_color_icon' ) ); ?>" data-default-color="<?php echo esc_attr( WPRM_Settings::get_default( 'template_color_icon' ) ); ?>" class="wprm-color">
|
127 |
</td>
|
128 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<tr>
|
130 |
<th scope="row">
|
131 |
<label for="template_color_accent"><?php esc_html_e( 'Accent Color', 'wp-recipe-maker' ); ?></label>
|
126 |
<input name="template_color_icon" type="text" id="template_color_icon" value="<?php echo esc_attr( WPRM_Settings::get( 'template_color_icon' ) ); ?>" data-default-color="<?php echo esc_attr( WPRM_Settings::get_default( 'template_color_icon' ) ); ?>" class="wprm-color">
|
127 |
</td>
|
128 |
</tr>
|
129 |
+
<tr>
|
130 |
+
<th scope="row">
|
131 |
+
<label for="template_color_comment_rating"><?php esc_html_e( 'Comment Rating Color', 'wp-recipe-maker' ); ?></label>
|
132 |
+
</th>
|
133 |
+
<td>
|
134 |
+
<input name="template_color_comment_rating" type="text" id="template_color_comment_rating" value="<?php echo esc_attr( WPRM_Settings::get( 'template_color_comment_rating' ) ); ?>" data-default-color="<?php echo esc_attr( WPRM_Settings::get_default( 'template_color_comment_rating' ) ); ?>" class="wprm-color">
|
135 |
+
</td>
|
136 |
+
</tr>
|
137 |
<tr>
|
138 |
<th scope="row">
|
139 |
<label for="template_color_accent"><?php esc_html_e( 'Accent Color', 'wp-recipe-maker' ); ?></label>
|
templates/public/comment-rating-form.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
*/
|
11 |
|
12 |
?>
|
13 |
-
<p class="comment-form-wprm-rating">
|
14 |
<label for="wprm-rating"><?php esc_html_e( 'Recipe Rating', 'wp-recipe-maker' ); ?></label>
|
15 |
<span class="wprm-rating-stars">
|
16 |
<?php
|
10 |
*/
|
11 |
|
12 |
?>
|
13 |
+
<p class="comment-form-wprm-rating" data-color="<?php echo esc_attr( WPRM_Settings::get( 'template_color_comment_rating' ) ); ?>">
|
14 |
<label for="wprm-rating"><?php esc_html_e( 'Recipe Rating', 'wp-recipe-maker' ); ?></label>
|
15 |
<span class="wprm-rating-stars">
|
16 |
<?php
|
templates/recipe/tastefully-simple/tastefully-simple.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wprm-print .wprm-recipe-tastefully-simple,.wprm-recipe-container .wprm-recipe-tastefully-simple{font:12px Verdana,Arial,Geneva,sans-serif;border:1px dashed #666;padding:10px}.wprm-print .wprm-recipe-tastefully-simple div,.wprm-print .wprm-recipe-tastefully-simple li,.wprm-print .wprm-recipe-tastefully-simple ol,.wprm-print .wprm-recipe-tastefully-simple p,.wprm-print .wprm-recipe-tastefully-simple span,.wprm-print .wprm-recipe-tastefully-simple ul,.wprm-recipe-container .wprm-recipe-tastefully-simple div,.wprm-recipe-container .wprm-recipe-tastefully-simple li,.wprm-recipe-container .wprm-recipe-tastefully-simple ol,.wprm-recipe-container .wprm-recipe-tastefully-simple p,.wprm-recipe-container .wprm-recipe-tastefully-simple span,.wprm-recipe-container .wprm-recipe-tastefully-simple ul{margin:0;padding:0;line-height:inherit}.wprm-print .wprm-recipe-tastefully-simple svg,.wprm-recipe-container .wprm-recipe-tastefully-simple svg{vertical-align:middle;width:16px;height:16px;margin:0}.wprm-print .wprm-recipe-tastefully-simple .wprm-clear-left,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-clear-left{clear:left;line-height:0;height:0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container{float:right;max-width:40%;text-align:right}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating{margin-bottom:5px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating .wprm-recipe-rating-details,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating .wprm-recipe-rating-details{font:10px "Trebuchet MS",Arial,Helvetica,sans-serif}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image{margin-left:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons{margin-top:10px;text-align:center}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons .wprm-recipe-print,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons .wprm-recipe-print{font-size:11px;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:.4em 1em}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-name,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-name{font:150% Verdana,Geneva,sans-serif;margin-bottom:15px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-times-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-times-container{border-top:1px dotted #666;border-bottom:1px dotted #666;width:60%;padding-top:5px;padding-bottom:5px;margin-bottom:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container{width:33%;text-align:center;float:left;font-weight:700;border-left:1px solid #ccc}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container:first-child,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container:first-child{border-left:none}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time-header,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time-header{margin-bottom:4px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time{font-size:10px;font-weight:400}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-details-container,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-ingredients-container,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-summary,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-summary p,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-details-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-ingredients-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-summary,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-summary p{margin-bottom:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-header,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-header{font-size:1.4em;font-weight:700;margin-top:1em;margin-bottom:1em}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-group-name,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-group-name{margin-top:3px;margin-bottom:3px;font-weight:700}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-ingredients li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-ingredients li{list-style:disc inside;margin-left:10px;line-height:inherit;background:0 0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-instructions li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-instructions li{list-style:decimal;margin-left:30px;line-height:inherit;background:0 0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ul li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ul li{list-style:disc inside;margin-left:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ol li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ol li{list-style:decimal;margin-left:30px}.wprm-print .wprm-recipe-tastefully-simple{max-width:750px;margin:0 auto}.wprm-print .wprm-recipe-print{display:none}@media only screen and (max-width:480px){.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container{float:none;width:100%;max-width:none;text-align:center;margin-bottom:10px}.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image{margin-left:0}}
|
1 |
+
.wprm-print .wprm-recipe-tastefully-simple,.wprm-recipe-container .wprm-recipe-tastefully-simple{font:12px Verdana,Arial,Geneva,sans-serif;border:1px dashed #666;padding:10px}.wprm-print .wprm-recipe-tastefully-simple div,.wprm-print .wprm-recipe-tastefully-simple li,.wprm-print .wprm-recipe-tastefully-simple ol,.wprm-print .wprm-recipe-tastefully-simple p,.wprm-print .wprm-recipe-tastefully-simple span,.wprm-print .wprm-recipe-tastefully-simple ul,.wprm-recipe-container .wprm-recipe-tastefully-simple div,.wprm-recipe-container .wprm-recipe-tastefully-simple li,.wprm-recipe-container .wprm-recipe-tastefully-simple ol,.wprm-recipe-container .wprm-recipe-tastefully-simple p,.wprm-recipe-container .wprm-recipe-tastefully-simple span,.wprm-recipe-container .wprm-recipe-tastefully-simple ul{margin:0;padding:0;line-height:inherit}.wprm-print .wprm-recipe-tastefully-simple svg,.wprm-recipe-container .wprm-recipe-tastefully-simple svg{vertical-align:middle;width:16px;height:16px;margin:0}.wprm-print .wprm-recipe-tastefully-simple .wprm-clear-left,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-clear-left{clear:left;line-height:0;height:0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container{float:right;max-width:40%;text-align:right}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating{margin-bottom:5px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating .wprm-recipe-rating-details,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-rating .wprm-recipe-rating-details{font:10px "Trebuchet MS",Arial,Helvetica,sans-serif}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image{margin-left:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons{margin-top:10px;text-align:center}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons .wprm-recipe-print,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-buttons .wprm-recipe-print{font-size:11px;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:.4em 1em}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-name,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-name{font:150% Verdana,Geneva,sans-serif;margin-bottom:15px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-times-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-times-container{border-top:1px dotted #666;border-bottom:1px dotted #666;width:60%;padding-top:5px;padding-bottom:5px;margin-bottom:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container{width:33%;text-align:center;float:left;font-weight:700;border-left:1px solid #ccc}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container:first-child,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container:first-child{border-left:none}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time-header,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time-header{margin-bottom:4px;word-break:break-all}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-time-container .wprm-recipe-time{font-size:10px;font-weight:400}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-details-container,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-ingredients-container,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-summary,.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-summary p,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-details-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-ingredients-container,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-summary,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-summary p{margin-bottom:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-header,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-header{font-size:1.4em;font-weight:700;margin-top:1em;margin-bottom:1em}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-group-name,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-group-name{margin-top:3px;margin-bottom:3px;font-weight:700}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-ingredients li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-ingredients li{list-style:disc inside;margin-left:10px;line-height:inherit;background:0 0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-instructions li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-instructions li{list-style:decimal;margin-left:30px;line-height:inherit;background:0 0}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ul li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ul li{list-style:disc inside;margin-left:10px}.wprm-print .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ol li,.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-notes-container ol li{list-style:decimal;margin-left:30px}.wprm-print .wprm-recipe-tastefully-simple{max-width:750px;margin:0 auto}.wprm-print .wprm-recipe-print{display:none}@media only screen and (max-width:480px){.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container{float:none;width:100%;max-width:none;text-align:center;margin-bottom:10px}.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-image-container .wprm-recipe-image{margin-left:0}.wprm-recipe-container .wprm-recipe-tastefully-simple .wprm-recipe-times-container{width:100%}}
|
templates/recipe/tastefully-simple/tastefully-simple.scss
CHANGED
@@ -87,6 +87,7 @@
|
|
87 |
|
88 |
.wprm-recipe-time-header {
|
89 |
margin-bottom: 4px;
|
|
|
90 |
}
|
91 |
|
92 |
.wprm-recipe-time {
|
@@ -172,5 +173,8 @@
|
|
172 |
margin-left: 0;
|
173 |
}
|
174 |
}
|
|
|
|
|
|
|
175 |
}
|
176 |
}
|
87 |
|
88 |
.wprm-recipe-time-header {
|
89 |
margin-bottom: 4px;
|
90 |
+
word-break: break-all;
|
91 |
}
|
92 |
|
93 |
.wprm-recipe-time {
|
173 |
margin-left: 0;
|
174 |
}
|
175 |
}
|
176 |
+
.wprm-recipe-times-container {
|
177 |
+
width: 100%;
|
178 |
+
}
|
179 |
}
|
180 |
}
|
wp-recipe-maker.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: WP Recipe Maker
|
16 |
* Plugin URI: http://bootstrapped.ventures/wp-recipe-maker/
|
17 |
* Description: The easy and user-friendly recipe plugin for everyone. Automatic JSON-LD metadata for better SEO will get you more visitors!
|
18 |
-
* Version: 1.
|
19 |
* Author: Bootstrapped Ventures
|
20 |
* Author URI: http://bootstrapped.ventures/
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: WP Recipe Maker
|
16 |
* Plugin URI: http://bootstrapped.ventures/wp-recipe-maker/
|
17 |
* Description: The easy and user-friendly recipe plugin for everyone. Automatic JSON-LD metadata for better SEO will get you more visitors!
|
18 |
+
* Version: 1.13.0
|
19 |
* Author: Bootstrapped Ventures
|
20 |
* Author URI: http://bootstrapped.ventures/
|
21 |
* License: GPL-2.0+
|