Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marcellus
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
Ashish Pal
marcellus
Commits
823bba83
Commit
823bba83
authored
May 08, 2020
by
Ashish Pal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marcellus pagenations tasks
parent
b19281a6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
.htaccess
.htaccess
+12
-0
pagination.css
wp-content/themes/marcellus/css/pagination.css
+3
-0
media-coverage-interview.php
wp-content/themes/marcellus/templates/media-coverage-interview.php
+4
-2
media-coverage-tv.php
wp-content/themes/marcellus/templates/media-coverage-tv.php
+6
-3
No files found.
.htaccess
0 → 100644
View file @
823bba83
# BEGIN WordPress
<
IfModule
mod_rewrite.c
>
RewriteEngine
On
RewriteBase
/marcellus/
RewriteRule
^index\.php$ - [L]
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
. /marcellus/index.php [L]
</
IfModule
>
# END WordPress
\ No newline at end of file
wp-content/themes/marcellus/css/pagination.css
0 → 100644
View file @
823bba83
.mpagination
{
display
:
flex
;
justify-content
:
flex-end
;
width
:
100%
;
margin-bottom
:
20px
;
padding-right
:
41px
;}
.mpagination
a
{
padding
:
9px
14px
;
color
:
#000000
;
font-size
:
11px
;
background-color
:
#ececec
;
border
:
solid
1px
#f2f2f2
;}
\ No newline at end of file
wp-content/themes/marcellus/templates/media-coverage-interview.php
View file @
823bba83
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
*
*
*/
*/
?>
?>
<?php
get_header
();
?>
<?php
wp_enqueue_style
(
'pagination'
,
get_template_directory_uri
()
.
'/css/pagination.css'
);
get_header
();
?>
<div
id=
"full-content"
class=
"media-coverage-page"
>
<div
id=
"full-content"
class=
"media-coverage-page"
>
<section
style=
"background: url('
<?php
echo
home_url
();
?>
/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;"
class=
"media-banner-bg"
>
<section
style=
"background: url('
<?php
echo
home_url
();
?>
/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;"
class=
"media-banner-bg"
>
...
@@ -37,7 +39,7 @@
...
@@ -37,7 +39,7 @@
</li>
</li>
<?php
endwhile
;
?>
<?php
endwhile
;
?>
</ul>
</ul>
<div
class=
"pagination"
>
<div
class=
"
m
pagination"
>
<?php
<?php
echo
paginate_links
(
array
(
echo
paginate_links
(
array
(
'base'
=>
str_replace
(
999999999
,
'%#%'
,
esc_url
(
get_pagenum_link
(
999999999
))),
'base'
=>
str_replace
(
999999999
,
'%#%'
,
esc_url
(
get_pagenum_link
(
999999999
))),
...
...
wp-content/themes/marcellus/templates/media-coverage-tv.php
View file @
823bba83
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
*
*
*/
*/
?>
?>
<?php
get_header
();
?>
<?php
wp_enqueue_style
(
'pagination'
,
get_template_directory_uri
()
.
'/css/pagination.css'
);
get_header
();
?>
<div
id=
"full-content"
class=
"media-coverage-page"
>
<div
id=
"full-content"
class=
"media-coverage-page"
>
<section
style=
"background: url('
<?php
echo
home_url
();
?>
/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;"
class=
"media-banner-bg"
>
<section
style=
"background: url('
<?php
echo
home_url
();
?>
/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;"
class=
"media-banner-bg"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -16,7 +19,7 @@
...
@@ -16,7 +19,7 @@
<div
class=
"row media-cover-content"
>
<div
class=
"row media-cover-content"
>
<ul
class=
"clearfix"
>
<ul
class=
"clearfix"
>
<?php
<?php
$args
=
array
(
'post_type'
=>
'media_coverage'
,
'meta_name'
=>
'tv'
,
'posts_per_page'
=>
2
,
'orderby'
=>
'id'
,
'order'
=>
'DESC'
);
$args
=
array
(
'post_type'
=>
'media_coverage'
,
'meta_name'
=>
'tv'
,
'posts_per_page'
=>
3
,
'paged'
=>
$paged
,
'orderby'
=>
'id'
,
'order'
=>
'DESC'
);
$loop
=
new
WP_Query
(
$args
);
$loop
=
new
WP_Query
(
$args
);
while
(
$loop
->
have_posts
())
:
$loop
->
the_post
();
while
(
$loop
->
have_posts
())
:
$loop
->
the_post
();
?>
?>
...
@@ -36,7 +39,7 @@
...
@@ -36,7 +39,7 @@
</li>
</li>
<?php
endwhile
;
?>
<?php
endwhile
;
?>
</ul>
</ul>
<div
class=
"pagination"
>
<div
class=
"
m
pagination"
>
<?php
<?php
echo
paginate_links
(
array
(
echo
paginate_links
(
array
(
'base'
=>
str_replace
(
999999999
,
'%#%'
,
esc_url
(
get_pagenum_link
(
999999999
))),
'base'
=>
str_replace
(
999999999
,
'%#%'
,
esc_url
(
get_pagenum_link
(
999999999
))),
...
...
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