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}{literal} |
---|
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 | {/literal}{/footer_script} |
---|
17 | |
---|
18 | <div class="titrePage"> |
---|
19 | <h2>Embedded Videos</h2> |
---|
20 | </div> |
---|
21 | |
---|
22 | <form method="post" action="" class="properties"> |
---|
23 | <fieldset> |
---|
24 | <legend>{'Properties'|@translate}</legend> |
---|
25 | |
---|
26 | <ul> |
---|
27 | <li> |
---|
28 | <label> |
---|
29 | <span class="property">{'Album'|@translate}</span> |
---|
30 | <select style="width:400px" name="category" id="albumSelect" size="1"> |
---|
31 | {html_options options=$category_parent_options selected=$POST.category} |
---|
32 | </select> |
---|
33 | </label> |
---|
34 | {'... or '|@translate}<a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> |
---|
35 | </li> |
---|
36 | <li> |
---|
37 | <label> |
---|
38 | <span class="property">{'Video URL'|@translate}</span> |
---|
39 | <input type="text" name="url" value="{$POST.url}" style="width:400px;"> |
---|
40 | </label> |
---|
41 | </li> |
---|
42 | {if $gd_available} |
---|
43 | <li> |
---|
44 | <span class="property">{'Thumbnail'|@translate}</span> |
---|
45 | <label><input type="checkbox" name="add_film_frame" value="true"> {'Add film effect'|@translate} </label> |
---|
46 | <a class="showInfo" title="<img src='{$GVIDEO_PATH}admin/template/example-frame.jpg'>">i</a> |
---|
47 | </li> |
---|
48 | {/if} |
---|
49 | </ul> |
---|
50 | </fieldset> |
---|
51 | |
---|
52 | <fieldset> |
---|
53 | <legend>{'Configuration'|@translate}</legend> |
---|
54 | |
---|
55 | <ul> |
---|
56 | <li> |
---|
57 | <span class="property">{'Video size'|@translate}</span> |
---|
58 | <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> |
---|
59 | <label><input type="radio" name="size_common" value="false" {if $POST.size_common == 'false'}checked="checked"{/if} data-toggle="size"> {'Change'|@translate}</label> |
---|
60 | </li> |
---|
61 | <li {if $POST.size_common != 'false'}style="display:none;"{/if} id="size"> |
---|
62 | <span class="property"> </span> |
---|
63 | <input type="text" name="width" value="{$POST.width}" size="4"> × |
---|
64 | <input type="text" name="height" value="{$POST.height}" size="4"> px |
---|
65 | </li> |
---|
66 | <li> |
---|
67 | <span class="property">{'Autoplay'|@translate}</span> |
---|
68 | <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> |
---|
69 | <label><input type="radio" name="autoplay_common" value="false" {if $POST.autoplay_common == 'false'}checked="checked"{/if} data-toggle="autoplay"> {'Change'|@translate}</label> |
---|
70 | </li> |
---|
71 | <li {if $POST.autoplay_common != 'false'}style="display:none;"{/if} id="autoplay"> |
---|
72 | <span class="property"> </span> |
---|
73 | <label><input type="radio" name="autoplay" value="0" {if $POST.autoplay == '0'}checked="checked"{/if}> {'No'|@translate}</label> |
---|
74 | <label><input type="radio" name="autoplay" value="1" {if $POST.autoplay == '1'}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
75 | </li> |
---|
76 | <li> |
---|
77 | <span class="property">{'Get video description'|@translate}</span> |
---|
78 | <label><input type="radio" name="sync_description" value="1" {if $gvideo.sync_description}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
79 | <label><input type="radio" name="sync_description" value="0" {if not $gvideo.sync_description}checked="checked"{/if}> {'No'|@translate}</label> |
---|
80 | </li> |
---|
81 | <li> |
---|
82 | <span class="property">{'Get video tags'|@translate}</span> |
---|
83 | <label><input type="radio" name="sync_tags" value="1" {if $gvideo.sync_tags}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
84 | <label><input type="radio" name="sync_tags" value="0" {if not $gvideo.sync_tags}checked="checked"{/if}> {'No'|@translate}</label> |
---|
85 | </li> |
---|
86 | </ul> |
---|
87 | </fieldset> |
---|
88 | |
---|
89 | |
---|
90 | <p style="text-align:left;"> |
---|
91 | <label style="font-weight:bold;"><input type="checkbox" name="safe_mode" {if $POST.safe_mode}checked="checked"{/if}> {'Safe-mode'|@translate}</label> |
---|
92 | <a class="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}">i</a> |
---|
93 | <br> |
---|
94 | <input type="submit" name="add_video" value="{'Add'|@translate}"> |
---|
95 | </p> |
---|
96 | |
---|
97 | <fieldset> |
---|
98 | <legend>{'Supported services'|@translate}</legend> |
---|
99 | |
---|
100 | <ul class="services"> |
---|
101 | <li> |
---|
102 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/youtube.png"> |
---|
103 | <a href="http://www.youtube.com" target="_blank">YouTube</a> |
---|
104 | </li> |
---|
105 | <li> |
---|
106 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/vimeo.png"> |
---|
107 | <a href="http://www.vimeo.com" target="_blank">Vimeo</a> |
---|
108 | </li> |
---|
109 | <li> |
---|
110 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/dailymotion.png"> |
---|
111 | <a href="http://www.dailymotion.com" target="_blank">Dailymotion</a> |
---|
112 | </li> |
---|
113 | <li> |
---|
114 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wat.png"> |
---|
115 | <a href="http://www.wat.tv" target="_blank">Wat</a> |
---|
116 | </li> |
---|
117 | <li> |
---|
118 | <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wideo.png"> |
---|
119 | <a href="http://www.wideo.fr" target="_blank">Wideo</a> |
---|
120 | </li> |
---|
121 | </ul> |
---|
122 | </fieldset> |
---|
123 | |
---|
124 | </form> |
---|