1 | {html_head} |
---|
2 | <link rel="stylesheet" type="text/css" href="{$PWG_PHOTO_WIDGET_PLUGIN_CSS}/admin.css"> |
---|
3 | <link rel="stylesheet" type="text/css" href="{$PWG_PHOTO_WIDGET_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_PHOTO_WIDGET_PLUGIN_JS/colorpicker.js"} |
---|
6 | {literal} |
---|
7 | <script type="text/javascript"> |
---|
8 | $(function() { |
---|
9 | $('input[name=pw_all_categories]').change(function() { |
---|
10 | if ($(this).attr('value')==0) { |
---|
11 | $('#pw-select-categories').removeClass('hide'); |
---|
12 | } else { |
---|
13 | $('#pw-select-categories').addClass('hide'); |
---|
14 | } |
---|
15 | }); |
---|
16 | |
---|
17 | $('input.pwg-picker') |
---|
18 | .each(function() { |
---|
19 | if ($(this).val() !== undefined) { |
---|
20 | $(this).css('background-color', '#'+$(this).val()); |
---|
21 | } |
---|
22 | }) |
---|
23 | .ColorPicker({ |
---|
24 | onSubmit: function(hsb, hex, rgb, el) { |
---|
25 | $(el).val(hex); |
---|
26 | $(el).ColorPickerHide(); |
---|
27 | $(el).css('background-color', '#'+hex); |
---|
28 | }, |
---|
29 | onBeforeShow: function () { |
---|
30 | $(this).ColorPickerSetColor(this.value); |
---|
31 | } |
---|
32 | }) |
---|
33 | .bind('keyup', function(){ |
---|
34 | $(this).ColorPickerSetColor(this.value); |
---|
35 | }); |
---|
36 | }); |
---|
37 | </script> |
---|
38 | {/literal} |
---|
39 | {/html_head} |
---|
40 | |
---|
41 | <div class="titrePage"> |
---|
42 | <h2>{'Photo Widget Plugin'|@translate}</h2> |
---|
43 | </div> |
---|
44 | |
---|
45 | <p> |
---|
46 | {'That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'|@translate} |
---|
47 | </p> |
---|
48 | |
---|
49 | <p> |
---|
50 | {'You can choose that mode for displaying one, severals or all categories'|@translate} |
---|
51 | <p> |
---|
52 | |
---|
53 | <form method="post" action="" class="general"> |
---|
54 | <fieldset> |
---|
55 | <legend>{'Main configuration'|translate}</legend> |
---|
56 | <p class="field radio"><span>{'All categories'|translate} ?</span> |
---|
57 | {html_radios name="pw_all_categories" options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES} |
---|
58 | </p> |
---|
59 | |
---|
60 | <p class="field pw-categories{if $PW_ALL_CATEGORIES==1} hide{/if}" id="pw-select-categories"> |
---|
61 | <label>{'Applicable categorie(s)'|translate}</label> |
---|
62 | <select name="pw_categories[]" multiple="multiple" size="{$pw_categories|@count|@max:3}"> |
---|
63 | <option value="__none__"></option> |
---|
64 | {html_options options=$ALL_CATEGORIES selected=$PW_CATEGORIES} |
---|
65 | </select> |
---|
66 | </p> |
---|
67 | </fieldset> |
---|
68 | <fieldset> |
---|
69 | <legend>{'Animation size'|@translate}</legend> |
---|
70 | <p class="field"> |
---|
71 | <label>{'Width'|@translate} |
---|
72 | <input type="text" name="pw_width" value="{$PW_WIDTH}"> |
---|
73 | </label> |
---|
74 | </p> |
---|
75 | <p class="field"> |
---|
76 | <label>{'Height'|@translate} |
---|
77 | <input type="text" name="pw_height" value="{$PW_HEIGHT}"> |
---|
78 | </label> |
---|
79 | </p> |
---|
80 | </fieldset> |
---|
81 | <fieldset> |
---|
82 | <legend>{'Animation background color'|@translate}</legend> |
---|
83 | <div id="picker" style="float: right;"></div> |
---|
84 | <p class="field"> |
---|
85 | <label>{'Color'|@translate}</label> |
---|
86 | <input class="pwg-picker" type="text" name="pw_bgcolor" value="{$PW_BGCOLOR}"> |
---|
87 | </p> |
---|
88 | </fieldset> |
---|
89 | <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
90 | </form> |
---|