-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New search box approach with temp photos
- Loading branch information
Showing
13 changed files
with
173 additions
and
340 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
59 changes: 59 additions & 0 deletions
59
www/includes/easyparliament/templates/html/homepage/search-box.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,59 @@ | ||
<div class="panel panel--primary <?= $homepage_panel_class ?>"> | ||
<div class ="row nested-row"> | ||
<div class="home__search"> | ||
<div> | ||
<h1 class="site-home__logo">TheyWorkForYou</h1> | ||
</div> | ||
<?php if ($homepage_subhead) { ?> | ||
<div> | ||
<h2 class="site-home__logo" style="color:#fff"><?= $homepage_subhead ?></h2> | ||
</div> | ||
<?php } ?> | ||
<?php if ($homepage_desc) { ?> | ||
<p><?= $homepage_desc ?></p> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
<div class="row nested-row "> | ||
<div class="home__search"> | ||
<form action="<?= $urls['search'] ?>" method="GET" onsubmit="trackFormSubmit(this, 'Search', 'Submit', 'Home'); return false;"> | ||
<?php if ($search_section) { ?> | ||
<input type="hidden" name="section" value="<?= $search_section ?>"> | ||
<?php } ?> | ||
<div class="row collapse"> | ||
<div class="medium-9 columns"> | ||
<input name="q" id="q" class="homepage-search__input" type="text" placeholder="Enter your postcode, person, or topic" /> | ||
</div> | ||
<div class="medium-3 columns"> | ||
<input type="submit" value="Search" class="button homepage-search__button" /> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
<div class="home__search-suggestions"> | ||
<?php if (count($popular_searches)) { ?> | ||
<p>Popular searches today</p> | ||
<ul class="search-suggestions__list"> | ||
<?php foreach ($popular_searches as $i => $popular_search) { ?> | ||
<li><?= $popular_search['display']; ?></li> | ||
<?php } ?> | ||
</ul> | ||
<?php } ?> | ||
</div> | ||
<div class="home__quick-links" style="padding-top:20px;"> | ||
<h3>Quick links</h3> | ||
<ul class="quick-links__list"> | ||
<?php foreach ($quick_links as $quick_link) { ?> | ||
<li><a href="<?= $quick_link['url'] ?>"><?= $quick_link['title'] ?></a></li> | ||
<?php } ?> | ||
</ul> | ||
|
||
</div> | ||
<div> | ||
<p style="margin-bottom:0px">Built by | ||
<a href="https://www.mysociety.org?utm_source=theyworkforyou.com&utm_content=footer+logo&utm_medium=link&utm_campaign=mysoc_footer" class="mysoc__org__logo mysoc__org__logo--mysociety">mySociety</a> | ||
</p> | ||
</div> | ||
</div> |
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
Oops, something went wrong.