options = get_option( 'wpseo_social' ); } /** * Returns the output-property */ public function show_form() { $this ->form_head() ->manage_user_admin() ->form_thickbox() ->show_buttons() ->manage_app_as_admin(); } /** * Parses the admin_link * * @param string $admin_id Facebook admin ID string. * @param array $admin Admin data array. * @param string|bool $nonce Optional nonce string. * * @return string */ public function get_admin_link( $admin_id, $admin, $nonce = false ) { if ( $nonce === false ) { $nonce = $this->get_delete_nonce(); } $return = '
', sprintf( /* translators: %1$s and %2$s expand to a link to Facebook Insights */ esc_html__( 'To be able to access %1$sFacebook Insights%2$s for your site, you need to specify a Facebook Admin. This can be a user. If you have an app for your site, you could use that as well.', 'wordpress-seo' ), '', '' ); echo ' '; printf( /* translators: %1$s and %2$s expand to a link to the Yoast Knowledge Base */ esc_html__( 'More info can be found %1$son our knowledge base%2$s.', 'wordpress-seo' ), '', '' ); echo '
'; return $this; } /** * Show the form inside the thickbox */ private function form_thickbox() { // Adding the thickbox. add_thickbox(); echo ''; printf( /* translators: %1$s and %2$s expand to a link to Facebook Insights */ esc_html__( 'To be able to access %1$sFacebook Insights%2$s, you need to add a user here. The name is used for reference only, the ID is used for verification.', 'wordpress-seo' ), '', '' ); echo '
'; echo ''; printf( /* translators: %1$s and %2$s expand to a link to the Yoast Knowledge Base */ esc_html__( 'If you don\'t know where to find the needed ID, see %1$sthis knowledge base article%2$s.', 'wordpress-seo' ), '', '' ); echo '
'; echo '"; echo ''; echo ''; echo '
'; echo '' . esc_html__( 'Currently connected Facebook admins:', 'wordpress-seo' ) . '
'; echo '