Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
51c3be9f
Commit
51c3be9f
authored
6 years ago
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update schema.org URLs
Fix #709
parent
ceb87868
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
format.php
qa-include/app/format.php
+3
-3
users.php
qa-include/app/users.php
+1
-1
question.php
qa-include/pages/question.php
+2
-2
No files found.
qa-include/app/format.php
View file @
51c3be9f
...
@@ -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="http
s
://schema.org/Answer"'
;
}
}
if
(
$iscomment
)
{
if
(
$iscomment
)
{
$fields
[
'tags'
]
.=
' itemscope itemtype="http://schema.org/Comment"'
;
$fields
[
'tags'
]
.=
' itemscope itemtype="http
s
://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="http
s
://schema.org/Person"><span itemprop="name">'
.
$whohtml
.
'</span></span>'
;
}
}
if
(
isset
(
$ip
))
if
(
isset
(
$ip
))
...
...
This diff is collapsed.
Click to expand it.
qa-include/app/users.php
View file @
51c3be9f
...
@@ -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="http
s
://schema.org/Person">'
.
$userHtml
.
'</span>'
;
}
}
return
$userHtml
;
return
$userHtml
;
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/question.php
View file @
51c3be9f
...
@@ -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="http
s
://schema.org/QAPage"'
;
$qa_content
[
'wrapper_tags'
]
=
' itemprop="mainEntity" itemscope itemtype="http://schema.org/Question"'
;
$qa_content
[
'wrapper_tags'
]
=
' itemprop="mainEntity" itemscope itemtype="http
s
://schema.org/Question"'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment