WordPress.org

Plugin Directory

Changeset 1655746


Ignore:
Timestamp:
05/12/17 07:43:58 (6 months ago)
Author:
wpgenie2
Message:

update to v1.0.9

Location:
on-sale-page-for-woocommerce
Files:
22 added
4 edited

Legend:

Unmodified
Added
Removed
  • on-sale-page-for-woocommerce/trunk/includes/class-woocommerce-onsale-page.php

    r1573979 r1655746  
    7070 
    7171        $this->plugin_name = 'wc_onsale_page'; 
    72         $this->version = '1.0.7'; 
     72        $this->version = '1.0.9'; 
    7373 
    7474        $this->load_dependencies(); 
  • on-sale-page-for-woocommerce/trunk/public/class-woocommerce-onsale-page-public.php

    r1573979 r1655746  
    108108                add_filter( 'woocommerce_is_filtered' , array($this, 'add_is_filtered'), 99); // hack for displaying when Shop Page Display is set to show categories 
    109109 
     110                // Fix WP SEO 
     111                    if ( class_exists( 'WPSEO_Meta' ) ) { 
     112                            add_filter( 'wpseo_metadesc', array( $this, 'wpseo_metadesc' ) ); 
     113                            add_filter( 'wpseo_metakey', array( $this, 'wpseo_metakey' ) ); 
     114                            add_filter( 'wpseo_title', array( $this, 'wpseo_title' ) ); 
     115                    } 
     116 
    110117 
    111118                } 
     
    303310 
    304311 
     312    /** 
     313     * WP SEO meta description. 
     314     * 
     315     * Hooked into wpseo_ hook already, so no need for function_exist. 
     316     * 
     317     * @access public 
     318     * @return string 
     319     */ 
     320    public function wpseo_metadesc() { 
     321        return WPSEO_Meta::get_value( 'metadesc', wc_get_page_id( 'onsale' ) ); 
     322    } 
     323 
     324    /** 
     325     * WP SEO meta key. 
     326     * 
     327     * Hooked into wpseo_ hook already, so no need for function_exist. 
     328     * 
     329     * @access public 
     330     * @return string 
     331     */ 
     332    public function wpseo_metakey() { 
     333        return WPSEO_Meta::get_value( 'metakey', wc_get_page_id( 'onsale' ) ); 
     334    } 
     335 
     336    /** 
     337     * WP SEO title. 
     338     * 
     339     * Hooked into wpseo_ hook already, so no need for function_exist. 
     340     * 
     341     * @access public 
     342     * @return string 
     343     */ 
     344    public function wpseo_title() { 
     345        return WPSEO_Meta::get_value( 'title', wc_get_page_id( 'onsale' ) ); 
     346    } 
     347 
     348 
    305349} 
     350 
     351if ( ! function_exists( 'is_woocommerce_sale_page' ) ) : 
     352function is_woocommerce_sale_page(){ 
     353    global $wp_query; 
     354  
     355    if ( ! isset( $wp_query ) ) { 
     356        _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 
     357        return false; 
     358    } 
     359  
     360    return $wp_query->is_sale_page; 
     361} 
     362endif;  
  • on-sale-page-for-woocommerce/trunk/readme.txt

    r1574814 r1655746  
    44Tags: wordpress onsale page, OnSale Page for WooCommerce, simple wordpress onsale page, onsale page, onsale page plugin, wordpress onsale page plugin, OnSale Page for WooCommerce plugin, simple onsale page, wpgenie onsale page, wpgenie 
    55Requires at least: 4.0 
    6 Tested up to: 4.7.1 
    7 Stable tag: 1.0.7 
     6Tested up to: 4.5 
     7Stable tag: 1.8 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1313== Description == 
    1414 
    15 OnSale Page for WooCommerce is an extension for Woocommerce. Since WooCommerce is popular we decided that it would be neat to 
    16 extend it with real WordPress page which displays products on sale. We developed this plugin because WooCommerce 
     15OnSale Page for WooCommerce is an extension for Woocommerce. Since WooCommerce is popular we decided that it would be neat to  
     16extend it with real WordPress page which displays products on sale. We developed this plugin because WooCommerce  
    1717has onsale widget and shortcode but it lacks paging, sorting and filtering which you can usually find on regular WooCommerce catalog page. 
    1818 
    19 With our onsale page plugin you can setup OnSale Page for WooCommerce where you can display all products that are on sale. 
     19With our onsale page plugin you can setup OnSale Page for WooCommerce where you can display all products that are on sale.  
    2020 
    2121= Support = 
     
    6464 
    6565== Changelog == 
     66= 1.0.9 = 
     67* Add: Yoast SEO compatibility 
     68 
     69= 1.0.8 = 
     70* Add: is_woocommerce_sale_page() 
     71 
    6672= 1.0.7 = 
    6773* Add: WooCommerce OnSale Page Layered Nav Widget 
  • on-sale-page-for-woocommerce/trunk/woocommerce-onsale-page.php

    r1573979 r1655746  
    1717 * Plugin URI:        http://wpgenie.org/plugin-name-uri/ 
    1818 * Description:       WooCommerce Onsale Page is an extension for Woocommerce. We developed this plugin because Woocommerce has onsale widget and shortcode but it lacks paging, sorting and filtering which you can usually find on regular Woocommerce catalog page. 
    19  * Version:           1.0.7 
     19 * Version:           1.0.9 
    2020 * Author:            wpgenie 
    2121 * Author URI:        http://wpgenie.org/ 
Note: See TracChangeset for help on using the changeset viewer.