Plugin Directory

Changeset 1044356


Ignore:
Timestamp:
12/14/2014 12:40:08 PM (11 years ago)
Author:
captaintheme
Message:

1.0.3

Location:
recipe-hero
Files:
244 added
9 edited

Legend:

Unmodified
Added
Removed
  • recipe-hero/trunk/README.txt

    r1044050 r1044356  
    55Requires at least: 3.8.0
    66Tested up to: 4.1.0
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134== Changelog ==
    135135
     136= 1.0.3 =
     137* Bug Fix: Reviews link / summary on archives
     138* Bug Fix: Include recipe_hero_enable_review_rating option in uninstall.php
     139* Bug Fix: RH_Query class missing a public var - added it!
     140* Buf Fix: Ingredients undefined index error
     141* Template Change: single/ingredients.php
     142* Template Change: review.php / rating.php / single-recipe-reviews.php
     143
    136144= 1.0.2 =
    137145* New: Recipe Reviews / Ratings
  • recipe-hero/trunk/includes/class-rh-post-types.php

    r1043378 r1044356  
    1313    exit; // Exit if accessed directly
    1414}
    15  
     15
    1616 /**
    1717 * Register 'Recipe' Custom Post Type.
     
    2525
    2626    public static function init() {
    27  
     27
    2828        add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 6 );
    2929        add_action( 'init', array( __CLASS__, 'register_post_types' ), 6 );
     
    6161            'not_found_in_trash'    => __( 'No Course found in Trash' ),
    6262        );
    63        
     63
    6464        $course_pages = array('recipe');
    6565
     
    9696            'not_found_in_trash'    => __( 'No Cuisine found in Trash' ),
    9797        );
    98        
     98
    9999        $cuisine_pages = array('recipe');
    100        
     100
    101101        $cuisine_args = array(
    102102            'labels'            => $cuisine_labels,
     
    150150            'menu_name'         => __( 'Recipe Hero' )
    151151        );
    152        
     152
    153153        $taxonomies     = array();
    154154
    155155        $supports       = array( 'title','editor','author','thumbnail','excerpt','comments','custom-fields','publicize','page-attributes' );
    156        
     156
    157157        $post_type_args = array(
    158158            'labels'            => $labels,
  • recipe-hero/trunk/includes/class-rh-query.php

    r1038648 r1044356  
    88 * @link      http://captaintheme.com
    99 * @copyright 2014 Captain Theme
     10 * @since     1.0.3
    1011 */
    1112
     
    2021 */
    2122class RH_Query {
     23
     24    /** @public array Query vars to add to wp */
     25    public $query_vars = array();
    2226
    2327    /**
  • recipe-hero/trunk/includes/rh-fields.php

    r1043378 r1044356  
    163163                            'none'   => __( 'None (No Quantity)', 'recipe-hero' ),
    164164                        ) ),
    165                         'default'   => apply_filters( 'recipe_hero_meta_ingredients_amount_default', 'gm' ),
     165                        'default'   => apply_filters( 'recipe_hero_meta_ingredients_amount_default', 'none' ),
    166166                        //'sanitization_cb' => 'pw_select2_sanitise',
    167167                    ),
  • recipe-hero/trunk/recipe-hero.php

    r1043378 r1044356  
    1212 * Plugin URI:        http://recipehero.in/
    1313 * Description:       The last recipe plugin you'll ever need.
    14  * Version:           1.0.2
     14 * Version:           1.0.3
    1515 * Author:            Bryce Adams
    1616 * Author URI:        http://bryce.se/
     
    3737 *
    3838 * @class RecipeHero
    39  * @version 1.0.2
     39 * @version 1.0.3
    4040 */
    4141
     
    4545     * Plugin version, used for cache-busting of style and script file references.
    4646     *
    47      * @since   1.0.2
     47     * @since   1.0.3
    4848     *
    4949     * @var     string
    5050     */
    51     public static $version = '1.0.2';
     51    public static $version = '1.0.3';
    5252
    5353    /**
  • recipe-hero/trunk/templates/archive/meta.php

    r1043378 r1044356  
    55 * @package   Recipe Hero
    66 * @author    Captain Theme <[email protected]>
    7  * @version   1.0.2
     7 * @version   1.0.3
    88 */
    99
     
    2626    </div>
    2727
    28     <div class="comments-link">
    29         <span class="dashicons dashicons-testimonial"></span> <a href="#reviews"><?php comments_number( __( '0 Reviews', 'recipe-hero' ), __( '1 Review', 'recipe-hero' ), __( '% Reviews', 'recipe-hero' ) ); ?></a>
    30     </div>
     28    <?php recipe_hero_get_template( 'single/rating.php' ); ?>
    3129
    3230    <?php if ( get_edit_post_link() ) { ?>
  • recipe-hero/trunk/templates/single/ingredients.php

    r1040292 r1044356  
    55 * @package   Recipe Hero
    66 * @author    Captain Theme <[email protected]>
    7  * @version   1.0.1
     7 * @version   1.0.3
    88 * @todo      Move functionaility into template parts and hook it in
    99 */
     
    1313global $post;
    1414$ingredients = get_post_meta( $post->ID, '_recipe_hero_ingredients_group', true );
     15$ingredients = array_filter( $ingredients );
    1516
    1617// Check if any ingredients exist
    17 if ( ( $ingredients[0]['quantity'] ) ) { ?>
     18if ( isset( $ingredients[0]['name'] ) ) { ?>
    1819
    1920    <div class="recipe-single-ingredients">
  • recipe-hero/trunk/templates/single/rating.php

    r1043378 r1044356  
    55 * @package   Recipe Hero
    66 * @author    Captain Theme <[email protected]>
    7  * @version   1.0.2
     7 * @version   1.0.3
    88 */
    99
     
    1717$average = $recipe->get_average_rating();
    1818
     19$link = is_archive() ? get_permalink( get_the_ID() ) . '#reviews' : '#reviews';
     20
    1921if ( get_option( 'recipe_hero_enable_review_rating' ) === 'no' ) {
    2022
    2123    if ( comments_open() ) : ?>
    22         <span class="dashicons dashicons-testimonial"></span> <a href="#reviews" rel="nofollow"><?php printf( _n( '%s Review', '%s Reviews', $count, 'recipe-hero' ), '<span itemprop="ratingCount" class="count">' . $count . '</span>' ); ?></a>
     24        <span class="dashicons dashicons-testimonial"></span> <a href="<?php echo $link; ?>" rel="nofollow"><?php printf( _n( '%s Review', '%s Reviews', $count, 'recipe-hero' ), '<span itemprop="ratingCount" class="count">' . $count . '</span>' ); ?></a>
    2325    <?php endif;
    2426
     
    2729}
    2830
    29 
    3031if ( $count > 0 ) : ?>
    3132
     
    3334       
    3435        <?php if ( comments_open() ) : ?>
    35             <span class="dashicons dashicons-testimonial"></span> <a href="#reviews" rel="nofollow"><?php printf( _n( '%s Review', '%s Reviews', $count, 'recipe-hero' ), '<span itemprop="ratingCount" class="count">' . $count . '</span>' ); ?></a>
     36            <span class="dashicons dashicons-testimonial"></span> <a href="<?php echo $link; ?>" rel="nofollow"><?php printf( _n( '%s Review', '%s Reviews', $count, 'recipe-hero' ), '<span itemprop="ratingCount" class="count">' . $count . '</span>' ); ?></a>
    3637        <?php endif; ?>
    3738
  • recipe-hero/trunk/uninstall.php

    r1040292 r1044356  
    88 * @link      http://captaintheme.com
    99 * @copyright 2014 Captain Theme
    10  * @since     1.0.0
     10 * @since     1.0.3
    1111 */
    1212
     
    1818    'recipe_hero_recipes_page_id',
    1919    'recipe_hero_recipe_order',
     20    'recipe_hero_enable_review_rating',
    2021    'recipe_single_image_size',
    2122    'recipe_steps_image_size',
Note: See TracChangeset for help on using the changeset viewer.