diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-06-15 12:39:12 +0800 |
|---|---|---|
| committer | <unostar@danalan.info> | 2009-06-15 17:31:21 +0800 |
| commit | 0204a5c9e88f8cd257092e4a619ada02ffcd2821 (patch) | |
| tree | 9079e7ec90a8216b4f687371c2bb9c5d37985448 /themes/default/views | |
| parent | b8eb4956de76018892bb11fd875c2ba8db86b04b (diff) | |
Move jquery local scroll module from default theme to lib, only load it if viewing photo view. White space cleanup, removed debug print from template.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'themes/default/views')
| -rw-r--r-- | themes/default/views/page.html.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 0c84129f..3283bf1d 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -13,7 +13,6 @@ <? 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") ?>" @@ -48,13 +47,15 @@ <script src="<?= url::file("lib/gallery.dialog.js") ?>" type="text/javascript"></script> <script src="<?= url::file("lib/gallery.form.js") ?>" type="text/javascript"></script> <script src="<?= url::file("lib/superfish/js/superfish.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("js/jquery.scrollTo.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("js/jquery.localscroll.js") ?>" type="text/javascript"></script> + <? if ($theme->page_type == 'photo'): ?> + <script src="<?= url::file("lib/jquery.scrollTo.js") ?>" type="text/javascript"></script> + <script src="<?= url::file("lib/jquery.localscroll.js") ?>" type="text/javascript"></script> + <? endif ?> <script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script> <?= $theme->head() ?> </head> - <body <?= $theme->body_attributes() ?>> + <body <?= $theme->body_attributes() ?>> <?= $theme->page_top() ?> <div id="doc4" class="yui-t5 gView"> <?= $theme->site_status() ?> |
