Changeset 22725 for extensions
- Timestamp:
- May 18, 2013, 12:44:13 AM (11 years ago)
- Location:
- extensions/CryptograPHP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/admin.php
r19428 r22725 60 60 while (($file = readdir($dh)) !== false ) 61 61 { 62 if ($file !== '.' && $file !== '..') $fonts[] = str_replace('.ttf', null, $file); 62 if ($file !== '.' && $file !== '..' && get_extension($file)=='ttf') 63 $fonts[] = get_filename_wo_extension($file); 63 64 } 64 65 -
extensions/CryptograPHP/main.inc.php
r21209 r22725 83 83 84 84 if (!is_a_guest()) return; 85 if ($user['theme'] == 'smartpocket') return;86 85 87 86 if ( script_basename() == 'register' and $conf['cryptographp']['activate_on']['register'] ) … … 104 103 105 104 if (!is_a_guest()) return; 106 if ($user['theme'] == 'smartpocket') return;107 105 108 106 if ( -
extensions/CryptograPHP/template/admin.tpl
r19428 r22725 125 125 border-color:#f70; 126 126 } 127 128 .big-list {ldelim} 129 display:relative; 130 margin-left:51%; 131 } 132 .big-list label {ldelim} 133 display:inline-block; 134 margin-right:10px; 135 } 127 136 </style> 128 137 {/html_head} … … 139 148 <li> 140 149 <span class="property">{'Activate on'|@translate}</span> 141 <label><input type="checkbox" name="activate_on[picture]" value="1" {if $crypto.activate_on.picture}checked="checked"{/if}> {'Picture comments'|@translate}</label> 142 {if $loaded.category}<label><input type="checkbox" name="activate_on[category]" value="1" {if $crypto.activate_on.category}checked="checked"{/if}> {'Album comments'|@translate}</label>{/if} 143 <label><input type="checkbox" name="activate_on[register]" value="1" {if $crypto.activate_on.register}checked="checked"{/if}> {'Register form'|@translate}</label> 144 {if $loaded.contactform}<label><input type="checkbox" name="activate_on[contactform]" value="1" {if $crypto.activate_on.contactform}checked="checked"{/if}> {'Contact form'|@translate}</label>{/if} 145 {if $loaded.guestbook}<label><input type="checkbox" name="activate_on[guestbook]" value="1" {if $crypto.activate_on.guestbook}checked="checked"{/if}> {'Guestbook'|@translate}</label>{/if} 150 <div class="big-list"> 151 <label><input type="checkbox" name="activate_on[picture]" value="1" {if $crypto.activate_on.picture}checked="checked"{/if}> {'Picture comments'|@translate}</label> 152 {if $loaded.category}<label><input type="checkbox" name="activate_on[category]" value="1" {if $crypto.activate_on.category}checked="checked"{/if}> {'Album comments'|@translate}</label>{/if} 153 <label><input type="checkbox" name="activate_on[register]" value="1" {if $crypto.activate_on.register}checked="checked"{/if}> {'Register form'|@translate}</label> 154 {if $loaded.contactform}<label><input type="checkbox" name="activate_on[contactform]" value="1" {if $crypto.activate_on.contactform}checked="checked"{/if}> {'Contact form'|@translate}</label>{/if} 155 {if $loaded.guestbook}<label><input type="checkbox" name="activate_on[guestbook]" value="1" {if $crypto.activate_on.guestbook}checked="checked"{/if}> {'Guestbook'|@translate}</label>{/if} 156 </div> 146 157 </li> 147 158 <li> … … 229 240 <li> 230 241 <span class="property">{'Font'|@translate}</span> 231 <div style="display:relative;margin-left:51%;">242 <div class="big-list"> 232 243 {foreach from=$fonts item=font} 233 244 <label style="font-family:{$font};" title="{$font}"><input type="radio" name="ttf_file" value="{$font}" {if $crypto.ttf_file == $font}checked="checked"{/if} class="istheme"> {$font}</label>
Note: See TracChangeset
for help on using the changeset viewer.