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 | if ($(this).val().indexOf('#',0)==-1) { |
---|
13 | $(this).css('background-color', '#'+$(this).val()); |
---|
14 | } else { |
---|
15 | $(this).css('background-color', $(this).val()); |
---|
16 | } |
---|
17 | } |
---|
18 | }) |
---|
19 | .ColorPicker({ |
---|
20 | onSubmit: function(hsb, hex, rgb, el) { |
---|
21 | $(el).val(hex); |
---|
22 | $(el).ColorPickerHide(); |
---|
23 | $(el).css('background-color', '#'+hex); |
---|
24 | }, |
---|
25 | onBeforeShow: function () { |
---|
26 | $(this).ColorPickerSetColor(this.value); |
---|
27 | } |
---|
28 | }) |
---|
29 | .bind('keyup', function(){ |
---|
30 | $(this).ColorPickerSetColor(this.value); |
---|
31 | }); |
---|
32 | }); |
---|
33 | </script> |
---|
34 | {/literal} |
---|
35 | {/html_head} |
---|
36 | |
---|
37 | <div class="titrePage"> |
---|
38 | <h2>{'Cumulus Tags Cloud Plugin'|@translate}</h2> |
---|
39 | </div> |
---|
40 | |
---|
41 | <p> |
---|
42 | {'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} |
---|
43 | </p> |
---|
44 | |
---|
45 | <p> |
---|
46 | {'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> |
---|
47 | <pre> |
---|
48 | $conf['tags_default_display_mode'] = 'cumulus'; |
---|
49 | </pre> |
---|
50 | |
---|
51 | <form method="post" action="" class="general"> |
---|
52 | <fieldset> |
---|
53 | <legend>{'Animation width and height'|@translate}</legend> |
---|
54 | <p class="field"> |
---|
55 | <label>{'Width'|@translate} |
---|
56 | <input type="text" name="pwg_cumulus_width" value="{$PWG_CUMULUS_WIDTH}"> |
---|
57 | </label> |
---|
58 | </p> |
---|
59 | <p class="field"> |
---|
60 | <label>{'Height'|@translate} |
---|
61 | <input type="text" name="pwg_cumulus_height" value="{$PWG_CUMULUS_HEIGHT}"> |
---|
62 | </label> |
---|
63 | </p> |
---|
64 | </fieldset> |
---|
65 | |
---|
66 | <fieldset> |
---|
67 | <legend>{'Tags size'|@translate}</legend> |
---|
68 | <p class="field"> |
---|
69 | <label>{'Coefficient'|@translate} |
---|
70 | <input type="text" name="pwg_cumulus_coeff" value="{$PWG_CUMULUS_COEFF}"> |
---|
71 | </label> |
---|
72 | </p> |
---|
73 | </fieldset> |
---|
74 | |
---|
75 | <fieldset> |
---|
76 | <legend>{'Animation colors'|@translate}</legend> |
---|
77 | <div id="picker" style="float: right;"></div> |
---|
78 | <p class="field"> |
---|
79 | <label>{'Color 1'|@translate} |
---|
80 | <input class="pwg-picker" type="text" name="pwg_cumulus_color1" value="{$PWG_CUMULUS_COLOR1}"> |
---|
81 | </label> |
---|
82 | </p> |
---|
83 | <p class="field"> |
---|
84 | <label>{'Color 2'|@translate} |
---|
85 | <input class="pwg-picker" type="text" name="pwg_cumulus_color2" value="{$PWG_CUMULUS_COLOR2}"> |
---|
86 | </label> |
---|
87 | </p> |
---|
88 | <p class="field"> |
---|
89 | <label>{'Mouseover color'|@translate} |
---|
90 | <input class="pwg-picker" type="text" name="pwg_cumulus_hicolor" value="{$PWG_CUMULUS_HICOLOR}"> |
---|
91 | </label> |
---|
92 | </p> |
---|
93 | </fieldset> |
---|
94 | <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
95 | </form> |
---|