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
c918e0bc
Commit
c918e0bc
authored
Mar 12, 2021
by
alain
🐙
Browse files
pinned content buttons
parent
2bd6b636
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
wordpress/wp-content/themes/makeitopen/assets/css/maps/style.css.map
View file @
c918e0bc
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/css/style.css
View file @
c918e0bc
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/scss/elements/_buttons.scss
View file @
c918e0bc
...
...
@@ -61,6 +61,11 @@ a.btn, .btn, .text-link {
@include
colourBg
(
$bg-yellow
,
0deg
);
}
&
--green
{
background
:
$green
;
@include
colourBg
(
$bg-yellow
,
0deg
);
}
&
--loading
{
background
:
$bg-yellow
;
}
...
...
wordpress/wp-content/themes/makeitopen/template-parts/page-builder-rows/pinned_content_grid.php
View file @
c918e0bc
...
...
@@ -12,8 +12,8 @@
$news_post
=
get_post
(
$news
);
include
(
locate_template
(
'template-parts/elements/news-teaser.php'
));
}
?>
<a
href=
"
<?php
echo
get_permalink
(
get_option
(
'page_for_posts'
));
?>
"
class=
"text-link"
>
<?php
_e
(
'see all news'
,
'makeitopen'
);
?>
</a>
</div>
<a
href=
"
<?php
echo
get_permalink
(
get_option
(
'page_for_posts'
));
?>
"
class=
"btn btn--red"
>
<?php
_e
(
'see all news'
,
'makeitopen'
);
?>
</a>
</div>
<div
class=
"flex-grid"
>
...
...
@@ -28,7 +28,7 @@
$event_post
=
get_post
(
$event
);
include
(
locate_template
(
'template-parts/elements/events-teaser.php'
));
}
?>
<a
href=
"
<?php
echo
get_post_type_archive_link
(
'events'
);
?>
"
class=
"text-link"
>
<?php
_e
(
'go to full agenda'
,
'makeitopen'
);
?>
</a>
<!--
<a href="
<?php
echo
get_post_type_archive_link
(
'events'
);
?>
" class="text-link">
<?php
_e
(
'go to full agenda'
,
'makeitopen'
);
?>
</a>
-->
</div>
<?php
}
?>
...
...
@@ -42,7 +42,7 @@
$resource_filters
=
get_the_terms
(
$resource_post
,
'resource-types'
);
include
(
locate_template
(
'template-parts/elements/resource-teaser.php'
));
}
?>
<a
href=
"
<?php
echo
get_post_type_archive_link
(
'resources'
);
?>
"
class=
"
text-link
"
>
<?php
_e
(
'see all resources'
,
'makeitopen'
);
?>
</a>
<a
href=
"
<?php
echo
get_post_type_archive_link
(
'resources'
);
?>
"
class=
"
btn btn--green
"
>
<?php
_e
(
'see all resources'
,
'makeitopen'
);
?>
</a>
</div>
</div>
</div>
...
...
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