shortcode_name = 'adminz_facebookpage'; $___->shortcode_title = 'Facebook page embedded'; $___->shortcode_icon = 'text'; $___->options = [ 'href' => array( 'type' => 'textfield', 'heading' => 'Page url', 'default' => 'https://www.facebook.com/facebook', ), 'width' => array( 'type' => 'slider', 'unit' => 'px', 'min' => 180, 'max' => 1000, 'heading' => 'Width', 'default' => '340', ), 'height' => array( 'type' => 'slider', 'unit' => 'px', 'min' => 70, 'max' => 1000, 'heading' => 'Height', 'default' => '70', ), 'tabs' => array( 'type' => 'select', 'heading' => 'Tabs', 'default' => '', 'config' => array( 'placeholder' => __('Select...'), 'multiple' => true, 'options' => [ 'timeline' => 'timeline', 'events' => 'events', 'messages' => 'messages', ], ), ), 'hide_cover' => array( 'type' => 'checkbox', 'heading' => 'Hide cover', 'default' => 'false', ), 'show_facepile' => array( 'type' => 'checkbox', 'heading' => 'Show facepile', 'default' => 'true', ), 'hide_cta' => array( 'type' => 'checkbox', 'heading' => 'Hide CTA', 'default' => 'false', ), 'small_header' => array( 'type' => 'checkbox', 'heading' => 'Small header', 'default' => 'false', ), 'adapt_container_width' => array( 'type' => 'checkbox', 'heading' => 'Adapt container width', 'default' => 'true', ), 'lazy' => array( 'type' => 'checkbox', 'heading' => 'Lazy load', 'default' => 'false', ), 'lang' => array( 'type' => 'textfield', 'heading' => 'Language', 'default' => 'en_US', 'placeholder' => 'vi_VN', ), ]; $___->shortcode_callback = function ($atts, $content = null) { extract(shortcode_atts(array( 'href' => 'https://www.facebook.com/facebook', 'width' => '340', 'height' => '70', 'tabs' => '', 'hide_cover' => 'false', 'show_facepile' => 'true', 'hide_cta' => 'false', 'small_header' => 'false', 'adapt_container_width' => 'true', 'lazy' => 'false', 'lang' => "en_US", ), $atts)); if (adminz_flatsome_is_ux_builder()) { return adminz_preview_text(); } ob_start(); ?>