'facebook_site', 'label' => __( 'Facebook Page URL', 'wordpress-seo' ), ], [ 'id' => 'twitter_site', 'label' => __( 'Twitter Username', 'wordpress-seo' ), ], [ 'id' => 'instagram_url', 'label' => __( 'Instagram URL', 'wordpress-seo' ), ], [ 'id' => 'linkedin_url', 'label' => __( 'LinkedIn URL', 'wordpress-seo' ), ], [ 'id' => 'myspace_url', 'label' => __( 'MySpace URL', 'wordpress-seo' ), ], [ 'id' => 'pinterest_url', 'label' => __( 'Pinterest URL', 'wordpress-seo' ), ], [ 'id' => 'youtube_url', 'label' => __( 'YouTube URL', 'wordpress-seo' ), ], [ 'id' => 'wikipedia_url', 'label' => __( 'Wikipedia URL', 'wordpress-seo' ), ], ]; $yform = Yoast_Form::get_instance(); if ( $company_or_person === 'person' ) { echo '
'; echo '

' . esc_html__( 'Your website is currently configured to represent a Person', 'wordpress-seo' ) . '

'; echo '

'; esc_html_e( 'That means that the form and information below is disabled, and not used.', 'wordpress-seo' ); echo '

'; echo '

'; $user_id = WPSEO_Options::get( 'company_or_person_user_id', '' ); $person = get_userdata( $user_id ); printf( /* translators: 1: link to edit user page. */ esc_html__( 'To change the social accounts used for your site, update the details for %1$s.', 'wordpress-seo' ), '' . esc_html( $person->display_name ) . '' ); echo ' '; printf( /* translators: 1: link tag to the relevant WPSEO admin page; 2: link close tag. */ esc_html__( 'To make your site represent a Company or Organization go to %1$sSearch Appearance%2$s and set Organization or Person to "Organization".', 'wordpress-seo' ), '', '' ); echo '

'; // Organization social fields should still be rendered, because other wise the values are lost on save. foreach ( $organization_social_fields as $organization ) { $yform->hidden( $organization['id'] ); } } if ( $company_or_person === 'company' ) { echo '

' . esc_html__( 'Organization social profiles', 'wordpress-seo' ) . $social_profiles_help->get_button_html() . '

'; echo $social_profiles_help->get_panel_html(); foreach ( $organization_social_fields as $organization ) { $yform->textinput( $organization['id'], $organization['label'] ); } } do_action( 'wpseo_admin_other_section' );