public function process_meta($layout)
{
$count = 1;
$replace = '';
if (!empty($this->html_opening_tag)) {
foreach ($this->html_opening_tag as $key => $item) {
if (is_string($item)) {
$replace .= $key . '="' . $item . '" ';
}
}
}
$layout = str_replace('<html ', '<html ' . $replace, $layout, $count);
$count = 1;
$replace = '';
if (!empty($this->meta_tags)) {
foreach ($this->meta_tags as $key => $item) {
if (is_string($item)) {
$replace .= '<meta name="' . $key . '" content="' . $item . '">' . "\n";
}
}
}
$count = 1;
$layout = str_replace('<head>', '<head>' . $replace, $layout, $count);
return $layout;
}