Commit 51c3be9f by Scott

Update schema.org URLs

Fix #709
parent ceb87868
...@@ -327,10 +327,10 @@ function qa_post_html_fields($post, $userid, $cookieid, $usershtml, $dummy, $opt ...@@ -327,10 +327,10 @@ function qa_post_html_fields($post, $userid, $cookieid, $usershtml, $dummy, $opt
if ($microdata) { if ($microdata) {
if ($isanswer) { if ($isanswer) {
$fields['tags'] .= ' itemprop="suggestedAnswer' . ($isselected ? ' acceptedAnswer' : '') . '" itemscope itemtype="http://schema.org/Answer"'; $fields['tags'] .= ' itemprop="suggestedAnswer' . ($isselected ? ' acceptedAnswer' : '') . '" itemscope itemtype="https://schema.org/Answer"';
} }
if ($iscomment) { if ($iscomment) {
$fields['tags'] .= ' itemscope itemtype="http://schema.org/Comment"'; $fields['tags'] .= ' itemscope itemtype="https://schema.org/Comment"';
} }
} }
...@@ -763,7 +763,7 @@ function qa_who_to_html($isbyuser, $postuserid, $usershtml, $ip = null, $microda ...@@ -763,7 +763,7 @@ function qa_who_to_html($isbyuser, $postuserid, $usershtml, $ip = null, $microda
if ($microdata) { if ($microdata) {
// duplicate HTML from qa_get_one_user_html() // duplicate HTML from qa_get_one_user_html()
$whohtml = '<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">' . $whohtml . '</span></span>'; $whohtml = '<span itemprop="author" itemscope itemtype="https://schema.org/Person"><span itemprop="name">' . $whohtml . '</span></span>';
} }
if (isset($ip)) if (isset($ip))
......
...@@ -572,7 +572,7 @@ if (QA_FINAL_EXTERNAL_USERS) { ...@@ -572,7 +572,7 @@ if (QA_FINAL_EXTERNAL_USERS) {
$userHtml = '<a href="' . $url . '" class="qa-user-link' . $favclass . '"' . $mfAttr . '>' . $userHandle . '</a>'; $userHtml = '<a href="' . $url . '" class="qa-user-link' . $favclass . '"' . $mfAttr . '>' . $userHandle . '</a>';
if ($microdata) { if ($microdata) {
$userHtml = '<span itemprop="author" itemscope itemtype="http://schema.org/Person">' . $userHtml . '</span>'; $userHtml = '<span itemprop="author" itemscope itemtype="https://schema.org/Person">' . $userHtml . '</span>';
} }
return $userHtml; return $userHtml;
......
...@@ -259,8 +259,8 @@ if ($formtype == 'q_edit') { // ...in edit mode ...@@ -259,8 +259,8 @@ if ($formtype == 'q_edit') { // ...in edit mode
$microdata = qa_opt('use_microdata'); $microdata = qa_opt('use_microdata');
if ($microdata) { if ($microdata) {
$qa_content['head_lines'][] = '<meta itemprop="name" content="' . qa_html($qa_content['q_view']['raw']['title']) . '">'; $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['html_tags'] .= ' itemscope itemtype="https://schema.org/QAPage"';
$qa_content['wrapper_tags'] = ' itemprop="mainEntity" itemscope itemtype="http://schema.org/Question"'; $qa_content['wrapper_tags'] = ' itemprop="mainEntity" itemscope itemtype="https://schema.org/Question"';
} }
......
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