-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimalistic channel call footer (#578)
* create minimal footer for channel call section * add footer as new node section
- Loading branch information
Showing
8 changed files
with
138 additions
and
72 deletions.
There are no files selected for viewing
75 changes: 9 additions & 66 deletions
75
Resources/templates/responsive/channel/call/partials/footer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,9 @@ | ||
<?php $channel=$this->channel; ?> | ||
|
||
<footer id="footer" class="footer"> | ||
<div class="container-fluid"> | ||
<div class="container"> | ||
<div class="row header"> | ||
<div class="pull-left"> | ||
<a href="<?= '/channel/'.$this->channel->id ?> "> | ||
<img src="<?= $channel->logo_footer ? $channel->logo_footer->getlink(0,50) : '' ?>" height="50"> | ||
</a> | ||
</div> | ||
<div class="pull-right"> | ||
<span><?= $this->text('call-header-powered-by') ?></span> | ||
<a href="<?= $this->get_config('url.main') ?>"> | ||
<img src="<?= '/assets/img/goteo-blue-green.svg' ?>" > | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row spacer-20"> | ||
<div class="col-md-6 col-sm-8"> | ||
<div class="spacer-20"> | ||
<?= $this->t('channel-call-footer-information') ?> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-6 col-xs-6"> | ||
<ul> | ||
<li><a href="/about" target="_blank"><?= $this->t('channel-call-footer-about') ?> </a></li> | ||
<li><a href="https://stats.goteo.org" target="_blank"><?= $this->t('channel-call-footer-stats') ?> </a></li> | ||
<li><a href="/legal/terms" target="_blank"><?= $this->t('channel-call-footer-conditions') ?> </a></li> | ||
<li><a href="/legal/privacy" target="_blank"><?= $this->t('channel-call-footer-privacy') ?> </a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-6 col-sm-6 col-xs-6"> | ||
<ul> | ||
<li><a href="/about/librejs" target="_blank"><?= $this->t('channel-call-footer-licenses') ?> </a></li> | ||
<li><a href="/faq" target="_blank"><?= $this->t('channel-call-footer-faq') ?> </a></li> | ||
<li><a href="/contact" target="_blank"><?= $this->t('channel-call-footer-contact') ?> </a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6 col-sm-4"> | ||
<div class="spacer-20"> | ||
<?= $this->t('channel-call-footer-social-networks') ?> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-12 col-xs-6"> | ||
<ul> | ||
<li><a href="<?=$this->text('social-account-twitter') ?>" target="_blank"><span class="icon icon-channel-twitter"></span> <?= $this->t('channel-call-footer-twitter') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-facebook') ?>" target="_blank"><span class="icon icon-channel-fb"></span> <?= $this->t('channel-call-footer-facebook') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-instagram') ?>" target="_blank"><span class="icon icon-channel-instagram"></span> <?= $this->t('channel-call-footer-instagram') ?> </a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-6 col-sm-12 col-xs-6"> | ||
<ul> | ||
<li><a href="<?=$this->text('social-account-telegram') ?>" target="_blank"><span class="icon icon-channel-telegram"></span> <?= $this->t('channel-call-footer-telegram') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-github') ?>" target="_blank"><span class="icon icon-channel-github"></span> <?= $this->t('channel-call-footer-github') ?> </a></li> | ||
<li><a href="/newsletter" target="_blank"><span class="icon icon-channel-mail"></span> <?= $this->t('channel-call-footer-newsletter') ?> </a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
<?php | ||
$channel=$this->channel; | ||
$section = $channel->getSections('footer'); | ||
if ($section): | ||
?> | ||
<?= $this->insert('channel/call/partials/minimal_footer'); ?> | ||
<?php else: ?> | ||
<?= $this->insert('channel/call/partials/full_footer'); ?> | ||
<?php endif; ?> |
66 changes: 66 additions & 0 deletions
66
Resources/templates/responsive/channel/call/partials/full_footer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php $channel=$this->channel; ?> | ||
|
||
<footer id="footer" class="footer"> | ||
<div class="container-fluid"> | ||
<div class="container"> | ||
<div class="row header"> | ||
<div class="pull-left"> | ||
<a href="<?= '/channel/'.$this->channel->id ?> "> | ||
<img src="<?= $channel->logo_footer ? $channel->logo_footer->getlink(0,50) : '' ?>" height="50"> | ||
</a> | ||
</div> | ||
<div class="pull-right"> | ||
<span><?= $this->text('call-header-powered-by') ?></span> | ||
<a href="<?= $this->get_config('url.main') ?>"> | ||
<img src="<?= '/assets/img/goteo-blue-green.svg' ?>" > | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row spacer-20"> | ||
<div class="col-md-6 col-sm-8"> | ||
<div class="spacer-20"> | ||
<?= $this->t('channel-call-footer-information') ?> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-6 col-xs-6"> | ||
<ul> | ||
<li><a href="/about" target="_blank"><?= $this->t('channel-call-footer-about') ?> </a></li> | ||
<li><a href="https://stats.goteo.org" target="_blank"><?= $this->t('channel-call-footer-stats') ?> </a></li> | ||
<li><a href="/legal/terms" target="_blank"><?= $this->t('channel-call-footer-conditions') ?> </a></li> | ||
<li><a href="/legal/privacy" target="_blank"><?= $this->t('channel-call-footer-privacy') ?> </a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-6 col-sm-6 col-xs-6"> | ||
<ul> | ||
<li><a href="/about/librejs" target="_blank"><?= $this->t('channel-call-footer-licenses') ?> </a></li> | ||
<li><a href="/faq" target="_blank"><?= $this->t('channel-call-footer-faq') ?> </a></li> | ||
<li><a href="/contact" target="_blank"><?= $this->t('channel-call-footer-contact') ?> </a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6 col-sm-4"> | ||
<div class="spacer-20"> | ||
<?= $this->t('channel-call-footer-social-networks') ?> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-12 col-xs-6"> | ||
<ul> | ||
<li><a href="<?=$this->text('social-account-twitter') ?>" target="_blank"><span class="icon icon-channel-twitter"></span> <?= $this->t('channel-call-footer-twitter') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-facebook') ?>" target="_blank"><span class="icon icon-channel-fb"></span> <?= $this->t('channel-call-footer-facebook') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-instagram') ?>" target="_blank"><span class="icon icon-channel-instagram"></span> <?= $this->t('channel-call-footer-instagram') ?> </a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-6 col-sm-12 col-xs-6"> | ||
<ul> | ||
<li><a href="<?=$this->text('social-account-telegram') ?>" target="_blank"><span class="icon icon-channel-telegram"></span> <?= $this->t('channel-call-footer-telegram') ?> </a></li> | ||
<li><a href="<?=$this->text('social-account-github') ?>" target="_blank"><span class="icon icon-channel-github"></span> <?= $this->t('channel-call-footer-github') ?> </a></li> | ||
<li><a href="/newsletter" target="_blank"><span class="icon icon-channel-mail"></span> <?= $this->t('channel-call-footer-newsletter') ?> </a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
35 changes: 35 additions & 0 deletions
35
Resources/templates/responsive/channel/call/partials/minimal_footer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php $channel=$this->channel; ?> | ||
|
||
<footer id="footer" class="footer minimal-footer"> | ||
<div class="container-fluid"> | ||
<div class="container"> | ||
<div class="row header"> | ||
<div class="pull-left"> | ||
<a href="<?= '/channel/'.$this->channel->id ?> "> | ||
<img src="<?= $channel->logo_footer ? $channel->logo_footer->getlink(0,50) : '' ?>" height="50"> | ||
</a> | ||
</div> | ||
<div class="pull-right"> | ||
<span><?= $this->text('call-header-powered-by') ?></span> | ||
<a href="<?= $this->get_config('url.main') ?>"> | ||
<img src="<?= '/assets/img/goteo-blue-green.svg' ?>" > | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row spacer-20"> | ||
<div class="spacer-20"> | ||
<?= $this->t('channel-call-footer-information') ?> | ||
<div class="row"> | ||
<ul> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/about" target="_blank"><?= $this->t('channel-call-footer-about') ?> </a></li> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/legal/terms" target="_blank"><?= $this->t('channel-call-footer-conditions') ?> </a></li> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/legal/privacy" target="_blank"><?= $this->t('channel-call-footer-privacy') ?> </a></li> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/about/librejs" target="_blank"><?= $this->t('channel-call-footer-licenses') ?> </a></li> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/channel/<?= $channel->id ?>/faq" target="_blank"><?= $this->t('channel-call-footer-faq') ?> </a></li> | ||
<li class="col-md-2 col-sm-4 col-xs-4"><a href="/contact" target="_blank"><?= $this->t('channel-call-footer-contact') ?> </a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters