: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Contains different controls for the individual Elements
namespace TwitterFeed\Builder\Tabs;
if(!defined('ABSPATH')) exit;
static function post_styling_author(){
'id' => 'include_avatar',
'label' => __( 'Avatar Image', 'custom-twitter-feeds' ),
'id' => 'include_author_text',
'label' => __( 'Author Text', 'custom-twitter-feeds' ),
'id' => 'authortextsize',
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'condition' => ['include_author_text' => [true]],
'style' => ['.ctf-author-name' => 'font-size:{{value}}px!important;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
'id' => 'authortextcolor',
'condition' => ['include_author_text' => [true]],
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-author-name' => 'color:{{value}}!important;'],
static function post_styling_tweet_text(){
'heading' => __( 'Text', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-text' => 'font-size:{{value}}px!important;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-text' => 'color:{{value}}!important;'],
'fieldSuffix' => 'characters',
'strongHeading' => 'false',
'heading' => __( 'Max Length', 'custom-twitter-feeds' ),
'label' => __( 'Enable links in Tweet Text', 'custom-twitter-feeds' ),
'description' => __( 'If enabled, it will convert urls, hashtags and mentions into clickable links', 'custom-twitter-feeds' ),
'descriptionPosition' => 'bottom',
'alignDescription' => true,
'condition' => ['disablelinks' => [false]],
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-text a' => 'color:{{value}}!important;'],
'id' => 'linktexttotwitter',
'label' => __( 'Link Tweet Text to Twitter', 'custom-twitter-feeds' ),
'description' => __( 'If enabled, this links the tweet text to the original tweet on Twitter', 'custom-twitter-feeds' ),
'descriptionPosition' => 'bottom',
'alignDescription' => true,
static function post_styling_tweet_date(){
'heading' => __( 'Format', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'options' => CTF_Builder_Customizer_Tab::get_date_format_options()
'condition' => ['dateformat' => ['custom']],
'placeholder' => 'Eg. F j, Y',
'heading' => sprintf( __( '%sLearn more about custom formats %s', 'custom-twitter-feeds' ), '<a class="sb-customizer-ctrl-link" href="https://smashballoon.com/doc/date-formatting-reference/" target="_blank" rel="noopener">', '</a>' ),
'heading' => __( 'Text', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-meta a' => 'font-size:{{value}}px!important;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-meta a' => 'color:{{value}}!important;'],
static function post_styling_tweet_actions(){
'heading' => __( 'Icons', 'custom-twitter-feeds' ),
'description' => __( 'Customize icons for like, retweet and reply', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-actions a' => 'font-size:{{value}}px!important;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-tweet-actions a' => 'color:{{value}}!important;'],
'id' => 'viewtwitterlink',
'label' => __( 'View on Twitter link', 'custom-twitter-feeds' ),
'description' => __( 'Toggle the “Twitter” link below each tweet', 'custom-twitter-feeds' ),
'descriptionPosition' => 'bottom',
'id' => 'twitterlinktext',
'condition' => ['viewtwitterlink' => [true]],
'description' => __( 'Customize Text', 'custom-twitter-feeds' ),
static function post_styling_quote_tweet(){
'id' => 'quotedauthorsize',
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'style' => ['.ctf-quoted-tweet, .ctf-quoted-tweet-text' => 'font-size:{{value}}px!important;line-height:1em;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
static function post_styling_media(){
'heading' => __( 'Media Layout', 'custom-twitter-feeds' ),
'ajaxAction' => 'feedFlyPreview',
'strongHeading' => 'false',
'heading' => __( 'Max Visible Media', 'custom-twitter-feeds' ),
'tooltip' => __( 'Max Visible Media', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'heading' => __( 'Media Columns', 'custom-twitter-feeds' ),
'tooltip' => __( 'Media Columns', 'custom-twitter-feeds' ),
'auto' => __( 'Auto', 'custom-twitter-feeds' ),
static function post_styling_replies(){
static function post_styling_retweet(){
'id' => 'include_retweeter',
'label' => __( '“Retweeted” text', 'custom-twitter-feeds' ),
'id' => 'include_replied_to',
'label' => __( '“In Reply to” text', 'custom-twitter-feeds' ),
static function post_styling_twitter_cards(){
'heading' => __( 'Text', 'custom-twitter-feeds' ),
'strongHeading' => 'false',
'heading' => __( 'Size', 'custom-twitter-feeds' ),
'style' => ['.ctf-tc-summary-info *' => 'font-size:{{value}}px!important;'],
'options' => CTF_Builder_Customizer_Tab::get_text_size_options()
'id' => 'cardstextcolor',
'strongHeading' => 'false',
'heading' => __( 'Color', 'custom-twitter-feeds' ),
'style' => ['.ctf-tc-summary-info *' => 'color:{{value}}!important;'],
static function post_styling_twitter_logo(){