Commit a9bd8d7d authored by Benthe Kuijpers's avatar Benthe Kuijpers
Browse files

email link in footer + text links on resources

parent 30f8d29e
...@@ -130,6 +130,62 @@ ...@@ -130,6 +130,62 @@
"maxlength": "", "maxlength": "",
"rows": "", "rows": "",
"new_lines": "" "new_lines": ""
},
{
"key": "field_6092357b10a31",
"label": "Email icon",
"name": "email_icon",
"type": "file",
"instructions": "Add a SVG file of the icon",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"library": "all",
"min_size": "",
"max_size": "",
"mime_types": "svg"
},
{
"key": "field_6092358b10a32",
"label": "Email address",
"name": "email_address",
"type": "email",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_60923602a45e0",
"label": "Email text",
"name": "email_text",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "contact us",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
} }
], ],
"location": [ "location": [
...@@ -149,5 +205,5 @@ ...@@ -149,5 +205,5 @@
"hide_on_screen": "", "hide_on_screen": "",
"active": true, "active": true,
"description": "", "description": "",
"modified": 1614679299 "modified": 1620195129
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
margin: 30px -10px; margin: 30px -10px 10px;
a { a {
display: block; display: block;
...@@ -117,4 +117,30 @@ ...@@ -117,4 +117,30 @@
margin: 0 0 0 20px; margin: 0 0 0 20px;
} }
} }
&__email a {
text-decoration: none;
align-items: center;
display: flex;
flex-wrap: wrap;
align-items: center;
margin: 0 0 0 51px;
h4 {
margin-left: 31px;
}
h4:before {
content: "←";
position: relative;
top: 0;
left: 0;
margin-right: 5px;
}
&:hover h4:before {
left: -2px;
transition: all 0.2s ease;
}
}
} }
\ No newline at end of file
...@@ -32,9 +32,19 @@ ...@@ -32,9 +32,19 @@
} }
} }
p:last-child { p:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
.text-link {
display: flex;
justify-content: flex-end;
}
&:hover .text-link:after {
transform: translateX(2px);
transition: all 0.2s ease-out;
}
} }
} }
} }
......
...@@ -23,7 +23,19 @@ ...@@ -23,7 +23,19 @@
<?php endwhile; ?> <?php endwhile; ?>
<h4><?php echo $social_header; ?></h4> <h4><?php echo $social_header; ?></h4>
</div> </div>
<?php endif; ?> <?php endif;
$email = antispambot(get_field('email_address', 'options'), 1);
$email_icon = get_field('email_icon', 'options');
$email_text = get_field('email_text', 'options');
if ($email && $email_icon) { ?>
<div class="footer__email">
<a href="mailto:<?php echo $email; ?>">
<img src="<?php echo $email_icon; ?>">
<h4><?php echo $email_text; ?></h4>
</a>
</div>
<?php } ?>
</div> </div>
<div class="footer__column"> <div class="footer__column">
<?php <?php
......
...@@ -21,5 +21,9 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file', ...@@ -21,5 +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">
<?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