Plugin Directory

Changeset 2627777


Ignore:
Timestamp:
11/11/2021 12:00:36 AM (3 years ago)
Author:
widgetpack
Message:
  • Instantly Google reviews connecting
  • Full Google reviews multi-language support
  • Bug and style fixes
Location:
widget-google-reviews/trunk
Files:
2 added
5 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • widget-google-reviews/trunk/assets/css/admin.css

    r2625523 r2627777  
     1/*-------------------------------- WP Overrides --------------------------------*/
    12.grw-admin #wpcontent {
    23    padding: 0;
     
    1819}
    1920
     21.grw-admin.edit-php #wpbody .wp-header-end,
     22.grw-admin.post-new-php #wpbody .wp-header-end,
     23.grw-admin.post-php #wpbody .wp-header-end {
     24    margin-top: 6px;
     25}
     26
    2027.grw-admin .update-nag {
    2128    margin: 20px 0 0 20px;
     
    3037}
    3138
     39.grw-admin #wpbody #screen-meta-links {
     40    display:none
     41}
     42
     43.grw-admin #screen-meta {
     44    background-color: #ecf0f1;
     45    border: 0;
     46    margin: 0;
     47}
     48
     49.grw-admin #screen-meta-links {
     50    position: absolute;
     51    top: 0;
     52    right: 0;
     53    z-index: 1;
     54}
     55
     56/*-------------------------------- Top Header --------------------------------*/
    3257.grw-tophead {
    3358    -ms-flex-align: center;
     
    81106}
    82107
    83 .grw-admin #wpbody #screen-meta-links {
    84     display:none
    85 }
    86 
    87 .grw-admin #screen-meta {
    88     background-color: #ecf0f1;
    89     border: 0;
    90     margin: 0;
    91 }
    92 
    93 .grw-admin #screen-meta-links {
    94     position: absolute;
    95     top: 0;
    96     right: 0;
    97     z-index: 1;
    98 }
    99 
    100 .grw-admin.edit-php #wpbody .wp-header-end,
    101 .grw-admin.post-new-php #wpbody .wp-header-end,
    102 .grw-admin.post-php #wpbody .wp-header-end {
    103     margin-top: 6px;
    104 }
    105 
     108.grw-version {
     109  position: absolute;
     110  top: 6px;
     111  right: 16px;
     112  -webkit-border-radius: 3px;
     113  -moz-border-radius: 3px;
     114  border-radius: 3px;
     115  display: inline-block;
     116  margin: 12px 0 0;
     117  padding: 6px 10px;
     118  font-size: 12px;
     119  line-height: 14px;
     120  color: #FFF;
     121  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
     122  white-space: nowrap;
     123  vertical-align: baseline;
     124  background-color: #999;
     125}
     126
     127/*-------------------------------- Builder page --------------------------------*/
    106128.grw-toolbar {
    107129    padding: 15px 20px;
     
    210232}
    211233
     234.wp-gr .wp-review-hidden {
     235    opacity: .5 !important;
     236}
     237
     238.wp-gr .wp-review-hide {
     239    color: #fff !important;
     240    font-size: 12px !important;
     241    font-weight: 600 !important;
     242    line-height: 26px !important;
     243    text-decoration: none !important;
     244    text-transform: uppercase !important;
     245    padding: 2px 8px !important;
     246    border-radius: 3px !important;
     247    border-color: #0062cc !important;
     248    background-color: #427fbf !important;
     249}
     250
     251.wp-gr .wp-review-hide:hover {
     252    background-color: #1d62ab !important;
     253}
     254
     255/*-------------------------------- Settings page --------------------------------*/
    212256.nav-tab.nav-tab-active {
    213257    box-shadow: none;
     
    227271}
    228272
    229 .grw-field,
    230 .grw-field * {
    231     box-sizing: border-box;
    232 }
    233 
    234 .grw-field {
    235     padding: 0 0 15px 0;
    236     margin-top: 1em;
    237     margin-bottom: 1em;
    238     border-bottom: 1px dashed #ddd;
    239 }
    240 
    241 @media (min-width: 600px) {
    242     .grw-field {
    243         display: flex;
    244         flex-wrap: wrap;
    245     }
    246     .grw-field-label {
    247         flex: 0 0 25%;
    248         padding-right: 4%;
    249     }
    250     .grw-field-option {
    251         flex: 0 0 75%;
    252     }
    253 }
    254 
    255 .grw-field input[type="text"] {
    256     margin: 0;
    257     padding: 5px 8px;
    258     border-radius: 2px;
    259 }
    260 
    261 .grw-field select {
    262     width: 15em;
    263     margin-left: 0;
    264 }
    265 
    266 .grw-alert {
    267     font-size: 14px;
    268     line-height: 1.846;
    269     border: none;
    270     color: #fff;
    271     padding: 15px;
    272     margin-bottom: 23px;
    273     border: 1px solid transparent;
    274     border-radius: 3px;
    275 }
    276 
    277 .grw-alert-dismissable,
    278 .grw-alert-dismissible {
    279     padding-right: 35px;
    280 }
    281 
    282 .grw-alert-success {
    283     color: #fff;
    284     border-color: #d6e9c6;
    285     background-color: #4caf50;
    286 }
    287 
    288 .grw-alert-warning {
    289     background-color: #a22525;
    290 }
    291 
    292 .grw-alert a:not(.close),
    293 .grw-alert .alert-link {
    294     color: #fff;
    295     font-weight: bold;
    296 }
    297 
    298273.grw-settings-workspace .grw-alert {
    299274    max-width: 500px;
     
    301276}
    302277
    303 .grw-flex-row {
    304     display: flex;
    305     flex-flow: row wrap;
    306     width: 100%;
    307     align-items: center!important;
    308     text-align: left;
    309     margin-bottom: 40px;
    310 }
    311 
    312 .grw-flex-col,
    313 .grw-flex-col3 {
    314     box-sizing: border-box;
    315     padding: 0 20px;
    316     line-height: 24px;
    317 }
    318 
    319 .grw-flex-col:first-child,
    320 .grw-flex-col3:first-child {
    321     padding-right: 10px;
    322 }
    323 
    324 @media (min-width: 700px) {
    325     .grw-flex-col {
    326         width: 50%;
    327     }
    328     .grw-flex-col7 {
    329         width: 70%;
    330     }
    331     .grw-flex-col3 {
    332         width: 30%;
    333     }
    334 }
    335 
     278/*-------------------------------- Support page --------------------------------*/
    336279.grw-support-question {
    337280    padding-bottom: 10px;
     
    348291.grw-support-workspace p {
    349292    font-size: 15px;
     293}
     294
     295.grw-support-workspace #fig p {
     296    line-height: 24px;
    350297}
    351298
     
    375322    box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
    376323}
     324
     325/*-------------------------------- Full Installation Guide --------------------------------*/
     326#fig hr {
     327    border-top: 1px solid #bbb;
     328    border-bottom: 2px solid #eee;
     329}
     330
     331#fig .grw-flex-row {
     332    align-items: center!important;
     333    text-align: left;
     334    margin-bottom: 40px;
     335}
     336
     337#fig .grw-flex-col,
     338#fig .grw-flex-col3 {
     339    padding: 0 20px;
     340    line-height: 24px;
     341}
     342
     343#fig .grw-flex-col:first-child,
     344#fig .grw-flex-col3:first-child {
     345    padding-right: 10px;
     346}
     347
     348#fig img {
     349    width: 100%;
     350}
     351
     352#fig .subheader {
     353    color: #4b76b7;
     354    margin: 40px 0 20px;
     355    text-decoration: underline;
     356}
     357
     358#fig .grw-flex-col > b:first-child,
     359#fig .grw-flex-col3 > b:first-child {
     360    padding: 2px 8px;
     361    margin-right: 4px;
     362    border-radius: 50%;
     363    color: #fff;
     364    background: #36ad55;
     365    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);
     366}
     367
     368/*-------------------------------- Field --------------------------------*/
     369.grw-field,
     370.grw-field * {
     371    box-sizing: border-box;
     372}
     373
     374.grw-field {
     375    padding: 0 0 15px 0;
     376    margin-top: 1em;
     377    margin-bottom: 1em;
     378    border-bottom: 1px dashed #ddd;
     379}
     380
     381@media (min-width: 600px) {
     382    .grw-field {
     383        display: flex;
     384        flex-wrap: wrap;
     385    }
     386    .grw-field-label {
     387        flex: 0 0 25%;
     388        padding-right: 4%;
     389    }
     390    .grw-field-option {
     391        flex: 0 0 75%;
     392    }
     393}
     394
     395.grw-field input[type="text"] {
     396    margin: 0;
     397    padding: 5px 8px;
     398    border-radius: 2px;
     399}
     400
     401.grw-field select {
     402    width: 15em;
     403    margin-left: 0;
     404}
     405
     406/*-------------------------------- Flex row/col --------------------------------*/
     407.grw-flex-row {
     408    display: flex;
     409    flex-flow: row wrap;
     410    width: 100%;
     411}
     412
     413.grw-flex-col,
     414.grw-flex-col3 {
     415    box-sizing: border-box;
     416}
     417
     418.grw-flex-col:first-child,
     419.grw-flex-col3:first-child,
     420.grw-flex-col3 + .grw-flex-col3 {
     421    padding-right: 10px;
     422}
     423
     424@media (min-width: 700px) {
     425    .grw-flex-col {
     426        width: 50%;
     427    }
     428    .grw-flex-col3 {
     429        width: 30%;
     430    }
     431    .grw-flex-col6 {
     432        width: 66.7%;
     433    }
     434    .grw-flex-col7 {
     435        width: 70%;
     436    }
     437}
     438
     439/*-------------------------------- Alert --------------------------------*/
     440.grw-alert {
     441    font-size: 14px;
     442    line-height: 1.846;
     443    border: none;
     444    color: #fff;
     445    padding: 15px;
     446    border: 1px solid transparent;
     447    border-radius: 3px;
     448}
     449
     450.grw-alert-dismissable,
     451.grw-alert-dismissible {
     452    padding-right: 35px;
     453}
     454
     455.grw-alert-success {
     456    color: #fff;
     457    border-color: #d6e9c6;
     458    background-color: #4caf50;
     459}
     460
     461.grw-alert-warning {
     462    background-color: #a22525;
     463}
     464
     465.grw-alert a:not(.close),
     466.grw-alert .alert-link {
     467    color: #fff;
     468    font-weight: bold;
     469}
  • widget-google-reviews/trunk/grw.php

    r2625523 r2627777  
    44Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
    55Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
    6 Version: 2.0
     6Version: 2.0.1
    77Author: RichPlugins <[email protected]>
    88Author URI: https://richplugins.com
     
    1919require(ABSPATH . 'wp-includes/version.php');
    2020
    21 define('GRW_VERSION'          , '2.0');
     21define('GRW_VERSION'          , '2.0.1');
    2222define('GRW_PLUGIN_FILE'      , __FILE__);
    2323define('GRW_PLUGIN_URL'       , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
  • widget-google-reviews/trunk/includes/admin/class-admin-rev.php

    r2625523 r2627777  
    1313
    1414        if ($activation_time == '') {
    15             $activation_time = time() - 86400*3;
     15            $activation_time = time() - 86400*2;
    1616            update_option('grw_activation_time', $activation_time);
    1717        }
     
    1919        $rev_notice = isset($_GET['grw_rev_notice']) ? $_GET['grw_rev_notice'] : '';
    2020        if ($rev_notice == 'later') {
    21             $activation_time = time() - 86400*3;
     21            $activation_time = time() - 86400*2;
    2222            update_option('grw_activation_time', $activation_time);
    2323            update_option('grw_rev_notice_hide', 'later');
     
    3131        if ($rev_notice_show == '' || $rev_notice_show == 'grw') {
    3232
    33             if ($rev_notice_hide != 'never' && $activation_time < (time() - 86400*5)) {
     33            if ($rev_notice_hide != 'never' && $activation_time < (time() - 86400*3)) {
    3434                update_option('rplg_rev_notice_show', 'grw');
    3535                $class = 'notice notice-info is-dismissible';
  • widget-google-reviews/trunk/includes/admin/class-admin-tophead.php

    r2625523 r2627777  
    4040                    Google Reviews
    4141                </div>
    42                 <span class="rplg-version">Free Version: <?php echo GRW_VERSION; ?></span>
     42                <span class="grw-version">Free Version: <?php echo GRW_VERSION; ?></span>
    4343            </div>
    4444            <?php
  • widget-google-reviews/trunk/includes/class-activator.php

    r2625523 r2627777  
    2121            'rplg_rev_notice_show',
    2222            'grw_debug_refresh',
     23            'grw_auth_code',
    2324        );
    2425    }
     
    6768            $this->first_install();
    6869            update_option('grw_version', $current_version);
     70            update_option('grw_auth_code', $this->random_str(127));
    6971        } elseif ($last_active_version !== $current_version) {
    7072            $this->exist_install($current_version, $last_active_version);
     
    100102                }
    101103            break;
     104            case version_compare($last_active_version, '2.0.1', '<'):
     105                $grw_auth_code = get_option('grw_auth_code');
     106                if (!$grw_auth_code || strlen($grw_auth_code) == 0) {
     107                    update_option('grw_auth_code', $this->random_str(127));
     108                }
     109            break;
    102110        }
    103111    }
     
    239247    }
    240248
     249    private function random_str($len) {
     250        $chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
     251        $charlen = strlen($chars);
     252        $randstr = '';
     253        for ($i = 0; $i < $len; $i++) {
     254            $randstr .= $chars[rand(0, $charlen - 1)];
     255        }
     256        return $randstr;
     257    }
     258
    241259}
  • widget-google-reviews/trunk/includes/class-assets.php

    r2625523 r2627777  
    1010
    1111    private static $css_assets = array(
    12         'feedbuilder'      => 'css/feedbuilder',
    13         'grw-admin-css'    => 'css/admin',
    14         'grw-rplg-css'     => 'css/rplg-wp',
    15         'grw-setting-css'  => 'css/rplg-setting',
    16         'grw-css'          => 'css/google-review',
     12        'grw-admin-css'   => 'css/admin',
     13        'grw-builder-css' => 'css/builder',
     14        'grw-css'         => 'css/google-review',
    1715    );
    1816
    1917    private static $js_assets = array(
    20         'grw-admin-js'     => 'js/admin',
    21         'feedbuilder'      => 'js/feedbuilder',
    22         'grw-time-js'      => 'js/wpac-time',
    23         'grw-wpac-js'      => 'js/wpac',
    24         'blazy-js'         => 'js/blazy.min',
    25         'grw-js'           => 'js/rplg',
     18        'grw-wpac-js'     => 'js/wpac',
     19        'grw-admin-js'    => 'js/admin',
     20        'grw-builder-js'  => 'js/builder',
     21        'grw-time-js'     => 'js/wpac-time',
     22        'blazy-js'        => 'js/blazy.min',
     23        'grw-js'          => 'js/rplg',
    2624    );
    2725
     
    5048
    5149    public function register_styles() {
    52         $this->register_styles_loop(array('feedbuilder', 'grw-admin-css', 'grw-rplg-css', 'grw-setting-css', 'grw-css'));
     50        $this->register_styles_loop(array('grw-admin-css', 'grw-builder-css', 'grw-css'));
    5351    }
    5452
    5553    public function register_scripts() {
    56         $this->register_scripts_loop(array('grw-admin-js', 'feedbuilder', 'grw-time-js', 'grw-wpac-js', 'blazy-js', 'grw-js'));
     54        $this->register_scripts_loop(array('grw-wpac-js', 'grw-admin-js', 'grw-builder-js', 'grw-time-js', 'blazy-js', 'grw-js'));
    5755    }
    5856
    5957    public function enqueue_admin_styles() {
    60         wp_enqueue_style('feedbuilder');
     58        wp_enqueue_style('wp-jquery-ui-dialog');
    6159        wp_enqueue_style('grw-admin-css');
    62         wp_enqueue_style('grw-rplg-css');
    63         wp_enqueue_style('grw-setting-css');
     60        wp_enqueue_style('grw-builder-css');
    6461        wp_enqueue_style('grw-css');
    6562    }
     
    7067        wp_enqueue_script('jquery-ui-draggable');
    7168        wp_enqueue_script('jquery-ui-sortable');
     69        wp_enqueue_script('jquery-ui-dialog');
    7270
    7371        wp_enqueue_script('grw-wpac-js');
    7472        wp_enqueue_script('grw-admin-js');
    7573
    76         wp_localize_script('feedbuilder', 'GRW_VARS', array(
     74        wp_localize_script('grw-builder-js', 'GRW_VARS', array(
    7775            'googleAPIKey'  => get_option('grw_google_api_key'),
    7876            'GOOGLE_AVATAR' => GRW_GOOGLE_AVATAR,
     
    8280            'wordpress'     => true,
    8381        ));
    84         wp_enqueue_script('feedbuilder');
     82        wp_enqueue_script('grw-builder-js');
    8583
    8684        wp_enqueue_script('grw-time-js');
  • widget-google-reviews/trunk/includes/class-builder-page.php

    r2625523 r2627777  
    101101            </form>
    102102        </div>
     103
     104        <div id="dialog" title="Google API key required" style="display:none;">
     105            <p style="font-size:14px;">
     106                This plugin uses our default <b>Google Places API key which is mandatory for retrieving Google reviews</b> through official way approved by Google (without crawling). Our API key can make 5 requests to Google API for each WordPress server and it's exceeded at the moment.
     107            </p>
     108            <p style="font-size:14px;">
     109                To continue working with Google API and daily reviews refreshing, please create your own API key by <a href="<?php echo admin_url('admin.php?page=grw-support&grw_tab=fig#fig_api_key'); ?>" target="_blank">this instruction</a> and save it on the settings page of the plugin.
     110            </p>
     111            <p style="font-size:14px;">
     112                Don’t worry, it will be free because Google is currently giving free credit a month and it should be enough to use the plugin for connecting several Google places and daily refresh of reviews.
     113            </p>
     114        </div>
     115
    103116        <script>
    104117            jQuery(document).ready(function($) {
     
    113126                        el: '#grw-builder-option',
    114127                        use_gpa: true,
    115                         <?php if (strlen($feed_content) > 0) { ?>
    116                         conns: <?php echo $feed_content; ?>
    117                         <?php } ?>
     128                        <?php if (strlen($feed_content) > 0) { echo 'conns: ' . $feed_content; } ?>
    118129                    });
    119130                }
  • widget-google-reviews/trunk/includes/class-plugin-support.php

    r2625523 r2627777  
    4444                <div id="welcome" class="tab-content" style="display:<?php echo $tab == 'welcome' ? 'block' : 'none'?>;">
    4545                    <h3>Google Reviews Widget for WordPress</h3>
    46                     <div class="rplg-flex-row">
    47                         <div class="rplg-flex-col">
     46                    <div class="grw-flex-row">
     47                        <div class="grw-flex-col">
    4848                            <span>Google Reviews plugin is an easy and fast way to integrate Google business reviews right into your WordPress website. This plugin works instantly and keep all Google places and reviews in WordPress database thus it has no depend on external services.</span>
    4949                            <p style="font-size:20px;text-align:center"><b><u>Please read '<a href="<?php echo admin_url('admin.php?page=grw-support&grw_tab=fig'); ?>">Full Installation Guide</a>' to completely understand how it works and set up the plugin</u></b>.</p>
    5050                            <p>Also you can find most common answers and solutions for most common questions and issues in next tabs.</p>
    51                             <div class="rplg-alert rplg-alert-success">
     51                            <div class="grw-alert grw-alert-success">
    5252                                <strong>Try more features in the Business version</strong>: Merge Google, Facebook and Yelp reviews, Beautiful themes (Slider, Grid, Trust Badges), Shortcode support, Rich Snippets, Rating filter, Any sorting, Include/Exclude words filter, Hide/Show any elements, Priority support and many others.
    5353                                <a class="button-primary button" href="https://richplugins.com/business-reviews-bundle-wordpress-plugin" target="_blank" style="margin-left:10px">Upgrade to Business</a>
    5454                            </div>
    5555                            <br>
    56                             <div class="rplg-socials">
     56                            <div class="grw-socials">
    5757                                <div id="fb-root"></div>
    5858                                <script>(function(d, s, id) {
     
    7979                            </div>
    8080                        </div>
    81                         <div class="rplg-flex-col">
     81                        <div class="grw-flex-col">
    8282                            <iframe width="100%" height="315" src="https://www.youtube.com/embed/Wbst-UBgXXk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    8383                        </div>
  • widget-google-reviews/trunk/includes/core/class-connect-google.php

    r2625523 r2627777  
    3333                            $id = sanitize_text_field(wp_unslash($_POST['id']));
    3434                            $lang = sanitize_text_field(wp_unslash($_POST['lang']));
    35                             $url = $this->api_url($id, $google_api_key, $lang);
     35
     36                            if ($google_api_key && strlen($google_api_key) > 0) {
     37                                $url = $this->api_url($id, $google_api_key, $lang);
     38                            } else {
     39                                $url = 'https://gpaw.widgetpack.com/get/json' .
     40                                       '?siteurl=' . get_option('siteurl') .
     41                                       '&authcode=' . get_option('grw_auth_code') .
     42                                       '&pid=' . $id;
     43                                if ($lang && strlen($lang) > 0) {
     44                                    $url = $url . '&lang=' . $lang;
     45                                }
     46                            }
    3647
    3748                            $res = wp_remote_get($url);
     
    4051
    4152                            if ($body_json && isset($body_json->result)) {
    42                                 $photo = $this->business_avatar($body_json->result, $google_api_key);
    43                                 $body_json->result->business_photo = $photo;
     53
     54                                if ($google_api_key && strlen($google_api_key) > 0) {
     55                                    $photo = $this->business_avatar($body_json->result, $google_api_key);
     56                                    $body_json->result->business_photo = $photo;
     57                                }
    4458
    4559                                $this->save_reviews($body_json->result);
     
    4862                                    'id'      => $body_json->result->place_id,
    4963                                    'name'    => $body_json->result->name,
    50                                     'photo'   => strlen($photo) ? $photo : $body_json->result->icon,
     64                                    'photo'   => strlen($photo) ? $photo
     65                                                     : (
     66                                                        strlen($body_json->result->business_photo) ?
     67                                                            $body_json->result->business_photo : $body_json->result->icon
     68                                                       ),
    5169                                    'reviews' => $body_json->result->reviews
    5270                                );
     
    166184                $google_review_id = 0;
    167185                if (isset($review->author_url) && strlen($review->author_url) > 0) {
     186                    $review_lang = ($review->language == 'en-US' ? 'en' : $review->language);
    168187                    $google_review_id = $wpdb->get_var(
    169188                        $wpdb->prepare(
    170189                            "SELECT id FROM " . $wpdb->prefix . Database::REVIEW_TABLE .
    171                             " WHERE author_url = %s", $review->author_url
     190                            " WHERE author_url = %s AND language = %s", $review->author_url, $review_lang
    172191                        )
    173192                    );
     
    193212                    $wpdb->insert($wpdb->prefix . Database::REVIEW_TABLE, array(
    194213                        'google_place_id'   => $google_place_id,
    195                         'hash'              => $review->time, //TODO: workaround to support old versions
     214                        'hash'              => microtime(), //TODO: workaround to support old versions
    196215                        'rating'            => $review->rating,
    197216                        'text'              => $review->text,
  • widget-google-reviews/trunk/includes/page-setting-fig.php

    r2625523 r2627777  
    99<p><b>First of all, you need to find Google Place ID:</b> this is the identification of your Google Place (business). It should be like that: <b>ChIJ..</b>, for instance: ChIJ3TH9CwFZwokRIvNO1SP0WLg. If you know it, go to <a href="#fig_api_key">How to create Google API key</a></p>
    1010<p><b>Please keep in mind: your Google Place must have a physical address</b>, because Google Place API, which is used in this plugin, works only with a phisical Google places, it's not possible to connect area or virtual place. Unfortunately, it's a limitation of Google, not specifically the plugin.</p>
    11 <p>The standard way to find your Google Places ID is to go to <a href="https://developers.google.com/places/place-id" target="_blank">https://developers.google.com/places/place-id</a> and search for your company name. But sometimes it just doesn’t work.</p>
     11<p>The standard way to find your Google Place ID is to go to <a href="https://developers.google.com/places/place-id" target="_blank">https://developers.google.com/places/place-id</a> and search for your company name. But sometimes it just doesn’t work.</p>
    1212
    1313<h3 class="subheader">How To Find Any Google Place ID…</h3>
    1414
    15 <div class="rplg-flex-row">
    16     <div class="rplg-flex-col3">
     15<div class="grw-flex-row">
     16    <div class="grw-flex-col3">
    1717        <b>1</b> Search for your business on Google.
    1818    </div>
    19     <div class="rplg-flex-col7">
     19    <div class="grw-flex-col7">
    2020        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_1.png'; ?>"></div>
    2121    </div>
    2222</div>
    2323
    24 <div class="rplg-flex-row">
    25     <div class="rplg-flex-col3">
     24<div class="grw-flex-row">
     25    <div class="grw-flex-col3">
    2626        <b>2</b> Inspect the “<b>Write a Review</b>” button. To do this in Firefox, right-click and choose “<b>Inspect Element</b>“. In Chrome, right-click and choose “<b>Inspect</b>“. (Most browsers follow a similar process.)
    2727    </div>
    28     <div class="rplg-flex-col7">
     28    <div class="grw-flex-col7">
    2929        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_2.png'; ?>"></div>
    3030    </div>
    3131</div>
    3232
    33 <div class="rplg-flex-row">
    34     <div class="rplg-flex-col3">
     33<div class="grw-flex-row">
     34    <div class="grw-flex-col3">
    3535        <b>3</b> Find “<b>data-pid</b>” as shown above. (This part is a little tricky, but just look inside the <b>&lt;a&gt;</b> tag until you find <b>data-pid=</b>).
    3636    </div>
    37     <div class="rplg-flex-col7">
     37    <div class="grw-flex-col7">
    3838        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_3.png'; ?>"></div>
    3939    </div>
    4040</div>
    4141
    42 <div class="rplg-flex-row">
    43     <div class="rplg-flex-col3">
     42<div class="grw-flex-row">
     43    <div class="grw-flex-col3">
    4444        <b>4</b> Copy the characters within the quotes (as shown above). You now have your google Places ID.  Paste this somewhere you can easily find it.
    4545    </div>
     
    5050<h3 id="fig_api_key"><u>II. Google Places API key</u></h3>
    5151
    52 <div class="rplg-flex-row">
    53     <div class="rplg-flex-col">
     52<div class="grw-flex-row">
     53    <div class="grw-flex-col">
    5454        <b>1</b> Go to your <a href="https://console.developers.google.com/apis/dashboard?pli=1" target="_blank">Google Console</a> dashboard. If you new user agree Google terms:
    5555    </div>
    56     <div class="rplg-flex-col">
     56    <div class="grw-flex-col">
    5757        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_1.png'; ?>"></div>
    5858    </div>
    5959</div>
    6060
    61 <div class="rplg-flex-row">
    62     <div class="rplg-flex-col">
     61<div class="grw-flex-row">
     62    <div class="grw-flex-col">
    6363        <b>2</b> Select your existing project or create new:
    6464    </div>
    65     <div class="rplg-flex-col">
     65    <div class="grw-flex-col">
    6666        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_2.png'; ?>"></div>
    6767        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_2_1.png'; ?>"></div>
     
    6969</div>
    7070
    71 <div class="rplg-flex-row">
    72     <div class="rplg-flex-col">
     71<div class="grw-flex-row">
     72    <div class="grw-flex-col">
    7373        <b>3</b> Wait for creation and then click '<b>ENABLE APIS AND SERVICES</b>':
    7474    </div>
    75     <div class="rplg-flex-col">
     75    <div class="grw-flex-col">
    7676        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_3.png'; ?>"></div>
    7777    </div>
    7878</div>
    7979
    80 <div class="rplg-flex-row">
    81     <div class="rplg-flex-col">
     80<div class="grw-flex-row">
     81    <div class="grw-flex-col">
    8282        <b>4</b> Type '<b>Places API</b>' in the search area, select the first result '<b>Places API</b>' and click '<b>ENABLE</b>' button:
    8383    </div>
    84     <div class="rplg-flex-col">
     84    <div class="grw-flex-col">
    8585        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_4.png'; ?>"></div>
    8686        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_4_1.png'; ?>"></div>
     
    8888</div>
    8989
    90 <div class="rplg-flex-row">
    91     <div class="rplg-flex-col">
     90<div class="grw-flex-row">
     91    <div class="grw-flex-col">
    9292        <b>5</b> After enable the Places API, click '<b>Navigation menu</b>', select '<b>APIs & Services</b>' and  '<b>Credentials</b>':
    9393    </div>
    94     <div class="rplg-flex-col">
     94    <div class="grw-flex-col">
    9595        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_5.png'; ?>"></div>
    9696    </div>
    9797</div>
    9898
    99 <div class="rplg-flex-row">
    100     <div class="rplg-flex-col">
     99<div class="grw-flex-row">
     100    <div class="grw-flex-col">
    101101        <b>6</b> On Credentials page click '<b>+ CREATE CREDENTIALS</b>' and select '<b>API key</b>':
    102102    </div>
    103     <div class="rplg-flex-col">
     103    <div class="grw-flex-col">
    104104        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_6.png'; ?>"></div>
    105105    </div>
    106106</div>
    107107
    108 <div class="rplg-flex-row">
    109     <div class="rplg-flex-col">
     108<div class="grw-flex-row">
     109    <div class="grw-flex-col">
    110110        <b>7</b> After creation of API key you need to copy & paste it to the plugin's settings (<b>please do not restrict the key</b>, the plugin can't work with a restricted API key, it's a limitation of Google):
    111111    </div>
    112     <div class="rplg-flex-col">
     112    <div class="grw-flex-col">
    113113        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_7.png'; ?>"></div>
    114114    </div>
    115115</div>
    116116
    117 <div class="rplg-flex-row">
    118     <div class="rplg-flex-col">
     117<div class="grw-flex-row">
     118    <div class="grw-flex-col">
    119119        <b>8</b> Now, you need to enable Google Billing. It's mandatory step to use the API key. <b>Don’t worry, <a href="https://developers.google.com/maps/billing-credits" target="_blank">Google is currently giving $200 free credit a month</b></a> and it should be enough to use the plugin for connecting several Google places without additional fees except this free $200 credits. Go to <a href="https://console.cloud.google.com/project/_/billing/enable" target="_blank">https://console.cloud.google.com/project/_/billing/enable</a>, select your recent created project and click '<b>CREATE BILLING ACCOUNT</b>':
    120120    </div>
    121     <div class="rplg-flex-col">
     121    <div class="grw-flex-col">
    122122        <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_8.png'; ?>"></div>
    123123    </div>
    124124</div>
    125125
    126 <div class="rplg-flex-row">
    127     <div class="rplg-flex-col">
     126<div class="grw-flex-row">
     127    <div class="grw-flex-col">
    128128        <b>9</b> Agree Google terms, fill your contact information and start using your Google API key with the plugin.
    129129    </div>
  • widget-google-reviews/trunk/includes/page-setting-support.php

    r2625523 r2627777  
    1 <div class="rplg-flex-row">
    2     <div class="rplg-flex-col">
    3         <div class="rplg-support-question">
     1<div class="grw-flex-row">
     2    <div class="grw-flex-col">
     3        <div class="grw-support-question">
    44            <h3>I can't connect my Google Place.</h3>
    55            <p>Please check that you correctly found the Place ID of your Google business. It should look like <b>ChIJ</b>3TH9CwFZwokRI... This instruction helps to find any Place ID regardless of whether it has a physical address or it is an area: <a href="<?php echo admin_url('admin.php?page=grw-support&grw_tab=fig#place_id'); ?>">how to find Place ID of any Google business</a></p>
    66        </div>
    77    </div>
    8     <div class="rplg-flex-col">
    9         <div class="rplg-support-question">
     8    <div class="grw-flex-col">
     9        <div class="grw-support-question">
    1010            <h3>I have some error messages about the Google API key.</h3>
    1111            <p>Please make sure that your correctly created the Google Places API key with <b>Places API library and without any restrictions (IP or Referrer)</b>. It should look like <b>AIzaS</b>yB3k4oWDJPF... On the <b>Settings</b> tab there is a detailed instruction and video tutorial how to create the free and correct Google Places API key.</p>
     
    1313    </div>
    1414</div>
    15 <div class="rplg-flex-row">
    16     <div class="rplg-flex-col">
    17         <div class="rplg-support-question">
     15<div class="grw-flex-row">
     16    <div class="grw-flex-col">
     17        <div class="grw-support-question">
    1818            <h3>Why I see only 5 Google reviews?</h3>
    1919            <p>The plugin uses the Google Places API to get your reviews. The API only returns the 5 most helpful reviews. When Google changes the 5 most helpful the plugin will automatically add the new one to your database. Thus slowly building up a database of reviews. It's a limitation of Google, not specifically the plugin.</p>
     
    2424        </div>
    2525    </div>
    26     <div class="rplg-flex-col">
    27         <div class="rplg-support-question">
     26    <div class="grw-flex-col">
     27        <div class="grw-support-question">
    2828            <h3>Is the plugin compatible with the latest version of PHP? I saw warnings about the compatibility with PHP 7 in the checker plugin.</h3>
    2929            <p>Yes, the plugin is absolutely compatible with PHP 7 and by the way, we are using PHP 7 on the demo site.</p>
     
    3333    </div>
    3434</div>
    35 <div class="rplg-flex-row">
    36     <div class="rplg-flex-col">
    37         <div class="rplg-support-question">
     35<div class="grw-flex-row">
     36    <div class="grw-flex-col">
     37        <div class="grw-support-question">
    3838            <h3>If you still need support</h3>
    3939            <p>You can contact us directly by email <a href="mailto:[email protected]">[email protected]</a> and would be great and save us a lot of time if each request to the support will contain the following data:</p>
     
    4747        </div>
    4848    </div>
    49     <div class="rplg-flex-col">
    50         <div class="rplg-support-question">
     49    <div class="grw-flex-col">
     50        <div class="grw-support-question">
    5151        </div>
    5252    </div>
  • widget-google-reviews/trunk/readme.txt

    r2625523 r2627777  
    55Requires at least: 2.8
    66Tested up to: 5.8
    7 Stable tag: 2.0
     7Stable tag: 2.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484== Changelog ==
    8585
     86= 2.0.1 =
     87* Instantly Google reviews connecting
     88* Full Google reviews multi-language support
     89* Bug and style fixes
     90
    8691= 2.0 =
    8792* Plugin keeps the widgets and shortcodes
Note: See TracChangeset for help on using the changeset viewer.