moduleExists('rdf')) { $namespaces = [ 'prefix' => 'og: http://ogp.me/ns#', ]; } // Namespaces for Google+. if (isset($variables['itemtype'])) { $namespaces['itemscope'] = ''; $namespaces['itemtype'] = "http://schema.org/{$variables['itemtype']}"; } // Append each namespace. foreach ($namespaces as $namespace => $uri) { $variables['html_attributes'][$namespace] = $uri; } }