<?php

use tobimori\Seo\Seo;

return [
	'label' => 'seo.tabs.seo',
	'icon' => 'search',
	'columns' => [
		'main' => [
			'width' => '7/12',
			'fields' => [
				'metaGroup' => 'seo/fields/meta-group',
				'ogGroup' => 'seo/fields/og-group',
				'robots' => 'seo/fields/robots',
				'metaInherit' => [
					'label' => 'seo.fields.inheritSettings.label',
					'type' => 'multiselect',
					'help' => 'seo.fields.inheritSettings.help',
					'options' => [
						'metaTemplate' => [
							'*' => 'seo.fields.metaTitleTemplate.label'
						],
						'metaDescription' => [
							'*' => 'seo.fields.metaDescription.label'
						],
						'ogTemplate' => [
							'*' => 'seo.fields.ogTitleTemplate.label'
						],
						'ogDescription' => [
							'*' => 'seo.fields.ogDescription.label'
						],
						'ogImage' => [
							'*' => 'seo.fields.ogImage.label'
						],
						'cropOgImage' => [
							'*' => 'seo.fields.cropOgImage.label'
						],
						'robots' => [
							'*' => 'seo.fields.robots.label'
						]
					]
				]
			]
		],
		'sidebar' => [
			'width' => '5/12',
			'sticky' => true,
			'sections' => [
				'seoPreview' => [
					'type' => 'seo-preview'
				],
				...(Seo::option('searchConsole.enabled') ? [
					'seoSearchConsole' => [
						'type' => 'seo-search-console'
					]
				] : [])
			]
		]
	]
];
