Changeset 3072278
- Timestamp:
- 04/17/2024 10:45:49 AM (2 years ago)
- Location:
- woomotiv
- Files:
-
- 6 edited
- 7 copied
-
tags/3.5.1 (copied) (copied from woomotiv/trunk)
-
tags/3.5.1/index.php (copied) (copied from woomotiv/trunk/index.php)
-
tags/3.5.1/js/admin-review-popup.js (copied) (copied from woomotiv/trunk/js/admin-review-popup.js)
-
tags/3.5.1/lib/class-backend.php (copied) (copied from woomotiv/trunk/lib/class-backend.php)
-
tags/3.5.1/lib/class-frontend.php (copied) (copied from woomotiv/trunk/lib/class-frontend.php)
-
tags/3.5.1/lib/functions.php (copied) (copied from woomotiv/trunk/lib/functions.php)
-
tags/3.5.1/readme.txt (copied) (copied from woomotiv/trunk/readme.txt)
-
trunk/index.php (modified) (2 diffs)
-
trunk/lib/Framework/class-helper.php (modified) (3 diffs)
-
trunk/lib/class-frontend.php (modified) (1 diff)
-
trunk/lib/config.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/tabs/filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woomotiv/trunk/index.php
r3066351 r3072278 4 4 * Plugin Name: Woomotiv - Live Sales Notification for Woocommerce 5 5 * Description: Laverage social proof to increase trust, traffic and sales. 6 * Version: 3. 5.16 * Version: 3.6.0 7 7 * Author: Sabri Taieb 8 8 * Author Uri: https://delabon.com … … 20 20 21 21 # Defined 22 define( 'WOOMOTIV_VERSION', '3. 5.1' );22 define( 'WOOMOTIV_VERSION', '3.6.0' ); 23 23 define( 'WOOMOTIV_URL', plugins_url( '', __FILE__ ) ); 24 24 define( 'WOOMOTIV_DIR', __DIR__ ); -
woomotiv/trunk/lib/Framework/class-helper.php
r2217709 r3072278 80 80 * @return bool 81 81 */ 82 static function isExcluded( $link, $list ){82 static function isExcluded( $link, $list, $ignoreQuery = false ){ 83 83 84 84 if( ! is_array( $list ) ){ … … 87 87 88 88 $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) { 92 95 $excluded_link = preg_replace( '/.*?https?:\/\//', '', $excluded ); 93 96 94 97 if( strpos( $excluded_link, '*' ) !== false ){ 95 98 … … 99 102 return true; 100 103 } 101 } 102 else if( $link === $excluded_link ){ 104 } elseif( $link === $excluded_link ){ 103 105 return true; 104 106 } -
woomotiv/trunk/lib/class-frontend.php
r3052675 r3072278 88 88 return; 89 89 } 90 91 90 } 92 91 93 92 // 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; 95 95 96 96 if( woomotiv()->config->woomotiv_filter === 'show' ){ 97 97 if( ! empty( $excluded ) ){ 98 if( Helper::isExcluded( woomotiv()->request->url(), $excluded ) ){98 if( Helper::isExcluded( woomotiv()->request->url(), $excluded, $isUrlQueryIgnored) ){ 99 99 return true; 100 100 } 101 101 } 102 } 103 // hide on all except 104 else{ 105 if( ! empty( $excluded ) ){ 102 } else { 103 // hide on all except 104 if( ! empty( $excluded ) ){ 106 105 if( ! Helper::isExcluded( woomotiv()->request->url(), $excluded ) ){ 107 106 return true; -
woomotiv/trunk/lib/config.php
r2538396 r3072278 44 44 'woomotiv_filter' => 'show', 45 45 'woomotiv_filter_pages' => '', 46 'woomotiv_filter_keep_query_pages' => 0, 46 47 'woomotiv_filter_posts' => 0, 47 48 'woomotiv_woocategories' => '', -
woomotiv/trunk/readme.txt
r3066351 r3072278 3 3 Requires at least: 4.6 4 4 Tested up to: 6.4.3 5 Stable tag: 3. 5.15 Stable tag: 3.6.0 6 6 Requires PHP: 5.6 7 7 Tags: woocommerce notification, woocommerce sales notification, woocommerce sales popup, marketing, boost sales, boost conversion … … 97 97 == Changelog == 98 98 99 = 3.6.0 = 100 101 * Add "Keep On URLs With Query" filter 102 99 103 = 3.5.1 = 100 104 -
woomotiv/trunk/views/tabs/filters.php
r2538396 r3072278 45 45 )) 46 46 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 47 55 .HTML::checkbox(array( 48 56 'title' => __('Hide on All Articles', 'woomotiv'),
Note: See TracChangeset
for help on using the changeset viewer.