gallery.php
7.51 KB
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
<?php
namespace Tz\WordPress\Tools\HybridGallery;
use Tz\WordPress\Tools;
?>
<link rel="stylesheet" href="<?php echo Tools\url('../assets/css/hybrid.gallery.css', __FILE__); ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo Tools\url('../assets/uploadify/uploadify.css', __FILE__); ?>" type="text/css" />
<script type="text/javascript">var global_settings = <?php echo json_encode(self::$defaults); ?>; var widget_dir = '<?php echo Vars::$widget_dir.'/'; ?>'; var upload_dir = '<?php echo Vars::$upload_dir;?>';</script>
<script type="text/javascript" src="<?php echo Tools\url('../assets/scripts/hybrid.gallery.js', __FILE__); ?>"></script>
<div id="TzHybridGallery">
<div id="TzHybridGallery_Header">
<a href="#" onclick="return false;" id="TzAddNewBtn">Add new</a>
</div>
<fieldset class="BoxError" id="TzImageFormErrors" style="display:none;">
<legend>Oops. Something is missing:</legend>
<div class="errors">
</div>
</fieldset>
<fieldset class="BoxSuccess" id="TzImageFormSuccess" style="display:none;">
<legend>Success:</legend>
<div class="response">
</div>
</fieldset>
<div id="TzHybridGallery_Control">
<?php if (!is_user_logged_in()):?>
I'm sorry, you must be signed-in to add a new gallery post.
<? else: ?>
<div class="tabs">
<ul>
<li><a href="#image" title="Image"><span>Image</span></a></li>
<li><a href="#video" title="Video"><span>Video</span></a></li>
</ul>
</div>
<div class="clear"></div>
<div class="panels">
<div class="panel" id="image">
<div class="formSection">
<form name="image_form" id="image_form" method="post" action="" class="gallery-css-form">
<input type="hidden" name="uploaded_image_filename" id="uploaded_image_filename" value="" />
<p>
<label for="title">Title</label>
<input type="text" name="title" value="" maxlength="128" />
</p>
<p>
<label for="description">Description</label>
<textarea name="description"></textarea>
</p>
<hr />
<p>
<label for="linked"><strong>Link to</strong> image</label>
<input type="text" name="imageLinked" id="imageLinked" />
</p>
<p>
<label for="upload"><strong><em>OR</em> upload</strong> image</label>
<input type="file" name="imageInput" id="imageInput" />
</p>
<p class="image-selected">
<label for=""> </label>
<span class="image-selected-name">(no image selected)</span>
</p>
<p class="submit-area">
<label for=""> </label>
<input type="submit" value="Submit" /> or <a href="#" class="form-cancel" onclick="return false;">Cancel</a>
</p>
</form>
</div>
<div class="UploadInformation">
<h2>Add/Link New Image</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus adipiscing dui sit amet neque egestas ac egestas sapien condimentum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum id felis sit amet augue varius scelerisque eu vel lacus.</p>
</div>
<div class="clear"></div>
</div>
<div class="panel" id="video">
<div class="formSection">
<fieldset class="BoxError" id="TzVideoFormErrors" style="display:none;">
<legend>Oops. Something is missing:</legend>
<div class="errors">
</div>
</fieldset>
<form name="video_form" id="video_form" method="post" action="" class="gallery-css-form">
<input type="hidden" name="uploaded_video_filename" id="uploaded_video_filename" value="" />
<p>
<label for="linked"><strong>Link</strong> Youtube video</label>
<input type="text" name="videoLinked" id="videoLinked" />
</p>
<p>
<label for=""> </label>
<span class="subtext">http://youtube.com/watch?v=nVr32Jx3Noo</span>
</p>
<p class="show-video" style="display:none;">
</p>
<p class="submit-area">
<label for=""> </label>
<input type="submit" value="Submit" /> or <a href="#" class="form-cancel" onclick="return false;">Cancel</a>
</p>
<hr />
<p>
<label for="upload"><strong>OR upload</strong> video</label>
<input type="file" name="videoInput" id="videoInput" />
</p>
<p>
<label for=""> </label>
<span class="video-selected-name"></span>
</p>
<p>
<label for="title">Title</label>
<input type="text" name="video_title" id="video_title" value="" maxlength="128" />
</p>
<p>
<label for="description">Description</label>
<textarea name="video_description" id="video_description"></textarea>
</p>
<p class="submit-area">
<label for=""> </label>
<input type="submit" value="Submit" /> or <a href="#" class="form-cancel" onclick="return false;">Cancel</a>
</p>
</form>
</div>
<div class="UploadInformation">
<h2>Add/Link New Video</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus adipiscing dui sit amet neque egestas ac egestas sapien condimentum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum id felis sit amet augue varius scelerisque eu vel lacus.</p>
</div>
<div class="clear"></div>
</div>
</div>
<? endif; ?>
</div>
<div id="TzHybridGallery_Viewport">
this is where all the "posts" of images/videos will appear in a grid-view arrangement.
</div>
</div>