Changeset 3024033
- Timestamp:
- 01/19/2024 11:11:17 AM (2 years ago)
- Location:
- couponapi/trunk
- Files:
-
- 4 edited
-
couponapi.php (modified) (2 diffs)
-
js/scripts.min.js (modified) (1 diff)
-
pull-feed.php (modified) (2 diffs)
-
views.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
couponapi/trunk/couponapi.php
r3023835 r3024033 5 5 * Plugin URI: https://couponapi.org 6 6 * Description: Automatically import Coupons & Deals from popular Affiliate Networks into your WordPress Coupon Website. 7 * Version: 6.0. 97 * Version: 6.0.10 8 8 * Author: CouponAPI.org 9 9 * Author URI: https://couponapi.org … … 202 202 'import_locations' => 'Off', 203 203 'cashback' => 'Off', 204 'is_theme_supported' => couponapi_is_theme_supported(get_template()) 204 205 ); 205 206 if ($result['theme'] == 'clipmydeals') $result['location_taxonomy'] = get_theme_mod('location_taxonomy', false); -
couponapi/trunk/js/scripts.min.js
r3023835 r3024033 1 var a0_0xa4ba6=a0_0x2227;(function(_0x59758e,_0x3a928e){var _0x9eee40=a0_0x2227,_0x5d95bd=_0x59758e();while(!![]){try{var _0x124ac3=-parseInt(_0x9eee40(0x150))/0x1*(-parseInt(_0x9eee40(0x152))/0x2)+-parseInt(_0x9eee40(0x12e))/0x3*(parseInt(_0x9eee40(0x137))/0x4)+parseInt(_0x9eee40(0x12c))/0x5+parseInt(_0x9eee40(0x13b))/0x6*(-parseInt(_0x9eee40(0x13c))/0x7)+parseInt(_0x9eee40(0x131))/0x8*(parseInt(_0x9eee40(0x139))/0x9)+parseInt(_0x9eee40(0x140))/0xa+-parseInt(_0x9eee40(0x13a))/0xb*(parseInt(_0x9eee40(0x149))/0xc);if(_0x124ac3===_0x3a928e)break;else _0x5d95bd['push'](_0x5d95bd['shift']());}catch(_0x31a403){_0x5d95bd['push'](_0x5d95bd['shift']());}}}(a0_0x5382,0x1cfbb));function getImages(_0x125369,_0x408e3b){var _0x268b17=a0_0x2227;for(var _0x55011a=0x0;_0x55011a<_0x408e3b[_0x268b17(0x13e)];_0x55011a++){var _0x4b24cc=_0x408e3b[_0x55011a][_0x268b17(0x132)];_0x4b24cc=_0x4b24cc[_0x268b17(0x12f)](_0x268b17(0x143)+'r',_0x268b17(0x14a)+_0x268b17(0x147)),!_0x4b24cc[_0x268b17(0x12d)]('session')&&(_0x4b24cc=_0x4b24cc+(_0x4b24cc['includes']('?')?'&':'?')+_0x268b17(0x14e)+_0x125369+_0x268b17(0x14f)+window[_0x268b17(0x134)][_0x268b17(0x141)]),_0x408e3b[_0x55011a]['src']=_0x4b24cc;}}function loadImages(){var _0x31c415=a0_0x2227,_0x24175a=document['getElement'+_0x31c415(0x136)](_0x31c415(0x145));_0x24175a=Array[_0x31c415(0x14b)](_0x24175a)[_0x31c415(0x12b)](_0x18f3c8=>_0x18f3c8[_0x31c415(0x132)][_0x31c415(0x12d)](_0x31c415(0x143)+'r'));if(_0x24175a[_0x31c415(0x13e)]>0x0){var _0x22c990=window[_0x31c415(0x13d)+'ge'][_0x31c415(0x135)]('session_ke'+'y'),_0xd5e9d5=window['localStora'+'ge'][_0x31c415(0x135)]('expiry');_0x22c990&&Math['round'](+new Date()/0x3e8)<_0xd5e9d5?getImages(_0x22c990,_0x24175a):fetch(_0x31c415(0x148)+'andlogos.o'+'rg/api/get'+_0x31c415(0x151),{'method':'POST','body':JSON[_0x31c415(0x144)]({'domain':window['location'][_0x31c415(0x133)]})})[_0x31c415(0x13f)](_0x18e0a0=>_0x18e0a0[_0x31c415(0x130)]())[_0x31c415(0x13f)](_0x37dce9=>{var _0x107432=_0x31c415;_0x37dce9[_0x107432(0x14c)+'y']&&(storage=window[_0x107432(0x13d)+'ge'],storage['setItem'](_0x107432(0x14c)+'y',_0x37dce9[_0x107432(0x14c)+'y']),storage[_0x107432(0x14d)](_0x107432(0x142),_0x37dce9[_0x107432(0x142)]),getImages(storage[_0x107432(0x135)]('session_ke'+'y'),_0x24175a));});}}function a0_0x5382(){var _0x1d5915=['setItem','session=','&domain=','36476fEIhEX','/session/','6mqPbPB','filter','272380wJmofV','includes','42981LYEpmL','replace','json','42184YVylkP','src','href','location','getItem','sByTagName','48elccAx','load','189ZHqbtH','334906ZqVIxV','1578yflOEO','2051tdVQUo','localStora','length','then','1235070LmSeYs','hostname','expiry','placeholde','stringify','img','addEventLi','ages','https://br','12henJEx','api/get/im','from','session_ke'];a0_0x5382=function(){return _0x1d5915;};return a0_0x5382();}function a0_0x2227(_0x40fc73,_0x577825){var _0x53829f=a0_0x5382();return a0_0x2227=function(_0x2227fa,_0x18467f){_0x2227fa=_0x2227fa-0x12b;var _0x35cf82=_0x53829f[_0x2227fa];return _0x35cf82;},a0_0x2227(_0x40fc73,_0x577825);}window[a0_0xa4ba6(0x146)+'stener'](a0_0xa4ba6(0x138),_0x2948f1=>{loadImages();});1 function a0_0x374e(){var _0x50b8ee=['sByTagName','includes','img','247276JiYCAm','231093VZELmJ','/session/','length','load','3496170KTtovj','json','then','src','addEventLi','expiry','stener','session_ke','358952liPIvx','&domain=','rg/api/get','location','670518bKfTQL','hostname','session=','setItem','POST','2knsWtH','56kyjBMz','15iFFWvL','api/get/im','1079768GOcHGL','replace','stringify','placeholde','getItem','446670ZRsIII','localStora'];a0_0x374e=function(){return _0x50b8ee;};return a0_0x374e();}function a0_0x3c72(_0xb12c94,_0x5db867){var _0x374e89=a0_0x374e();return a0_0x3c72=function(_0x3c7218,_0x385903){_0x3c7218=_0x3c7218-0x152;var _0x283447=_0x374e89[_0x3c7218];return _0x283447;},a0_0x3c72(_0xb12c94,_0x5db867);}var a0_0x52e9ed=a0_0x3c72;(function(_0x95cb93,_0x33ac5a){var _0x5a9b9f=a0_0x3c72,_0x44410a=_0x95cb93();while(!![]){try{var _0xb01466=parseInt(_0x5a9b9f(0x163))/0x1*(parseInt(_0x5a9b9f(0x171))/0x2)+-parseInt(_0x5a9b9f(0x16c))/0x3+-parseInt(_0x5a9b9f(0x167))/0x4+-parseInt(_0x5a9b9f(0x165))/0x5*(-parseInt(_0x5a9b9f(0x15e))/0x6)+-parseInt(_0x5a9b9f(0x164))/0x7*(parseInt(_0x5a9b9f(0x15a))/0x8)+parseInt(_0x5a9b9f(0x172))/0x9+parseInt(_0x5a9b9f(0x152))/0xa;if(_0xb01466===_0x33ac5a)break;else _0x44410a['push'](_0x44410a['shift']());}catch(_0x320f9f){_0x44410a['push'](_0x44410a['shift']());}}}(a0_0x374e,0x2bf4d));function getImages(_0x2f8e40,_0x353f8b){var _0x3d472d=a0_0x3c72;for(var _0x37249c=0x0;_0x37249c<_0x353f8b[_0x3d472d(0x174)];_0x37249c++){var _0x1b7c8b=_0x353f8b[_0x37249c][_0x3d472d(0x155)];_0x1b7c8b=_0x1b7c8b[_0x3d472d(0x168)](_0x3d472d(0x16a)+'r',_0x3d472d(0x166)+'ages'),!_0x1b7c8b[_0x3d472d(0x16f)]('session')&&(_0x1b7c8b=_0x1b7c8b+(_0x1b7c8b[_0x3d472d(0x16f)]('?')?'&':'?')+_0x3d472d(0x160)+_0x2f8e40+_0x3d472d(0x15b)+window[_0x3d472d(0x15d)][_0x3d472d(0x15f)]),_0x353f8b[_0x37249c][_0x3d472d(0x155)]=_0x1b7c8b;}}function loadImages(){var _0x2aa2fa=a0_0x3c72,_0x347119=document['getElement'+_0x2aa2fa(0x16e)](_0x2aa2fa(0x170));_0x347119=Array['from'](_0x347119)['filter'](_0x599db2=>_0x599db2[_0x2aa2fa(0x155)][_0x2aa2fa(0x16f)]('placeholde'+'r'));if(_0x347119[_0x2aa2fa(0x174)]>0x0){var _0x3d0b45=window[_0x2aa2fa(0x16d)+'ge'][_0x2aa2fa(0x16b)]('session_ke'+'y'),_0x17bf71=window[_0x2aa2fa(0x16d)+'ge']['getItem'](_0x2aa2fa(0x157));_0x3d0b45&&Math['round'](+new Date()/0x3e8)<_0x17bf71?getImages(_0x3d0b45,_0x347119):fetch('https://br'+'andlogos.o'+_0x2aa2fa(0x15c)+_0x2aa2fa(0x173),{'method':_0x2aa2fa(0x162),'body':JSON[_0x2aa2fa(0x169)]({'domain':window[_0x2aa2fa(0x15d)]['href']})})[_0x2aa2fa(0x154)](_0x33f85c=>_0x33f85c[_0x2aa2fa(0x153)]())[_0x2aa2fa(0x154)](_0x5f2474=>{var _0x14ff23=_0x2aa2fa;_0x5f2474[_0x14ff23(0x159)+'y']&&(storage=window[_0x14ff23(0x16d)+'ge'],storage[_0x14ff23(0x161)](_0x14ff23(0x159)+'y',_0x5f2474[_0x14ff23(0x159)+'y']),storage['setItem'](_0x14ff23(0x157),_0x5f2474[_0x14ff23(0x157)]),getImages(storage[_0x14ff23(0x16b)](_0x14ff23(0x159)+'y'),_0x347119));});}}window[a0_0x52e9ed(0x156)+a0_0x52e9ed(0x158)](a0_0x52e9ed(0x175),_0x2967e8=>{loadImages();}); -
couponapi/trunk/pull-feed.php
r3023835 r3024033 220 220 $sql_insert = "INSERT INTO `" . $wp_prefix . "couponapi_upload` (`offer_id`, `title`, `description`, `label`, `code`, `featured`, `source`, `url`, `deeplink`, `affiliate_link`, `cashback_link`, `image_url`, `brand_logo`, `type`, `store`, `merchant_home_page`, `categories`, `locations`, `start_date`, `end_date`, `status`) VALUES "; 221 221 $sep = ''; 222 $standard_category_exist = array_key_exists("standard_categories",$coupons_to_be_inserted[0]); 222 223 223 foreach ($coupons_to_be_inserted as $coupon) { 224 224 $sql_insert .= $sep . "(" . $coupon['offer_id'] . ", … … 238 238 '" . esc_sql($coupon['store']) . "', 239 239 '" . esc_sql($coupon['merchant_home_page']) . "', 240 '" . ( $standard_category_exist?esc_sql($coupon['standard_categories']):esc_sql($coupon['categories'])) . "',240 '" . (array_key_exists("standard_categories",$coupon) ?esc_sql($coupon['standard_categories']):esc_sql($coupon['categories'])) . "', 241 241 '" . esc_sql($coupon['primary_location'] == 'multi country' ? '' : $coupon['primary_location']) . "', 242 242 " . (empty($coupon['start_date']) ? 'NULL' : "'" . date('Y-m-d', strtotime($coupon['start_date'])) . "'") . ", -
couponapi/trunk/views.php
r3022735 r3024033 36 36 } 37 37 38 $couponapi_config = couponapi_get_config(); 38 39 39 40 global $wpdb; … … 216 217 </div> 217 218 <?php 218 if(! couponapi_is_theme_supported(couponapi_get_config()['theme'])){219 if(!$couponapi_config['is_theme_supported']){ 219 220 $taxonomies = get_taxonomies(array('public' => true)) 220 221 ?> … … 684 685 685 686 function couponapi_display_brandlogos_settings() { 687 688 $couponapi_config = couponapi_get_config(); 686 689 //Bootstrap CSS 687 690 wp_register_style('bootstrap.min', plugins_url('css/bootstrap.min.css', __FILE__)); … … 760 763 </div> 761 764 <?php 762 if( couponapi_is_theme_supported(couponapi_get_config()['theme'])){765 if($couponapi_config['is_theme_supported']){ 763 766 ?> 764 767 <div class="col-12"> … … 776 779 ?> 777 780 778 <?php if ($config->use_logos != 'off' or ! couponapi_is_theme_supported(couponapi_get_config()['theme'])) { ?>781 <?php if ($config->use_logos != 'off' or !$couponapi_config['is_theme_supported']) { ?> 779 782 <div class="col-12"> 780 783 <div class="form-group"> … … 787 790 </div> 788 791 <?php } 789 if( couponapi_is_theme_supported(couponapi_get_config()['theme'])){792 if($couponapi_config['is_theme_supported']){ 790 793 ?> 791 794 … … 813 816 </div> 814 817 815 <?php if ($config->use_logos != 'off' or (!couponapi_is_theme_supported(couponapi_get_config()['theme']) and $config->generic_import_image == 'brandlogos_image')) { ?> 818 <?php 819 if (($couponapi_config['is_theme_supported'] and $config->use_logos != 'off') or (!$couponapi_config['is_theme_supported'] and $config->generic_import_image == 'brandlogos_image')) { ?> 816 820 <div class="col-md-4"> 817 821 <div class="card px-0 mt-0 bg-dark text-white"> … … 827 831 </div> 828 832 </div> 829 <?php if( couponapi_is_theme_supported(couponapi_get_config()['theme'])){?>833 <?php if($couponapi_config['is_theme_supported']){?> 830 834 <div class="form-group"> 831 835 <div class="custom-control custom-switch">
Note: See TracChangeset
for help on using the changeset viewer.