WPSEO_Config_Field_Separator

Class WPSEO_Config_Field_Separator.

Defined (1)

The class is defined in the following location(s).

/admin/config-ui/fields/class-field-separator.php  
  1. class WPSEO_Config_Field_Separator extends WPSEO_Config_Field_Choice { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Separator constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'separator' ); 
  8.  
  9. $this->set_property( 'label', __( 'Title Separator', 'wordpress-seo' ) ); 
  10. $this->set_property( 'explanation', __( 'Choose the symbol to use as your title separator. This will display, for instance, between your post title and site name. Symbols are shown in the size they\'ll appear in the search results.', 'wordpress-seo' ) ); 
  11.  
  12. $this->add_choice( 'sc-dash', '-', __( 'Dash', 'wordpress-seo' ) ); 
  13. $this->add_choice( 'sc-ndash', '–', __( 'En dash', 'wordpress-seo' ) ); 
  14. $this->add_choice( 'sc-mdash', '—', __( 'Em dash', 'wordpress-seo' ) ); 
  15. $this->add_choice( 'sc-middot', '·', __( 'Middle dot', 'wordpress-seo' ) ); 
  16. $this->add_choice( 'sc-bull', '•', __( 'Bullet', 'wordpress-seo' ) ); 
  17. $this->add_choice( 'sc-star', '*', __( 'Asterisk', 'wordpress-seo' ) ); 
  18. $this->add_choice( 'sc-smstar', '⋆', __( 'Low asterisk', 'wordpress-seo' ) ); 
  19. $this->add_choice( 'sc-pipe', '|', __( 'Vertical bar', 'wordpress-seo' ) ); 
  20. $this->add_choice( 'sc-tilde', '~', __( 'Small tilde', 'wordpress-seo' ) ); 
  21. $this->add_choice( 'sc-laquo', '«', __( 'Left angle quotation mark', 'wordpress-seo' ) ); 
  22. $this->add_choice( 'sc-raquo', '»', __( 'Right angle quotation mark', 'wordpress-seo' ) ); 
  23. $this->add_choice( 'sc-lt', '<', __( 'Less than sign', 'wordpress-seo' ) ); 
  24. $this->add_choice( 'sc-gt', '>', __( 'Greater than sign', 'wordpress-seo' ) ); 
  25.  
  26. /** 
  27. * Set adapter 
  28. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. 
  29. */ 
  30. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { 
  31. $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo_titles', 'separator' );