made by string

This commit is contained in:
cupcakearmy 2020-01-04 16:49:48 +01:00
parent 3d0cd61105
commit 7ba95e1d04
2 changed files with 27 additions and 20 deletions

View File

@ -6,24 +6,26 @@ function render_links( $expanded = false ) {
global $links;
?>
<div id="logos">
<?php if ( $expanded ) { ?>
<div class="title alt-font">
discuss & share
<br/>
<img src="<?= get_template_directory_uri() . '/vendor/icons/down.svg' ?>" alt="arrow down"/>
</div>
<?php } ?>
<div class="list flex container horizontal middle center">
<?php
foreach ( $links as $link ) {
$saved = get_option( $link . '_url' );
if ( $saved ) { ?>
<a href="<?= $saved ?>" target="_blank" rel="noopener">
<img src="<?= get_template_directory_uri() . '/vendor/logos/' . $link . '.png' ?>"
alt="<?= $link; ?>" rel="noopener"/>
</a>
<?php }
}
?></div>
</div><?php
<?php if ( $expanded ) { ?>
<div class="title alt-font">
<a class="made-by-link" target="_blank" href="https://github.com/cupcakearmy/liquet">made with ❤️ by @cupcakearmy</a>
discuss & share
<br/>
<img src="<?= get_template_directory_uri() . '/vendor/icons/down.svg' ?>" alt="arrow down"/>
</div>
<?php } ?>
<div class="list flex container horizontal middle center">
<?php
foreach ( $links as $link ) {
$saved = get_option( $link . '_url' );
if ( $saved ) { ?>
<a href="<?= $saved ?>" target="_blank" rel="noopener">
<img src="<?= get_template_directory_uri() . '/vendor/logos/' . $link . '.png' ?>"
alt="<?= $link; ?>" rel="noopener"/>
</a>
<?php }
}
?></div>
</div>
<?php
}

View File

@ -5,6 +5,11 @@
margin: 2em
text-align: center
.made-by-link
text-decoration: underline
display: block
padding-bottom: 1em
img
height: 1.5em