: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace TwitterFeed\Builder\Tabs;
use TwitterFeed\Builder\CTF_Feed_Builder;
if(!defined('ABSPATH')) exit;
* Get Customize Tab Sections
static function get_sections(){
'customize_template' => [
'heading' => __( 'Template', 'custom-twitter-feeds' ),
'icon' => 'feed_template',
'controls' => self::get_settings_feedtemplates_controls()
'customize_feedlayout' => [
'heading' => __( 'Feed Layout', 'custom-twitter-feeds' ),
'controls' => self::get_customize_feedlayout_controls()
'customize_colorschemes' => [
'heading' => __( 'Color Scheme', 'custom-twitter-feeds' ),
'icon' => 'color_scheme',
'controls' => self::get_customize_colorscheme_controls()
'customize_sections' => [
'heading' => __( 'Sections', 'custom-twitter-feeds' ),
'heading' => __( 'Header', 'custom-twitter-feeds' ),
'description' => '<br/>',
'controls' => self::get_customize_header_controls()
'heading' => __( 'Tweets', 'custom-twitter-feeds' ),
'description' => __( 'Hide or Show individual elements of a post or edit their options', 'custom-twitter-feeds' ),
'icon' => ctf_should_rebrand_to_x () ? 'x' : 'twitter',
'controls' => self::get_customize_tweets_controls(),
'heading' => __( 'Tweet Style', 'custom-twitter-feeds' ),
'icon' => 'color_scheme',
'controls' => self::get_nested_tweet_style_controls(),
'individual_elements' => [
'heading' => __( 'Edit Individual Elements', 'custom-twitter-feeds' ),
'controls' => self::get_nested_individual_elements_controls(),
'customize_loadmorebutton' => [
'heading' => __( 'Load More Button', 'custom-twitter-feeds' ),
'description' => '<br/>',
'controls' => self::get_customize_loadmorebutton_controls()
'customize_lightbox' => [
'heading' => __( 'Lightbox', 'custom-twitter-feeds' ),
'description' => __( 'Upgrade to Pro and display tweets with images in a popup.', 'custom-twitter-feeds' ),
'checkExtensionPopup' => 'lightboxExtension',
'controls' => self::get_customize_lightbox_controls()
* Get Customize Tab Templates
static function get_settings_feedtemplates_controls(){
'viewId' => 'feedtemplate'
* Get Customize Tab Feed Layout Section
static function get_customize_feedlayout_controls(){
'heading' => __( 'Layout', 'custom-twitter-feeds' ),
//'ajaxAction' => 'feedFlyPreview',
'label' => __( 'List', 'custom-twitter-feeds' )
'checkExtension' => 'feedLayout',
'label' => __( 'Masonry', 'custom-twitter-feeds' )
'checkExtension' => 'feedLayout',
'label' => __( 'Carousel', 'custom-twitter-feeds' )
'condition' => ['layout' => ['carousel']],
'heading' => __( 'Carousel Settings', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel']],
'id' => 'carouselnavarrows',
'condition' => ['layout' => ['carousel']],
'label' => __( 'Navigation Arrows', 'custom-twitter-feeds' ),
#'disabledInput' => true,
'condition' => ['layout' => ['carousel']],
'label' => __( 'Pagination Dots', 'custom-twitter-feeds' ),
#'disabledInput' => true,
'id' => 'carouselautoplay',
'condition' => ['layout' => ['carousel']],
'label' => __( 'Autoplay', 'custom-twitter-feeds' ),
#'disabledInput' => true,
'condition' => ['layout' => ['carousel']],
'ajaxAction' => 'feedFlyPreview',
'strongHeading' => 'false',
'heading' => __( 'Rows', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Loop Type', 'custom-twitter-feeds' ),
'rewind' => __( 'Rewind', 'custom-twitter-feeds' ),
'infinity' => __( 'Infinity', 'custom-twitter-feeds' ),
'id' => 'carouselheight',
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Height of Carousel', 'custom-twitter-feeds' ),
'tallest' => __( 'Set to tallest post', 'custom-twitter-feeds' ),
'clickexpand' => __( 'Set to shortest post, button to expand', 'custom-twitter-feeds' ),
'auto' => __( 'Automatically adjust height (forces 1 column)', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Interval Time', 'custom-twitter-feeds' ),
'id' => 'carouselarrows',
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Navigation Arrows', 'custom-twitter-feeds' ),
'none' => __( 'Hide arrows', 'custom-twitter-feeds' ),
'onhover' => __( 'On Hover', 'custom-twitter-feeds' ),
'below' => __( 'Below feed', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel']],
'condition' => ['layout' => ['masonry']],
'heading' => __( 'Columns', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel','masonry']],
'condition' => ['layout' => ['masonry']],
'strongHeading' => 'false',
'heading' => __( 'Desktop', 'custom-twitter-feeds' ),
'id' => 'masonrytabletcols',
'condition' => ['layout' => ['masonry']],
'strongHeading' => 'false',
'heading' => __( 'Tablet', 'custom-twitter-feeds' ),
'id' => 'masonrymobilecols',
'condition' => ['layout' => ['masonry']],
'strongHeading' => 'false',
'heading' => __( 'Mobile', 'custom-twitter-feeds' ),
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Desktop', 'custom-twitter-feeds' ),
'id' => 'carouseltabletcols',
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Tablet', 'custom-twitter-feeds' ),
'id' => 'carouselmobilecols',
'condition' => ['layout' => ['carousel']],
'strongHeading' => 'false',
'heading' => __( 'Mobile', 'custom-twitter-feeds' ),
'ajaxAction' => 'feedFlyPreview',
'strongHeading' => 'true',
'heading' => __( 'Number of tweets to display', 'custom-twitter-feeds' ),
'strongHeading' => 'true',
'heading' => __( 'Feed Height', 'custom-twitter-feeds' ),
'style' => ['.ctf-fixed-height' => 'height:{{value}}px!important;overflow:auto;'],
'strongHeading' => 'false',
'noticeIcon' => 'article',
'containerAction' => 'navigateToStyle',
'noticeDescription' => __( '<strong>Tweak Tweet Styles</strong><br/>Change post background, border radius, shadow etc.', 'custom-twitter-feeds' ),
* Get Customize Tab Color Scheme Section
static function get_customize_colorscheme_controls(){
$feed_id = isset($_GET['feed_id']) ? $_GET['feed_id'] : '';
'label' => __( 'Inherit from Theme', 'custom-twitter-feeds' )
'label' => __( 'Light', 'custom-twitter-feeds' )
'label' => __( 'Dark', 'custom-twitter-feeds' )
'label' => __( 'Custom', 'custom-twitter-feeds' )
'condition' => ['colorpalette' => ['custom']],
'heading' => __( 'Custom Palette', 'custom-twitter-feeds' ),