Commit a1fe5e54 by Scott

Fix structured data on SnowFlat theme

parent 695ff632
......@@ -260,7 +260,7 @@ $microdata = qa_opt('use_microdata');
if ($microdata) {
$qa_content['head_lines'][] = '<meta itemprop="name" content="' . qa_html($qa_content['q_view']['raw']['title']) . '">';
$qa_content['html_tags'] .= ' itemscope itemtype="http://schema.org/QAPage"';
$qa_content['main_tags'] = ' itemprop="mainEntity" itemscope itemtype="http://schema.org/Question"';
$qa_content['wrapper_tags'] = ' itemprop="mainEntity" itemscope itemtype="http://schema.org/Question"';
}
......
......@@ -435,7 +435,7 @@ class qa_html_theme_base
$this->body_prefix();
$this->notices();
$extratags = isset($this->content['main_tags']) ? $this->content['main_tags'] : '';
$extratags = isset($this->content['wrapper_tags']) ? $this->content['wrapper_tags'] : '';
$this->output('<div class="qa-body-wrapper"' . $extratags . '>', '');
$this->widgets('full', 'top');
......
......@@ -252,7 +252,8 @@ class qa_html_theme extends qa_html_theme_base
$this->widgets('full', 'top');
$this->header();
$this->output('<div class="qa-body-wrapper">', '');
$extratags = isset($this->content['wrapper_tags']) ? $this->content['wrapper_tags'] : '';
$this->output('<div class="qa-body-wrapper"' . $extratags . '>', '');
$this->widgets('full', 'high');
$this->output('<div class="qa-main-wrapper">', '');
......@@ -742,7 +743,7 @@ class qa_html_theme extends qa_html_theme_base
'</div>' .
'</div>';
}
/**
* Adds placeholder "Search..." for search box
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment