accounts.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Views
  6. */
  7. /**
  8. * @var Yoast_Form $yform
  9. */
  10. if ( ! defined( 'WPSEO_VERSION' ) ) {
  11. header( 'Status: 403 Forbidden' );
  12. header( 'HTTP/1.1 403 Forbidden' );
  13. exit();
  14. }
  15. $social_profiles_help = new WPSEO_Admin_Help_Panel(
  16. 'social-accounts',
  17. __( 'Learn more about your social profiles settings', 'wordpress-seo' ),
  18. __( 'To let search engines know which social profiles are associated to this site, enter your site social profiles data below.', 'wordpress-seo' ),
  19. 'has-wrapper'
  20. );
  21. echo '<h2 class="help-button-inline">' . esc_html__( 'Your social profiles', 'wordpress-seo' ) . $social_profiles_help->get_button_html() . '</h2>';
  22. echo $social_profiles_help->get_panel_html();
  23. $yform = Yoast_Form::get_instance();
  24. $yform->textinput( 'facebook_site', __( 'Facebook Page URL', 'wordpress-seo' ) );
  25. $yform->textinput( 'twitter_site', __( 'Twitter Username', 'wordpress-seo' ) );
  26. $yform->textinput( 'instagram_url', __( 'Instagram URL', 'wordpress-seo' ) );
  27. $yform->textinput( 'linkedin_url', __( 'LinkedIn URL', 'wordpress-seo' ) );
  28. $yform->textinput( 'myspace_url', __( 'MySpace URL', 'wordpress-seo' ) );
  29. $yform->textinput( 'pinterest_url', __( 'Pinterest URL', 'wordpress-seo' ) );
  30. $yform->textinput( 'youtube_url', __( 'YouTube URL', 'wordpress-seo' ) );
  31. $yform->textinput( 'google_plus_url', __( 'Google+ URL', 'wordpress-seo' ) );
  32. do_action( 'wpseo_admin_other_section' );