Commit 8604caa2 authored by alain's avatar alain 🐙
Browse files

resources only text link a link ( :

parent a9bd8d7d
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@
margin: 0 0 100px;
&__item {
a {
a, div {
padding: 20px 0;
display: block;
text-decoration: none;
......
......@@ -3,7 +3,7 @@ $type = get_field('type', $resource_post);
$url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file', $resource_post); ?>
<div class="list__item <?php echo $filterclass; ?>">
<a href="<?php echo $url; ?>" target="_blank">
<div>
<?php
if (!empty($resource_filters)) {
foreach($resource_filters as $filter) {
......@@ -21,9 +21,9 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file',
} else {
echo excerpt(get_the_excerpt($resource_post), 100);
} ?></p>
<span class="text-link">
<a class="text-link" href="<?php echo $url; ?>" target="_blank">
<?php _e('open', 'makeitopen');
if ($type === 'url') { echo ' link'; } else { echo ' file'; } ?>
</span>
</a>
</a>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment