source: extensions/gvideo/admin/template/add.tpl @ 19056

Last change on this file since 19056 was 19056, checked in by mistic100, 11 years ago

allow to add private dailymotion videos, remove videobb support, add tags support

File size: 4.9 KB
Line 
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}
6jQuery("input[data-toggle]").change(function() {
7  $('#'+ $(this).data('toggle')).toggle();
8});
9jQuery(".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">&nbsp;</span>
63      <input type="text" name="width" value="{$POST.width}" size="4"> &times;
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">&nbsp;</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;"><input type="submit" name="add_video" value="{'Add'|@translate}"></p>
91
92<fieldset>
93  <legend>{'Supported services'|@translate}</legend>
94 
95  <ul class="services">
96    <li>
97      <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/youtube.png">
98      <a href="http://www.youtube.com" target="_blank">YouTube</a>
99    </li>
100    <li>
101      <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/vimeo.png">
102      <a href="http://www.vimeo.com" target="_blank">Vimeo</a>
103    </li>
104    <li>
105      <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/dailymotion.png">
106      <a href="http://www.dailymotion.com" target="_blank">Dailymotion</a>
107    </li>
108    <li>
109      <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wat.png">
110      <a href="http://www.wat.tv" target="_blank">Wat</a>
111    </li>
112    <li>
113      <img class="icon" src="{$GVIDEO_PATH}admin/template/icons/wideo.png">
114      <a href="http://www.wideo.fr" target="_blank">Wideo</a>
115    </li>
116  </ul>
117</fieldset>
118
119</form>
Note: See TracBrowser for help on using the repository browser.