source: extensions/pwgCumulus/template/admin.tpl @ 5405

Last change on this file since 5405 was 5405, checked in by nikrou, 14 years ago

Change farbtastic by color picker to choose animation's colors
Make plugin compatible with piwigo 2.1

File size: 2.8 KB
Line 
1{html_head}
2<link rel="stylesheet" type="text/css" href="{$PWG_CUMULUS_PLUGIN_CSS}/admin.css">
3<link rel="stylesheet" type="text/css" href="{$PWG_CUMULUS_PLUGIN_CSS}/colorpicker.css">
4{known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
5{known_script id="colorpicker" src="$PWG_CUMULUS_PLUGIN_JS/colorpicker.js"}
6{literal}
7<script type="text/javascript">
8$(function() {
9$('input.pwg-picker')
10  .each(function() {
11      if ($(this).val() !== undefined) {
12        $(this).css('background-color', '#'+$(this).val());
13      }
14    })
15  .ColorPicker({
16    onSubmit: function(hsb, hex, rgb, el) {
17        $(el).val(hex);
18        $(el).ColorPickerHide();
19        $(el).css('background-color', '#'+hex);
20      },
21    onBeforeShow: function () {
22        $(this).ColorPickerSetColor(this.value);
23      }
24})
25.bind('keyup', function(){
26        $(this).ColorPickerSetColor(this.value);
27});
28});
29</script>
30{/literal}
31{/html_head}
32
33<div class="titrePage">
34  <h2>{'Cumulus Tags Cloud Plugin'|@translate}</h2>
35</div>
36
37<p>
38{'That plugin display tags using a flash movie that rotates them in 3D. It works like a regular tags cloud but in a more amazing and exciting way.'|@translate}
39</p>
40
41<p>
42{'Vous can choose that mode for tags default display mode by adding (or changing) in the configuration file'|@translate}  <strong>include/config_local.inc.php</strong> :<p>
43<pre>
44$conf['tags_default_display_mode'] = 'cumulus';
45</pre>
46
47<form method="post" action="" class="general">
48<fieldset>
49  <legend>{'Animation width and height'|@translate}</legend>
50  <p class="field">
51    <label>{'Width'|@translate}
52      <input type="text" name="pwg_cumulus_width" value="{$PWG_CUMULUS_WIDTH}">
53    </label>
54  </p>
55  <p class="field">
56    <label>{'Height'|@translate}
57      <input type="text" name="pwg_cumulus_height" value="{$PWG_CUMULUS_HEIGHT}">
58    </label>
59  </p>
60</fieldset>
61
62<fieldset>
63  <legend>{'Tags size'|@translate}</legend>
64  <p class="field">
65    <label>{'Coefficient'|@translate}
66      <input type="text" name="pwg_cumulus_coeff" value="{$PWG_CUMULUS_COEFF}">
67    </label>     
68  </p>
69</fieldset>
70
71<fieldset>
72  <legend>{'Animation colors'|@translate}</legend>
73  <div id="picker" style="float: right;"></div>
74  <p class="field">
75    <label>{'Color 1'|@translate}
76      <input class="pwg-picker" type="text" name="pwg_cumulus_color1" value="{$PWG_CUMULUS_COLOR1}">
77    </label>     
78  </p>
79  <p class="field">
80    <label>{'Color 2'|@translate}
81      <input class="pwg-picker" type="text" name="pwg_cumulus_color2" value="{$PWG_CUMULUS_COLOR2}">
82    </label>     
83  </p>
84  <p class="field">
85    <label>{'Mouseover color'|@translate}
86      <input class="pwg-picker" type="text" name="pwg_cumulus_hicolor" value="{$PWG_CUMULUS_HICOLOR}">
87    </label>     
88  </p>
89</fieldset>
90<p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p>
91</form>
Note: See TracBrowser for help on using the repository browser.