<?php

namespace DropshippingXmlFreeVendor\WPDesk\Library\DropshippingXmlCore\Form\Fields\Component;

use DropshippingXmlFreeVendor\WPDesk\Forms\Field\InputTextField;
class YoastComponent extends \DropshippingXmlFreeVendor\WPDesk\Forms\Field\BasicField
{
    // SERP
    public const SEO_TITLE = '_yoast_wpseo_title';
    public const META_DESC = '_yoast_wpseo_metadesc';
    public const META_KEYWORDS = '_yoast_wpseo_metakeywords';
    public const ROBOTS_NOINDEX = '_yoast_wpseo_meta-robots-noindex';
    public const ROBOTS_NOFOLLOW = '_yoast_wpseo_meta-robots-nofollow';
    public const ROBOTS_NOIMAGE = '_yoast_wpseo_meta-robots-noimageindex';
    public const ROBOTS_NOARCHIVE = '_yoast_wpseo_meta-robots-noarchive';
    public const ROBOTS_NOSNIPPET = '_yoast_wpseo_meta-robots-nosnippet';
    public const BREADCRUMB_TITLE = '_yoast_wpseo_bctitle';
    // Analysis
    public const FOCUS_KW = '_yoast_wpseo_focuskw';
    public const KW_SYNONYMS = '_yoast_wpseo_keywordsynonyms';
    public const FOCUS_KEYWORDS = '_yoast_wpseo_focuskeywords';
    public const SEO_SCORE = '_yoast_wpseo_linkdex';
    public const READABILITY = '_yoast_wpseo_content_score';
    // Canonical
    public const CANONICAL = '_yoast_wpseo_canonical';
    public const REDIRECT = '_yoast_wpseo_redirect';
    public const PRIMARY_CATEGORY = '_yoast_wpseo_primary_product_cat';
    public const SCHEMA_PAGE_TYPE = '_yoast_wpseo_schema_page_type';
    public const SCHEMA_ARTICLE = '_yoast_wpseo_schema_article_type';
    // Facebook
    public const OG_TITLE = '_yoast_wpseo_opengraph-title';
    public const OG_DESC = '_yoast_wpseo_opengraph-description';
    public const OG_IMAGE = '_yoast_wpseo_opengraph-image';
    public const OG_IMAGE_URL = '_yoast_wpseo_opengraph-image-url';
    // Twitter
    public const TW_TITLE = '_yoast_wpseo_twitter-title';
    public const TW_DESC = '_yoast_wpseo_twitter-description';
    public const TW_IMAGE = '_yoast_wpseo_twitter-image';
    public const TW_IMAGE_URL = '_yoast_wpseo_twitter-image-url';
    public function get_groups(): array
    {
        return ['serp' => ['label' => __('SERP', 'dropshipping-xml-for-woocommerce'), 'fields' => [self::SEO_TITLE => __('SEO title', 'dropshipping-xml-for-woocommerce'), self::META_DESC => __('Meta description', 'dropshipping-xml-for-woocommerce'), self::META_KEYWORDS => __('Meta keywords', 'dropshipping-xml-for-woocommerce'), self::ROBOTS_NOINDEX => __('Noindex', 'dropshipping-xml-for-woocommerce'), self::ROBOTS_NOFOLLOW => __('Nofollow', 'dropshipping-xml-for-woocommerce'), self::ROBOTS_NOIMAGE => __('Noimageindex', 'dropshipping-xml-for-woocommerce'), self::ROBOTS_NOARCHIVE => __('Noarchive', 'dropshipping-xml-for-woocommerce'), self::ROBOTS_NOSNIPPET => __('Nosnippet', 'dropshipping-xml-for-woocommerce'), self::BREADCRUMB_TITLE => __('Breadcrumb title', 'dropshipping-xml-for-woocommerce')]], 'analysis' => ['label' => __('Analysis', 'dropshipping-xml-for-woocommerce'), 'fields' => [self::FOCUS_KW => __('Focus keyphrase', 'dropshipping-xml-for-woocommerce'), self::KW_SYNONYMS => __('Keyphrase synonyms', 'dropshipping-xml-for-woocommerce'), self::FOCUS_KEYWORDS => __('Additional keyphrase', 'dropshipping-xml-for-woocommerce'), self::SEO_SCORE => __('SEO score', 'dropshipping-xml-for-woocommerce'), self::READABILITY => __('Readability score', 'dropshipping-xml-for-woocommerce')]], 'canonical' => ['label' => __('Canonical', 'dropshipping-xml-for-woocommerce'), 'fields' => [self::CANONICAL => __('Canonical URL', 'dropshipping-xml-for-woocommerce'), self::REDIRECT => __('Redirect URL', 'dropshipping-xml-for-woocommerce'), self::PRIMARY_CATEGORY => __('Primary category', 'dropshipping-xml-for-woocommerce'), self::SCHEMA_PAGE_TYPE => __('Schema page type', 'dropshipping-xml-for-woocommerce'), self::SCHEMA_ARTICLE => __('Schema article type', 'dropshipping-xml-for-woocommerce')]], 'facebook' => ['label' => __('Facebook', 'dropshipping-xml-for-woocommerce'), 'fields' => [self::OG_TITLE => __('OG title', 'dropshipping-xml-for-woocommerce'), self::OG_DESC => __('OG description', 'dropshipping-xml-for-woocommerce'), self::OG_IMAGE => __('OG image (ID)', 'dropshipping-xml-for-woocommerce'), self::OG_IMAGE_URL => __('OG image URL', 'dropshipping-xml-for-woocommerce')]], 'twitter' => ['label' => __('Twitter', 'dropshipping-xml-for-woocommerce'), 'fields' => [self::TW_TITLE => __('Twitter title', 'dropshipping-xml-for-woocommerce'), self::TW_DESC => __('Twitter description', 'dropshipping-xml-for-woocommerce'), self::TW_IMAGE => __('Twitter image (ID)', 'dropshipping-xml-for-woocommerce'), self::TW_IMAGE_URL => __('Twitter image URL', 'dropshipping-xml-for-woocommerce')]]];
    }
    public function get_template_name(): string
    {
        return 'yoast-component';
    }
}
