WordPress.org

Plugin Directory

Changeset 1653509


Ignore:
Timestamp:
05/09/17 11:27:27 (3 weeks ago)
Author:
sormano
Message:

Reviewer 1.0.3

Location:
wpreviewer
Files:
4 deleted
17 edited
22 copied

Legend:

Unmodified
Added
Removed
  • wpreviewer/tags/1.0.3/class-reviewer.php

    r1620259 r1653509  
    3131         * @var string $version Plugin version number. 
    3232         */ 
    33         public $version = '1.0.2'; 
     33        public $version = '1.0.3'; 
    3434 
    3535 
     
    148148            require_once 'includes/taxonomies/review-category.php'; 
    149149            require_once 'includes/taxonomies/review-tag.php'; 
     150            require_once 'includes/widgets/abstract-widget.php'; 
    150151            require_once 'includes/widgets/search.php'; 
    151152            require_once 'includes/widgets/categories.php'; 
  • wpreviewer/tags/1.0.3/includes/admin/meta-boxes/review-details.php

    r1592362 r1653509  
    4646    public function get_tabs() { 
    4747 
    48         $settings = array( 
     48        $tabs = array( 
    4949            'general'    => array( 
    5050                'name'    => __( 'General', 'reviewer' ), 
     
    6565        ); 
    6666 
    67         return apply_filters( 'reviewer\review_details\get_tabs', $settings ); 
     67        return apply_filters( 'reviewer\review_details\get_tabs', $tabs ); 
    6868 
    6969    } 
  • wpreviewer/tags/1.0.3/includes/admin/meta-boxes/views/review-details.php

    r1590644 r1653509  
    3131                    ><?php 
    3232 
    33                         include 'review-details-tab-' . $key . '.php'; 
     33                        if ( file_exists( plugin_dir_path( __FILE__ ) . 'review-details-tab-' . $key . '.php' ) ) { 
     34                            include plugin_dir_path( __FILE__ ) . 'review-details-tab-' . $key . '.php'; 
     35                        } 
    3436 
    3537                        do_action( 'reviewer\details_after_tab_' . $key, $review ); 
  • wpreviewer/tags/1.0.3/includes/admin/plugin-page-functions.php

    r1590644 r1653509  
    1919 
    2020    if ( $file == plugin_basename( Reviewer()->file ) ) : 
    21         $links[] = '<a href="https://wpreviewer.com/docs" target="_blank">' . __( 'Documentation', 'reviewer' ) . '</a>'; 
    22         $links[] = '<a href="https://wpreviewer.com/extensions" target="_blank">' . __( 'Extensions', 'reviewer' ) . '</a>'; 
     21        $links[] = '<a href="https://wpreviewer.com/documentation/" target="_blank">' . __( 'Documentation', 'reviewer' ) . '</a>'; 
     22        $links[] = '<a href="https://wpreviewer.com/extensions/" target="_blank">' . __( 'Extensions', 'reviewer' ) . '</a>'; 
    2323    endif; 
    2424 
  • wpreviewer/tags/1.0.3/includes/installer.php

    r1590644 r1653509  
    8989        $page_id = wp_insert_post( array( 
    9090            'post_type'    => 'page', 
    91             'post_title'   => __( 'Reviews', 'Reviewer' ), 
     91            'post_title'   => __( 'Reviews', 'reviewer' ), 
    9292            'post_status'  => 'publish', 
    9393            'post_content' => '', 
  • wpreviewer/tags/1.0.3/includes/review.php

    r1592362 r1653509  
    100100     * @since 1.0.0 
    101101     * 
    102      * @param   string      $name  Property being called 
     102     * @param   string      $name  Property being called. 
    103103     * @return  mixed|null         The property value if it exists, null otherwise. 
    104104     */ 
     
    379379     */ 
    380380    public function get_categories( $args = array() ) { 
    381  
    382381        return wp_get_object_terms( $this->id, 'review_category', $args ); 
    383  
    384382    } 
    385383 
     
    398396     */ 
    399397    public function get_category_list( $before = '', $sep = ', ', $after = '' ) { 
    400  
    401398        return get_the_term_list( $this->id, 'review_category', $before, $sep, $after ); 
    402  
    403399    } 
    404400 
     
    415411     */ 
    416412    public function get_tags( $args = array() ) { 
    417  
    418413        return wp_get_object_terms( $this->id, 'review_tag', $args ); 
    419  
    420414    } 
    421415 
     
    434428     */ 
    435429    public function get_tag_list( $before = '', $sep = ', ', $after = '' ) { 
    436  
    437430        return get_the_term_list( $this->id, 'review_tag', $before, $sep, $after ); 
    438  
    439431    } 
    440432 
  • wpreviewer/tags/1.0.3/includes/widgets/abstract-widget.php

    r1590644 r1653509  
    3333     * @since 1.0.0 
    3434     */ 
    35     public function __construct() { 
     35    public function __construct( $id, $name, $options ) { 
    3636 
    37         $this->id_base     = __( 'Reviewer Search', 'reviewer' ); 
    38         $this->name        = __( 'Reviewer Search', 'reviewer' ); 
    39         $this->description = __( 'A search form for searching through reviews', 'reviewer' ); 
     37        $this->id_base     = $id; 
     38        $this->name        = $name; 
     39        $this->description = isset( $options['description'] ) ? $options['description'] : ''; 
    4040 
    41         $widget_options = array( 
     41        $widget_options = wp_parse_args( $options, array( 
    4242            'description' => $this->description, 
    43         ); 
     43        ) ); 
    4444 
    4545        parent::__construct( $this->id_base, $this->name, $widget_options ); 
  • wpreviewer/tags/1.0.3/includes/widgets/categories.php

    r1590644 r1653509  
    1111 * @since 1.0.0 
    1212 */ 
    13 class Categories extends \WP_Widget { 
    14  
    15  
    16     /** 
    17      * @var string $name Name of the widget 
    18      */ 
    19     public $name; 
    20  
    21  
    22     /** 
    23      * @var string $description Description of the widget 
    24      */ 
    25     public $description; 
     13class Categories extends Abstract_Widget { 
    2614 
    2715 
     
    3523    public function __construct() { 
    3624 
    37         $this->name        = __( 'Reviewer Categories', 'reviewer' ); 
    38         $this->description = __( 'List the review categories', 'reviewer' ); 
    39  
     25        $name = __( 'Reviewer Categories', 'reviewer' ); 
    4026        $widget_options = array( 
    41             'description' => $this->description, 
     27            'description' => __( 'List the review categories', 'reviewer' ), 
    4228        ); 
    4329 
    44         parent::__construct( 'review_categories', $this->name, $widget_options ); 
     30        parent::__construct( $id = 'review_categories', $name, $widget_options ); 
    4531 
    4632    } 
  • wpreviewer/tags/1.0.3/includes/widgets/search.php

    r1590644 r1653509  
    1111 * @since 1.0.0 
    1212 */ 
    13 class Search extends \WP_Widget { 
    14  
    15  
    16     /** 
    17      * @var string $name Name of the widget 
    18      */ 
    19     public $name; 
    20  
    21  
    22     /** 
    23      * @var string $description Description of the widget 
    24      */ 
    25     public $description; 
     13class Search extends Abstract_Widget { 
    2614 
    2715 
     
    3523    public function __construct() { 
    3624 
    37         $this->name        = __( 'Reviewer Search', 'reviewer' ); 
    38         $this->description = __( 'A search form for searching through reviews', 'reviewer' ); 
    39  
     25        $name = __( 'Reviewer Search', 'reviewer' ); 
    4026        $widget_options = array( 
    41             'description' => $this->description, 
     27            'description' => __( 'A search form for searching through reviews', 'reviewer' ), 
    4228        ); 
    4329 
    44         parent::__construct( 'review_search', $this->name, $widget_options ); 
     30        parent::__construct( $id = 'review_search', $name, $widget_options ); 
    4531 
    4632    } 
  • wpreviewer/tags/1.0.3/readme.txt

    r1620259 r1653509  
    22Contributors: sormano 
    33Tags: review, reviews, rating, ratings, reviewer, product review, product reviews, rich snippets, wp review, wp rating, star rating, rating platform 
    4 Requires at least: 4.0 
     4Requires at least: 4.2 
    55Tested up to: 4.7.3 
    6 Stable tag: 1.0.2 
     6Stable tag: 1.0.3 
    77License: GPLv3 or later 
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    63637. Front end, review overview 
    64648. Front-end, review detail 
    65 9. 
    6665 
    6766== Changelog == 
     67 
     68= 1.0.3 - 2017/04/09 = 
     69 
     70* [Improvement] - Add check for custom setting tabs - prevents possible error when a custom tab is added. 
     71* [Improvement] - Small refactor for widgets code - now uses abstract widget 
     72* [Fix] - Link to documentation on plugins page 
    6873 
    6974= 1.0.2 - 2017/03/23 = 
  • wpreviewer/tags/1.0.3/reviewer.php

    r1620259 r1653509  
    22/** 
    33 * Plugin Name:     Reviewer 
    4  * Plugin URI: 
     4 * Plugin URI:      https://wpreviewer.com 
    55 * Description:     Start writing reviews of the things you love and become a reviewer in minutes. 
    66 * Version:         1.0.2 
  • wpreviewer/trunk/class-reviewer.php

    r1620259 r1653509  
    3131         * @var string $version Plugin version number. 
    3232         */ 
    33         public $version = '1.0.2'; 
     33        public $version = '1.0.3'; 
    3434 
    3535 
     
    148148            require_once 'includes/taxonomies/review-category.php'; 
    149149            require_once 'includes/taxonomies/review-tag.php'; 
     150            require_once 'includes/widgets/abstract-widget.php'; 
    150151            require_once 'includes/widgets/search.php'; 
    151152            require_once 'includes/widgets/categories.php'; 
  • wpreviewer/trunk/includes/admin/meta-boxes/review-details.php

    r1592362 r1653509  
    4646    public function get_tabs() { 
    4747 
    48         $settings = array( 
     48        $tabs = array( 
    4949            'general'    => array( 
    5050                'name'    => __( 'General', 'reviewer' ), 
     
    6565        ); 
    6666 
    67         return apply_filters( 'reviewer\review_details\get_tabs', $settings ); 
     67        return apply_filters( 'reviewer\review_details\get_tabs', $tabs ); 
    6868 
    6969    } 
  • wpreviewer/trunk/includes/admin/meta-boxes/views/review-details.php

    r1590644 r1653509  
    3131                    ><?php 
    3232 
    33                         include 'review-details-tab-' . $key . '.php'; 
     33                        if ( file_exists( plugin_dir_path( __FILE__ ) . 'review-details-tab-' . $key . '.php' ) ) { 
     34                            include plugin_dir_path( __FILE__ ) . 'review-details-tab-' . $key . '.php'; 
     35                        } 
    3436 
    3537                        do_action( 'reviewer\details_after_tab_' . $key, $review ); 
  • wpreviewer/trunk/includes/admin/plugin-page-functions.php

    r1590644 r1653509  
    1919 
    2020    if ( $file == plugin_basename( Reviewer()->file ) ) : 
    21         $links[] = '<a href="https://wpreviewer.com/docs" target="_blank">' . __( 'Documentation', 'reviewer' ) . '</a>'; 
    22         $links[] = '<a href="https://wpreviewer.com/extensions" target="_blank">' . __( 'Extensions', 'reviewer' ) . '</a>'; 
     21        $links[] = '<a href="https://wpreviewer.com/documentation/" target="_blank">' . __( 'Documentation', 'reviewer' ) . '</a>'; 
     22        $links[] = '<a href="https://wpreviewer.com/extensions/" target="_blank">' . __( 'Extensions', 'reviewer' ) . '</a>'; 
    2323    endif; 
    2424 
  • wpreviewer/trunk/includes/installer.php

    r1590644 r1653509  
    8989        $page_id = wp_insert_post( array( 
    9090            'post_type'    => 'page', 
    91             'post_title'   => __( 'Reviews', 'Reviewer' ), 
     91            'post_title'   => __( 'Reviews', 'reviewer' ), 
    9292            'post_status'  => 'publish', 
    9393            'post_content' => '', 
  • wpreviewer/trunk/includes/review.php

    r1592362 r1653509  
    100100     * @since 1.0.0 
    101101     * 
    102      * @param   string      $name  Property being called 
     102     * @param   string      $name  Property being called. 
    103103     * @return  mixed|null         The property value if it exists, null otherwise. 
    104104     */ 
     
    379379     */ 
    380380    public function get_categories( $args = array() ) { 
    381  
    382381        return wp_get_object_terms( $this->id, 'review_category', $args ); 
    383  
    384382    } 
    385383 
     
    398396     */ 
    399397    public function get_category_list( $before = '', $sep = ', ', $after = '' ) { 
    400  
    401398        return get_the_term_list( $this->id, 'review_category', $before, $sep, $after ); 
    402  
    403399    } 
    404400 
     
    415411     */ 
    416412    public function get_tags( $args = array() ) { 
    417  
    418413        return wp_get_object_terms( $this->id, 'review_tag', $args ); 
    419  
    420414    } 
    421415 
     
    434428     */ 
    435429    public function get_tag_list( $before = '', $sep = ', ', $after = '' ) { 
    436  
    437430        return get_the_term_list( $this->id, 'review_tag', $before, $sep, $after ); 
    438  
    439431    } 
    440432 
  • wpreviewer/trunk/includes/widgets/abstract-widget.php

    r1590644 r1653509  
    3333     * @since 1.0.0 
    3434     */ 
    35     public function __construct() { 
     35    public function __construct( $id, $name, $options ) { 
    3636 
    37         $this->id_base     = __( 'Reviewer Search', 'reviewer' ); 
    38         $this->name        = __( 'Reviewer Search', 'reviewer' ); 
    39         $this->description = __( 'A search form for searching through reviews', 'reviewer' ); 
     37        $this->id_base     = $id; 
     38        $this->name        = $name; 
     39        $this->description = isset( $options['description'] ) ? $options['description'] : ''; 
    4040 
    41         $widget_options = array( 
     41        $widget_options = wp_parse_args( $options, array( 
    4242            'description' => $this->description, 
    43         ); 
     43        ) ); 
    4444 
    4545        parent::__construct( $this->id_base, $this->name, $widget_options ); 
  • wpreviewer/trunk/includes/widgets/categories.php

    r1590644 r1653509  
    1111 * @since 1.0.0 
    1212 */ 
    13 class Categories extends \WP_Widget { 
    14  
    15  
    16     /** 
    17      * @var string $name Name of the widget 
    18      */ 
    19     public $name; 
    20  
    21  
    22     /** 
    23      * @var string $description Description of the widget 
    24      */ 
    25     public $description; 
     13class Categories extends Abstract_Widget { 
    2614 
    2715 
     
    3523    public function __construct() { 
    3624 
    37         $this->name        = __( 'Reviewer Categories', 'reviewer' ); 
    38         $this->description = __( 'List the review categories', 'reviewer' ); 
    39  
     25        $name = __( 'Reviewer Categories', 'reviewer' ); 
    4026        $widget_options = array( 
    41             'description' => $this->description, 
     27            'description' => __( 'List the review categories', 'reviewer' ), 
    4228        ); 
    4329 
    44         parent::__construct( 'review_categories', $this->name, $widget_options ); 
     30        parent::__construct( $id = 'review_categories', $name, $widget_options ); 
    4531 
    4632    } 
  • wpreviewer/trunk/includes/widgets/search.php

    r1590644 r1653509  
    1111 * @since 1.0.0 
    1212 */ 
    13 class Search extends \WP_Widget { 
    14  
    15  
    16     /** 
    17      * @var string $name Name of the widget 
    18      */ 
    19     public $name; 
    20  
    21  
    22     /** 
    23      * @var string $description Description of the widget 
    24      */ 
    25     public $description; 
     13class Search extends Abstract_Widget { 
    2614 
    2715 
     
    3523    public function __construct() { 
    3624 
    37         $this->name        = __( 'Reviewer Search', 'reviewer' ); 
    38         $this->description = __( 'A search form for searching through reviews', 'reviewer' ); 
    39  
     25        $name = __( 'Reviewer Search', 'reviewer' ); 
    4026        $widget_options = array( 
    41             'description' => $this->description, 
     27            'description' => __( 'A search form for searching through reviews', 'reviewer' ), 
    4228        ); 
    4329 
    44         parent::__construct( 'review_search', $this->name, $widget_options ); 
     30        parent::__construct( $id = 'review_search', $name, $widget_options ); 
    4531 
    4632    } 
  • wpreviewer/trunk/readme.txt

    r1620259 r1653509  
    22Contributors: sormano 
    33Tags: review, reviews, rating, ratings, reviewer, product review, product reviews, rich snippets, wp review, wp rating, star rating, rating platform 
    4 Requires at least: 4.0 
     4Requires at least: 4.2 
    55Tested up to: 4.7.3 
    6 Stable tag: 1.0.2 
     6Stable tag: 1.0.3 
    77License: GPLv3 or later 
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    63637. Front end, review overview 
    64648. Front-end, review detail 
    65 9. 
    6665 
    6766== Changelog == 
     67 
     68= 1.0.3 - 2017/04/09 = 
     69 
     70* [Improvement] - Add check for custom setting tabs - prevents possible error when a custom tab is added. 
     71* [Improvement] - Small refactor for widgets code - now uses abstract widget 
     72* [Fix] - Link to documentation on plugins page 
    6873 
    6974= 1.0.2 - 2017/03/23 = 
  • wpreviewer/trunk/reviewer.php

    r1620259 r1653509  
    22/** 
    33 * Plugin Name:     Reviewer 
    4  * Plugin URI: 
     4 * Plugin URI:      https://wpreviewer.com 
    55 * Description:     Start writing reviews of the things you love and become a reviewer in minutes. 
    66 * Version:         1.0.2 
Note: See TracChangeset for help on using the changeset viewer.