Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guaraci WordPress Plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
Guaraci WordPress Plugin
Commits
c709a165
Commit
c709a165
authored
Feb 09, 2020
by
Rafael Chaves Freitas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete unused file
parent
fce18734
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
pagebuilder-widgets/posts-list/tpl/template.php
pagebuilder-widgets/posts-list/tpl/template.php
+0
-50
No files found.
pagebuilder-widgets/posts-list/tpl/template.php
deleted
100644 → 0
View file @
fce18734
<div
class=
"posts-list
<?=
$instance
[
'hide_images'
]
==
'on'
?
'hide-images'
:
''
?>
<?=
$instance
[
'exibicao'
]
?>
"
>
<div
class=
"row"
style=
"max-width: 100%"
>
<?php
$query
=
new
WP_Query
(
$query_args
);
$i
=
0
;
while
(
$query
->
have_posts
())
:
$i
++
;
$query
->
the_post
();
global
$post
;
?>
<div
class=
"column large-
<?=
12
/
$instance
[
'columns'
]
?>
mb-15"
>
<div
class=
"card"
>
<?php
if
(
images\tag
(
'card-large'
,
''
)
!=
''
&&
(
(
$i
==
1
&&
$instance
[
'exibicao'
]
==
'block'
)
||
(
$instance
[
'exibicao'
]
!=
'block'
)
)
)
:
?>
<a
tabindex=
"-1"
href=
"
<?=
get_the_permalink
()
?>
"
class=
"card--image-wrapper"
>
<?php
echo
images\tag
(
'card-large'
,
'card--image'
)
?>
</a>
<?php
endif
;
?>
<div
class=
"card--content"
>
<div
class=
"categories-list"
>
<?php
$post_categories
=
wp_get_post_categories
(
get_the_ID
()
);
foreach
(
$post_categories
as
$category_id
){
$category
=
get_category
(
$category_id
);
?>
<div
class=
"categories-list--category category-
<?=
$category
->
slug
?>
"
>
<a
href=
"
<?=
esc_url
(
get_term_link
(
$category
,
'category'
))
?>
"
>
<?=
$category
->
name
?>
</a>
</div>
<?php
}
?>
</div>
<h4
class=
"card--title"
>
<a
href=
"
<?=
get_the_permalink
()
?>
"
>
<?php
the_title
()
?>
</a>
</h4>
<?php
if
(
has_excerpt
()
&&
$instance
[
'hide_excerpt'
]
!=
'on'
)
:
?>
<div
class=
"card-excerpt"
>
<?php
the_excerpt
()
?>
</div>
<?php
endif
;
?>
</div>
</div>
</div>
<?php
endwhile
?>
</div>
</div>
<?php
if
(
$link
->
url
)
:
?>
<a
href=
"
<?=
$link
->
url
?>
"
class=
"goto"
>
<?=
$link
->
label
?>
</a>
<?php
endif
;
?>
\ No newline at end of file
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