e" color-interpolation-filters="sRGB"> ', 'featuredpostIconFree' => ' ', 'singlealbumIconFree' => ' ', 'socialwallIconFree' => ' ', 'photosIconFree' => ' ', 'videosIconFree' => ' ', 'albumsIconFree' => ' ', 'eventsIconFree' => ' ', ]; return $builder_svg_icons; } /** * Color Overrides Manager * * @return array * * @since 4.0 */ public static function get_color_overrides() { return [ // Post Author [ 'heading' => __('Post Author', 'custom-facebook-feed'), 'elements' => ['authorcolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 0, 'section' ], 'id' => 'post_styling_author' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'authorcolor' ] ] ], // Post Text [ 'heading' => __('Post', 'custom-facebook-feed'), 'elements' => ['textcolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 1, 'section' ], 'id' => 'post_styling_text' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'textcolor' ] ] ], // Post Date [ 'heading' => __('Post Date', 'custom-facebook-feed'), 'elements' => ['datecolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 2, 'section' ], 'id' => 'post_styling_date' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'datecolor' ] ] ], // Likes Shares & Comments [ 'heading' => __('Likes, Shares and Comments', 'custom-facebook-feed'), 'elements' => ['socialtextcolor','sociallinkcolor','socialbgcolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 4, 'section' ], 'id' => 'post_styling_social' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'socialtextcolor' ], [ 'heading' => __('Link', 'custom-facebook-feed'), 'id' => 'sociallinkcolor' ], [ 'heading' => __('Background', 'custom-facebook-feed'), 'id' => 'socialbgcolor' ] ] ], // Event Title [ 'heading' => __('Event Title', 'custom-facebook-feed'), 'elements' => ['eventtitlecolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 5, 'section' ], 'id' => 'post_styling_eventtitle' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'eventtitlecolor' ] ] ], // Event Details /* [ 'heading' => __( 'Event Details', 'custom-facebook-feed' ), 'elements' => ['eventdetailscolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 6, 'section' ], 'id' => 'post_styling_eventdetails' ], 'controls' => [ [ 'heading' => __( 'Text', 'custom-facebook-feed' ), 'id' => 'eventdetailscolor' ] ] ],*/ // Link [ 'heading' => __('Post Action Links', 'custom-facebook-feed'), 'elements' => ['linkcolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 7, 'section' ], 'id' => 'post_styling_link' ], 'controls' => [ [ 'heading' => __('Text', 'custom-facebook-feed'), 'id' => 'linkcolor' ] ] ], // Description /* [ 'heading' => __( 'Shared Post', 'custom-facebook-feed' ), 'elements' => ['desccolor'], 'controls' => [ [ 'heading' => __( 'Text', 'custom-facebook-feed' ), 'id' => 'desccolor' ] ] ],*/ [ 'heading' => __('Shared Link Box', 'custom-facebook-feed'), 'elements' => ['linkbgcolor','linktitlecolor','linkdesccolor','linkurlcolor'], 'enableViewAction' => [ 'sections' => [ 'customize', 'sections', 'customize_posts', 'nested_sections', 'individual_elements', 'controls', 8, 'section' ], 'id' => 'post_styling_sharedlinks' ], 'controls' => [ [ 'heading' => __('Background', 'custom-facebook-feed'), 'id' => 'linkbgcolor' ], [ 'heading' => __('Title', 'custom-facebook-feed'), 'id' => 'linktitlecolor' ], [ 'heading' => __('Description', 'custom-facebook-feed'), 'id' => 'linkdesccolor' ], [ 'heading' => __('Url', 'custom-facebook-feed'), 'id' => 'linkurlcolor' ] ] ] ]; } public static function get_social_wall_links() { return array( '' . __('All Feeds', 'custom-facebook-feed') . '', '' . __('Settings', 'custom-facebook-feed') . '', '' . __('oEmbeds', 'custom-facebook-feed') . '', '' . __('Extensions', 'custom-facebook-feed') . '', '' . __('About Us', 'custom-facebook-feed') . '', '' . __('Support', 'custom-facebook-feed') . '', ); } /** * Feed Builder Wrapper. * * @since 4.0 */ public function feed_builder() { include_once CFF_BUILDER_DIR . 'templates/builder.php'; } /** * Get Smahballoon Plugins Info * * @since 4.3 */ public static function get_smashballoon_plugins_info() { $installed_plugins = get_plugins(); // check whether the pro or free plugins are installed $is_facebook_installed = false; $facebook_plugin = 'custom-facebook-feed/custom-facebook-feed.php'; if (isset($installed_plugins['custom-facebook-feed-pro/custom-facebook-feed.php'])) { $is_facebook_installed = true; $facebook_plugin = 'custom-facebook-feed-pro/custom-facebook-feed.php'; } elseif (isset($installed_plugins['custom-facebook-feed/custom-facebook-feed.php'])) { $is_facebook_installed = true; } $is_instagram_installed = false; $instagram_plugin = 'instagram-feed/instagram-feed.php'; if (isset($installed_plugins['instagram-feed-pro/instagram-feed.php'])) { $is_instagram_installed = true; $instagram_plugin = 'instagram-feed-pro/instagram-feed.php'; } elseif (isset($installed_plugins['instagram-feed/instagram-feed.php'])) { $is_instagram_installed = true; } $is_twitter_installed = false; $twitter_plugin = 'custom-twitter-feeds/custom-twitter-feed.php'; if (isset($installed_plugins['custom-twitter-feeds-pro/custom-twitter-feed.php'])) { $is_twitter_installed = true; $twitter_plugin = 'custom-twitter-feeds-pro/custom-twitter-feed.php'; } elseif (isset($installed_plugins['custom-twitter-feeds/custom-twitter-feed.php'])) { $is_twitter_installed = true; } $is_youtube_installed = false; $youtube_plugin = 'feeds-for-youtube/youtube-feed.php'; if (isset($installed_plugins['youtube-feed-pro/youtube-feed.php'])) { $is_youtube_installed = true; $youtube_plugin = 'youtube-feed-pro/youtube-feed.php'; } elseif (isset($installed_plugins['feeds-for-youtube/youtube-feed.php'])) { $is_youtube_installed = true; } $icons = self::builder_svg_icons(); return [ 'facebook' => [ 'installed' => $is_facebook_installed, 'class' => 'CFF_Elementor_Widget', 'link' => 'https://smashballoon.com/custom-facebook-feed/', 'icon' => $icons['facebook'], 'description' => __('Custom Facebook Feeds is a highly customizable way to display tweets from your Facebook account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed'), 'download_plugin' => 'https://downloads.wordpress.org/plugin/custom-facebook-feed.zip', ], 'instagram' => [ 'installed' => $is_instagram_installed, 'class' => 'SBI_Elementor_Widget', 'link' => 'https://smashballoon.com/instagram-feed/', 'icon' => $icons['instagram'], 'description' => __('Instagram Feeds is a highly customizable way to display tweets from your Instagram account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed'), 'download_plugin' => 'https://downloads.wordpress.org/plugin/instagram-feed.zip', ], 'twitter' => [ 'installed' => $is_twitter_installed, 'class' => 'CTF_Elementor_Widget', 'link' => 'https://smashballoon.com/custom-twitter-feeds/', 'icon' => $icons['twitter'], 'description' => __('Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed'), 'download_plugin' => 'https://downloads.wordpress.org/plugin/custom-twitter-feeds.zip', ], 'youtube' => [ 'installed' => $is_youtube_installed, 'class' => 'SBY_Elementor_Widget', 'link' => 'https://smashballoon.com/youtube-feed/', 'icon' => $icons['youtube'], 'description' => __('YouTube Feeds is a highly customizable way to display tweets from your YouTube account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed'), 'download_plugin' => 'https://downloads.wordpress.org/plugin/feeds-for-youtube.zip', ] ]; } }