Refactor to HTML structure

- <script> moved outside <ul>
- Youtube posts pass W3C validation
This commit is contained in:
Marcin Kurczewski 2013-12-01 15:16:10 +01:00
parent 7046553a45
commit 0d3bb32e9c
2 changed files with 6 additions and 5 deletions

View file

@ -21,6 +21,10 @@
</head>
<body>
<script type="text/javascript">
var lastSearchQuery = <?php echo json_encode(isset($this->context->transport->lastSearchQuery) ? $this->context->transport->lastSearchQuery : '') ?>;
</script>
<nav id="top-nav">
<div class="main-wrapper">
<ul class="main-nav">
@ -87,11 +91,8 @@
<input class="autocomplete" type="search" name="query" placeholder="Search&hellip;" value="<?php echo isset($this->context->transport->searchQuery) ? htmlspecialchars($this->context->transport->searchQuery) : '' ?>" data-autocomplete-url="<?php echo \Chibi\UrlHelper::route('tag', 'list') ?>"/>
</form>
</li>
<script type="text/javascript">
var lastSearchQuery = <?php echo json_encode(isset($this->context->transport->lastSearchQuery) ? $this->context->transport->lastSearchQuery : '') ?>;
</script>
</ul>
<div class="clear"></div>
</div>
</nav>

View file

@ -18,6 +18,6 @@
<?php elseif ($post->type == PostType::Youtube): ?>
<iframe width="800" height="600" src="//www.youtube.com/embed/<?php echo $post->orig_name ?>" frameborder="0" allowfullscreen></iframe>
<iframe style="width: 800px; height: 600px; border: 0;" src="//www.youtube.com/embed/<?php echo $post->orig_name ?>" allowfullscreen></iframe>
<?php endif ?>