Changeset 2632853
- Timestamp:
- 11/20/2021 02:54:05 AM (4 years ago)
- Location:
- proofratings/trunk
- Files:
-
- 5 edited
-
assets/js/proofratings.js (modified) (3 diffs)
-
inc/class-proofratings.php (modified) (1 diff)
-
inc/helpers.php (modified) (1 diff)
-
proofratings.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
proofratings/trunk/assets/js/proofratings.js
r2622371 r2632853 6 6 $('.proofratings-badges-popup .proofrating-close').on('click', function () { 7 7 $('.proofratings-badge').removeClass('opened'); 8 $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'}) 8 9 }) 9 10 … … 18 19 $(this).remove(); 19 20 }); 21 22 $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'}) 20 23 }) 21 24 22 25 $('.proofratings-banner-badge .proofratings-banner-close').on('click', function(e){ 26 e.stopPropagation(); 23 27 e.preventDefault(); 24 28 $(this).closest('.proofratings-banner-badge').fadeOut(100, function(){ 25 29 $(this).remove(); 26 30 }) 31 32 $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'}) 27 33 }) 28 34 … … 39 45 40 46 $('.proofratings-banner-badge').removeClass('going-down') 47 }) 41 48 49 if ( $('.proofratings-widget, .proofratings-badge, .proofratings-banner-badge').length ) { 50 $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'impression'}) 51 } 42 52 53 $('.proofratings-widget, .proofratings-badge, .proofratings-banner-badge').on('click', function(){ 54 $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'click'}) 43 55 }) 44 56 -
proofratings/trunk/inc/class-proofratings.php
r2622371 r2632853 138 138 139 139 wp_enqueue_script( 'proofratings', PROOFRATINGS_PLUGIN_URL . '/assets/js/proofratings.js', ['jquery', 'js-cookie'], PROOFRATINGS_VERSION, true); 140 wp_localize_script( 'proofratings', 'proofratings', array('api' => PROOFRATINGS_API_URL, 'site_url' => get_site_url())); 140 141 } 141 142 -
proofratings/trunk/inc/helpers.php
r2622371 r2632853 93 93 'bestcompany' => [ 94 94 'theme_color' => '#3c5170', 95 'name' => __('Best Com apny', 'proofratings'),95 'name' => __('Best Company', 'proofratings'), 96 96 'title' => __('Best Company Review Settings', 'proofratings'), 97 97 'logo' => PROOFRATINGS_PLUGIN_URL . '/assets/images/bestcompany.svg', 98 98 'icon' => PROOFRATINGS_PLUGIN_URL . '/assets/images/icon-bestcompany.jpg', 99 'rating_title' => __('Best Com apny Rating', 'proofratings'),99 'rating_title' => __('Best Company Rating', 'proofratings'), 100 100 'icon2' => PROOFRATINGS_PLUGIN_URL . '/assets/images/bestcompany-black.svg', 101 101 'category' => 'general' -
proofratings/trunk/proofratings.php
r2628415 r2632853 4 4 * Plugin URI: https://proofratings.com 5 5 * Description: Proofratings monitors all your third party sites for reviews by your customers. Sharing review ratings badges on your website increases conversions. 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: Proofratings 8 8 * Requires at least: 5.2 … … 21 21 22 22 // Define constants. 23 define( 'PROOFRATINGS_VERSION', '1.0. 4' );23 define( 'PROOFRATINGS_VERSION', '1.0.5' ); 24 24 define( 'PROOFRATINGS_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 25 25 define( 'PROOFRATINGS_PLUGIN_URL', untrailingslashit(plugin_dir_url(__FILE__))); -
proofratings/trunk/readme.txt
r2628415 r2632853 5 5 Requires at least: 5.2 6 6 Tested up to: 5.8 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.