Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
alain
Make it Open Project Site
Commits
8604caa2
Commit
8604caa2
authored
May 05, 2021
by
alain
🐙
Browse files
resources only text link a link ( :
parent
a9bd8d7d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
wordpress/wp-content/themes/makeitopen/assets/css/maps/style.css.map
View file @
8604caa2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wordpress/wp-content/themes/makeitopen/assets/css/style.css
View file @
8604caa2
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/scss/partials/_list.scss
View file @
8604caa2
...
...
@@ -2,7 +2,7 @@
margin
:
0
0
100px
;
&
__item
{
a
{
a
,
div
{
padding
:
20px
0
;
display
:
block
;
text-decoration
:
none
;
...
...
wordpress/wp-content/themes/makeitopen/template-parts/elements/resource-teaser.php
View file @
8604caa2
...
...
@@ -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
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