mirror of
https://github.com/cupcakearmy/liquet.git
synced 2024-12-23 00:26: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;
|
global $links;
|
||||||
?>
|
?>
|
||||||
<div id="logos">
|
<div id="logos">
|
||||||
<?php if ( $expanded ) { ?>
|
<?php if ( $expanded ) { ?>
|
||||||
<div class="title alt-font">
|
<div class="title alt-font">
|
||||||
discuss & share
|
<a class="made-by-link" target="_blank" href="https://github.com/cupcakearmy/liquet">made with ❤️ by @cupcakearmy</a>
|
||||||
<br/>
|
discuss & share
|
||||||
<img src="<?= get_template_directory_uri() . '/vendor/icons/down.svg' ?>" alt="arrow down"/>
|
<br/>
|
||||||
</div>
|
<img src="<?= get_template_directory_uri() . '/vendor/icons/down.svg' ?>" alt="arrow down"/>
|
||||||
<?php } ?>
|
</div>
|
||||||
<div class="list flex container horizontal middle center">
|
<?php } ?>
|
||||||
<?php
|
<div class="list flex container horizontal middle center">
|
||||||
foreach ( $links as $link ) {
|
<?php
|
||||||
$saved = get_option( $link . '_url' );
|
foreach ( $links as $link ) {
|
||||||
if ( $saved ) { ?>
|
$saved = get_option( $link . '_url' );
|
||||||
<a href="<?= $saved ?>" target="_blank" rel="noopener">
|
if ( $saved ) { ?>
|
||||||
<img src="<?= get_template_directory_uri() . '/vendor/logos/' . $link . '.png' ?>"
|
<a href="<?= $saved ?>" target="_blank" rel="noopener">
|
||||||
alt="<?= $link; ?>" rel="noopener"/>
|
<img src="<?= get_template_directory_uri() . '/vendor/logos/' . $link . '.png' ?>"
|
||||||
</a>
|
alt="<?= $link; ?>" rel="noopener"/>
|
||||||
<?php }
|
</a>
|
||||||
}
|
<?php }
|
||||||
?></div>
|
}
|
||||||
</div><?php
|
?></div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
}
|
}
|
@ -5,6 +5,11 @@
|
|||||||
margin: 2em
|
margin: 2em
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
|
.made-by-link
|
||||||
|
text-decoration: underline
|
||||||
|
display: block
|
||||||
|
padding-bottom: 1em
|
||||||
|
|
||||||
img
|
img
|
||||||
height: 1.5em
|
height: 1.5em
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user