<?php

namespace SmartCrawl;

use SmartCrawl\Admin\Settings\Onpage;

$meta_robots_search = empty( $meta_robots_search ) ? array() : $meta_robots_search;
$macros             = array_merge(
	Onpage::get_search_macros(),
	Onpage::get_general_macros()
);

$this->render_view( 'onpage/onpage-preview' );

$this->render_view(
	'onpage/onpage-general-settings',
	array(
		'title_key'       => 'title-search',
		'description_key' => 'metadesc-search',
		'macros'          => $macros,
	)
);

$this->render_view(
	'onpage/onpage-og-twitter',
	array(
		'for_type' => 'search',
		'macros'   => $macros,
	)
);

$this->render_view(
	'onpage/onpage-meta-robots',
	array(
		'items' => $meta_robots_search,
	)
);