Skip to content

Commit

Permalink
Update itemscope for article
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jul 22, 2024
1 parent 3d89777 commit 894956e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/html/com_content/article/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
if (!isset($astroidArticle)) {
$astroidArticle = new Astroid\Article($this->item, false, $this->params);
}
echo '<div class="com-content-article item-page'.$this->pageclass_sfx.'" itemscope itemtype="https://schema.org/Article">';
echo '<meta itemprop="inLanguage" content="'.(($this->item->language === '*') ? Factory::getApplication()->get('language') : $this->item->language).'">';
$astroidArticle->renderLayout();
$astroidArticle->renderLayout();
echo '</div>';

0 comments on commit 894956e

Please sign in to comment.