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
7db0cba8
Commit
7db0cba8
authored
Jul 21, 2017
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add meta description to category pages
parent
d7b2c7f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
q-list.php
qa-include/app/q-list.php
+5
-0
No files found.
qa-include/app/q-list.php
View file @
7db0cba8
...
@@ -133,6 +133,11 @@ function qa_q_list_page_content($questions, $pagesize, $start, $count, $sometitl
...
@@ -133,6 +133,11 @@ function qa_q_list_page_content($questions, $pagesize, $start, $count, $sometitl
$qa_content
[
'navigation'
][
'cat'
]
=
qa_category_navigation
(
$navcategories
,
$categoryid
,
$categorypathprefix
,
$categoryqcount
,
$categoryparams
);
$qa_content
[
'navigation'
][
'cat'
]
=
qa_category_navigation
(
$navcategories
,
$categoryid
,
$categorypathprefix
,
$categoryqcount
,
$categoryparams
);
}
}
// set meta description on category pages
if
(
!
empty
(
$navcategories
[
$categoryid
][
'content'
]))
{
$qa_content
[
'description'
]
=
qa_html
(
$navcategories
[
$categoryid
][
'content'
]);
}
if
(
isset
(
$feedpathprefix
)
&&
(
qa_opt
(
'feed_per_category'
)
||
!
isset
(
$categoryid
)))
{
if
(
isset
(
$feedpathprefix
)
&&
(
qa_opt
(
'feed_per_category'
)
||
!
isset
(
$categoryid
)))
{
$qa_content
[
'feed'
]
=
array
(
$qa_content
[
'feed'
]
=
array
(
'url'
=>
qa_path_html
(
qa_feed_request
(
$feedpathprefix
.
(
isset
(
$categoryid
)
?
(
'/'
.
qa_category_path_request
(
$navcategories
,
$categoryid
))
:
''
))),
'url'
=>
qa_path_html
(
qa_feed_request
(
$feedpathprefix
.
(
isset
(
$categoryid
)
?
(
'/'
.
qa_category_path_request
(
$navcategories
,
$categoryid
))
:
''
))),
...
...
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