Changeset 22725


Ignore:
Timestamp:
05/18/13 00:44:13 (7 years ago)
Author:
mistic100
Message:

index.php was selectable as a font ! fix display of checkboxes with small browser window

Location:
extensions/CryptograPHP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/admin.php

    r19428 r22725  
    6060  while (($file = readdir($dh)) !== false ) 
    6161  { 
    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); 
    6364  } 
    6465   
  • extensions/CryptograPHP/main.inc.php

    r21209 r22725  
    8383   
    8484  if (!is_a_guest()) return; 
    85   if ($user['theme'] == 'smartpocket') return; 
    8685   
    8786  if ( script_basename() == 'register' and $conf['cryptographp']['activate_on']['register'] ) 
     
    104103   
    105104  if (!is_a_guest()) return; 
    106   if ($user['theme'] == 'smartpocket') return; 
    107105   
    108106  if ( 
  • extensions/CryptograPHP/template/admin.tpl

    r19428 r22725  
    125125  border-color:#f70; 
    126126} 
     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} 
    127136</style> 
    128137{/html_head} 
     
    139148    <li> 
    140149      <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> 
    146157    </li> 
    147158    <li> 
     
    229240      <li> 
    230241        <span class="property">{'Font'|@translate}</span> 
    231         <div style="display:relative;margin-left:51%;"> 
     242        <div class="big-list"> 
    232243          {foreach from=$fonts item=font} 
    233244          <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.