Skip to content

Commit a151ad0

Browse files
author
donker
committed
First code checkin
1 parent 2593330 commit a151ad0

File tree

12 files changed

+429
-0
lines changed

12 files changed

+429
-0
lines changed

Templates/Slimbox2/Settings.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by Peter Donker (Bring2mind) -->
3+
<templateSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Settings.xsd">
4+
<templateSetting>
5+
<key>loop</key>
6+
<valueType>truefalse</valueType>
7+
<defaultValue>false</defaultValue>
8+
</templateSetting>
9+
<templateSetting>
10+
<key>overlayOpacity</key>
11+
<valueType>number</valueType>
12+
<defaultValue>0.8</defaultValue>
13+
</templateSetting>
14+
<templateSetting>
15+
<key>overlayFadeDuration</key>
16+
<valueType>integer</valueType>
17+
<defaultValue>400</defaultValue>
18+
</templateSetting>
19+
<templateSetting>
20+
<key>resizeDuration</key>
21+
<valueType>integer</valueType>
22+
<defaultValue>400</defaultValue>
23+
</templateSetting>
24+
<templateSetting>
25+
<key>resizeEasing</key>
26+
<valueType>dropdown</valueType>
27+
<defaultValue>swing</defaultValue>
28+
<values>
29+
<value>swing</value>
30+
<value>linear</value>
31+
</values>
32+
</templateSetting>
33+
<templateSetting>
34+
<key>initialWidth</key>
35+
<valueType>integer</valueType>
36+
<defaultValue>250</defaultValue>
37+
</templateSetting>
38+
<templateSetting>
39+
<key>initialHeight</key>
40+
<valueType>integer</valueType>
41+
<defaultValue>250</defaultValue>
42+
</templateSetting>
43+
<templateSetting>
44+
<key>imageFadeDuration</key>
45+
<valueType>integer</valueType>
46+
<defaultValue>400</defaultValue>
47+
</templateSetting>
48+
<templateSetting>
49+
<key>captionAnimationDuration</key>
50+
<valueType>integer</valueType>
51+
<defaultValue>400</defaultValue>
52+
</templateSetting>
53+
</templateSettings>

Templates/Slimbox2/Template.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div id="lb[settings:moduleid]">
2+
[subtemplate|Image.html|images|pagesize=-1]
3+
</div>
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* SLIMBOX */
2+
3+
#lbOverlay {
4+
position: fixed;
5+
z-index: 9999;
6+
left: 0;
7+
top: 0;
8+
width: 100%;
9+
height: 100%;
10+
background-color: #000;
11+
cursor: pointer;
12+
}
13+
14+
#lbCenter, #lbBottomContainer {
15+
position: absolute;
16+
z-index: 9999;
17+
overflow: hidden;
18+
background-color: #fff;
19+
}
20+
21+
.lbLoading {
22+
background: #fff url(loading.gif) no-repeat center;
23+
}
24+
25+
#lbImage {
26+
position: absolute;
27+
left: 0;
28+
top: 0;
29+
border: 10px solid #fff;
30+
background-repeat: no-repeat;
31+
}
32+
33+
#lbPrevLink, #lbNextLink {
34+
display: block;
35+
position: absolute;
36+
top: 0;
37+
width: 50%;
38+
outline: none;
39+
}
40+
41+
#lbPrevLink {
42+
right: 0;
43+
}
44+
45+
#lbPrevLink:hover {
46+
background: transparent url(prevlabel.gif) no-repeat 100% 15%;
47+
}
48+
49+
#lbNextLink {
50+
left: 0;
51+
}
52+
53+
#lbNextLink:hover {
54+
background: transparent url(nextlabel.gif) no-repeat 0 15%;
55+
}
56+
57+
#lbBottom {
58+
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
59+
font-size: 10px;
60+
color: #666;
61+
line-height: 1.4em;
62+
text-align: right;
63+
border: 10px solid #fff;
64+
border-top-style: none;
65+
direction: rtl;
66+
}
67+
68+
#lbCloseLink {
69+
display: block;
70+
float: left;
71+
width: 66px;
72+
height: 22px;
73+
background: transparent url(closelabel.gif) no-repeat center;
74+
margin: 5px 0;
75+
outline: none;
76+
}
77+
78+
#lbCaption, #lbNumber {
79+
margin-left: 71px;
80+
}
81+
82+
#lbCaption {
83+
font-weight: bold;
84+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/* SLIMBOX */
2+
3+
#lbOverlay {
4+
position: fixed;
5+
z-index: 9999;
6+
left: 0;
7+
top: 0;
8+
width: 100%;
9+
height: 100%;
10+
background-color: #000;
11+
cursor: pointer;
12+
}
13+
14+
#lbCenter, #lbBottomContainer {
15+
position: absolute;
16+
z-index: 9999;
17+
overflow: hidden;
18+
background-color: #fff;
19+
}
20+
21+
.lbLoading {
22+
background: #fff url(../images/loading.gif) no-repeat center;
23+
}
24+
25+
#lbImage {
26+
position: absolute;
27+
left: 0;
28+
top: 0;
29+
border: 10px solid #fff;
30+
background-repeat: no-repeat;
31+
}
32+
33+
#lbPrevLink, #lbNextLink {
34+
display: block;
35+
position: absolute;
36+
top: 0;
37+
width: 50%;
38+
outline: none;
39+
}
40+
41+
#lbPrevLink {
42+
left: 0;
43+
}
44+
45+
#lbPrevLink:hover {
46+
background: transparent url(../images/prevlabel.gif) no-repeat 0 15%;
47+
}
48+
49+
#lbNextLink {
50+
right: 0;
51+
}
52+
53+
#lbNextLink:hover {
54+
background: transparent url(../images/nextlabel.gif) no-repeat 100% 15%;
55+
}
56+
57+
#lbBottom {
58+
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
59+
font-size: 10px;
60+
color: #666;
61+
line-height: 1.4em;
62+
text-align: left;
63+
border: 10px solid #fff;
64+
border-top-style: none;
65+
}
66+
67+
#lbCloseLink {
68+
display: block;
69+
float: right;
70+
width: 66px;
71+
height: 22px;
72+
background: transparent url(../images/closelabel.gif) no-repeat center;
73+
margin: 5px 0;
74+
outline: none;
75+
}
76+
77+
#lbCaption, #lbNumber {
78+
margin-right: 71px;
79+
}
80+
81+
#lbCaption {
82+
font-weight: bold;
83+
}
971 Bytes
Loading
1.25 KB
Loading
354 Bytes
Loading
371 Bytes
Loading

Templates/Slimbox2/js/slimbox2.js

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$(document).ready(function () {
2+
$('#lb[settings:moduleid] a').slimbox({
3+
loop: [settings:loop],
4+
overlayOpacity: [settings:overlayOpacity],
5+
overlayFadeDuration: [settings:overlayFadeDuration],
6+
resizeDuration: [settings:resizeDuration],
7+
resizeEasing: "[settings:resizeEasing]",
8+
initialWidth: [settings:initialWidth],
9+
initialHeight: [settings:initialHeight],
10+
imageFadeDuration: [settings:imageFadeDuration],
11+
captionAnimationDuration: [settings:captionAnimationDuration],
12+
counterText: "[resx:counterText]"
13+
});
14+
});

0 commit comments

Comments
 (0)