PluginProbe ʕ •ᴥ•ʔ
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More / 2.6.7
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More v2.6.7
2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.7 2.6.8 2.6.5 2.6.4 2.6.3 2.6.2 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1 1.1.1 1.1.2 1.2.0 2.0 2.1.0 2.1.1 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5.0 2.5.1
reviews-feed / class / Common / SBR_Education.php
reviews-feed / class / Common Last commit date
Admin 2 months ago Builder 2 months ago Customizer 2 months ago Exceptions 2 months ago Helpers 2 months ago Integrations 2 months ago Migrations 2 months ago ReviewAlerts 2 months ago Services 2 months ago Settings 2 months ago Support 2 months ago Traits 2 months ago Utils 2 months ago AuthorizationStatusCheck.php 2 months ago BusinessDataCache.php 2 months ago Clear_Cache.php 2 months ago Container.php 2 months ago DisplayElements.php 2 months ago Email_Notification.php 2 months ago Error_Reporter.php 2 months ago Feed.php 2 months ago FeedCache.php 2 months ago FeedCacheUpdater.php 2 months ago FeedDisplay.php 2 months ago Feed_Locator.php 2 months ago Parser.php 2 months ago PostAggregator.php 2 months ago RemoteRequest.php 2 months ago SBR_Education.php 2 months ago SBR_Settings.php 2 months ago ServiceContainer.php 2 months ago SinglePostCache.php 2 months ago TemplateRenderer.php 2 months ago Tooltip_Wizard.php 2 months ago Util.php 2 months ago
SBR_Education.php
141 lines
1 <?php
2
3 /**
4 *
5 * @since X.X
6 */
7
8 namespace SmashBalloon\Reviews\Common;
9
10 // Exit if accessed directly
11 if (!defined('ABSPATH')) {
12 exit;
13 }
14
15 class SBR_Education
16 {
17 public $plugin_version;
18
19 /**
20 * Constructor.
21 *
22 * @since X.X
23 */
24 public function __construct()
25 {
26 $this->hooks();
27 }
28
29 /**
30 * Hooks.
31 *
32 * @since X.X
33 */
34 public function hooks()
35 {
36 $this->plugin_version = defined('WPW_SL_SBR_ITEM_NAME') ? 'pro' : 'free';
37 }
38
39 /**
40 * "Did You Know?" messages.
41 *
42 * @since X.X
43 */
44 public function dyk_messages()
45 {
46
47 $free_messages = array(
48 array(
49 'title' => esc_html__('Bring Your Feeds to Life with Media Content', 'reviews-feed'),
50 'content' => esc_html__('You\'ve done the hard work of getting a visitor onto your site, now keep them there by displaying your Facebook photos and videos directly on your site, rather than sending your visitors away to Facebook.', 'reviews-feed'),
51 'more' => 'https://smashballoon.com/custom-facebook-feed/?utm_campaign=reviews-free&utm_source=about-us&utm_medium=marketing',
52 'item' => 1,
53 ),
54 array(
55 'title' => esc_html__('Use Facebook Reviews to Boost Conversions', 'reviews-feed'),
56 'content' => esc_html__('Reviews for your product or service are the best way to give users the confidence to take action. With the Reviews extension, easily add 5 star reviews and recommendations from Facebook to your website help increase conversions.', 'reviews-feed'),
57 'more' => 'https://smashballoon.com/extensions/reviews/?utm_campaign=reviews-free&utm_source=about-us&utm_medium=marketing',
58 'item' => 2,
59 ),
60 array(
61 'title' => esc_html__('Bring the Conversation to Your Website', 'reviews-feed'),
62 'content' => esc_html__('Include the Facebook comments with each of your posts to engage your website viewers, keep them on your site for longer, and encourage them to interact with your content.', 'reviews-feed'),
63 'more' => 'https://smashballoon.com/custom-facebook-feed/wordpress-plugin/?utm_campaign=reviews-free&utm_source=about-us&utm_medium=marketing#comments',
64 'item' => 3,
65 ),
66 array(
67 'title' => esc_html__('Automatically Feed Facebook Events to Your Website', 'reviews-feed'),
68 'content' => esc_html__('Save yourself the time and effort of posting events both to Facebook and your website by using the Custom Facebook Feed Pro plugin to automatically feeds events right to your site.', 'reviews-feed'),
69 'more' => 'https://smashballoon.com/custom-facebook-feed/docs/displaying-facebook-events-using-wordpress-plugin/?utm_campaign=reviews-free&utm_source=about-us&utm_medium=marketing',
70 'item' => 4,
71 ),
72 );
73
74 $pro_messages = array(
75 array(
76 'title' => esc_html__('Automated YouTube Live Streaming', 'reviews-feed'),
77 'content' => esc_html__('You can automatically feed live YouTube videos to your website using our Feeds For YouTube Pro plugin. It takes all the hassle out of publishing live videos to your site by automating the process.', 'reviews-feed'),
78 'more' => 'https://smashballoon.com/youtube-feed/?utm_campaign=reviews-pro&utm_source=about-us&utm_medium=marketing',
79 'item' => 1,
80 ),
81 array(
82 'title' => esc_html__('Use Facebook Reviews to Boost Conversions', 'reviews-feed'),
83 'content' => esc_html__('Reviews for your product or service are the best way to give users the confidence to take action. With the Reviews extension, easily add 5 star reviews and recommendations from Facebook to your website help increase conversions.', 'reviews-feed'),
84 'more' => 'https://smashballoon.com/extensions/reviews/?utm_campaign=reviews-pro&utm_source=about-us&utm_medium=marketing',
85 'item' => 2,
86 ),
87 array(
88 'title' => esc_html__('Adding Social Proof with Twitter Feeds', 'reviews-feed'),
89 'content' => esc_html__('Twitter testimonials are one of the best ways to add verifiable social proof to your website. They add credibility to your brand, product, or service by displaying reviews from real people to your site, helping to convert more visitors into customers. Our free Custom Twitter Feeds plugin makes displaying Tweets on your website a breeze.', 'reviews-feed'),
90 'more' => 'https://wordpress.org/plugins/custom-twitter-feeds/',
91 'item' => 3,
92 ),
93 array(
94 'title' => esc_html__('Run Promotions with Instagram Hashtags', 'reviews-feed'),
95 'content' => esc_html__('You can use hashtags on Instagram for so many things; but one of the most effective is for targeted promotions or competitions which engage with your audience and boost your exposure. Our Instagram Feed Pro plugin allows you to bring your hashtagged content into your website and display it in one centralized location.', 'reviews-feed'),
96 'more' => 'https://smashballoon.com/instagram-feed/features/?utm_campaign=reviews-pro&utm_source=about-us&utm_medium=marketing#hashtag',
97 'item' => 4,
98 ),
99 );
100
101 if ($this->plugin_version === 'pro') {
102 return $pro_messages;
103 }
104 return $free_messages;
105 }
106
107 /**
108 * "Did You Know?" random message.
109 *
110 * @since X.X
111 */
112 public function dyk_message_rnd()
113 {
114 $messages = $this->dyk_messages();
115 $index = array_rand($messages);
116 return $messages[ $index ];
117 }
118
119 /**
120 * "Did You Know?" display message.
121 *
122 * @since X.X
123 *
124 */
125 public function dyk_display()
126 {
127 $dyk_message = $this->dyk_message_rnd();
128 if (!empty($dyk_message['more'])) {
129 $dyk_message['more'] = add_query_arg(
130 array(
131 'utm_source' => 'plugin-' . $this->plugin_version,
132 'utm_campaign' => 'sbr-issue-email',
133 'utm_content' => $dyk_message['item'],
134 ),
135 $dyk_message['more']
136 );
137 }
138 return $dyk_message;
139 }
140 }
141