Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Intelliants
Articles Script
Commits
d405242f
Commit
d405242f
authored
Feb 01, 2018
by
Vasily Bezruchkin
💬
Browse files
Merge branch 'articles_pagination' into 'master'
Articles pagination See merge request intelliants/publishing!13
parents
a7e08b05
dd4459bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.php
View file @
d405242f
...
...
@@ -74,7 +74,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
$articles
=
$iaArticle
->
get
(
$where
.
" ORDER BY t1.`views_num` DESC"
,
$start
,
$pagination
[
'limit'
]);
$rssFeed
=
'popular'
;
$pagination
[
'total'
]
=
$ia
Db
->
f
oundRows
();
$pagination
[
'total'
]
=
$ia
Article
->
getF
oundRows
();
$iaView
->
assign
(
'articles_sorting'
,
false
);
break
;
...
...
@@ -83,7 +83,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
$articles
=
$iaArticle
->
get
(
$where
.
" ORDER BY t1.date_added DESC"
,
$start
,
$pagination
[
'limit'
]);
$rssFeed
=
'latest'
;
$pagination
[
'total'
]
=
$ia
Db
->
f
oundRows
();
$pagination
[
'total'
]
=
$ia
Article
->
getF
oundRows
();
$iaView
->
assign
(
'articles_sorting'
,
false
);
break
;
...
...
@@ -139,7 +139,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
$articles
=
$iaArticle
->
get
(
'AND t1.`member_id` = '
.
iaUsers
::
getIdentity
()
->
id
.
' ORDER BY t1.'
.
$order
,
$start
,
$pagination
[
'limit'
],
true
);
$pagination
[
'total'
]
=
$ia
Db
->
f
oundRows
();
$pagination
[
'total'
]
=
$ia
Article
->
getF
oundRows
();
break
;
...
...
@@ -233,7 +233,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
$articles
=
$iaArticle
->
get
(
$stmt
,
$start
,
$pagination
[
'limit'
]);
$pagination
[
'total'
]
=
$ia
Db
->
f
oundRows
();
$pagination
[
'total'
]
=
$ia
Article
->
getF
oundRows
();
$caption
=
iaLanguage
::
getf
(
'articles_by_date'
,
[
'year'
=>
$year
,
...
...
templates/front/index.tpl
View file @
d405242f
...
...
@@ -69,7 +69,7 @@
<div
class=
"ia-items"
>
{
foreach
$articles
as
$listing
}
{
include
file
=
'extra
:publishing/list-articles'
}
{
include
'module
:publishing/list-articles
.tpl
'
}
{/
foreach
}
</div>
...
...
Write
Preview
Supports
Markdown
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