Changeset 23205
- Timestamp:
- Jun 14, 2013, 2:59:53 PM (11 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 3 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/admin/config.php
r18393 r23205 15 15 'cf_mail_type' => $_POST['cf_mail_type'], 16 16 'cf_redirect_url' => ($_POST['cf_redirect_url']!='http://') ? $_POST['cf_redirect_url'] : null, 17 'cf_theme' => $_POST['cf_theme'], 17 18 ); 18 19 $conf['ContactForm_before'] = $_POST['cf_before']; -
extensions/ContactForm/admin/template/config.tpl
r18393 r23205 1 1 {combine_css path=$CONTACT_FORM_PATH|@cat:"admin/template/style.css"} 2 {include file='include/colorbox.inc.tpl'} 3 4 {footer_script}{literal} 5 jQuery("a.preview-box").colorbox(); 6 7 jQuery("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} 2 12 3 13 <div class="titrePage"> … … 72 82 73 83 <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> 74 109 <legend>{'Text before the contact form'|@translate}</legend> 75 110 <textarea rows="4" cols="80" class="description" name="cf_before">{$cf_before}</textarea> -
extensions/ContactForm/admin/template/style.css
r18407 r23205 26 26 border-radius:5px; 27 27 } 28 29 .themeBox { 30 height:auto; 31 padding-bottom:5px; 32 } -
extensions/ContactForm/include/install.inc.php
r22257 r23205 32 32 'cf_mail_type' => 'text/html', 33 33 'cf_redirect_url' => null, 34 'cf_theme' => 'dark', 34 35 )); 35 36 … … 82 83 83 84 // save config 84 $conf['ContactForm'] = serialize($new_conf);85 85 $conf['ContactForm_before'] = stripslashes(@$conf['persoformtop']); 86 86 $conf['ContactForm_after'] = stripslashes(@$conf['persoformbottom']); 87 87 88 conf_update_param('ContactForm', $conf['ContactForm']);89 88 conf_update_param('ContactForm_before', $conf['ContactForm_before']); 90 89 conf_update_param('ContactForm_after', $conf['ContactForm_after']); … … 92 91 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param IN("persoformtop", "persoformbottom") LIMIT 2;'); 93 92 } 93 94 // new param 2.5.c 95 if (!isset($new_conf['cf_theme'])) 96 { 97 $new_conf['cf_theme'] = 'dark'; 98 } 99 100 // save config 101 $conf['ContactForm'] = serialize($new_conf); 102 conf_update_param('ContactForm', $conf['ContactForm']); 94 103 } 95 104 } -
extensions/ContactForm/template/mail/style-dark.css
r22255 r23205 2 2 margin:0px; 3 3 padding:0px; 4 font-family: Univers, Helvetica, Optima;4 font-family:"Tahoma", "Verdana", sans-serif; 5 5 font-size:12px; 6 6 text-align:left; … … 11 11 a { 12 12 color:#CE2E5A; 13 text-decoration:none; 14 } 15 16 a:hover { 17 text-decoration:underline; 13 18 } 14 19 … … 21 26 #the_header { 22 27 background:#222; 23 border-top: 5px solid #CE2E5A;28 border-top:4px solid #CE2E5A; 24 29 border-bottom:1px solid #111; 25 30 font-size:16px;
Note: See TracChangeset
for help on using the changeset viewer.