1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * WPSEO plugin file.
- *
- * @package WPSEO\Admin\Configurator
- */
- /**
- * Class WPSEO_Config_Field_Company_Or_Person.
- */
- class WPSEO_Config_Field_Company_Or_Person extends WPSEO_Config_Field_Choice {
- /**
- * WPSEO_Config_Field_Company_Or_Person constructor.
- */
- public function __construct() {
- parent::__construct( 'publishingEntityType' );
- $this->set_property( 'label', __( 'Does your site represent a person or an organization?', 'wordpress-seo' ) );
- $this->set_property( 'description', __( 'This information will be used in Google\'s Knowledge Graph Card, the big block of information you see on the right side of the search results.', 'wordpress-seo' ) );
- $this->add_choice( 'company', __( 'Organization', 'wordpress-seo' ) );
- $this->add_choice( 'person', __( 'Person', 'wordpress-seo' ) );
- }
- /**
- * Sets the adapter.
- *
- * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
- */
- public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
- $adapter->add_option_lookup( $this->get_identifier(), 'company_or_person' );
- }
- }
|