mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-31 01:11:25 +00:00
standardize footer
This commit is contained in:
parent
8b7e7b9c2e
commit
a45ae6d3b4
7 changed files with 12 additions and 19 deletions
|
@ -168,7 +168,7 @@ class Controller
|
||||||
|
|
||||||
public static function shutdown()
|
public static function shutdown()
|
||||||
{
|
{
|
||||||
foreach(static::$queuedFunctions as $fn)
|
while($fn = array_shift(static::$queuedFunctions))
|
||||||
{
|
{
|
||||||
call_user_func($fn);
|
call_user_func($fn);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ class NavActions extends Actions
|
||||||
public static function prepareFooterPartial(array $vars)
|
public static function prepareFooterPartial(array $vars)
|
||||||
{
|
{
|
||||||
return $vars + [
|
return $vars + [
|
||||||
'isDark' => false,
|
|
||||||
'showLearnFooter' => false
|
'showLearnFooter' => false
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -28,13 +27,6 @@ class NavActions extends Actions
|
||||||
return $vars;
|
return $vars;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function prepareLearnFooterPartial(array $vars)
|
|
||||||
{
|
|
||||||
return $vars + [
|
|
||||||
'isDark' => true
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function execute400(array $vars)
|
public static function execute400(array $vars)
|
||||||
{
|
{
|
||||||
Response::setStatus(400);
|
Response::setStatus(400);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<section class="post-author-spotlight cover cover-dark cover-dark-grad">
|
<div class="post-author-spotlight cover cover-light-alt cover-light-alt-grad">
|
||||||
<div class="content content-dark">
|
<div class="content">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<img src="/img/team/<?php echo $photoImgSrc ?>" alt="<?php echo __('Photo of %name%', ['%name%' => $authorName]) ?>"/>
|
<img src="/img/team/<?php echo $photoImgSrc ?>" alt="<?php echo __('Photo of %name%', ['%name%' => $authorName]) ?>"/>
|
||||||
|
@ -11,4 +11,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
|
|
@ -25,11 +25,12 @@
|
||||||
<?php echo View::render('content/_postNav', ['post' => $post]) ?>
|
<?php echo View::render('content/_postNav', ['post' => $post]) ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
|
||||||
|
|
||||||
<?php if ($post->hasAuthor()): ?>
|
<?php if ($post->hasAuthor()): ?>
|
||||||
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php echo View::render('nav/_learnFooter') ?>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<?php echo View::render('nav/_footer') ?>
|
<?php echo View::render('nav/_footer') ?>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<?php define('FOOTER_RENDERED', true) ?>
|
<?php define('FOOTER_RENDERED', true) ?>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<?php if ($showLearnFooter): ?>
|
<?php if ($showLearnFooter): ?>
|
||||||
<?php echo View::render('nav/_learnFooter', ['isDark' => $isDark]) ?>
|
<?php echo View::render('nav/_learnFooter') ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="footer-standard">
|
<div class="footer-standard">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<div class="cover <?php echo $isDark ? 'cover-dark cover-dark-grad' : 'cover-light-alt cover-light-alt-grad' ?> ">
|
<div class="cover cover-dark cover-dark-grad">
|
||||||
<div class="content <?php echo $isDark ? 'content-dark' : 'content-light' ?>">
|
<div class="content content-dark">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h3><?php echo __('publish.next') ?></h3>
|
<h3><?php echo __('publish.next') ?></h3>
|
||||||
<table class="table-layout">
|
<table class="table-layout">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/get" class="<?php echo $isDark ? 'btn-alt' : 'btn-primary' ?> btn-full-width"><?php echo __('global.get') ?></a>
|
<a href="/get" class="btn-alt btn-full-width"><?php echo __('global.get') ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php echo __('publish.abundance') ?>
|
<?php echo __('publish.abundance') ?>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<?php if (Request::getRelativeUri() != '/team'): ?>
|
<?php if (Request::getRelativeUri() != '/team'): ?>
|
||||||
<li>Find out about <a href="/team" class="link-primary">the team behind LBRY</a>.</li>
|
<li>Find out about <a href="/team" class="link-primary">the team behind LBRY</a>.</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (strpos(Request::getRelativeUri(), '/news') === false): ?>
|
<?php if (strpos(Request::getRelativeUri(), ContentActions::URL_NEWS) === false): ?>
|
||||||
<li>Check out the latest <a href="/news" class="link-primary">news</a>.</li>
|
<li>Check out the latest <a href="/news" class="link-primary">news</a>.</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -107,6 +107,6 @@
|
||||||
<p>Email <a class="link-primary" href=mailto:reilly@lbry.io?subject=Publishing Program">Reilly Smith</a> with questions or to schedule a call.</p>
|
<p>Email <a class="link-primary" href=mailto:reilly@lbry.io?subject=Publishing Program">Reilly Smith</a> with questions or to schedule a call.</p>
|
||||||
<?php echo View::render('content/_bio', ['person' => 'reilly-smith', 'orientation' => 'horizontal']) ?>
|
<?php echo View::render('content/_bio', ['person' => 'reilly-smith', 'orientation' => 'horizontal']) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php echo View::render('nav/_learnFooter', ['isDark' => true]) ?>
|
<?php echo View::render('nav/_learnFooter') ?>
|
||||||
</main>
|
</main>
|
||||||
<?php echo View::render('nav/_footer') ?>
|
<?php echo View::render('nav/_footer') ?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue