twitterbox.php 778 B

123456789101112131415161718192021222324252627282930
  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. echo '<h2>' . esc_html__( 'Twitter settings', 'wordpress-seo' ) . '</h2>';
  16. $yform->light_switch( 'twitter', __( 'Add Twitter card meta data', 'wordpress-seo' ) );
  17. echo '<p>';
  18. esc_html_e( 'Enable this feature if you want Twitter to display a preview with images and a text excerpt when a link to your site is shared.', 'wordpress-seo' );
  19. echo '</p>';
  20. echo '<br />';
  21. $yform->select( 'twitter_card_type', __( 'The default card type to use', 'wordpress-seo' ), WPSEO_Option_Social::$twitter_card_types );
  22. do_action( 'wpseo_admin_twitter_section' );