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
42528bb7
Commit
42528bb7
authored
Mar 12, 2021
by
Benthe Kuijpers
Browse files
resource label and min-height
parent
e434db60
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
wordpress/wp-content/themes/makeitopen/assets/css/maps/style.css.map
View file @
42528bb7
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/css/style.css
View file @
42528bb7
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/scss/partials/_list.scss
View file @
42528bb7
.list
{
.list
{
margin
:
0
0
100px
;
margin
:
0
0
100px
;
min-height
:
90vh
;
&
__item
{
&
__item
{
a
{
a
{
...
...
wordpress/wp-content/themes/makeitopen/template-parts/elements/resource-teaser.php
View file @
42528bb7
...
@@ -7,7 +7,11 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file',
...
@@ -7,7 +7,11 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file',
<?php
<?php
if
(
!
empty
(
$resource_filters
))
{
if
(
!
empty
(
$resource_filters
))
{
foreach
(
$resource_filters
as
$filter
)
{
foreach
(
$resource_filters
as
$filter
)
{
echo
'<span class="label">'
.
lcfirst
(
$filter
->
name
)
.
'<span>'
.
get_field
(
'label'
,
$resource_post
)
.
'</span></span>'
;
echo
'<span class="label">'
.
lcfirst
(
$filter
->
name
);
if
(
get_field
(
'label'
,
$resource_post
))
{
echo
'<span>'
.
get_field
(
'label'
,
$resource_post
)
.
'</span>'
;
}
echo
'</span>'
;
}
}
}
?>
}
?>
<h2>
<?php
echo
get_the_title
(
$resource_post
);
?>
</h2>
<h2>
<?php
echo
get_the_title
(
$resource_post
);
?>
</h2>
...
...
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