diff options
| author | Chad Kieffer <chad@2tbsp.com> | 2009-04-22 05:31:29 +0000 |
|---|---|---|
| committer | Chad Kieffer <chad@2tbsp.com> | 2009-04-22 05:31:29 +0000 |
| commit | b4bca043ac01c1889b526302a9be619d98832df0 (patch) | |
| tree | 6c22f831b111c8a9f35dde3e1bf6768326beeb8f /themes | |
| parent | 1956a6ae954463f135fc37671143af538fb7f8df (diff) | |
Added method to determine proportion of current thumb_size to the default, 150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem.
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/default/views/page.html.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 893e6f9b..e9672dcb 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -13,6 +13,7 @@ <? else: ?> <?= $page_title ?> <? endif ?> + <?= $theme->page_type ?> </title> <link rel="shortcut icon" href="<?= $theme->url("images/favicon.ico") ?>" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="<?= url::file("lib/yui/reset-fonts-grids.css") ?>" @@ -27,6 +28,19 @@ <link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>" media="screen,print,projection" /> <![endif]--> + <? if ($theme->page_type == 'album'): ?> + <? if ($thumb_proportion != 1): ?> + <? $new_width = $thumb_proportion * 213 ?> + <? $new_height = $thumb_proportion * 240 ?> + <style type="text/css"> + #gContent #gAlbumGrid .gItem { + width: <?= $new_width ?>px; + height: <?= $new_height ?>px; + /* <?= $thumb_proportion ?> */ + } + </style> + <? endif ?> + <? endif ?> <script src="<?= url::file("lib/jquery.js") ?>" type="text/javascript"></script> <script src="<?= url::file("lib/jquery.form.js") ?>" type="text/javascript"></script> <script src="<?= url::file("lib/jquery-ui.js") ?>" type="text/javascript"></script> |
