Skip to content

Commit

Permalink
Merge pull request vufind-org#7 from ajturpei/leiska2
Browse files Browse the repository at this point in the history
home.phtml and logosection.phtml
  • Loading branch information
EreMaijala committed Feb 12, 2015
2 parents 7aa684f + d9abb93 commit c6114f8
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 5 deletions.
14 changes: 9 additions & 5 deletions themes/finna/templates/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,18 @@
}
?>
<header role="banner" class="hidden-print">
<div class="container navbar">
<a class="sr-only" href="#content"><?=$this->transEsc('Skip to content') ?></a>
<?=$this->render('header.phtml')?>
<div class="container-fluid navbar">
<div class="row">
<div class="col-xs-12">
<a class="sr-only" href="#content"><?=$this->transEsc('Skip to content') ?></a>
<?=$this->render('header.phtml')?>
</div>
</div>
</div>
</header>
<section role="search" class="searchLayout">
<div class="container">
<?if (isset($this->layout()->logosection)): ?>
<?if (isset($this->layout()->logosection) && $this->layout()->logosection == true): ?>
<div class="row">
<div class="logo col-xs-12 clearfix">
<?=$this->render('search/logosection.phtml') ?>
Expand All @@ -99,7 +103,7 @@
<? endif; ?>
<?if (isset($this->layout()->introduction)): ?>
<div class="row">
<div class="col-xs-11 col-sm-10 col-md-8 col-lg-6 introduction clearfix">
<div class="col-xs-12 introduction clearfix">
<?=$this->render('search/introductiontext.phtml') ?>
</div>
<div class="col-xs-1"></div>
Expand Down
77 changes: 77 additions & 0 deletions themes/finna/templates/search/home.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?
// Set page title.
$this->headTitle($this->translate('Search Home'));

// Disable top search box -- this page has a special layout.


// Set default value if necessary:
if (!isset($this->searchClassId)) {
$this->searchClassId = 'Solr';
}

// Load search actions and settings (if any):
$options = $this->searchOptions($this->searchClassId);
$basicSearch = $options->getSearchAction();
$advSearch = $options->getAdvancedSearchAction();

$this->layout()->breadcrumbs = false;
$this->layout()->logosection = true;
$this->layout()->introduction = true;
?>
<!-- Begin home.phtml and close page container for extra styling -->
</div>
<div class="container-fluid home-top-content">
<div class="container">
<div class="row">
<? if ($this->ils()->getOfflineMode() == "ils-offline"): ?>
<div class="alert alert-warning">
<h2><?=$this->transEsc('ils_offline_title')?></h2>
<p><strong><?=$this->transEsc('ils_offline_status')?></strong></p>
<p><?=$this->transEsc('ils_offline_home_message')?></p>
<? $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?>
<p><a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a></p>
</div>
<? endif; ?>
<? if ($this->resolver('search/homelefttop.phtml')): ?>
<div class="col-sm-7 left-top">
<?=$this->render('search/homelefttop.phtml')?>
</div>
<? endif; ?>
<? if ($this->resolver('search/homerighttop.phtml')): ?>
<div class="col-sm-5 right-top">
<?=$this->render('search/homerighttop.phtml')?>
</div>
<? endif; ?>
</div>
</div>
</div>
<!-- Begin middle content -->
<div class="container-fluid home-middle-content">
<div class="container">
<div class="row">
<? if ($this->resolver('search/homemiddle.phtml')): ?>
<?=$this->render('search/homemiddle.phtml')?>
<? endif; ?>
</div>
</div>
</div>
<!-- End middle content -->
<!-- Begin carousel -->
<div class="container-fluid carousel">
<div class="container">
<? if ($this->resolver('search/carousel-template.phtml')): ?>
<?=$this->render('search/carousel-template.phtml')?>
<? endif; ?>
</div>
</div>
<!-- End carousel -->
<div class="container-fluid home-bottom-content">
<div class="container">
<div class="row">
<? if ($this->resolver('search/homebottom.phtml')): ?>
<?=$this->render('search/homebottom.phtml')?>
<? endif; ?>
</div>
</div>
<!-- End Home.phtml -->
3 changes: 3 additions & 0 deletions themes/finna/templates/search/logosection.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<i class="fa fa-finnalogo"></i>
<hr>

0 comments on commit c6114f8

Please sign in to comment.