Ignore:
Timestamp:
Jun 13, 2011, 10:54:28 PM (13 years ago)
Author:
nikrou
Message:

Remove dependency to swfObject
Allow admin to use animation in main menu

File:
1 copied

Legend:

Unmodified
Added
Removed
  • extensions/pwgCumulus/template/admin_tags.tpl

    r11226 r11344  
    1 {combine_css path="$PWG_CUMULUS_PLUGIN_CSS/admin.css"}
    21{combine_css path="$PWG_CUMULUS_PLUGIN_CSS/colorpicker.css"}
    32
    43{combine_script id="colorpicker" require="jquery" path="$PWG_CUMULUS_PLUGIN_JS/colorpicker.js"}
    5 {footer_script require="colorpicker"}{literal}
    6 $(function() {
    7 $('input.pwg-picker')
    8   .each(function() {
    9       if ($(this).val() !== undefined) {
    10         if ($(this).val().indexOf('#',0)==-1) {
    11            $(this).css('background-color', '#'+$(this).val());
    12         } else {
    13            $(this).css('background-color', $(this).val());
    14         }
    15       }
    16     })
    17   .ColorPicker({
    18     onSubmit: function(hsb, hex, rgb, el) {
    19         $(el).val(hex);
    20         $(el).ColorPickerHide();
    21         $(el).css('background-color', '#'+hex);
    22       },
    23     onBeforeShow: function () {
    24         $(this).ColorPickerSetColor(this.value);
    25       }
    26 })
    27 .bind('keyup', function(){
    28         $(this).ColorPickerSetColor(this.value);
    29 });
    30 });
    31 {/literal}{/footer_script}
     4{combine_script id="colorpicker.instance" require="colorpicker" path="$PWG_CUMULUS_PLUGIN_JS/colorpicker.instance.js"}
    325
    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 {'You 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>
     6<p>{'Animation configuration : size, tags colors, tags size'|@translate}</p>
    467
    478<form method="post" action="" class="general">
     
    7233    <legend>{'Animation colors'|@translate}</legend>
    7334    <div id="picker" style="float: right;"></div>
     35   
     36    <p class="field">
     37      <label>{'Transparent mode for background'|@translate}
     38        <input type="checkbox" id="pwg_cumulus_mode_transparent" name="pwg_cumulus_mode_transparent" value="1"
     39               {if $PWG_CUMULUS_MODE_TRANSPARENT} checked="checked"{/if}>
     40      </label>
     41      <span class="info">({'Check the checkbox to use transparent mode for background'|@translate})</span>
     42    </p>
     43    <p class="field" id="pwg_cumulus_p_bgcolor">
     44      <label>{'Background color'|@translate}
     45        <input class="pwg-picker" type="text" name="pwg_cumulus_bgcolor" value="{$PWG_CUMULUS_BGCOLOR}">
     46      </label>     
     47    </p>
    7448    <p class="field">
    7549      <label>{'Color 1'|@translate}
     
    9064  <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p>
    9165</form>
     66
Note: See TracChangeset for help on using the changeset viewer.