gf-ralbum 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -0
- data/bin/{ralbum.rb → ralbum} +1 -1
- data/example/example.sh +2 -1
- data/example/test_jalbum_phototree/jalbum-settings.jap +321 -0
- data/example/test_jalbum_phototree/src/albumfiles.txt +9 -0
- data/example/test_jalbum_phototree/src/comments.properties +0 -0
- data/example/test_jalbum_phototree/src/flowers/albumfiles.txt +14 -0
- data/example/test_jalbum_phototree/src/meta.properties +2 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/album.xml +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_1469.wt.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_2291.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_2598.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3068.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3323.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3348.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/r_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/r_photo01.jpg.xml +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/md5_to_key.yaml +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/md5_to_key.yaml.test +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/project.xml +206 -3
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/album.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo01.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo02.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo02.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo03.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo03.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo04.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo04.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/album.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo01.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo02.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo02.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo03.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo03.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo04.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo04.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo05.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo05.jpg.xml +0 -0
- data/lib/ralbum.rb +9 -5
- data/lib/ralbum/album_tree/album.rb +74 -0
- data/lib/ralbum/album_tree/generate_album_tree_node_visitor.rb +73 -0
- data/lib/ralbum/album_tree/image_file.rb +88 -0
- data/lib/ralbum/{image_pool.rb → album_tree/image_pool.rb} +16 -4
- data/lib/ralbum/catalog.rb +7 -7
- data/lib/ralbum/cli/cli_ralbum.rb +66 -25
- data/lib/ralbum/image_strategies/copy_image_strategy.rb +16 -0
- data/lib/ralbum/image_strategies/linked_image_strategy.rb +18 -0
- data/lib/ralbum/image_strategies/scaled_image_strategy.rb +52 -0
- data/lib/ralbum/image_strategies/sepia_scaled_image_strategy.rb +50 -0
- data/lib/{ralbum-common → ralbum}/object_with_properties.rb +0 -0
- data/lib/{ralbum-common → ralbum}/object_with_validation.rb +0 -0
- data/lib/ralbum/photo_tree/jalbum_photo_tree.rb +83 -0
- data/lib/ralbum/photo_tree/photo_file.rb +149 -0
- data/lib/ralbum/photo_tree/photo_tree_item.rb +68 -0
- data/lib/ralbum/{photo_tree_node.rb → photo_tree/photo_tree_node.rb} +16 -13
- data/lib/ralbum/{photo_tree_builder.rb → photo_tree/rubyphoto_photo_tree.rb} +64 -46
- data/lib/ralbum/project.rb +48 -12
- data/lib/ralbum/skin.rb +34 -27
- data/lib/ralbum/skin_engine.rb +32 -17
- data/lib/ralbum/skin_engines/erb_skin_engine.rb +2 -5
- data/lib/ralbum/skin_engines/kwartz_skin_engine.rb +6 -9
- data/lib/ralbum/skin_manager.rb +11 -2
- data/lib/ralbum/skins/cgi/cgi_skin.rb +21 -23
- data/lib/ralbum/skins/cgi/res/model.rb +30 -32
- data/lib/ralbum/skins/gfold/inc/menu_bottom.html +53 -53
- data/lib/ralbum/skins/gfold/inc/menu_top.html +71 -71
- data/lib/ralbum/skins/gfold/inc/page_footer.html +28 -28
- data/lib/ralbum/skins/gfold/out/album_page.rb +316 -316
- data/lib/ralbum/skins/gfold/out/image_page.rb +231 -231
- data/lib/ralbum/skins/gfold/out/tree_page.rb +96 -96
- data/lib/ralbum/skins/gfold/res/prototype.js +3277 -3277
- data/lib/ralbum/skins/gfold/template/album_page.html +161 -161
- data/lib/ralbum/skins/gfold/template/album_page.plogic +127 -127
- data/lib/ralbum/skins/gfold/template/image_page.html +91 -91
- data/lib/ralbum/skins/gfold/template/image_page.plogic +70 -70
- data/lib/ralbum/skins/gfold/template/tree_page.html +79 -79
- data/lib/ralbum/skins/gfold/template/tree_page.plogic +45 -45
- data/lib/ralbum/skins/js/out/album_page.rb +2 -2
- data/lib/ralbum/skins/js/out/tree_page.rb +18 -17
- data/lib/ralbum/skins/js/template/album_page.html +2 -2
- data/lib/ralbum/skins/js/template/tree_page.html +1 -1
- data/lib/ralbum/skins/test_erb/template/album_page.rhtml +22 -0
- data/lib/ralbum/skins/test_erb/template/image_page.rhtml +44 -0
- data/lib/ralbum/tasks/compile_skins.rb +8 -0
- data/test/ralbum/cli/tc_cli_ralbum.rb +35 -0
- data/test/ralbum/image_strategies/tc_scaled_image_strategy.rb +18 -0
- data/test/ralbum/image_strategies/tc_sepia_scaled_image_strategy.rb +18 -0
- data/test/ralbum/photo_tree/tc_jalbum_photo_tree.rb +39 -0
- data/test/ralbum/photo_tree/tc_photo_file.rb +13 -0
- data/test/ralbum/{tc_01_photo_tree.rb → photo_tree/tc_photo_tree.rb} +10 -12
- data/test/ralbum/photo_tree/tc_rubyalbum_photo_tree.rb +20 -0
- data/test/ralbum/tc_album.rb +55 -0
- data/test/ralbum/tc_catalog.rb +8 -4
- data/test/ralbum/tc_image_pool.rb +37 -0
- data/test/ralbum/{tc_05_kwartz_skin_engine.rb → tc_kwartz_skin_engine.rb} +1 -1
- data/test/ralbum/{tc_04_skin_manager.rb → tc_skin_manager.rb} +8 -3
- data/test/ralbum/test_helper.rb +16 -1
- data/test_data/ralbum/test_data/is_test/dummy.txt +0 -0
- metadata +78 -81
- data/bin/ralbum-JPG2jpg.rb +0 -90
- data/bin/ralbum-compile_skins.rb +0 -18
- data/bin/ralbum-myconv.rb +0 -81
- data/bin/ralbum-readexif.rb +0 -18
- data/bin/ralbum-reorder.rb +0 -200
- data/lib/ralbum/album.rb +0 -66
- data/lib/ralbum/generate_album_tree_node_visitor.rb +0 -60
- data/lib/ralbum/image_file.rb +0 -81
- data/lib/ralbum/image_strategy.rb +0 -143
- data/lib/ralbum/photo_tree_item.rb +0 -89
- data/test/ralbum/cli/test_cli_ralbum.rb +0 -13
- data/test/ralbum/tc_02_photo_tree_builder.rb +0 -20
- data/test/ralbum/tc_03_album.rb +0 -42
- data/test/ralbum/tc_06_image_strategy.rb +0 -21
- data/test/test_ralbum.rb +0 -14
- data/test_data/ralbum/test_data/is_test/r_photo01_scaled.jpg +0 -0
- data/test_data/ralbum/test_data/is_test/r_photo01_sepia_scaled.jpg +0 -0
@@ -1,161 +1,161 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html kw:d="set pagename='albums'">
|
3
|
-
<head kw:d="set language=nil">
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
|
5
|
-
<title>Giovanni Ferro - @{@album.name}@</title>
|
6
|
-
<meta name="description" content="Giovanni Ferro photos"/>
|
7
|
-
<meta name="keywords" content="Giovanni Ferro,photo,pictures,digital photography"/>
|
8
|
-
<link kw:d="mark:stylesheet1" rel="stylesheet" type="text/css" href="../res/style1.css" media="screen" title="style1"/>
|
9
|
-
<link kw:d="mark:stylesheet2" rel="alternate stylesheet" type="text/css" href="../res/style2.css" media="screen" title="style2"/>
|
10
|
-
<script kw:d="mark:prototype" type="text/javascript" src="../res/prototype.js"></script>
|
11
|
-
<script kw:d="mark:styleswitcher" type="text/javascript" src="../res/styleswitcher.js"></script>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
|
15
|
-
<div id="replace_element_with_element:menu_top" style="text-align:center; border: solid 1px black;">Menu del sito</div>
|
16
|
-
|
17
|
-
<table class="album_maintable" align="center"
|
18
|
-
border="0" cellspacing="0" cellpadding="0">
|
19
|
-
<tr>
|
20
|
-
<td>
|
21
|
-
|
22
|
-
<!-- begin header table -->
|
23
|
-
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
24
|
-
|
25
|
-
<!-- breadcrumbs or Trail -->
|
26
|
-
<tr>
|
27
|
-
<td class="album_breadcrumbs" align="left">
|
28
|
-
<span id="mark:breadcrumbs">
|
29
|
-
<a id="mark:item" class="album_treepath"
|
30
|
-
href="@{@album.relroot + item_path}@">
|
31
|
-
<span kw:d="value:item_title">Home</span>
|
32
|
-
</a>
|
33
|
-
<span id="mark:arrow" class="album_treepathdots">::</span>
|
34
|
-
</span>
|
35
|
-
</td>
|
36
|
-
<td class="album_breadcrumbs" align="right" nowrap="nowrap">
|
37
|
-
@{@album.nr_leaves}@ @{@resource.photos}@
|
38
|
-
<span kw:d="if @album.
|
39
|
-
@{@album.
|
40
|
-
</span>
|
41
|
-
</td>
|
42
|
-
</tr>
|
43
|
-
|
44
|
-
<tr>
|
45
|
-
<td width="80%" align="left">
|
46
|
-
@{@album.description}@
|
47
|
-
</td>
|
48
|
-
|
49
|
-
<td kw:d="if not @album.root?" width="20%" align="right">
|
50
|
-
<a href="@{@album.relroot_with_prefix}@index.html" title="Up to top"><img kw:d="mark:topgif"
|
51
|
-
src="../res/top.gif" border="0" alt="Top"/></a>
|
52
|
-
|
53
|
-
<a title="Up to album" href="../index.html"><img kw:d="mark:upgif"
|
54
|
-
src="../res/up.gif" border="0" alt="Up"/></a>
|
55
|
-
|
56
|
-
</td>
|
57
|
-
|
58
|
-
</tr>
|
59
|
-
</table>
|
60
|
-
<!-- End header table -->
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
|
64
|
-
<!-- thumbnails header table -->
|
65
|
-
<tr kw:d="if @album.leaves.length>0">
|
66
|
-
<td>
|
67
|
-
<!-- begin thumbnails header table -->
|
68
|
-
<table width="100%"
|
69
|
-
border="0" cellspacing="0" cellpadding="3">
|
70
|
-
<tr>
|
71
|
-
<td class="album_section" align="left">@{@resource.thumbnails}@</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
<!-- end thumbnails header table -->
|
75
|
-
</td>
|
76
|
-
</tr>
|
77
|
-
|
78
|
-
<!-- thumbnails body -->
|
79
|
-
<tr kw:d="if @album.leaves.length>0">
|
80
|
-
<td align="center">
|
81
|
-
<!-- begin thumbnail table -->
|
82
|
-
<table id="mark:thumbnails_table" class="album_thumbnails_table">
|
83
|
-
|
84
|
-
<tr id="mark:thumbnail_image_row"
|
85
|
-
class="album_thumbnail_image_row">
|
86
|
-
<td id="mark:thumbnail_image"
|
87
|
-
class="album_thumbnail_image">
|
88
|
-
<a href="@{photo.
|
89
|
-
title="@{photo.name}@"><img kw:d="mark:thumb_image"
|
90
|
-
src="../res_preview/thumb_image.jpg"
|
91
|
-
alt="Giovanni Ferro - @{photo.name}@"
|
92
|
-
border="0"/></a>
|
93
|
-
</td>
|
94
|
-
</tr>
|
95
|
-
|
96
|
-
<tr id="mark:thumbnail_title_row" class="album_thumbnail_title_row">
|
97
|
-
<td id="mark:thumbnail_title" class="album_thumbnail_title">
|
98
|
-
@{photo.name}@
|
99
|
-
</td>
|
100
|
-
</tr>
|
101
|
-
|
102
|
-
</table>
|
103
|
-
<!-- end thumbnail table -->
|
104
|
-
</td>
|
105
|
-
</tr>
|
106
|
-
|
107
|
-
<!-- subalbums header -->
|
108
|
-
<tr kw:d="if @album.
|
109
|
-
<td>
|
110
|
-
<!-- begin subalbums header table -->
|
111
|
-
<table width="100%"
|
112
|
-
border="0" cellspacing="0" cellpadding="3">
|
113
|
-
<tr>
|
114
|
-
<td class="album_section" align="left">@{@resource.subalbums}@</td>
|
115
|
-
</tr>
|
116
|
-
</table>
|
117
|
-
<!-- end header table -->
|
118
|
-
</td>
|
119
|
-
</tr>
|
120
|
-
|
121
|
-
<!-- sub-albums body -->
|
122
|
-
<tr kw:d="if @album.
|
123
|
-
<td>
|
124
|
-
<!-- begin sub-album table -->
|
125
|
-
<table width="100%"
|
126
|
-
border="0" cellspacing="5" cellpadding="2">
|
127
|
-
|
128
|
-
<tr id="mark:subalbums_row">
|
129
|
-
|
130
|
-
<td class="album_subalbum_image">
|
131
|
-
<a href="@{subalbum.
|
132
|
-
title="@{subalbum.name}@"><img kw:d="mark:thumb_subalbum"
|
133
|
-
src="../res_preview/thumb_subalbum.jpg"
|
134
|
-
alt="@{subalbum.
|
135
|
-
border="1"/></a>
|
136
|
-
</td>
|
137
|
-
<td>
|
138
|
-
<a href="@{subalbum.
|
139
|
-
<br/>
|
140
|
-
@{subalbum.nr_leaves}@ photos
|
141
|
-
<span kw:d="if subalbum.
|
142
|
-
, @{subalbum.
|
143
|
-
</span>
|
144
|
-
<br/>
|
145
|
-
@{subalbum.description}@
|
146
|
-
</td>
|
147
|
-
|
148
|
-
</tr>
|
149
|
-
|
150
|
-
</table>
|
151
|
-
<!-- end sub-album table -->
|
152
|
-
</td>
|
153
|
-
</tr>
|
154
|
-
|
155
|
-
</table>
|
156
|
-
|
157
|
-
<div id="replace_element_with_element:page_footer" style="text-align:center; border: solid 1px black;">Page footer</div>
|
158
|
-
|
159
|
-
</body>
|
160
|
-
</html>
|
161
|
-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html kw:d="set pagename='albums'">
|
3
|
+
<head kw:d="set language=nil">
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
|
5
|
+
<title>Giovanni Ferro - @{@album.name}@</title>
|
6
|
+
<meta name="description" content="Giovanni Ferro photos"/>
|
7
|
+
<meta name="keywords" content="Giovanni Ferro,photo,pictures,digital photography"/>
|
8
|
+
<link kw:d="mark:stylesheet1" rel="stylesheet" type="text/css" href="../res/style1.css" media="screen" title="style1"/>
|
9
|
+
<link kw:d="mark:stylesheet2" rel="alternate stylesheet" type="text/css" href="../res/style2.css" media="screen" title="style2"/>
|
10
|
+
<script kw:d="mark:prototype" type="text/javascript" src="../res/prototype.js"></script>
|
11
|
+
<script kw:d="mark:styleswitcher" type="text/javascript" src="../res/styleswitcher.js"></script>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<div id="replace_element_with_element:menu_top" style="text-align:center; border: solid 1px black;">Menu del sito</div>
|
16
|
+
|
17
|
+
<table class="album_maintable" align="center"
|
18
|
+
border="0" cellspacing="0" cellpadding="0">
|
19
|
+
<tr>
|
20
|
+
<td>
|
21
|
+
|
22
|
+
<!-- begin header table -->
|
23
|
+
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
24
|
+
|
25
|
+
<!-- breadcrumbs or Trail -->
|
26
|
+
<tr>
|
27
|
+
<td class="album_breadcrumbs" align="left">
|
28
|
+
<span id="mark:breadcrumbs">
|
29
|
+
<a id="mark:item" class="album_treepath"
|
30
|
+
href="@{@album.relroot + item_path}@">
|
31
|
+
<span kw:d="value:item_title">Home</span>
|
32
|
+
</a>
|
33
|
+
<span id="mark:arrow" class="album_treepathdots">::</span>
|
34
|
+
</span>
|
35
|
+
</td>
|
36
|
+
<td class="album_breadcrumbs" align="right" nowrap="nowrap">
|
37
|
+
@{@album.nr_leaves}@ @{@resource.photos}@
|
38
|
+
<span kw:d="if @album.nr_children>0">
|
39
|
+
@{@album.nr_children}@ sub-albums
|
40
|
+
</span>
|
41
|
+
</td>
|
42
|
+
</tr>
|
43
|
+
|
44
|
+
<tr>
|
45
|
+
<td width="80%" align="left">
|
46
|
+
@{@album.description}@
|
47
|
+
</td>
|
48
|
+
|
49
|
+
<td kw:d="if not @album.root?" width="20%" align="right">
|
50
|
+
<a href="@{@album.relroot_with_prefix}@index.html" title="Up to top"><img kw:d="mark:topgif"
|
51
|
+
src="../res/top.gif" border="0" alt="Top"/></a>
|
52
|
+
|
53
|
+
<a title="Up to album" href="../index.html"><img kw:d="mark:upgif"
|
54
|
+
src="../res/up.gif" border="0" alt="Up"/></a>
|
55
|
+
|
56
|
+
</td>
|
57
|
+
|
58
|
+
</tr>
|
59
|
+
</table>
|
60
|
+
<!-- End header table -->
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
|
64
|
+
<!-- thumbnails header table -->
|
65
|
+
<tr kw:d="if @album.leaves.length>0">
|
66
|
+
<td>
|
67
|
+
<!-- begin thumbnails header table -->
|
68
|
+
<table width="100%"
|
69
|
+
border="0" cellspacing="0" cellpadding="3">
|
70
|
+
<tr>
|
71
|
+
<td class="album_section" align="left">@{@resource.thumbnails}@</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
<!-- end thumbnails header table -->
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
|
78
|
+
<!-- thumbnails body -->
|
79
|
+
<tr kw:d="if @album.leaves.length>0">
|
80
|
+
<td align="center">
|
81
|
+
<!-- begin thumbnail table -->
|
82
|
+
<table id="mark:thumbnails_table" class="album_thumbnails_table">
|
83
|
+
|
84
|
+
<tr id="mark:thumbnail_image_row"
|
85
|
+
class="album_thumbnail_image_row">
|
86
|
+
<td id="mark:thumbnail_image"
|
87
|
+
class="album_thumbnail_image">
|
88
|
+
<a href="@{photo.default_image_file.page_url}@"
|
89
|
+
title="@{photo.name}@"><img kw:d="mark:thumb_image"
|
90
|
+
src="../res_preview/thumb_image.jpg"
|
91
|
+
alt="Giovanni Ferro - @{photo.name}@"
|
92
|
+
border="0"/></a>
|
93
|
+
</td>
|
94
|
+
</tr>
|
95
|
+
|
96
|
+
<tr id="mark:thumbnail_title_row" class="album_thumbnail_title_row">
|
97
|
+
<td id="mark:thumbnail_title" class="album_thumbnail_title">
|
98
|
+
@{photo.name}@
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
|
102
|
+
</table>
|
103
|
+
<!-- end thumbnail table -->
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
|
107
|
+
<!-- subalbums header -->
|
108
|
+
<tr kw:d="if @album.children.length>0">
|
109
|
+
<td>
|
110
|
+
<!-- begin subalbums header table -->
|
111
|
+
<table width="100%"
|
112
|
+
border="0" cellspacing="0" cellpadding="3">
|
113
|
+
<tr>
|
114
|
+
<td class="album_section" align="left">@{@resource.subalbums}@</td>
|
115
|
+
</tr>
|
116
|
+
</table>
|
117
|
+
<!-- end header table -->
|
118
|
+
</td>
|
119
|
+
</tr>
|
120
|
+
|
121
|
+
<!-- sub-albums body -->
|
122
|
+
<tr kw:d="if @album.children.length>0">
|
123
|
+
<td>
|
124
|
+
<!-- begin sub-album table -->
|
125
|
+
<table width="100%"
|
126
|
+
border="0" cellspacing="5" cellpadding="2">
|
127
|
+
|
128
|
+
<tr id="mark:subalbums_row">
|
129
|
+
|
130
|
+
<td class="album_subalbum_image">
|
131
|
+
<a href="@{subalbum.page_url}@"
|
132
|
+
title="@{subalbum.name}@"><img kw:d="mark:thumb_subalbum"
|
133
|
+
src="../res_preview/thumb_subalbum.jpg"
|
134
|
+
alt="@{subalbum.default_image_pool.name}@"
|
135
|
+
border="1"/></a>
|
136
|
+
</td>
|
137
|
+
<td>
|
138
|
+
<a href="@{subalbum.page_url}@">@{subalbum.name}@</a>
|
139
|
+
<br/>
|
140
|
+
@{subalbum.nr_leaves}@ photos
|
141
|
+
<span kw:d="if subalbum.nr_children>0">
|
142
|
+
, @{subalbum.nr_children}@ sub-albums
|
143
|
+
</span>
|
144
|
+
<br/>
|
145
|
+
@{subalbum.description}@
|
146
|
+
</td>
|
147
|
+
|
148
|
+
</tr>
|
149
|
+
|
150
|
+
</table>
|
151
|
+
<!-- end sub-album table -->
|
152
|
+
</td>
|
153
|
+
</tr>
|
154
|
+
|
155
|
+
</table>
|
156
|
+
|
157
|
+
<div id="replace_element_with_element:page_footer" style="text-align:center; border: solid 1px black;">Page footer</div>
|
158
|
+
|
159
|
+
</body>
|
160
|
+
</html>
|
161
|
+
|
@@ -1,127 +1,127 @@
|
|
1
|
-
#stylesheet1 {
|
2
|
-
attrs: 'href' "#{@album.relroot}res/style1.css";
|
3
|
-
}
|
4
|
-
|
5
|
-
#stylesheet2 {
|
6
|
-
attrs: 'href' "#{@album.relroot}res/style2.css";
|
7
|
-
}
|
8
|
-
|
9
|
-
#styleswitcher {
|
10
|
-
attrs: 'src' "#{@album.relroot}res/styleswitcher.js";
|
11
|
-
}
|
12
|
-
|
13
|
-
#prototype {
|
14
|
-
attrs: 'src' "#{@album.relroot}res/prototype.js";
|
15
|
-
}
|
16
|
-
|
17
|
-
#topgif {
|
18
|
-
attrs: 'src' "#{@album.relroot}res/top.gif";
|
19
|
-
}
|
20
|
-
|
21
|
-
#upgif {
|
22
|
-
attrs: 'src' "#{@album.relroot}res/up.gif";
|
23
|
-
}
|
24
|
-
|
25
|
-
#valid_xhtml_png {
|
26
|
-
attrs: 'src' "#{@album.relroot}res/valid-xhtml.png";
|
27
|
-
}
|
28
|
-
|
29
|
-
#valid_css_png {
|
30
|
-
attrs: 'src' "#{@album.relroot}res/valid-css.png";
|
31
|
-
}
|
32
|
-
|
33
|
-
#thumb_image {
|
34
|
-
attrs: 'src' "#{@album.relroot + photo.thumb.
|
35
|
-
}
|
36
|
-
|
37
|
-
#thumb_subalbum {
|
38
|
-
attrs: 'src' "#{@album.relroot + subalbum.
|
39
|
-
}
|
40
|
-
|
41
|
-
#breadcrumbs {
|
42
|
-
logic: {
|
43
|
-
item_ctr = 0
|
44
|
-
for item in @album.breadcrumbs
|
45
|
-
item_ctr += 1
|
46
|
-
if item_ctr > 1
|
47
|
-
_element("arrow") # expand element marked with arrow
|
48
|
-
end
|
49
|
-
_element("item") # expand element marked with item
|
50
|
-
end
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
#item {
|
55
|
-
logic: {
|
56
|
-
item_path = item[:path] # retrieve path and
|
57
|
-
item_title = item[:title] # title from a hash
|
58
|
-
if item_path.nil? # if path is null then
|
59
|
-
_cont # don't print <a></a>.
|
60
|
-
else
|
61
|
-
_stag
|
62
|
-
_cont
|
63
|
-
_etag
|
64
|
-
end
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
#thumbnails_table {
|
69
|
-
logic: {
|
70
|
-
_stag
|
71
|
-
start_pos = 1
|
72
|
-
while start_pos <= @album.leaves.length
|
73
|
-
idx = start_pos
|
74
|
-
_element("thumbnail_image_row")
|
75
|
-
idx = start_pos
|
76
|
-
_element("thumbnail_title_row")
|
77
|
-
start_pos += 7
|
78
|
-
end
|
79
|
-
_etag
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
#thumbnail_image_row {
|
84
|
-
logic: {
|
85
|
-
_stag
|
86
|
-
while idx <= @album.leaves.length && idx % 7 != 0
|
87
|
-
photo = @album.leaves[ idx-1 ]
|
88
|
-
_cont
|
89
|
-
idx += 1
|
90
|
-
end
|
91
|
-
_etag
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
#thumbnail_title_row {
|
96
|
-
logic: {
|
97
|
-
_stag
|
98
|
-
while idx <= @album.leaves.length && idx % 7 != 0
|
99
|
-
photo = @album.leaves[ idx-1 ]
|
100
|
-
_cont
|
101
|
-
idx += 1
|
102
|
-
end
|
103
|
-
_etag
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
|
108
|
-
#subalbums_row {
|
109
|
-
logic: {
|
110
|
-
col = 1
|
111
|
-
for subalbum in @album.
|
112
|
-
if col == 1
|
113
|
-
_stag
|
114
|
-
end
|
115
|
-
|
116
|
-
_cont;
|
117
|
-
col += 1
|
118
|
-
if col == 3
|
119
|
-
col = 1
|
120
|
-
_etag
|
121
|
-
end
|
122
|
-
end
|
123
|
-
if col != 1
|
124
|
-
_etag
|
125
|
-
end
|
126
|
-
}
|
127
|
-
}
|
1
|
+
#stylesheet1 {
|
2
|
+
attrs: 'href' "#{@album.relroot}res/style1.css";
|
3
|
+
}
|
4
|
+
|
5
|
+
#stylesheet2 {
|
6
|
+
attrs: 'href' "#{@album.relroot}res/style2.css";
|
7
|
+
}
|
8
|
+
|
9
|
+
#styleswitcher {
|
10
|
+
attrs: 'src' "#{@album.relroot}res/styleswitcher.js";
|
11
|
+
}
|
12
|
+
|
13
|
+
#prototype {
|
14
|
+
attrs: 'src' "#{@album.relroot}res/prototype.js";
|
15
|
+
}
|
16
|
+
|
17
|
+
#topgif {
|
18
|
+
attrs: 'src' "#{@album.relroot}res/top.gif";
|
19
|
+
}
|
20
|
+
|
21
|
+
#upgif {
|
22
|
+
attrs: 'src' "#{@album.relroot}res/up.gif";
|
23
|
+
}
|
24
|
+
|
25
|
+
#valid_xhtml_png {
|
26
|
+
attrs: 'src' "#{@album.relroot}res/valid-xhtml.png";
|
27
|
+
}
|
28
|
+
|
29
|
+
#valid_css_png {
|
30
|
+
attrs: 'src' "#{@album.relroot}res/valid-css.png";
|
31
|
+
}
|
32
|
+
|
33
|
+
#thumb_image {
|
34
|
+
attrs: 'src' "#{@album.relroot + photo.thumb.page_url}";
|
35
|
+
}
|
36
|
+
|
37
|
+
#thumb_subalbum {
|
38
|
+
attrs: 'src' "#{@album.relroot + subalbum.default_image_pool.thumb.page_url}";
|
39
|
+
}
|
40
|
+
|
41
|
+
#breadcrumbs {
|
42
|
+
logic: {
|
43
|
+
item_ctr = 0
|
44
|
+
for item in @album.breadcrumbs
|
45
|
+
item_ctr += 1
|
46
|
+
if item_ctr > 1
|
47
|
+
_element("arrow") # expand element marked with arrow
|
48
|
+
end
|
49
|
+
_element("item") # expand element marked with item
|
50
|
+
end
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
#item {
|
55
|
+
logic: {
|
56
|
+
item_path = item[:path] # retrieve path and
|
57
|
+
item_title = item[:title] # title from a hash
|
58
|
+
if item_path.nil? # if path is null then
|
59
|
+
_cont # don't print <a></a>.
|
60
|
+
else
|
61
|
+
_stag
|
62
|
+
_cont
|
63
|
+
_etag
|
64
|
+
end
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
#thumbnails_table {
|
69
|
+
logic: {
|
70
|
+
_stag
|
71
|
+
start_pos = 1
|
72
|
+
while start_pos <= @album.leaves.length
|
73
|
+
idx = start_pos
|
74
|
+
_element("thumbnail_image_row")
|
75
|
+
idx = start_pos
|
76
|
+
_element("thumbnail_title_row")
|
77
|
+
start_pos += 7
|
78
|
+
end
|
79
|
+
_etag
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
#thumbnail_image_row {
|
84
|
+
logic: {
|
85
|
+
_stag
|
86
|
+
while idx <= @album.leaves.length && idx % 7 != 0
|
87
|
+
photo = @album.leaves[ idx-1 ]
|
88
|
+
_cont
|
89
|
+
idx += 1
|
90
|
+
end
|
91
|
+
_etag
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
#thumbnail_title_row {
|
96
|
+
logic: {
|
97
|
+
_stag
|
98
|
+
while idx <= @album.leaves.length && idx % 7 != 0
|
99
|
+
photo = @album.leaves[ idx-1 ]
|
100
|
+
_cont
|
101
|
+
idx += 1
|
102
|
+
end
|
103
|
+
_etag
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
#subalbums_row {
|
109
|
+
logic: {
|
110
|
+
col = 1
|
111
|
+
for subalbum in @album.children
|
112
|
+
if col == 1
|
113
|
+
_stag
|
114
|
+
end
|
115
|
+
|
116
|
+
_cont;
|
117
|
+
col += 1
|
118
|
+
if col == 3
|
119
|
+
col = 1
|
120
|
+
_etag
|
121
|
+
end
|
122
|
+
end
|
123
|
+
if col != 1
|
124
|
+
_etag
|
125
|
+
end
|
126
|
+
}
|
127
|
+
}
|