1 | {combine_css path=$GVIDEO_PATH|@cat:"admin/template/style.css"} |
---|
2 | |
---|
3 | {footer_script}{literal} |
---|
4 | jQuery("input[data-toggle]").change(function() { |
---|
5 | $('#'+ $(this).data('toggle')).toggle(); |
---|
6 | }); |
---|
7 | jQuery(".showInfo").tipTip({ |
---|
8 | delay: 0, |
---|
9 | fadeIn: 200, |
---|
10 | fadeOut: 200, |
---|
11 | maxWidth: '300px', |
---|
12 | defaultPosition: 'right' |
---|
13 | }); |
---|
14 | {/literal}{/footer_script} |
---|
15 | |
---|
16 | <div class="titrePage"> |
---|
17 | <h2>Embedded Videos</h2> |
---|
18 | </div> |
---|
19 | |
---|
20 | <form method="post" action="" class="properties"> |
---|
21 | <fieldset> |
---|
22 | <legend>{'Properties'|@translate}</legend> |
---|
23 | |
---|
24 | <ul> |
---|
25 | <li> |
---|
26 | <label> |
---|
27 | <span class="property">{'Album'|@translate}</span> |
---|
28 | <select name="category" size="1"> |
---|
29 | {html_options options=$category_parent_options selected=$POST.category} |
---|
30 | </select> |
---|
31 | </label> |
---|
32 | </li> |
---|
33 | <li> |
---|
34 | <label> |
---|
35 | <span class="property">{'Video URL'|@translate}</span> |
---|
36 | <input type="text" name="url" value="{$POST.url}" size="70"> |
---|
37 | </label> |
---|
38 | </li> |
---|
39 | <li> |
---|
40 | <span class="property">{'Name'|@translate}</span> |
---|
41 | <label><input type="radio" name="name_server" value="true" {if $POST.name_server != 'false'}checked="checked"{/if} data-toggle="name"> {'From the video'|@translate}</label> |
---|
42 | <label><input type="radio" name="name_server" value="false" {if $POST.name_server == 'false'}checked="checked"{/if} data-toggle="name"> {'Change'|@translate}</label> |
---|
43 | </li> |
---|
44 | <li {if $POST.name_server != 'false'}style="display:none;"{/if} id="name"> |
---|
45 | <span class="property"> </span> |
---|
46 | <input type="text" name="name" value="{$POST.name}" size="70"> |
---|
47 | </li> |
---|
48 | <li> |
---|
49 | <span class="property">{'Author'|@translate}</span> |
---|
50 | <label><input type="radio" name="author_server" value="true" {if $POST.author_server != 'false'}checked="checked"{/if} data-toggle="author"> {'From the video'|@translate}</label> |
---|
51 | <label><input type="radio" name="author_server" value="false" {if $POST.author_server == 'false'}checked="checked"{/if} data-toggle="author"> {'Change'|@translate}</label> |
---|
52 | </li> |
---|
53 | <li {if $POST.author_server != 'false'}style="display:none;"{/if} id="author"> |
---|
54 | <span class="property"> </span> |
---|
55 | <input type="text" name="author" value="{$POST.author}" size="20"> |
---|
56 | </li> |
---|
57 | <li> |
---|
58 | <span class="property">{'Description'|@translate}</span> |
---|
59 | <label><input type="radio" name="description_server" value="true" {if $POST.description_server != 'false'}checked="checked"{/if} data-toggle="description"> {'From the video'|@translate}</label> |
---|
60 | <label><input type="radio" name="description_server" value="false" {if $POST.description_server == 'false'}checked="checked"{/if} data-toggle="description"> {'Change'|@translate}</label> |
---|
61 | </li> |
---|
62 | <li {if $POST.description_server != 'false'}style="display:none;"{/if} id="description"> |
---|
63 | <span class="property"> </span> |
---|
64 | <textarea name="description" rows="5" cols="50">{$POST.description}</textarea> |
---|
65 | </li> |
---|
66 | <li> |
---|
67 | <span class="property">{'Thumbnail'|@translate}</span> |
---|
68 | <label><input type="radio" name="thumbnail_server" value="true" checked="checked" data-toggle="thumbnail_src"> {'From the video'|@translate}</label> |
---|
69 | <label><input type="radio" name="thumbnail_server" value="false" data-toggle="thumbnail_src"> {'Change'|@translate}</label> |
---|
70 | </li> |
---|
71 | <li id="thumbnail_src" style="display:none;"> |
---|
72 | <span class="property"> </span> |
---|
73 | <input type="file" name="thumbnail_src"><br> |
---|
74 | <span class="property"> </span> |
---|
75 | {'Maximum file size: %sB.'|@translate|@sprintf:$upload_max_filesize_shorthand} {'Allowed file types: %s.'|@translate|@sprintf:'jpg, png, gif'} |
---|
76 | <input type="hidden" name="MAX_FILE_SIZE" value="{$upload_max_filesize}"> |
---|
77 | </li> |
---|
78 | <li> |
---|
79 | <span class="property"> </span> |
---|
80 | <label><input type="checkbox" name="add_film_frame" value="true"> {'Add film effect'|@translate} </label> |
---|
81 | <a class="showInfo" title="<img src='{$GVIDEO_PATH}admin/template/example-frame.jpg'>">i</a> |
---|
82 | </li> |
---|
83 | </ul> |
---|
84 | </fieldset> |
---|
85 | |
---|
86 | <fieldset> |
---|
87 | <legend>{'Configuration'|@translate}</legend> |
---|
88 | |
---|
89 | <ul> |
---|
90 | <li> |
---|
91 | <span class="property">{'Video size'|@translate}</span> |
---|
92 | <label><input type="radio" name="size_common" value="true" {if $POST.size_common != 'false'}checked="checked"{/if} data-toggle="size"> {'Use common setting'|@translate}</label> |
---|
93 | <label><input type="radio" name="size_common" value="false" {if $POST.size_common == 'false'}checked="checked"{/if} data-toggle="size"> {'Change'|@translate}</label> |
---|
94 | </li> |
---|
95 | <li {if $POST.size_common != 'false'}style="display:none;"{/if} id="size"> |
---|
96 | <span class="property"> </span> |
---|
97 | <input type="text" name="width" value="{$POST.width}" size="4"> × |
---|
98 | <input type="text" name="height" value="{$POST.height}" size="4"> px |
---|
99 | </li> |
---|
100 | <li> |
---|
101 | <span class="property">{'Autoplay'|@translate}</span> |
---|
102 | <label><input type="radio" name="autoplay_common" value="true" {if $POST.autoplay_common != 'false'}checked="checked"{/if} data-toggle="autoplay"> {'Use common setting'|@translate}</label> |
---|
103 | <label><input type="radio" name="autoplay_common" value="false" {if $POST.autoplay_common == 'false'}checked="checked"{/if} data-toggle="autoplay"> {'Change'|@translate}</label> |
---|
104 | </li> |
---|
105 | <li {if $POST.autoplay_common != 'false'}style="display:none;"{/if} id="autoplay"> |
---|
106 | <span class="property"> </span> |
---|
107 | <label><input type="radio" name="autoplay" value="0" {if $POST.autoplay == '0'}checked="checked"{/if}> {'No'|@translate}</label> |
---|
108 | <label><input type="radio" name="autoplay" value="1" {if $POST.autoplay == '1'}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
109 | </li> |
---|
110 | </ul> |
---|
111 | </fieldset> |
---|
112 | |
---|
113 | |
---|
114 | <p style="text-align:left;"><input type="submit" name="add_video" value="{'Add'|@translate}"></p> |
---|
115 | |
---|
116 | <fieldset> |
---|
117 | <legend>{'Supported services'|@translate}</legend> |
---|
118 | |
---|
119 | <ul> |
---|
120 | <li> |
---|
121 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/youtube.png"> |
---|
122 | <a href="http://www.youtube.com" target="_blank">YouTube</a> |
---|
123 | </li> |
---|
124 | <li> |
---|
125 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/vimeo.png"> |
---|
126 | <a href="http://www.vimeo.com" target="_blank">Vimeo</a> |
---|
127 | </li> |
---|
128 | <li> |
---|
129 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/dailymotion.png"> |
---|
130 | <a href="http://www.dailymotion.com" target="_blank">Dailymotion</a> |
---|
131 | </li> |
---|
132 | <li> |
---|
133 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wat.png"> |
---|
134 | <a href="http://www.wat.tv" target="_blank">Wat</a> |
---|
135 | </li> |
---|
136 | <li> |
---|
137 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wideo.png"> |
---|
138 | <a href="http://www.wideo.fr" target="_blank">Wideo</a> |
---|
139 | </li> |
---|
140 | <li> |
---|
141 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/videobb.png"> |
---|
142 | <a href="http://www.videobb.com" target="_blank">videobb</a> |
---|
143 | </li> |
---|
144 | </ul> |
---|
145 | </fieldset> |
---|
146 | |
---|
147 | </form> |
---|