1 | {combine_css path=$GVIDEO_PATH|cat:'admin/template/style.css'} |
---|
2 | {include file='include/colorbox.inc.tpl'} |
---|
3 | {include file='include/add_album.inc.tpl'} |
---|
4 | |
---|
5 | {footer_script} |
---|
6 | jQuery("input[data-toggle]").change(function() { |
---|
7 | $('#'+ $(this).data('toggle')).toggle(); |
---|
8 | }); |
---|
9 | jQuery(".showInfo").tipTip({ |
---|
10 | delay: 0, |
---|
11 | fadeIn: 200, |
---|
12 | fadeOut: 200, |
---|
13 | maxWidth: '300px', |
---|
14 | defaultPosition: 'right' |
---|
15 | }); |
---|
16 | jQuery(".showProvidersInfo").click(function() { |
---|
17 | $(".providersInfo").toggle(); |
---|
18 | }); |
---|
19 | {/footer_script} |
---|
20 | |
---|
21 | |
---|
22 | <div class="titrePage"> |
---|
23 | <h2>Embedded Videos</h2> |
---|
24 | </div> |
---|
25 | |
---|
26 | <form method="post" action="" class="properties"> |
---|
27 | <fieldset> |
---|
28 | <legend>{'Properties'|translate}</legend> |
---|
29 | |
---|
30 | <ul> |
---|
31 | <li> |
---|
32 | <label> |
---|
33 | <span class="property">{'Album'|translate}</span> |
---|
34 | <select style="width:400px" name="category" id="albumSelect" size="1"> |
---|
35 | {html_options options=$category_parent_options selected=$POST.category} |
---|
36 | </select> |
---|
37 | </label> |
---|
38 | {'... or '|translate}<a href="#" class="addAlbumOpen" title="{'create a new album'|translate}">{'create a new album'|translate}</a> |
---|
39 | </li> |
---|
40 | <li> |
---|
41 | <label> |
---|
42 | <span class="property">{'Video URL'|translate}</span> |
---|
43 | <input type="text" name="url" value="{$POST.url}" style="width:400px;"> |
---|
44 | </label> |
---|
45 | </li> |
---|
46 | {if $gd_available} |
---|
47 | <li> |
---|
48 | <span class="property">{'Thumbnail'|translate}</span> |
---|
49 | <label><input type="checkbox" name="add_film_frame" value="true" {if $POST.add_film_frame}checked="checked"{/if}> {'Add film effect'|translate} </label> |
---|
50 | <a class="icon-info-circled-1 showInfo" title="<img src='{$GVIDEO_PATH}admin/template/example-frame.jpg'>"></a> |
---|
51 | </li> |
---|
52 | {/if} |
---|
53 | </ul> |
---|
54 | </fieldset> |
---|
55 | |
---|
56 | <fieldset> |
---|
57 | <legend>{'Configuration'|translate}</legend> |
---|
58 | |
---|
59 | <ul> |
---|
60 | <li> |
---|
61 | <span class="property">{'Video size'|translate}</span> |
---|
62 | <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> |
---|
63 | <label><input type="radio" name="size_common" value="false" {if $POST.size_common == 'false'}checked="checked"{/if} data-toggle="size"> {'Change'|translate}</label> |
---|
64 | </li> |
---|
65 | <li {if $POST.size_common != 'false'}style="display:none;"{/if} id="size"> |
---|
66 | <span class="property"> </span> |
---|
67 | <input type="text" name="width" value="{$POST.width}" size="4"> × |
---|
68 | <input type="text" name="height" value="{$POST.height}" size="4"> px |
---|
69 | </li> |
---|
70 | <li> |
---|
71 | <span class="property">{'Autoplay'|translate}</span> |
---|
72 | <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> |
---|
73 | <label><input type="radio" name="autoplay_common" value="false" {if $POST.autoplay_common == 'false'}checked="checked"{/if} data-toggle="autoplay"> {'Change'|translate}</label> |
---|
74 | </li> |
---|
75 | <li {if $POST.autoplay_common != 'false'}style="display:none;"{/if} id="autoplay"> |
---|
76 | <span class="property"> </span> |
---|
77 | <label><input type="radio" name="autoplay" value="0" {if $POST.autoplay == '0'}checked="checked"{/if}> {'No'|translate}</label> |
---|
78 | <label><input type="radio" name="autoplay" value="1" {if $POST.autoplay == '1'}checked="checked"{/if}> {'Yes'|translate}</label> |
---|
79 | </li> |
---|
80 | <li> |
---|
81 | <span class="property">{'Get video description'|translate}</span> |
---|
82 | <label><input type="radio" name="sync_description" value="1" {if $gvideo.sync_description}checked="checked"{/if}> {'Yes'|translate}</label> |
---|
83 | <label><input type="radio" name="sync_description" value="0" {if not $gvideo.sync_description}checked="checked"{/if}> {'No'|translate}</label> |
---|
84 | </li> |
---|
85 | <li> |
---|
86 | <span class="property">{'Get video tags'|translate}</span> |
---|
87 | <label><input type="radio" name="sync_tags" value="1" {if $gvideo.sync_tags}checked="checked"{/if}> {'Yes'|translate}</label> |
---|
88 | <label><input type="radio" name="sync_tags" value="0" {if not $gvideo.sync_tags}checked="checked"{/if}> {'No'|translate}</label> |
---|
89 | </li> |
---|
90 | </ul> |
---|
91 | </fieldset> |
---|
92 | |
---|
93 | |
---|
94 | <p style="text-align:left;"> |
---|
95 | <input type="submit" name="add_video" value="{'Add'|translate}"> |
---|
96 | <label style="font-weight:bold;"><input type="checkbox" name="safe_mode" {if $POST.safe_mode}checked="checked"{/if}> {'Safe-mode'|translate}</label> |
---|
97 | <a class="icon-info-circled-1 showInfo" title="{'In safe-mode, the plugin does\'t try to contact the video host, usefull on some websites where remote connections are blocked.'|translate|escape:html}"></a> |
---|
98 | </p> |
---|
99 | |
---|
100 | <fieldset style="margin-top:40px;"> |
---|
101 | <legend>{'Supported services'|translate}</legend> |
---|
102 | |
---|
103 | <ul class="services"> |
---|
104 | <li> |
---|
105 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/youtube.png"> |
---|
106 | <a href="http://www.youtube.com" target="_blank">YouTube</a> |
---|
107 | <span class="providersInfo">{'Videos can be unlisted but not private.'|translate}<br></span> |
---|
108 | </li> |
---|
109 | <li> |
---|
110 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/vimeo.png"> |
---|
111 | <a href="http://www.vimeo.com" target="_blank">Vimeo</a> |
---|
112 | <span class="providersInfo">{'Videos can be unlisted and private if the gallery website is within the authorized domains (PRO).'|translate}<br></span> |
---|
113 | </li> |
---|
114 | <li> |
---|
115 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/dailymotion.png"> |
---|
116 | <a href="http://www.dailymotion.com" target="_blank">Dailymotion</a> |
---|
117 | <span class="providersInfo">{'Videos can be private if you use the private permalink.'|translate}<br></span> |
---|
118 | </li> |
---|
119 | <li> |
---|
120 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wat.png"> |
---|
121 | <a href="http://www.wat.tv" target="_blank">Wat</a> |
---|
122 | <span class="providersInfo" style="font-style:italic;">{'No privacy option.'|translate}<br></span> |
---|
123 | </li> |
---|
124 | <li> |
---|
125 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wideo.png"> |
---|
126 | <a href="http://www.wideo.fr" target="_blank">Wideo</a> |
---|
127 | <span class="providersInfo" style="font-style:italic;">{'No privacy option.'|translate}<br></span> |
---|
128 | </li> |
---|
129 | <li> |
---|
130 | <a class="showProvidersInfo">{'Show privacy details'|translate}</a> |
---|
131 | </li> |
---|
132 | </ul> |
---|
133 | </fieldset> |
---|
134 | |
---|
135 | </form> |
---|