1 | {html_head} |
---|
2 | <style> |
---|
3 | {literal} |
---|
4 | .vjs_layout { |
---|
5 | text-align: left; |
---|
6 | border: 2px solid rgb(221, 221, 221); |
---|
7 | padding: 1em; |
---|
8 | margin: 1em; |
---|
9 | } |
---|
10 | .showInfo { |
---|
11 | position:static; |
---|
12 | display:inline-block; |
---|
13 | padding:1px 7px; |
---|
14 | width:4px; |
---|
15 | height:16px; |
---|
16 | line-height:16px; |
---|
17 | font-size:0.8em; |
---|
18 | } |
---|
19 | {/literal} |
---|
20 | </style> |
---|
21 | {/html_head} |
---|
22 | |
---|
23 | {footer_script}{literal} |
---|
24 | jQuery(".showInfo").tipTip({ |
---|
25 | delay: 0, |
---|
26 | fadeIn: 200, |
---|
27 | fadeOut: 200, |
---|
28 | maxWidth: '300px', |
---|
29 | defaultPosition: 'right' |
---|
30 | }); |
---|
31 | {/literal}{/footer_script} |
---|
32 | |
---|
33 | Synchronization of metadata information and thumbnail creation for videos. |
---|
34 | <br/><br/> |
---|
35 | Please read the <a href="https://github.com/xbgmsharp/piwigo-videojs/wiki" target="_blanck">plugin documentation</a> for additional information. |
---|
36 | |
---|
37 | <div class="vjs_layout"> |
---|
38 | <legend>{'Statistics'|@translate}</legend> |
---|
39 | <ul> |
---|
40 | <li class="update_summary_new">{$NB_VIDEOS} {'videos in your gallery'|@translate}</li> |
---|
41 | <li class="update_summary_new">{$NB_VIDEOS_GEOTAGGED} {'geotagged videos'|@translate}</li> |
---|
42 | <li class="update_summary_new">{$NB_VIDEOS_THUMB} {'videos with poster and thumbnail'|@translate}</li> |
---|
43 | </ul> |
---|
44 | </div> |
---|
45 | |
---|
46 | {if isset($update_result)} |
---|
47 | <div class="vjs_layout"> |
---|
48 | <legend>Synchronization results</legend> |
---|
49 | <ul> |
---|
50 | <li class="update_summary_new">{$update_result.NB_ELEMENTS_CANDIDATES} {'video(s) in your gallery'|@translate}</li> |
---|
51 | <li class="update_summary_new">{$update_result.NB_ELEMENTS_EXIF} {'video(s) with metadata added'|@translate}</li> |
---|
52 | <li class="update_summary_new">{$update_result.NB_ELEMENTS_THUMB} {'thumbnail(s) created'|@translate}</li> |
---|
53 | <li class="update_summary_err">{$update_result.NB_ERRORS} {'errors during synchronization'|@translate}</li> |
---|
54 | </ul> |
---|
55 | |
---|
56 | {if not empty($sync_errors)} |
---|
57 | <h3>{'Error list'|@translate}</h3> |
---|
58 | <div class="errors"> |
---|
59 | <ul> |
---|
60 | {foreach from=$sync_errors item=error} |
---|
61 | <li>{$error}</li> |
---|
62 | {/foreach} |
---|
63 | </ul> |
---|
64 | </div> |
---|
65 | {/if} |
---|
66 | |
---|
67 | {if not empty($sync_infos)} |
---|
68 | <h3>{'Detailed informations'|@translate}</h3> |
---|
69 | <div class="infos"> |
---|
70 | <ul> |
---|
71 | {foreach from=$sync_infos item=info} |
---|
72 | <li>{$info}</li> |
---|
73 | {/foreach} |
---|
74 | </ul> |
---|
75 | </div> |
---|
76 | {/if} |
---|
77 | |
---|
78 | </div> |
---|
79 | {/if} |
---|
80 | |
---|
81 | <form action="" method="post" id="update"> |
---|
82 | |
---|
83 | <fieldset id="syncMeta"> |
---|
84 | <legend>{'Synchronize metadata'|@translate}</legend> |
---|
85 | <ul> |
---|
86 | <li> |
---|
87 | <label><input type="checkbox" name="metadata" value="1" checked="checked" /> filesize, width, height, latitude, longitude</label> |
---|
88 | <br/><small>Will overwrite the information in the database with the metadata from the video.</small> |
---|
89 | <br/><small><strong>Support of latitude, longitude required <a href="http://piwigo.org/ext/extension_view.php?eid=701" target="_blanck">'OpenStreetMap'</a> or 'RV Maps & Earth' plugin.</strong></small> |
---|
90 | </li> |
---|
91 | </ul> |
---|
92 | </fieldset> |
---|
93 | |
---|
94 | <fieldset id="syncthumb"> |
---|
95 | <legend>{'Create thumbnail'|@translate}</legend> |
---|
96 | <ul> |
---|
97 | <li> |
---|
98 | <label><input type="checkbox" name="thumb" value="1" checked="checked" /> Create poster at position in second:</label> |
---|
99 | <!-- <input type="range" name="thumbsec" value="4" min="0" max="60" step="1"/> --> |
---|
100 | <input type="text" name="thumbsec" value="4" size="2" required/> |
---|
101 | <br/><small>Create a thumbnail from the video at specify position.</small> |
---|
102 | </li> |
---|
103 | <li> |
---|
104 | <label><input type="checkbox" name="thumboverwrite" value="1" checked="checked"> Overwrite existing posters</label> |
---|
105 | <br/><small>Overwrite existing thumbnails with new ones.</small> |
---|
106 | </li> |
---|
107 | <li> |
---|
108 | <label><span class="property">Output format : </span></label> |
---|
109 | <label><input type="radio" name="thumbouput" value="jpg" checked="checked"/> JPG</label> |
---|
110 | <label><input type="radio" name="thumbouput" value="png" /> PNG</label> |
---|
111 | <br/><small>Select the output format for the thumbnail.</small> |
---|
112 | </li> |
---|
113 | <li> |
---|
114 | <label><input type="checkbox" name="thumboverlay" value="1" > Add film effect</label> |
---|
115 | <a class="showInfo" title="<img src='{$VIDEOJS_PATH}admin/example-frame.jpg'>">i</a> |
---|
116 | <br/><small>Apply an overlay on the poster creation.</small> |
---|
117 | </li> |
---|
118 | </ul> |
---|
119 | </fieldset> |
---|
120 | |
---|
121 | <fieldset id="syncOptions"> |
---|
122 | <legend>{'Simulation'|@translate}</legend> |
---|
123 | <ul> |
---|
124 | <li><label><input type="checkbox" name="simulate" value="1" checked="checked" /> {'only perform a simulation (no change in database will be made)'|@translate}</label></li> |
---|
125 | </ul> |
---|
126 | </fieldset> |
---|
127 | |
---|
128 | <fieldset id="catSubset"> |
---|
129 | <legend>{'reduce to single existing albums'|@translate}</legend> |
---|
130 | <ul> |
---|
131 | <li> |
---|
132 | <select class="categoryList" name="cat_id" size="10"> |
---|
133 | {html_options options=$categories selected=$categories_selected} |
---|
134 | </select> |
---|
135 | </li> |
---|
136 | |
---|
137 | <li><label><input type="checkbox" name="subcats_included" value="1" {$SUBCATS_INCLUDED_CHECKED} /> {'Search in sub-albums'|@translate}</label></li> |
---|
138 | </ul> |
---|
139 | </fieldset> |
---|
140 | |
---|
141 | <p> |
---|
142 | <input type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
143 | </p> |
---|
144 | </form> |
---|