Plugin Directory

Changeset 2632853


Ignore:
Timestamp:
11/20/2021 02:54:05 AM (4 years ago)
Author:
proofratings
Message:

version 1.0.5

Location:
proofratings/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • proofratings/trunk/assets/js/proofratings.js

    r2622371 r2632853  
    66    $('.proofratings-badges-popup .proofrating-close').on('click', function () {
    77        $('.proofratings-badge').removeClass('opened');
     8        $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'})
    89    })
    910
     
    1819            $(this).remove();
    1920        });
     21
     22        $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'})
    2023    })
    2124
    2225    $('.proofratings-banner-badge .proofratings-banner-close').on('click', function(e){
     26        e.stopPropagation();
    2327        e.preventDefault();
    2428        $(this).closest('.proofratings-banner-badge').fadeOut(100, function(){
    2529            $(this).remove();
    2630        })
     31
     32        $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'engagement'})
    2733    })
    2834
     
    3945       
    4046        $('.proofratings-banner-badge').removeClass('going-down')
     47    })
    4148
     49    if ( $('.proofratings-widget, .proofratings-badge, .proofratings-banner-badge').length ) {
     50        $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'impression'})
     51    }
    4252
     53    $('.proofratings-widget, .proofratings-badge, .proofratings-banner-badge').on('click', function(){
     54        $.post(proofratings.api + '/stats', {site_url: proofratings.site_url, type: 'click'})
    4355    })
    4456
  • proofratings/trunk/inc/class-proofratings.php

    r2622371 r2632853  
    138138
    139139        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()));
    140141    }
    141142
  • proofratings/trunk/inc/helpers.php

    r2622371 r2632853  
    9393        'bestcompany' => [
    9494            'theme_color' => '#3c5170',
    95             'name' => __('Best Comapny', 'proofratings'),
     95            'name' => __('Best Company', 'proofratings'),
    9696            'title' => __('Best Company Review Settings', 'proofratings'),
    9797            'logo' => PROOFRATINGS_PLUGIN_URL . '/assets/images/bestcompany.svg',
    9898            'icon' => PROOFRATINGS_PLUGIN_URL . '/assets/images/icon-bestcompany.jpg',
    99             'rating_title' => __('Best Comapny Rating', 'proofratings'),
     99            'rating_title' => __('Best Company Rating', 'proofratings'),
    100100            'icon2' => PROOFRATINGS_PLUGIN_URL . '/assets/images/bestcompany-black.svg',
    101101            'category' => 'general'
  • proofratings/trunk/proofratings.php

    r2628415 r2632853  
    44 * Plugin URI: https://proofratings.com
    55 * 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.4
     6 * Version: 1.0.5
    77 * Author: Proofratings
    88 * Requires at least: 5.2
     
    2121
    2222// Define constants.
    23 define( 'PROOFRATINGS_VERSION', '1.0.4' );
     23define( 'PROOFRATINGS_VERSION', '1.0.5' );
    2424define( 'PROOFRATINGS_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    2525define( 'PROOFRATINGS_PLUGIN_URL', untrailingslashit(plugin_dir_url(__FILE__)));
  • proofratings/trunk/readme.txt

    r2628415 r2632853  
    55Requires at least: 5.2
    66Tested up to: 5.8
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.