Plugin Directory

Changeset 3072278


Ignore:
Timestamp:
04/17/2024 10:45:49 AM (2 years ago)
Author:
delabon
Message:

tagging version 3.6.0

Location:
woomotiv
Files:
6 edited
7 copied

Legend:

Unmodified
Added
Removed
  • woomotiv/trunk/index.php

    r3066351 r3072278  
    44 * Plugin Name: Woomotiv - Live Sales Notification for Woocommerce
    55 * Description: Laverage social proof to increase trust, traffic and sales.
    6  * Version: 3.5.1
     6 * Version: 3.6.0
    77 * Author: Sabri Taieb
    88 * Author Uri: https://delabon.com
     
    2020
    2121# Defined
    22 define( 'WOOMOTIV_VERSION', '3.5.1' );
     22define( 'WOOMOTIV_VERSION', '3.6.0' );
    2323define( 'WOOMOTIV_URL', plugins_url( '', __FILE__ ) );
    2424define( 'WOOMOTIV_DIR', __DIR__ );
  • woomotiv/trunk/lib/Framework/class-helper.php

    r2217709 r3072278  
    8080     * @return bool
    8181     */
    82     static function isExcluded( $link, $list ){
     82    static function isExcluded( $link, $list, $ignoreQuery = false ){
    8383
    8484        if( ! is_array( $list ) ){
     
    8787   
    8888        $link = preg_replace( '/.*?https?:\/\//', '', $link );
    89    
    90         foreach( $list as $excluded ){
    91    
     89
     90        if ($ignoreQuery && strpos($link, '?') !== false) {
     91            return false;
     92        }
     93
     94        foreach ($list as $excluded) {
    9295            $excluded_link = preg_replace( '/.*?https?:\/\//', '', $excluded );
    93    
     96
    9497            if( strpos( $excluded_link, '*' ) !== false ){
    9598               
     
    99102                    return true;
    100103                }
    101             }
    102             else if( $link === $excluded_link ){
     104            } elseif( $link === $excluded_link ){
    103105                return true;
    104106            }
  • woomotiv/trunk/lib/class-frontend.php

    r3052675 r3072278  
    8888                return;
    8989            }
    90 
    9190        }
    9291       
    9392        // fitlers
    94         $excluded = Helper::excludedListToArray( woomotiv()->config->woomotiv_filter_pages );
     93        $excluded = Helper::excludedListToArray(woomotiv()->config->woomotiv_filter_pages);
     94        $isUrlQueryIgnored = (bool)(int)woomotiv()->config->woomotiv_filter_keep_query_pages;
    9595
    9696        if( woomotiv()->config->woomotiv_filter === 'show' ){
    9797            if( ! empty( $excluded ) ){
    98                 if( Helper::isExcluded( woomotiv()->request->url(), $excluded ) ){
     98                if( Helper::isExcluded( woomotiv()->request->url(), $excluded, $isUrlQueryIgnored) ){
    9999                    return true;
    100100                }
    101101            }
    102         }
    103         // hide on all except
    104         else{
    105             if( ! empty( $excluded ) ){
     102        } else {
     103            // hide on all except
     104            if( ! empty( $excluded ) ){
    106105                if( ! Helper::isExcluded( woomotiv()->request->url(), $excluded ) ){
    107106                    return true;
  • woomotiv/trunk/lib/config.php

    r2538396 r3072278  
    4444    'woomotiv_filter'               => 'show',
    4545    'woomotiv_filter_pages'         => '',
     46    'woomotiv_filter_keep_query_pages' => 0,
    4647    'woomotiv_filter_posts'         => 0,
    4748    'woomotiv_woocategories'        => '',
  • woomotiv/trunk/readme.txt

    r3066351 r3072278  
    33Requires at least: 4.6
    44Tested up to: 6.4.3
    5 Stable tag: 3.5.1
     5Stable tag: 3.6.0
    66Requires PHP: 5.6
    77Tags: woocommerce notification, woocommerce sales notification, woocommerce sales popup, marketing, boost sales, boost conversion
     
    9797== Changelog ==
    9898
     99= 3.6.0 =
     100
     101* Add "Keep On URLs With Query" filter
     102
    99103= 3.5.1 =
    100104
  • woomotiv/trunk/views/tabs/filters.php

    r2538396 r3072278  
    4545))
    4646
     47.HTML::checkbox(array(
     48    'title' => __('Keep on URLs with query', 'woomotiv'),
     49    'description' => __( "Allow popups on URLs with query http://mysite.com?a=123",'woomotiv'),
     50    'name' => 'woomotiv_filter_keep_query_pages',
     51    'value' => woomotiv()->config->woomotiv_filter_keep_query_pages,
     52    'text' => __('Enable','woomotiv'),
     53))
     54
    4755.HTML::checkbox(array(
    4856    'title' => __('Hide on All Articles', 'woomotiv'),
Note: See TracChangeset for help on using the changeset viewer.