-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
204 lines (166 loc) · 8.86 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Demo – BX Dynamix</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
<!--
* This style is the bxSlider Default css doc.
* Download this from http://bxslider.com or use the docs in the demo folder.
-->
<link rel="stylesheet" href="jquery.bxslider.css" type="text/css" media="all" />
<!--
* style.css will be your default wordpress theme stylesheet doc. Not needed for BX Dynamix to work.
* Though there is some custom restyling added to it for my own preference.
-->
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
</head>
<body>
<!--
* All images in this demo was downloaded from freeimages.com and then
* manipulated with ToyCamera (http://www.pentacom.jp/pentacom/toycamera_analogcolor/).
* HTML below is generated from Wordpress Theme Twenty Fourteen Version 1.0.
* To force Wordpress to output larger images in Gallery you need to
* add a filter to functions.php.
* Adds gallery shortcode defaults of size="medium" and columns="2"
function bx_dynamix_gallery_atts( $out, $pairs, $atts ) {
$atts = shortcode_atts( array(
"columns" => "2",
"size" => "medium",
), $atts );
$out["columns"] = $atts["columns"];
$out["size"] = $atts["size"];
return $out;
}
add_filter( "shortcode_atts_gallery", "bx_dynamix_gallery_atts", 10, 3 );
-->
<h1>BX Dynamix Gallery DEMO</h1>
<section>
<article id="post-4" class="post-4 post type-post status-publish format-standard hentry category-uncategorized">
<header class="entry-header">
<h1 class="entry-title">Multiple Slideshows, #1</h1>
</header><!-- .entry-header -->
<div class="entry-content">
<div id="gallery-1" class="gallery galleryid-4 gallery-columns-2 gallery-size-medium"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1385907_84565252.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Lorem ipsum."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Lorem ipsum.
</dd></dl><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="450" height="600" src="images/1443247_41621041.jpg_effected-450x600.jpg" class="attachment-medium" alt="1443247_41621041.jpg_effected"></a>
</dt></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1446284_81962038.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Dolor sit amet."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Dolor sit amet.
</dd></dl><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="301" height="600" src="images/1435989_20523265.jpg_effected-301x600.jpg" class="attachment-medium" alt="1435989_20523265.jpg_effected"></a>
</dt></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="424" src="images/1082768_30808661.jpg_effected-600x424.jpg" class="attachment-medium" alt="1082768_30808661.jpg_effected"></a>
</dt></dl><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1445967_96114307.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Sit amet."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Sit amet.
</dd></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="398" height="600" src="images/1443330_52483855.jpg_effected-398x600.jpg" class="attachment-medium" alt="1443330_52483855.jpg_effected"></a>
</dt></dl><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1446256_76080445.jpg_effected-600x398.jpg" class="attachment-medium" alt="1446256_76080445.jpg_effected"></a>
</dt></dl><br style="clear: both">
</div>
</div><!-- .entry-content -->
</article>
</section>
<section>
<article id="post-4" class="post-4 post type-post status-publish format-standard hentry category-uncategorized">
<header class="entry-header">
<h1 class="entry-title">Multiple Slideshows, #2</h1>
</header><!-- .entry-header -->
<div class="entry-content">
<div id="gallery-2" class="gallery galleryid-4 gallery-columns-2 gallery-size-medium"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1385907_84565252.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Lorem ipsum."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Lorem ipsum.
</dd></dl><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="450" height="600" src="images/1443247_41621041.jpg_effected-450x600.jpg" class="attachment-medium" alt="1443247_41621041.jpg_effected"></a>
</dt></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1446284_81962038.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Dolor sit amet."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Dolor sit amet.
</dd></dl><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="301" height="600" src="images/1435989_20523265.jpg_effected-301x600.jpg" class="attachment-medium" alt="1435989_20523265.jpg_effected"></a>
</dt></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="424" src="images/1082768_30808661.jpg_effected-600x424.jpg" class="attachment-medium" alt="1082768_30808661.jpg_effected"></a>
</dt></dl><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1445967_96114307.jpg_effected-600x398.jpg" class="attachment-medium" alt="Caption example. Sit amet."></a>
</dt>
<dd class="wp-caption-text gallery-caption">
Caption example. Sit amet.
</dd></dl><br style="clear: both"><dl class="gallery-item">
<dt class="gallery-icon portrait">
<a href="#"><img width="398" height="600" src="images/1443330_52483855.jpg_effected-398x600.jpg" class="attachment-medium" alt="1443330_52483855.jpg_effected"></a>
</dt></dl><dl class="gallery-item">
<dt class="gallery-icon landscape">
<a href="#"><img width="600" height="398" src="images/1446256_76080445.jpg_effected-600x398.jpg" class="attachment-medium" alt="1446256_76080445.jpg_effected"></a>
</dt></dl><br style="clear: both">
</div>
</div><!-- .entry-content -->
</article>
</section>
<!-- remove this code if you want -->
<section>
<h1>BX Dynamix v1</h1>
<p>This plugin to <a href="http://bxslider.com/" target="_blank">bxSlider</a> hooks (frontend) into built in gallery function in Wordpress and makes it a slideshow.</p>
<p>BX Dynamix check for the tallest image and sets the viewport to that height.</p>
<h2>Wordpress Filter for larger images in gallery</h2>
<p>For the Wordpress gallery function to output larger images in gallery you need to add this code to functions.php</p>
<div style="background: #f4f4f4; padding: 30px;">
<pre>
function bx_dynamix_gallery_atts( $out, $pairs, $atts ) {
$atts = shortcode_atts( array(
"columns" => "2",
"size" => "medium",
), $atts );
$out["columns"] = $atts["columns"];
$out["size"] = $atts["size"];
return $out;
}
add_filter( "shortcode_atts_gallery", "bx_dynamix_gallery_atts", 10, 3 );
</pre>
</div>
</section>
<section style="background: #f4f4f4; padding: 30px; margin-top: 30px;">
<p><a href="https://github.com/Kidkie/bx-dynamix">Download BX Dynamix</a></p>
</section>
<script type="text/javascript" src="js/jquery-2.1.1.min.js?ver=2.1.1"></script>
<script type="text/javascript" src="js/jquery.bxdynamix.js?ver=1.2"></script>
<!--
BX Dynamix is built with support of bxSlider from Steven Wanderski.
BX Dynamix needs this to work.
* BxSlider v4.1.2 - Fully loaded, responsive content slider
* http://bxslider.com
*
* Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
* Written while drinking Belgian ales and listening to jazz
*
* Released under the MIT license - http://opensource.org/licenses/MIT
-->
<script type="text/javascript" src="js/jquery.bxslider.min.js?ver=4.1.2"></script>
</body>
</html>