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 @@ ...@@ -2,7 +2,7 @@
margin: 0 0 100px; margin: 0 0 100px;
&__item { &__item {
a { a, div {
padding: 20px 0; padding: 20px 0;
display: block; display: block;
text-decoration: none; text-decoration: none;
......
...@@ -3,7 +3,7 @@ $type = get_field('type', $resource_post); ...@@ -3,7 +3,7 @@ $type = get_field('type', $resource_post);
$url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file', $resource_post); ?> $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file', $resource_post); ?>
<div class="list__item <?php echo $filterclass; ?>"> <div class="list__item <?php echo $filterclass; ?>">
<a href="<?php echo $url; ?>" target="_blank"> <div>
<?php <?php
if (!empty($resource_filters)) { if (!empty($resource_filters)) {
foreach($resource_filters as $filter) { foreach($resource_filters as $filter) {
...@@ -21,9 +21,9 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file', ...@@ -21,9 +21,9 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file',
} else { } else {
echo excerpt(get_the_excerpt($resource_post), 100); echo excerpt(get_the_excerpt($resource_post), 100);
} ?></p> } ?></p>
<span class="text-link"> <a class="text-link" href="<?php echo $url; ?>" target="_blank">
<?php _e('open', 'makeitopen'); <?php _e('open', 'makeitopen');
if ($type === 'url') { echo ' link'; } else { echo ' file'; } ?> if ($type === 'url') { echo ' link'; } else { echo ' file'; } ?>
</span> </a>
</a> </div>
</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