'youtube',
'cta_header' => esc_html__('Get started with your first feed from your YouTube Channel', 'feeds-for-youtube'),
'cta_header2' => esc_html__('Select a YouTube feed to embed', 'feeds-for-youtube'),
'cta_description_free' => esc_html__('You can display feeds for your YouTube channel, playlist, live streams and more using the ', 'feeds-for-youtube') . self::linkGenerator('https://smashballoon.com/youtube-feed/?utm_campaign=' . sby_utm_campaign() . '&utm_source=elementor&utm_medium=widget&utm_content=proversion', 'Pro version'),
'cta_description_pro' => esc_html__('You can also add Instagram, Facebook, and Twitter posts into your feed using our ', 'feeds-for-youtube') . self::linkGenerator('https://smashballoon.com/social-wall/?utm_campaign=' . sby_utm_campaign() . '&utm_source=elementor&utm_medium=widget&utm_content=socialwall', 'Social Wall plugin'),
'plugins' => sby_get_installed_plugin_info()
];
}
/**
* Widget CTA
*
* @since 2.3
*
* @return HTML
*/
public static function get_widget_cta( $type = 'dropdown' )
{
$widget_cta_html = '';
$feeds_list = SBY_Db::elementor_feeds_query();
ob_start();
self::get_widget_cta_html( $feeds_list, $type );
$widget_cta_html .= ob_get_contents();
ob_get_clean();
return $widget_cta_html;
}
public static function get_widget_cta_html( $feeds_list, $type )
{
$info = self::get_widget_info();
$feeds_exist = is_array( $feeds_list ) && sizeof( $feeds_list ) > 0;
?>
$plugin):
$dashboard_permalink = !empty($plugin['dashboard_permalink']) ? $plugin['dashboard_permalink'] : '';
$installed = !empty($plugin['installed']) ? $plugin['installed'] : '';
$activated = !empty($plugin['activated']) ? $plugin['activated'] : '';
$website_link = !empty($plugin['website_link']) ? $plugin['website_link'] : '';
$link = $installed && $activated ? $dashboard_permalink : $website_link;
?>