social_services_array = apply_filters( 'ocean_about_me_widget_profiles', array( 'facebook' => array( 'name' => 'Facebook', 'url' => '' ), 'instagram' => array( 'name' => 'Instagram', 'url' => '' ), 'linkedin' => array( 'name' => 'LinkedIn', 'url' => '' ), 'pinterest' => array( 'name' => 'Pinterest', 'url' => '' ), 'twitter' => array( 'name' => 'Twitter', 'url' => '' ), 'telegram' => array( 'name' => 'Telegram', 'url' => '' ), 'twitch' => array( 'name' => 'Twitch', 'url' => '' ), 'line' => array( 'name' => 'Line', 'url' => '' ), 'xing' => array( 'name' => 'Xing', 'url' => '' ), 'vine' => array( 'name' => 'Vine', 'url' => '' ), 'vimeo' => array( 'name' => 'Vimeo', 'url' => '' ), 'github' => array( 'name' => 'Github', 'url' => '' ), 'flickr' => array( 'name' => 'Flickr', 'url' => '' ), 'yelp' => array( 'name' => 'Yelp', 'url' => '' ), 'tripadvisor' => array( 'name' => 'Tripadvisor', 'url' => '' ), 'rss' => array( 'name' => 'RSS', 'url' => '' ), 'medium' => array( 'name' => 'Medium', 'url' => '' ), 'tiktok' => array( 'name' => 'tiktok', 'url' => '' ), 'vk' => array( 'name' => 'VK', 'url' => '' ), 'dribbble' => array( 'name' => 'Dribbble', 'url' => '' ), 'tumblr' => array( 'name' => 'Tumblr', 'url' => '' ), ) ); // Start up widget. parent::__construct( 'ocean_about_me', esc_html__( '» About Me', 'ocean-extra' ), array( 'classname' => 'widget-oceanwp-about-me about-me-widget', 'description' => esc_html__( 'Adds an About Me widget.', 'ocean-extra' ), 'customize_selective_refresh' => true, ) ); add_action( 'load-widgets.php', array( $this, 'scripts' ), 100 ); /** * @since 1.3.8 * */ add_action( 'admin_head-widgets.php', array( $this, 'social_widget_style' ) ); add_action( 'admin_footer-widgets.php', array( $this, 'print_scripts' ) ); } /** * Enqueue media scripts * * @since 1.0.0 */ public function scripts() { // If is not customizer to avoid conflict. if ( is_customize_preview() ) { return; } wp_enqueue_media(); } /** * Custom widget style * * @since 1.3.8 * * @param string $hook_suffix */ public function social_widget_style() { ?>
get_field_id( 'social_services' ); $field_name_services = $this->get_field_name( 'social_services' ); ?>