mirror of
https://github.com/cupcakearmy/liquet.git
synced 2024-12-22 16:16:25 +00:00
made by string
This commit is contained in:
parent
3d0cd61105
commit
7ba95e1d04
@ -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
|
||||
}
|
@ -5,6 +5,11 @@
|
||||
margin: 2em
|
||||
text-align: center
|
||||
|
||||
.made-by-link
|
||||
text-decoration: underline
|
||||
display: block
|
||||
padding-bottom: 1em
|
||||
|
||||
img
|
||||
height: 1.5em
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user