2022-09-26 23:06:12 +00:00
|
|
|
<?php
|
2022-09-27 01:58:32 +00:00
|
|
|
$self->extends('master');
|
2022-09-26 23:06:12 +00:00
|
|
|
|
|
|
|
$self->header_title = 'flash.moe / contact';
|
|
|
|
|
|
|
|
$self->block('container', function($self) {
|
|
|
|
?>
|
|
|
|
<div class="section">
|
|
|
|
<div class="section-content">
|
|
|
|
<div class="section-background"></div>
|
2023-05-28 18:47:58 +00:00
|
|
|
<h1>Contact</h1>
|
2022-09-26 23:06:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="socials">
|
|
|
|
<?php foreach($self->contacts as $contact): ?>
|
|
|
|
<div class="social social-<?=$contact->getName();?>" style="--social-colour: <?=$contact->getColourHex();?>">
|
|
|
|
|
|
|
|
<?php if($contact->hasLink()): ?>
|
|
|
|
<a href="<?=$contact->getLink();?>" class="social-background" target="_blank" rel="noopener"></a>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="social-background" onclick="fm.selectTextInElement(this.parentNode.querySelector('.social-handle')); fm.copySelectedText();"></div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div class="social-icon <?=$contact->getIcon();?>"></div>
|
|
|
|
<div class="social-content">
|
2023-05-28 18:47:48 +00:00
|
|
|
<div class="social-name"><?=$contact->getTitle();?></div>
|
2022-09-26 23:06:12 +00:00
|
|
|
<div class="social-handle"><?=$contact->getDisplay();?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
});
|