From: Bill Erickson Date: Mon, 16 Apr 2012 19:52:31 +0000 (-0400) Subject: kpac2 : home search; header; images X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cf4875ecf60b8d907310f9881c39c6a96f6d8652;p=contrib%2FConifer.git kpac2 : home search; header; images Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/examples/web/css/skin/kpac2/kpac/style.css b/Open-ILS/examples/web/css/skin/kpac2/kpac/style.css index 043c3747a4..e3b7209f5d 100755 --- a/Open-ILS/examples/web/css/skin/kpac2/kpac/style.css +++ b/Open-ILS/examples/web/css/skin/kpac2/kpac/style.css @@ -142,16 +142,16 @@ input[type=text], input[type=password], textarea { } .hp_banner_bgl { - background:url('/images/hp_banner_bgl.png') repeat-x bottom right; + background:url('/images/kpac/hp_banner_bgl.png') repeat-x bottom right; } .hp_banner_bgr { - background:url('/images/hp_banner_bgr.png') repeat-x bottom left; + background:url('/images/kpac/hp_banner_bgr.png') repeat-x bottom left; } .hp_banner_content { width:902px; - background:url('/images/hp_banner.png') repeat-x bottom left; + background:url('/images/kpac/hp_banner.png') repeat-x bottom left; } .hp_search_main { @@ -212,24 +212,24 @@ input[type=text], input[type=password], textarea { width:8px; height:8px; overflow:hidden; - background:url('/images/main_tl_corner.png') no-repeat; + background:url('/images/kpac/main_tl_corner.png') no-repeat; float:left; } .main_bl_corner { - background:url('/images/main_bl_corner.png') no-repeat; + background:url('/images/kpac/main_bl_corner.png') no-repeat; } .main_tr_corner, .main_br_corner { width:8px; height:8px; overflow:hidden; - background:url('/images/main_tr_corner.png') no-repeat; + background:url('/images/kpac/main_tr_corner.png') no-repeat; float:right; } .main_br_corner { - background:url('/images/main_br_corner.png') no-repeat; + background:url('/images/kpac/main_br_corner.png') no-repeat; } .main_mid_top, .main_mid_bottom { @@ -237,33 +237,33 @@ input[type=text], input[type=password], textarea { height:8px; overflow:hidden; float:left; - background:url('/images/main_top_bg.png') repeat-x; + background:url('/images/kpac/main_top_bg.png') repeat-x; } .main_mid_bottom_sub { width:956px; height:8px; overflow:hidden; - background:url('/images/main_bottom_bg_sub.png') no-repeat; + background:url('/images/kpac/main_bottom_bg_sub.png') no-repeat; } .main_mid_top_sub { width:3000px; height:69px; overflow:hidden; - background:url('/images/main_top_bg_sub.png') no-repeat; + background:url('/images/kpac/main_top_bg_sub.png') no-repeat; } .main_mid_bottom { - background:url('/images/main_bottom_bg.png') repeat-x; + background:url('/images/kpac/main_bottom_bg.png') repeat-x; } .main_left_shadow { - background:url('/images/main_left_shadow.png') repeat-y; + background:url('/images/kpac/main_left_shadow.png') repeat-y; } .main_right_shadow { - background:url('/images/main_right_shadow.png') repeat-y; + background:url('/images/kpac/main_right_shadow.png') repeat-y; } .main_inside_cell { @@ -294,7 +294,7 @@ input[type=text], input[type=password], textarea { .search_wrapper { text-align:center; width:950px; - background:url('/images/search_bg.png') no-repeat bottom; + background:url('/images/kpac/search_bg.png') no-repeat bottom; } .search_wrapper h1 { @@ -398,7 +398,7 @@ input[type=text], input[type=password], textarea { } .sub_sidebar { - background:#e3e3e3 url('/images/sub_side_bg.png') repeat-y; + background:#e3e3e3 url('/images/kpac/sub_side_bg.png') repeat-y; border-top:1px solid #eee; } @@ -481,11 +481,11 @@ input[type=text], input[type=password], textarea { width:27px; height:50px; overflow:hidden; - background:url('/images/bread_green_mid.png') no-repeat; + background:url('/images/kpac/bread_green_mid.png') no-repeat; } .breadcrumb .bread_green_last { - background:url('/images/bread_green_last.png') no-repeat; + background:url('/images/kpac/bread_green_last.png') no-repeat; } .breadcrumb .bread_home { @@ -538,7 +538,7 @@ input[type=text], input[type=password], textarea { .item_icon { width:80px; height:80px; - background:url('/images/icon_bg.png') no-repeat; + background:url('/images/kpac/icon_bg.png') no-repeat; text-align:center; overflow:hidden; line-height:80px; @@ -706,7 +706,7 @@ input[type=text], input[type=password], textarea { width:638px; height:9px; overflow:hidden; - background:url('/images/reviews_top.png') no-repeat; + background:url('/images/kpac/reviews_top.png') no-repeat; } .item_detail_rating .review_box_body { @@ -887,7 +887,7 @@ input[type=text], input[type=password], textarea { height:9px; font-size:0px; overflow:hidden; - background:url('/images/box1_top.png') no-repeat; + background:url('/images/kpac/box1_top.png') no-repeat; } .checkout_box .box_inside { @@ -1023,41 +1023,41 @@ div.hr { .popup_wrapper .popup_tl { width:13px; height:13px; - background:url('/images/popup_tl.png') no-repeat; + background:url('/images/kpac/popup_tl.png') no-repeat; } .popup_wrapper .popup_tm { - background:url('/images/popup_tm.png') repeat-x; + background:url('/images/kpac/popup_tm.png') repeat-x; } .popup_wrapper .popup_tr { width:13px; height:13px; - background:url('/images/popup_tr.png') no-repeat; + background:url('/images/kpac/popup_tr.png') no-repeat; } .popup_wrapper .popup_lm { - background:url('/images/popup_lm.png') repeat-y; + background:url('/images/kpac/popup_lm.png') repeat-y; } .popup_wrapper .popup_rm { - background:url('/images/popup_rm.png') repeat-y; + background:url('/images/kpac/popup_rm.png') repeat-y; } .popup_wrapper .popup_bl { width:13px; height:13px; - background:url('/images/popup_bl.png') no-repeat; + background:url('/images/kpac/popup_bl.png') no-repeat; } .popup_wrapper .popup_bm { - background:url('/images/popup_bm.png') repeat-x; + background:url('/images/kpac/popup_bm.png') repeat-x; } .popup_wrapper .popup_br { width:13px; height:13px; - background:url('/images/popup_br.png') no-repeat; + background:url('/images/kpac/popup_br.png') no-repeat; } .invisible { diff --git a/Open-ILS/examples/web/images/get_a_card_btn.png b/Open-ILS/examples/web/images/get_a_card_btn.png deleted file mode 100755 index f8627c4dc4..0000000000 Binary files a/Open-ILS/examples/web/images/get_a_card_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/help_btn.png b/Open-ILS/examples/web/images/help_btn.png deleted file mode 100755 index 9704a8a8c9..0000000000 Binary files a/Open-ILS/examples/web/images/help_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/hp_banner.png b/Open-ILS/examples/web/images/hp_banner.png deleted file mode 100755 index e512f828b4..0000000000 Binary files a/Open-ILS/examples/web/images/hp_banner.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/hp_banner_bgl.png b/Open-ILS/examples/web/images/hp_banner_bgl.png deleted file mode 100755 index 3eeb477688..0000000000 Binary files a/Open-ILS/examples/web/images/hp_banner_bgl.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/hp_banner_bgr.png b/Open-ILS/examples/web/images/hp_banner_bgr.png deleted file mode 100755 index 7c76b4d50c..0000000000 Binary files a/Open-ILS/examples/web/images/hp_banner_bgr.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/hp_search_btn.png b/Open-ILS/examples/web/images/hp_search_btn.png deleted file mode 100755 index f926bd0a8d..0000000000 Binary files a/Open-ILS/examples/web/images/hp_search_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/kpac/get_a_card_btn.png b/Open-ILS/examples/web/images/kpac/get_a_card_btn.png new file mode 100755 index 0000000000..f8627c4dc4 Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/get_a_card_btn.png differ diff --git a/Open-ILS/examples/web/images/kpac/help_btn.png b/Open-ILS/examples/web/images/kpac/help_btn.png new file mode 100755 index 0000000000..9704a8a8c9 Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/help_btn.png differ diff --git a/Open-ILS/examples/web/images/kpac/hp_banner.png b/Open-ILS/examples/web/images/kpac/hp_banner.png new file mode 100755 index 0000000000..e512f828b4 Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/hp_banner.png differ diff --git a/Open-ILS/examples/web/images/kpac/hp_banner_bgl.png b/Open-ILS/examples/web/images/kpac/hp_banner_bgl.png new file mode 100755 index 0000000000..3eeb477688 Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/hp_banner_bgl.png differ diff --git a/Open-ILS/examples/web/images/kpac/hp_banner_bgr.png b/Open-ILS/examples/web/images/kpac/hp_banner_bgr.png new file mode 100755 index 0000000000..7c76b4d50c Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/hp_banner_bgr.png differ diff --git a/Open-ILS/examples/web/images/kpac/hp_search_btn.png b/Open-ILS/examples/web/images/kpac/hp_search_btn.png new file mode 100755 index 0000000000..f926bd0a8d Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/hp_search_btn.png differ diff --git a/Open-ILS/examples/web/images/kpac/login_btn.png b/Open-ILS/examples/web/images/kpac/login_btn.png new file mode 100755 index 0000000000..735afa64dd Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/login_btn.png differ diff --git a/Open-ILS/examples/web/images/kpac/print_btn.png b/Open-ILS/examples/web/images/kpac/print_btn.png new file mode 100755 index 0000000000..7bd581532f Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/print_btn.png differ diff --git a/Open-ILS/examples/web/images/kpac/star_off.png b/Open-ILS/examples/web/images/kpac/star_off.png new file mode 100755 index 0000000000..3a02a7a4bc Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/star_off.png differ diff --git a/Open-ILS/examples/web/images/kpac/text_size_btn.png b/Open-ILS/examples/web/images/kpac/text_size_btn.png new file mode 100755 index 0000000000..a1234ef456 Binary files /dev/null and b/Open-ILS/examples/web/images/kpac/text_size_btn.png differ diff --git a/Open-ILS/examples/web/images/login_btn.png b/Open-ILS/examples/web/images/login_btn.png deleted file mode 100755 index 735afa64dd..0000000000 Binary files a/Open-ILS/examples/web/images/login_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/print_btn.png b/Open-ILS/examples/web/images/print_btn.png deleted file mode 100755 index 7bd581532f..0000000000 Binary files a/Open-ILS/examples/web/images/print_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/star_off.png b/Open-ILS/examples/web/images/star_off.png deleted file mode 100755 index 3a02a7a4bc..0000000000 Binary files a/Open-ILS/examples/web/images/star_off.png and /dev/null differ diff --git a/Open-ILS/examples/web/images/text_size_btn.png b/Open-ILS/examples/web/images/text_size_btn.png deleted file mode 100755 index a1234ef456..0000000000 Binary files a/Open-ILS/examples/web/images/text_size_btn.png and /dev/null differ diff --git a/Open-ILS/examples/web/templates/kpac/home.tt2 b/Open-ILS/examples/web/templates/kpac/home.tt2 new file mode 100644 index 0000000000..44017f6253 --- /dev/null +++ b/Open-ILS/examples/web/templates/kpac/home.tt2 @@ -0,0 +1,64 @@ +[% + PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/base.tt2"; + ctx.page_title = l("Home") +%] + +
+
 
+
 
+
 
+
 
+
+ + + + + + + +
 
+ +
+

Or click on an image to get started:

+ [% render_kpac_grid(ctx.kpac_layout.page) %] +
+ +
 
+ +
+
 
+
 
+
 
+
 
+
+ +[% END %] + diff --git a/Open-ILS/examples/web/templates/kpac/parts/base.tt2 b/Open-ILS/examples/web/templates/kpac/parts/base.tt2 index 13786110e7..2d32b71700 100644 --- a/Open-ILS/examples/web/templates/kpac/parts/base.tt2 +++ b/Open-ILS/examples/web/templates/kpac/parts/base.tt2 @@ -10,11 +10,13 @@ [% l("Kid's Catalog - [_1]", ctx.page_title) %] -
- [% INCLUDE 'kpac/parts/header.tt2' %] -
[% content %]
- [% INCLUDE 'kpac/parts/footer.tt2' %] +
[% INCLUDE 'kpac/parts/header.tt2' %]
+ + [% INCLUDE 'kpac/parts/home_search.tt2' IF ctx.page == 'home' %] +
+
[% content %]
+ [% INCLUDE 'kpac/parts/footer.tt2' %] [%- INCLUDE 'kpac/parts/acimport.tt2' %] diff --git a/Open-ILS/examples/web/templates/kpac/parts/header.tt2 b/Open-ILS/examples/web/templates/kpac/parts/header.tt2 new file mode 100644 index 0000000000..7a5fef26d6 --- /dev/null +++ b/Open-ILS/examples/web/templates/kpac/parts/header.tt2 @@ -0,0 +1,24 @@ +
+
+ [% l('Logo') %] +
+
+ + + [% IF ctx.user %] + [% redir = CGI.url('-base' => 1) _ ctx.kpac_root _ '/home' %] + + [% ELSE %] + + [% END %] + + get a library card + help + print + text size +
+
 
+
+ diff --git a/Open-ILS/examples/web/templates/kpac/parts/home_search.tt2 b/Open-ILS/examples/web/templates/kpac/parts/home_search.tt2 new file mode 100644 index 0000000000..6406803268 --- /dev/null +++ b/Open-ILS/examples/web/templates/kpac/parts/home_search.tt2 @@ -0,0 +1,34 @@ + +