[28586] | 1 | {combine_script id='slider' load='footer' require='jquery' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'} |
---|
| 2 | {combine_script id='button' load='footer' require='jquery' path='themes/default/js/ui/minified/jquery.ui.button.min.js'} |
---|
| 3 | {combine_script id='farbtastic' load='footer' require='jquery' path='themes/Slimi/admin/js/farbtastic.js'} |
---|
| 4 | {combine_css path="themes/Slim/admin/jquery.ui.button.custom.css" order=-10} |
---|
| 5 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css" order=-10} |
---|
| 6 | {combine_css path="themes/Slimi/admin/theme.css" order=-10} |
---|
[18812] | 7 | |
---|
[28586] | 8 | |
---|
| 9 | {footer_script}{literal} |
---|
| 10 | (function($) { |
---|
| 11 | $(document).ready(function() { |
---|
| 12 | $('#option').buttonset(); |
---|
| 13 | |
---|
| 14 | var f = $.farbtastic('#picker'); |
---|
| 15 | var p = $('#picker').css('opacity', 1); |
---|
| 16 | var selected; |
---|
| 17 | $('.colorwell') |
---|
| 18 | .each(function () { f.linkTo(this); $(this).css('opacity', 1); }) |
---|
| 19 | .focus(function() { |
---|
| 20 | if (selected) { |
---|
| 21 | $(selected).css('opacity', 1).removeClass('colorwell-selected'); |
---|
| 22 | } |
---|
| 23 | f.linkTo(this); |
---|
| 24 | p.css('opacity', 1); |
---|
| 25 | $(selected = this).css('opacity', 1).addClass('colorwell-selected'); |
---|
[20565] | 26 | }); |
---|
[28586] | 27 | $(function() { |
---|
| 28 | $('#slider-range-max').slider({ |
---|
| 29 | range: "max", |
---|
| 30 | min: 1, |
---|
| 31 | max: 20, |
---|
| 32 | value: {/literal}{$selected_carousel_speed}{literal}, |
---|
| 33 | slide: function( event, ui ) { |
---|
| 34 | $('#carspeed').val( ui.value ); |
---|
| 35 | } |
---|
| 36 | }); |
---|
| 37 | $('#carspeed').val( $('#slider-range-max').slider('value')); |
---|
| 38 | }); |
---|
[20565] | 39 | }); |
---|
[28586] | 40 | })(jQuery); |
---|
| 41 | {/literal}{/footer_script} |
---|
[18812] | 42 | |
---|
| 43 | |
---|
| 44 | <div class="titrePage"> |
---|
| 45 | <h2>Slimi</h2> |
---|
| 46 | </div> |
---|
| 47 | |
---|
| 48 | <form action="" method="post"> |
---|
| 49 | <fieldset> |
---|
| 50 | <legend>{'Open picture'|@translate}</legend> |
---|
[28586] | 51 | <div class="opt"> |
---|
[18812] | 52 | <div id="option"> |
---|
[28586] | 53 | |
---|
| 54 | <input type="radio" id="radio1" name="lytebox_slimi" value="1" {if $selected_lytebox_slimi=='1'}checked="checked"{/if}><label for="radio1">Lightbox</label> |
---|
| 55 | <input type="radio" id="radio2" name="lytebox_slimi" value="2" {if $selected_lytebox_slimi=='2'}checked="checked"{/if}><label for="radio2">{'Picture page'|@translate}</label> |
---|
[18812] | 56 | </div> |
---|
[28586] | 57 | </div> |
---|
| 58 | <br> |
---|
[18812] | 59 | </fieldset> |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | <fieldset> |
---|
| 63 | <legend>{'Color of theme'|@translate}</legend> |
---|
| 64 | <div id="textcolor"> |
---|
| 65 | <div class="form-item"><label>Background color:</label><input type="text" name="bg_slimi" class="colorwell" value="{$selected_bg_slimi}" /></div> |
---|
| 66 | <div class="form-item"><label>Color picture of cardre:</label><input type="text" name="bd_slimi" class="colorwell" value="{$selected_bd_slimi}" /></div> |
---|
| 67 | <div class="form-item"><label>Color title:</label><input type="text" name="title_slimi" class="colorwell" value="{$selected_title_slimi}" /></div> |
---|
| 68 | <p><input type="submit" name="default" value="{'Default'|@translate}" ></p> |
---|
| 69 | </div> |
---|
| 70 | <div id="picker"></div> |
---|
[28586] | 71 | </fieldset> |
---|
[18812] | 72 | |
---|
[28586] | 73 | <fieldset> |
---|
| 74 | <legend>{'Carousel'|@translate}</legend> |
---|
| 75 | <div id="car_speed" class="option" style="margin-top:20px"> |
---|
| 76 | <p> |
---|
| 77 | <label for="carspeed">Carousel speed</label> |
---|
| 78 | <input type="text" id="carspeed" style="border:0; color:#f6931f; font-weight:bold;" name="carousel_speed" value={$selected_carousel_speed}> |
---|
| 79 | </p> |
---|
| 80 | <br> |
---|
| 81 | <div id="slider-range-max"></div> |
---|
| 82 | |
---|
| 83 | </div> |
---|
| 84 | </fieldset> |
---|
| 85 | |
---|
[18916] | 86 | <p><input type="submit" name="submit" value="{'Submit'|@translate}" > |
---|
[18812] | 87 | </form> |
---|
| 88 | |
---|
| 89 | |
---|