Ignore:
Timestamp:
Jun 14, 2013, 2:59:53 PM (11 years ago)
Author:
mistic100
Message:

new "clear" theme + config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/admin/template/config.tpl

    r18393 r23205  
    11{combine_css path=$CONTACT_FORM_PATH|@cat:"admin/template/style.css"}
     2{include file='include/colorbox.inc.tpl'}
     3
     4{footer_script}{literal}
     5jQuery("a.preview-box").colorbox();
     6
     7jQuery("input[name='cf_theme']").change(function() {
     8  jQuery("input[name='cf_theme']").parents(".themeBox").removeClass("themeDefault");
     9  jQuery(this).parents(".themeBox").addClass("themeDefault");
     10});
     11{/literal}{/footer_script}
    212
    313<div class="titrePage">
     
    7282 
    7383  <fieldset>
     84    <legend>{'Theme'|@translate}</legend>
     85   
     86    <div class="themeBoxes">
     87      <div class="themeBox {if $cf_theme=='clear'}themeDefault{/if}">
     88        <div class="themeName"><label>
     89          <input type="radio" name="cf_theme" value="clear" {if $cf_theme=='clear'}checked{/if}>
     90          Clear
     91        </label></div>
     92        <div class="themeShot">
     93          <a href="{$CONTACT_FORM_PATH}admin/template/prev-clear.jpg" class="preview-box"><img src="{$CONTACT_FORM_PATH}admin/template/prev-clear.jpg" width="150"/></a>
     94        </div>
     95      </div>
     96      <div class="themeBox {if $cf_theme=='dark'}themeDefault{/if}">
     97        <div class="themeName"><label>
     98          <input type="radio" name="cf_theme" value="dark" {if $cf_theme=='dark'}checked{/if}>
     99          Dark
     100        </label></div>
     101        <div class="themeShot">
     102          <a href="{$CONTACT_FORM_PATH}admin/template/prev-dark.jpg" class="preview-box"><img src="{$CONTACT_FORM_PATH}admin/template/prev-dark.jpg" width="150"/></a>
     103        </div>
     104      </div>
     105    </div>
     106  </fieldset>
     107 
     108  <fieldset>
    74109    <legend>{'Text before the contact form'|@translate}</legend>
    75110    <textarea rows="4" cols="80" class="description" name="cf_before">{$cf_before}</textarea>
Note: See TracChangeset for help on using the changeset viewer.