summaryrefslogtreecommitdiff
path: root/themes/wind_npk/views/page.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/wind_npk/views/page.html.php')
-rw-r--r--themes/wind_npk/views/page.html.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/themes/wind_npk/views/page.html.php b/themes/wind_npk/views/page.html.php
index 2dcc5d70..9f94b04f 100644
--- a/themes/wind_npk/views/page.html.php
+++ b/themes/wind_npk/views/page.html.php
@@ -29,16 +29,16 @@
<?= $theme->css("themeroller/ui.base.css") ?>
<?= $theme->css("gallery.common.css") ?>
<?= $theme->css("screen.css") ?>
- <!--[if lt IE 8]>
+ <!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
media="screen,print,projection" />
<![endif]-->
<? if ($theme->page_type == "collection"): ?>
<? if ($thumb_proportion != 1): ?>
- <? $new_width = $thumb_proportion * 213 ?>
- <? $new_height = $thumb_proportion * 240 ?>
+ <? $new_width = round($thumb_proportion * 213) ?>
+ <? $new_height = round($thumb_proportion * 240) ?>
<style type="text/css">
- #g-content #g-album-grid .g-item {
+ .g-view #g-content #g-album-grid .g-item {
width: <?= $new_width ?>px;
height: <?= $new_height ?>px;
/* <?= $thumb_proportion ?> */
@@ -87,11 +87,11 @@
<?= $theme->user_menu() ?>
<?= $theme->header_top() ?>
- <!-- hide the menu and make it visible after the page has loaded, to minimize menu flicker -->
+ <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
<div id="g-site-menu" style="visibility: hidden">
- <?= $theme->site_menu() ?>
+ <?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?>
</div>
- <script> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>
+ <script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>
<?= $theme->header_bottom() ?>
</div>
@@ -107,12 +107,14 @@
level you're on the right page. -->
<a href="<?= $parent->url($parent == $theme->item()->parent() ?
"show={$theme->item()->id}" : null) ?>">
- <?= html::purify($parent->title) ?>
+ <?= html::purify(text::limit_chars($parent->title, 15)) ?>
</a>
</li>
<? $i++ ?>
<? endforeach ?>
- <li class="g-active<? if ($i == 0) print " g-first" ?>"><?= html::purify($theme->item()->title) ?></li>
+ <li class="g-active<? if ($i == 0) print " g-first" ?>">
+ <?= html::purify(text::limit_chars($theme->item()->title, 15)) ?>
+ </li>
</ul>
<? endif ?>
</div>