PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.12.0
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.12.0
4.12.0 4.10.0 4.9.0 4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / inc / CFF_Education.php
custom-facebook-feed / inc Last commit date
Admin 2 weeks ago Builder 2 weeks ago Helpers 2 weeks ago Integrations 2 weeks ago UsageTracking 2 weeks ago CFF_Autolink.php 2 weeks ago CFF_Blocks.php 2 weeks ago CFF_Cache.php 2 weeks ago CFF_Education.php 2 weeks ago CFF_Elementor_Base.php 2 weeks ago CFF_Elementor_Widget.php 2 weeks ago CFF_Error_Reporter.php 2 weeks ago CFF_FB_Settings.php 2 weeks ago CFF_Feed_Elementor_Control.php 2 weeks ago CFF_Feed_Locator.php 2 weeks ago CFF_Feed_Pro.php 2 weeks ago CFF_GDPR_Integrations.php 2 weeks ago CFF_Group_Posts.php 2 weeks ago CFF_HTTP_Request.php 2 weeks ago CFF_Oembed.php 2 weeks ago CFF_Parse.php 2 weeks ago CFF_Resizer.php 2 weeks ago CFF_Response.php 2 weeks ago CFF_Shortcode.php 2 weeks ago CFF_Shortcode_Display.php 2 weeks ago CFF_SiteHealth.php 2 weeks ago CFF_Utils.php 2 weeks ago CFF_View.php 2 weeks ago Custom_Facebook_Feed.php 2 weeks ago Email_Notification.php 2 weeks ago Platform_Data.php 2 weeks ago SB_Facebook_Data_Encryption.php 2 weeks ago SB_Facebook_Data_Manager.php 2 weeks ago index.php 2 weeks ago
CFF_Education.php
147 lines
1 <?php
2
3 /**
4 *
5 * @since 5.5
6 */
7
8 namespace CustomFacebookFeed;
9
10 if (!defined('ABSPATH')) {
11 exit; // Exit if accessed directly
12 }
13
14 class CFF_Education
15 {
16 public $plugin_version;
17
18 /**
19 * Constructor.
20 *
21 * @since 5.5
22 */
23 public function __construct()
24 {
25
26 $this->hooks();
27 }
28
29 /**
30 * Hooks.
31 *
32 * @since 5.5
33 */
34 public function hooks()
35 {
36 $this->plugin_version = defined('WPW_SL_STORE_URL') ? 'pro' : 'free';
37 }
38
39 /**
40 * "Did You Know?" messages.
41 *
42 * @since 5.5
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', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
51 'more' => 'https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=education&utm_medium=cross-sell',
52 'item' => 1,
53 ),
54 array(
55 'title' => esc_html__('Use Facebook Reviews to Boost Conversions', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
57 'more' => 'https://smashballoon.com/extensions/reviews/?utm_campaign=facebook-free&utm_source=education&utm_medium=cross-sell',
58 'item' => 2,
59 ),
60 array(
61 'title' => esc_html__('Bring the Conversation to Your Website', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
63 'more' => 'https://smashballoon.com/custom-facebook-feed/wordpress-plugin/?utm_campaign=facebook-free&utm_source=education&utm_medium=cross-sell#comments',
64 'item' => 3,
65 ),
66 array(
67 'title' => esc_html__('Automatically Feed Facebook Events to Your Website', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
69 'more' => 'https://smashballoon.com/custom-facebook-feed/docs/displaying-facebook-events-using-wordpress-plugin/?utm_campaign=facebook-free&utm_source=education&utm_medium=cross-sell',
70 'item' => 4,
71 ),
72 );
73
74 $pro_messages = array(
75 array(
76 'title' => esc_html__('Automated YouTube Live Streaming', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
78 'more' => 'https://smashballoon.com/youtube-feed/?utm_campaign=facebook-free&utm_source=education&utm_medium=cross-sell',
79 'item' => 1,
80 ),
81 array(
82 'title' => esc_html__('Use Facebook Reviews to Boost Conversions', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
84 'more' => 'https://smashballoon.com/extensions/reviews/?utm_campaign=facebook-pro&utm_source=education&utm_medium=cross-sell',
85 'item' => 2,
86 ),
87 array(
88 'title' => esc_html__('Adding Social Proof with Twitter Feeds', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
90 'more' => 'https://wordpress.org/plugins/custom-twitter-feeds/',
91 'item' => 3,
92 ),
93 array(
94 'title' => esc_html__('Run Promotions with Instagram Hashtags', 'custom-facebook-feeds'),
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.', 'custom-facebook-feeds'),
96 'more' => 'https://smashballoon.com/instagram-feed/features/?utm_campaign=facebook-pro&utm_source=education&utm_medium=cross-sell#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 5.5
111 */
112 public function dyk_message_rnd()
113 {
114
115 $messages = $this->dyk_messages();
116
117 $index = array_rand($messages);
118
119 return $messages[ $index ];
120 }
121
122 /**
123 * "Did You Know?" display message.
124 *
125 * @since 5.5
126 */
127 public function dyk_display()
128 {
129
130 $dyk_message = $this->dyk_message_rnd();
131
132 if (! empty($dyk_message['more'])) {
133 $dyk_message['more'] = add_query_arg(
134 array(
135 'utm_campaign' => 'facebook-' . $this->plugin_version,
136 'utm_source' => 'education',
137 'utm_medium' => 'cross-sell',
138 'utm_content' => $dyk_message['item'],
139 ),
140 $dyk_message['more']
141 );
142 }
143
144 return $dyk_message;
145 }
146 }
147