PluginProbe
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.10.0
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.10.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 All 171 releases
custom-facebook-feed / inc / Integrations / Elementor / CFF_Modern_Elementor_Widget.php
CFF_Modern_Elementor_Widget.php
56 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace CustomFacebookFeed\Integrations\Elementor;
4
5 use FacebookFeed\Vendor\Smashballoon\Framework\Packages\Blocks\SB_Elementor_Feed_Widget;
6 use CustomFacebookFeed\Builder\CFF_Db;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 if ( ! class_exists( '\Elementor\Widget_Base' ) ) {
13 return;
14 }
15
16 class CFF_Modern_Elementor_Widget extends SB_Elementor_Feed_Widget {
17
18 protected function get_widget_name() {
19 return 'sb-facebook-feed';
20 }
21
22 protected function get_widget_title() {
23 return __( 'Facebook Feed', 'custom-facebook-feed' );
24 }
25
26 protected function get_widget_icon() {
27 return 'sb-elem-icon sb-elem-facebook';
28 }
29
30 protected function get_shortcode_tag() {
31 return 'custom-facebook-feed';
32 }
33
34 protected function get_feeds_options() {
35 $feeds = CFF_Db::elementor_feeds_query();
36 unset( $feeds[0] );
37 return $feeds;
38 }
39
40 protected function get_text_domain() {
41 return 'custom-facebook-feed';
42 }
43
44 protected function get_script_deps() {
45 return array( 'cffscripts', 'sb-elementor-editor' );
46 }
47
48 protected function get_style_deps() {
49 return array( 'cff', 'sb-elementor-editor' );
50 }
51
52 protected function get_output_filter() {
53 return 'cff_output';
54 }
55 }
56