vc_admin_label' => true, ), array( 'type' => 'tab', 'name' => __( 'Social Icons', 'publisher' ), 'id' => 'social_icons', ), array( 'name' => __( 'Facebook Full URL', 'publisher' ), 'id' => 'link_facebook', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Twitter Full URL', 'publisher' ), 'id' => 'link_twitter', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Google+ Full URL', 'publisher' ), 'id' => 'link_google', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Instagram Full URL', 'publisher' ), 'id' => 'link_instagram', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Email', 'publisher' ), 'id' => 'link_email', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Youtube Full URL', 'publisher' ), 'id' => 'link_youtube', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Dribbble Full URL', 'publisher' ), 'id' => 'link_dribbble', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Vimeo Full URL', 'publisher' ), 'id' => 'link_vimeo', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Github Full URL', 'publisher' ), 'id' => 'link_github', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Behance Full URL', 'publisher' ), 'id' => 'link_behance', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Pinterest Full URL', 'publisher' ), 'id' => 'link_pinterest', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'Telegram Full URL', 'publisher' ), 'id' => 'link_telegram', 'type' => 'text', // 'vc_admin_label' => false, ), array( 'name' => __( 'VK Full URL', 'publisher' ), 'id' => 'link_vk', 'type' => 'text', // 'vc_admin_label' => false, ), ); /** * Retrieve heading fields from outside (our themes are defining them) */ { $heading_fields = apply_filters( 'better-framework/shortcodes/heading-fields', array(), $this->id ); if ( $heading_fields ) { $fields = array_merge( $fields, $heading_fields ); } } /** * Retrieve design fields from outside (our themes are defining them) */ { $design_fields = apply_filters( 'better-framework/shortcodes/design-fields', array(), $this->id ); if ( $design_fields ) { $fields = array_merge( $fields, $design_fields ); } } bf_array_insert_after( 'bs-show-phone', $fields, 'bs-text-color-scheme', array( 'name' => __( 'Block Text Color Scheme', 'publisher' ), 'id' => 'bs-text-color-scheme', // 'type' => 'select', 'options' => array( '' => __( '-- Default --', 'publisher' ), 'light' => __( 'White Color Texts', 'publisher' ), ), // 'vc_admin_label' => false, ) ); return $fields; } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'About Us', 'publisher' ), "id" => $this->id, "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-about.png', ) ); } // page_builder_settings function tinymce_settings() { return array( 'name' => __( 'About Us', 'publisher' ), ); } } /** * Publisher About Widget */ class Publisher_About_Widget extends BF_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'bs-about', sprintf( __( '%s - About Us', 'publisher' ), publisher_white_label_get_option( 'publisher' ) ), array( 'desc' => __( 'About us widget.', 'publisher' ) ) ); } // __construct /** * Loads fields */ function load_fields() { // Back end form fields $this->fields = array( array( 'name' => __( 'Title', 'publisher' ), 'id' => 'title', 'type' => 'text', ), array( 'name' => __( 'Logo Image', 'publisher' ), 'id' => 'logo_img', 'type' => 'media_image', 'upload_label' => __( 'Upload Logo', 'publisher' ), 'remove_label' => __( 'Remove', 'publisher' ), 'media_title' => __( 'Remove', 'publisher' ), 'media_button' => __( 'Select as Logo', 'publisher' ), ), array( 'name' => __( 'Logo Text', 'publisher' ), 'id' => 'logo_text', 'type' => 'text', ), array( 'name' => __( 'About Us', 'publisher' ), 'id' => 'content', 'type' => 'textarea', ), 'link_group' => array( 'name' => __( 'About Link', 'publisher' ), 'type' => 'group', 'id' => 'link_group', 'state' => 'close', ), array( 'name' => __( 'About Link Text', 'publisher' ), 'id' => 'about_link_text', 'type' => 'text', ), array( 'name' => __( 'About Link URL', 'publisher' ), 'id' => 'about_link_url', 'type' => 'text', ), 'social_group' => array( 'name' => __( 'Social Icons', 'publisher' ), 'type' => 'group', 'id' => 'social_group', 'state' => 'close', ), array( 'name' => __( 'Facebook Full URL', 'publisher' ), 'id' => 'link_facebook', 'type' => 'text', ), array( 'name' => __( 'Twitter Full URL', 'publisher' ), 'id' => 'link_twitter', 'type' => 'text', ), array( 'name' => __( 'Google+ Full URL', 'publisher' ), 'id' => 'link_google', 'type' => 'text', ), array( 'name' => __( 'Instagram Full URL', 'publisher' ), 'id' => 'link_instagram', 'type' => 'text', ), array( 'name' => __( 'Enter Your E-Mail', 'publisher' ), 'id' => 'link_email', 'type' => 'text', ), array( 'name' => __( 'Youtube Full URL', 'publisher' ), 'id' => 'link_youtube', 'type' => 'text', ), array( 'name' => __( 'Dribbble Full URL', 'publisher' ), 'id' => 'link_dribbble', 'type' => 'text', ), array( 'name' => __( 'Vimeo Full URL', 'publisher' ), 'id' => 'link_vimeo', 'type' => 'text', ), array( 'name' => __( 'Github Full URL', 'publisher' ), 'id' => 'link_github', 'type' => 'text', ), array( 'name' => __( 'Behance Full URL', 'publisher' ), 'id' => 'link_behance', 'type' => 'text', ), array( 'name' => __( 'Pinterest Full URL', 'publisher' ), 'id' => 'link_pinterest', 'type' => 'text', ), array( 'name' => __( 'Telegram Full URL', 'publisher' ), 'id' => 'link_telegram', 'type' => 'text', ), array( 'name' => __( 'VK Full URL', 'publisher' ), 'id' => 'link_vk', 'type' => 'text', ), ); } // load_fields } if ( ! function_exists( 'publisher_shortcode_about_get_icons' ) ) { /** * Creates and returns about widget social network icons * * @param $atts * * @return array|bool */ function publisher_shortcode_about_get_icons( $atts ) { $output = ''; if ( ! empty( $atts['link_facebook'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_twitter'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_google'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_instagram'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_email'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_youtube'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_dribbble'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_vimeo'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_github'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_behance'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_pinterest'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_telegram'] ) ) { $output .= '
  • '; } if ( ! empty( $atts['link_vk'] ) ) { $output .= '
  • '; } if ( ! empty( $output ) ) { return ''; } else { return ''; } } } // publisher_shortcode_about_get_icons joie des Eléphants - LePays 225
    large-header