PluginProbe ʕ •ᴥ•ʔ
Rich Showcase for Google Reviews / 2.0
Rich Showcase for Google Reviews v2.0
6.9.7 6.9.6 trunk 1.4 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.5 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.7 1.6.8 1.6.9 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.4 2.4.1 2.4.2 2.5 2.5.1 2.6 2.6.1 2.6.2 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.6.1 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.8.1 4.8.2 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.7.1 5.8 5.9 5.9.1 5.9.2 5.9.3 5.9.7 6.0 6.1 6.2 6.3 6.4 6.4.1 6.5 6.6 6.6.1 6.6.2 6.7 6.8 6.8.1 6.8.2 6.9 6.9.1 6.9.2 6.9.3 6.9.4 6.9.4.1 6.9.4.2 6.9.4.3 6.9.4.4 6.9.5
widget-google-reviews / grw.php
widget-google-reviews Last commit date
assets 4 years ago includes 4 years ago languages 5 years ago autoloader.php 4 years ago grw.php 4 years ago readme.txt 4 years ago
grw.php
65 lines
1 <?php
2 /*
3 Plugin Name: Widget for Google Reviews
4 Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
5 Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
6 Version: 2.0
7 Author: RichPlugins <support@richplugins.com>
8 Author URI: https://richplugins.com
9 Text Domain: widget-google-reviews
10 Domain Path: /languages
11 */
12
13 namespace WP_Rplg_Google_Reviews;
14
15 if (!defined('ABSPATH')) {
16 exit;
17 }
18
19 require(ABSPATH . 'wp-includes/version.php');
20
21 define('GRW_VERSION' , '2.0');
22 define('GRW_PLUGIN_FILE' , __FILE__);
23 define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
24 define('GRW_ASSETS_URL' , GRW_PLUGIN_URL . '/assets/');
25
26 define('GRW_GOOGLE_PLACE_API' , 'https://maps.googleapis.com/maps/api/place/');
27 define('GRW_GOOGLE_AVATAR' , 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s128-c/114307615494839964028.jpg');
28
29 require_once __DIR__ . '/autoloader.php';
30
31 /*-------------------------------- Links --------------------------------*/
32 function grw_plugin_action_links($links, $file) {
33 $plugin_file = basename(__FILE__);
34 if (basename($file) == $plugin_file) {
35 $settings_link = '<a href="' . admin_url('admin.php?page=grw-builder') . '">' .
36 '<span style="background-color:#e7711b;color:#fff;font-weight:bold;padding:0px 8px 2px">' .
37 'Connect Reviews' .
38 '</span>' .
39 '</a>';
40 array_unshift($links, $settings_link);
41 }
42 return $links;
43 }
44 add_filter('plugin_action_links', 'WP_Rplg_Google_Reviews\\grw_plugin_action_links', 10, 2);
45
46 /*-------------------------------- Row Meta --------------------------------*/
47 function grw_plugin_row_meta($input, $file) {
48 if ($file != plugin_basename( __FILE__ )) {
49 return $input;
50 }
51
52 $links = array(
53 '<a href="' . admin_url('admin.php?page=grw-support') . '" target="_blank">' . __('View Documentation', 'grw') . '</a>',
54 '<a href="' . esc_url('https://richplugins.com/business-reviews-bundle-wordpress-plugin') . '" target="_blank">' . __('Upgrade to Business', 'grw') . ' &raquo;</a>',
55 );
56 $input = array_merge($input, $links);
57 return $input;
58 }
59 add_filter('plugin_row_meta', 'WP_Rplg_Google_Reviews\\grw_plugin_row_meta', 10, 2);
60
61 /*-------------------------------- Plugin init --------------------------------*/
62 $grw = new Includes\Plugin();
63 $grw->register();
64
65 ?>