Changeset 2627777
- Timestamp:
- 11/11/2021 12:00:36 AM (3 years ago)
- 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 --------------------------------*/ 1 2 .grw-admin #wpcontent { 2 3 padding: 0; … … 18 19 } 19 20 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 20 27 .grw-admin .update-nag { 21 28 margin: 20px 0 0 20px; … … 30 37 } 31 38 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 --------------------------------*/ 32 57 .grw-tophead { 33 58 -ms-flex-align: center; … … 81 106 } 82 107 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 --------------------------------*/ 106 128 .grw-toolbar { 107 129 padding: 15px 20px; … … 210 232 } 211 233 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 --------------------------------*/ 212 256 .nav-tab.nav-tab-active { 213 257 box-shadow: none; … … 227 271 } 228 272 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 298 273 .grw-settings-workspace .grw-alert { 299 274 max-width: 500px; … … 301 276 } 302 277 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 --------------------------------*/ 336 279 .grw-support-question { 337 280 padding-bottom: 10px; … … 348 291 .grw-support-workspace p { 349 292 font-size: 15px; 293 } 294 295 .grw-support-workspace #fig p { 296 line-height: 24px; 350 297 } 351 298 … … 375 322 box-shadow: 0 2px 5px 0 rgba(0,0,0,.26); 376 323 } 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 4 4 Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin 5 5 Description: Instantly Google Places Reviews on your website to increase user confidence and SEO. 6 Version: 2.0 6 Version: 2.0.1 7 7 Author: RichPlugins <[email protected]> 8 8 Author URI: https://richplugins.com … … 19 19 require(ABSPATH . 'wp-includes/version.php'); 20 20 21 define('GRW_VERSION' , '2.0 ');21 define('GRW_VERSION' , '2.0.1'); 22 22 define('GRW_PLUGIN_FILE' , __FILE__); 23 23 define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__))); -
widget-google-reviews/trunk/includes/admin/class-admin-rev.php
r2625523 r2627777 13 13 14 14 if ($activation_time == '') { 15 $activation_time = time() - 86400* 3;15 $activation_time = time() - 86400*2; 16 16 update_option('grw_activation_time', $activation_time); 17 17 } … … 19 19 $rev_notice = isset($_GET['grw_rev_notice']) ? $_GET['grw_rev_notice'] : ''; 20 20 if ($rev_notice == 'later') { 21 $activation_time = time() - 86400* 3;21 $activation_time = time() - 86400*2; 22 22 update_option('grw_activation_time', $activation_time); 23 23 update_option('grw_rev_notice_hide', 'later'); … … 31 31 if ($rev_notice_show == '' || $rev_notice_show == 'grw') { 32 32 33 if ($rev_notice_hide != 'never' && $activation_time < (time() - 86400* 5)) {33 if ($rev_notice_hide != 'never' && $activation_time < (time() - 86400*3)) { 34 34 update_option('rplg_rev_notice_show', 'grw'); 35 35 $class = 'notice notice-info is-dismissible'; -
widget-google-reviews/trunk/includes/admin/class-admin-tophead.php
r2625523 r2627777 40 40 Google Reviews 41 41 </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> 43 43 </div> 44 44 <?php -
widget-google-reviews/trunk/includes/class-activator.php
r2625523 r2627777 21 21 'rplg_rev_notice_show', 22 22 'grw_debug_refresh', 23 'grw_auth_code', 23 24 ); 24 25 } … … 67 68 $this->first_install(); 68 69 update_option('grw_version', $current_version); 70 update_option('grw_auth_code', $this->random_str(127)); 69 71 } elseif ($last_active_version !== $current_version) { 70 72 $this->exist_install($current_version, $last_active_version); … … 100 102 } 101 103 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; 102 110 } 103 111 } … … 239 247 } 240 248 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 241 259 } -
widget-google-reviews/trunk/includes/class-assets.php
r2625523 r2627777 10 10 11 11 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', 17 15 ); 18 16 19 17 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' 25 'grw-js' 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', 26 24 ); 27 25 … … 50 48 51 49 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')); 53 51 } 54 52 55 53 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')); 57 55 } 58 56 59 57 public function enqueue_admin_styles() { 60 wp_enqueue_style(' feedbuilder');58 wp_enqueue_style('wp-jquery-ui-dialog'); 61 59 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'); 64 61 wp_enqueue_style('grw-css'); 65 62 } … … 70 67 wp_enqueue_script('jquery-ui-draggable'); 71 68 wp_enqueue_script('jquery-ui-sortable'); 69 wp_enqueue_script('jquery-ui-dialog'); 72 70 73 71 wp_enqueue_script('grw-wpac-js'); 74 72 wp_enqueue_script('grw-admin-js'); 75 73 76 wp_localize_script(' feedbuilder', 'GRW_VARS', array(74 wp_localize_script('grw-builder-js', 'GRW_VARS', array( 77 75 'googleAPIKey' => get_option('grw_google_api_key'), 78 76 'GOOGLE_AVATAR' => GRW_GOOGLE_AVATAR, … … 82 80 'wordpress' => true, 83 81 )); 84 wp_enqueue_script(' feedbuilder');82 wp_enqueue_script('grw-builder-js'); 85 83 86 84 wp_enqueue_script('grw-time-js'); -
widget-google-reviews/trunk/includes/class-builder-page.php
r2625523 r2627777 101 101 </form> 102 102 </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 103 116 <script> 104 117 jQuery(document).ready(function($) { … … 113 126 el: '#grw-builder-option', 114 127 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; } ?> 118 129 }); 119 130 } -
widget-google-reviews/trunk/includes/class-plugin-support.php
r2625523 r2627777 44 44 <div id="welcome" class="tab-content" style="display:<?php echo $tab == 'welcome' ? 'block' : 'none'?>;"> 45 45 <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"> 48 48 <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> 49 49 <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> 50 50 <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"> 52 52 <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. 53 53 <a class="button-primary button" href="https://richplugins.com/business-reviews-bundle-wordpress-plugin" target="_blank" style="margin-left:10px">Upgrade to Business</a> 54 54 </div> 55 55 <br> 56 <div class=" rplg-socials">56 <div class="grw-socials"> 57 57 <div id="fb-root"></div> 58 58 <script>(function(d, s, id) { … … 79 79 </div> 80 80 </div> 81 <div class=" rplg-flex-col">81 <div class="grw-flex-col"> 82 82 <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> 83 83 </div> -
widget-google-reviews/trunk/includes/core/class-connect-google.php
r2625523 r2627777 33 33 $id = sanitize_text_field(wp_unslash($_POST['id'])); 34 34 $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 } 36 47 37 48 $res = wp_remote_get($url); … … 40 51 41 52 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 } 44 58 45 59 $this->save_reviews($body_json->result); … … 48 62 'id' => $body_json->result->place_id, 49 63 '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 ), 51 69 'reviews' => $body_json->result->reviews 52 70 ); … … 166 184 $google_review_id = 0; 167 185 if (isset($review->author_url) && strlen($review->author_url) > 0) { 186 $review_lang = ($review->language == 'en-US' ? 'en' : $review->language); 168 187 $google_review_id = $wpdb->get_var( 169 188 $wpdb->prepare( 170 189 "SELECT id FROM " . $wpdb->prefix . Database::REVIEW_TABLE . 171 " WHERE author_url = %s ", $review->author_url190 " WHERE author_url = %s AND language = %s", $review->author_url, $review_lang 172 191 ) 173 192 ); … … 193 212 $wpdb->insert($wpdb->prefix . Database::REVIEW_TABLE, array( 194 213 'google_place_id' => $google_place_id, 195 'hash' => $review->time, //TODO: workaround to support old versions214 'hash' => microtime(), //TODO: workaround to support old versions 196 215 'rating' => $review->rating, 197 216 'text' => $review->text, -
widget-google-reviews/trunk/includes/page-setting-fig.php
r2625523 r2627777 9 9 <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> 10 10 <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 Place sID 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> 12 12 13 13 <h3 class="subheader">How To Find Any Google Place ID…</h3> 14 14 15 <div class=" rplg-flex-row">16 <div class=" rplg-flex-col3">15 <div class="grw-flex-row"> 16 <div class="grw-flex-col3"> 17 17 <b>1</b> Search for your business on Google. 18 18 </div> 19 <div class=" rplg-flex-col7">19 <div class="grw-flex-col7"> 20 20 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_1.png'; ?>"></div> 21 21 </div> 22 22 </div> 23 23 24 <div class=" rplg-flex-row">25 <div class=" rplg-flex-col3">24 <div class="grw-flex-row"> 25 <div class="grw-flex-col3"> 26 26 <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.) 27 27 </div> 28 <div class=" rplg-flex-col7">28 <div class="grw-flex-col7"> 29 29 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_2.png'; ?>"></div> 30 30 </div> 31 31 </div> 32 32 33 <div class=" rplg-flex-row">34 <div class=" rplg-flex-col3">33 <div class="grw-flex-row"> 34 <div class="grw-flex-col3"> 35 35 <b>3</b> Find “<b>data-pid</b>” as shown above. (This part is a little tricky, but just look inside the <b><a></b> tag until you find <b>data-pid=</b>). 36 36 </div> 37 <div class=" rplg-flex-col7">37 <div class="grw-flex-col7"> 38 38 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_placeid_3.png'; ?>"></div> 39 39 </div> 40 40 </div> 41 41 42 <div class=" rplg-flex-row">43 <div class=" rplg-flex-col3">42 <div class="grw-flex-row"> 43 <div class="grw-flex-col3"> 44 44 <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. 45 45 </div> … … 50 50 <h3 id="fig_api_key"><u>II. Google Places API key</u></h3> 51 51 52 <div class=" rplg-flex-row">53 <div class=" rplg-flex-col">52 <div class="grw-flex-row"> 53 <div class="grw-flex-col"> 54 54 <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: 55 55 </div> 56 <div class=" rplg-flex-col">56 <div class="grw-flex-col"> 57 57 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_1.png'; ?>"></div> 58 58 </div> 59 59 </div> 60 60 61 <div class=" rplg-flex-row">62 <div class=" rplg-flex-col">61 <div class="grw-flex-row"> 62 <div class="grw-flex-col"> 63 63 <b>2</b> Select your existing project or create new: 64 64 </div> 65 <div class=" rplg-flex-col">65 <div class="grw-flex-col"> 66 66 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_2.png'; ?>"></div> 67 67 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_2_1.png'; ?>"></div> … … 69 69 </div> 70 70 71 <div class=" rplg-flex-row">72 <div class=" rplg-flex-col">71 <div class="grw-flex-row"> 72 <div class="grw-flex-col"> 73 73 <b>3</b> Wait for creation and then click '<b>ENABLE APIS AND SERVICES</b>': 74 74 </div> 75 <div class=" rplg-flex-col">75 <div class="grw-flex-col"> 76 76 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_3.png'; ?>"></div> 77 77 </div> 78 78 </div> 79 79 80 <div class=" rplg-flex-row">81 <div class=" rplg-flex-col">80 <div class="grw-flex-row"> 81 <div class="grw-flex-col"> 82 82 <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: 83 83 </div> 84 <div class=" rplg-flex-col">84 <div class="grw-flex-col"> 85 85 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_4.png'; ?>"></div> 86 86 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_4_1.png'; ?>"></div> … … 88 88 </div> 89 89 90 <div class=" rplg-flex-row">91 <div class=" rplg-flex-col">90 <div class="grw-flex-row"> 91 <div class="grw-flex-col"> 92 92 <b>5</b> After enable the Places API, click '<b>Navigation menu</b>', select '<b>APIs & Services</b>' and '<b>Credentials</b>': 93 93 </div> 94 <div class=" rplg-flex-col">94 <div class="grw-flex-col"> 95 95 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_5.png'; ?>"></div> 96 96 </div> 97 97 </div> 98 98 99 <div class=" rplg-flex-row">100 <div class=" rplg-flex-col">99 <div class="grw-flex-row"> 100 <div class="grw-flex-col"> 101 101 <b>6</b> On Credentials page click '<b>+ CREATE CREDENTIALS</b>' and select '<b>API key</b>': 102 102 </div> 103 <div class=" rplg-flex-col">103 <div class="grw-flex-col"> 104 104 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_6.png'; ?>"></div> 105 105 </div> 106 106 </div> 107 107 108 <div class=" rplg-flex-row">109 <div class=" rplg-flex-col">108 <div class="grw-flex-row"> 109 <div class="grw-flex-col"> 110 110 <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): 111 111 </div> 112 <div class=" rplg-flex-col">112 <div class="grw-flex-col"> 113 113 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_7.png'; ?>"></div> 114 114 </div> 115 115 </div> 116 116 117 <div class=" rplg-flex-row">118 <div class=" rplg-flex-col">117 <div class="grw-flex-row"> 118 <div class="grw-flex-col"> 119 119 <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>': 120 120 </div> 121 <div class=" rplg-flex-col">121 <div class="grw-flex-col"> 122 122 <div class="box-img"><img src="<?php echo GRW_ASSETS_URL . 'img/google_key_8.png'; ?>"></div> 123 123 </div> 124 124 </div> 125 125 126 <div class=" rplg-flex-row">127 <div class=" rplg-flex-col">126 <div class="grw-flex-row"> 127 <div class="grw-flex-col"> 128 128 <b>9</b> Agree Google terms, fill your contact information and start using your Google API key with the plugin. 129 129 </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"> 4 4 <h3>I can't connect my Google Place.</h3> 5 5 <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> 6 6 </div> 7 7 </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"> 10 10 <h3>I have some error messages about the Google API key.</h3> 11 11 <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> … … 13 13 </div> 14 14 </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"> 18 18 <h3>Why I see only 5 Google reviews?</h3> 19 19 <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> … … 24 24 </div> 25 25 </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"> 28 28 <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> 29 29 <p>Yes, the plugin is absolutely compatible with PHP 7 and by the way, we are using PHP 7 on the demo site.</p> … … 33 33 </div> 34 34 </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"> 38 38 <h3>If you still need support</h3> 39 39 <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> … … 47 47 </div> 48 48 </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"> 51 51 </div> 52 52 </div> -
widget-google-reviews/trunk/readme.txt
r2625523 r2627777 5 5 Requires at least: 2.8 6 6 Tested up to: 5.8 7 Stable tag: 2.0 7 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 84 84 == Changelog == 85 85 86 = 2.0.1 = 87 * Instantly Google reviews connecting 88 * Full Google reviews multi-language support 89 * Bug and style fixes 90 86 91 = 2.0 = 87 92 * Plugin keeps the widgets and shortcodes
Note: See TracChangeset
for help on using the changeset viewer.