Dotclear


Ignore:
Timestamp:
08/18/13 10:32:55 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

blog_theme page enhancement. More pretty without javascript. Lighter look and no more scrollbar with javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r1399 r1428  
    173173     '<div class="theme-shot"><img src="'.$screenshot.'" alt="" /></div>'. 
    174174     '<div class="theme-info">'. 
    175           '<h3>'.form::radio(array('theme',$radio_id),html::escapeHTML($id),$current,'','',($has_parent && !$is_parent_present)).' '. 
     175          '<h4>'.form::radio(array('theme',$radio_id),html::escapeHTML($id),$current,'','',($has_parent && !$is_parent_present)).' '. 
    176176          '<label class="classic" for="'.$radio_id.'">'. 
    177           html::escapeHTML($details['name']).'</label></h3>'. 
     177          html::escapeHTML($details['name']).'</label></h4>'. 
    178178          '<p><span class="theme-desc">'.html::escapeHTML($details['desc']).'</span> '. 
    179179          '<span class="theme-author">'.sprintf(__('by %s'),html::escapeHTML($details['author'])).'</span> '. 
     
    187187          } 
    188188          if ($has_css) { 
    189                $res .= '<a class="theme-css" href="'.$theme_url.'/style.css">'.__('Stylesheet').'</a>'; 
     189               $res .= '<span class="theme-css"><a href="'.$theme_url.'/style.css">'.__('Stylesheet').'</a></span>'; 
    190190          } 
    191191          $res .= '</p>'; 
     
    244244     } 
    245245      
    246      if ($can_install) { 
    247           echo 
    248           '<p><strong>'.sprintf(__('You can find additional themes for your blog on %s.'), 
    249           '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>').'</strong> '. 
    250           __('To install or upgrade a theme you generally just need to upload it '. 
    251           'in "Install or upgrade a theme" section.').'</p>'; 
    252      } 
    253       
    254246     # Themes list 
    255      echo '<div class="multi-part" id="themes-list" title="'.__('Themes').'">'; 
     247     echo '<div class="multi-part" id="themes-list" title="'.__('Themes').'">'. 
     248     '<h3>'.__('Available themes in your installation').'</h3>'; 
    256249      
    257250     $themes = $core->themes->getModules(); 
    258251     if (isset($themes[$core->blog->settings->system->theme])) { 
    259           echo '<h3>'.sprintf(__('You are currently using "%s"'),$themes[$core->blog->settings->system->theme]['name']).'</h3>'; 
     252          echo '<p>'.sprintf(__('You are currently using "%s"'),$themes[$core->blog->settings->system->theme]['name']).'.</p>'; 
    260253     } 
    261254      
     
    279272      
    280273     echo 
    281      '<div class="two-cols clear" id="themes-actions">'. 
    282      $core->formNonce(). 
    283      '<p class="col"><input type="submit" name="select" value="'.__('Use selected theme').'" /></p>'; 
    284       
     274     '<div id="themes-actions">'. 
     275      
     276     '<p>'.$core->formNonce().'<input type="submit" name="select" value="'.__('Use selected theme').'" /> ';   
    285277     if ($can_install) { 
    286           echo '<p class="col right"><input type="submit" class="delete" name="remove" value="'.__('Delete selected theme').'" /></p>'; 
    287      } 
    288       
    289      echo 
     278          echo ' <input type="submit" class="delete" name="remove" value="'.__('Delete selected theme').'" />'; 
     279     } 
     280     echo '</p>'. 
     281      
    290282     '</div>'. 
    291283     '</form>'. 
     
    296288     { 
    297289          echo 
    298           '<div class="multi-part clear" id="add-theme" title="'.__('Install or upgrade a theme').'">'; 
     290          '<div class="multi-part clear" id="add-theme" title="'.__('Install or upgrade a theme').'">'. 
     291          '<h3>'.__('Add themes to your installation').'</h3>'. 
     292          '<p>'.sprintf(__('You can find additional themes for your blog on %s.'), 
     293          '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>').'</p>'; 
    299294           
    300295          if ($is_writable) 
    301296          { 
    302                echo '<p>'.__('You can install themes by uploading or downloading zip files.').'</p>'; 
     297               echo '<p>'.__('You can also install themes by uploading or downloading zip files.').'</p>'; 
    303298                
    304299               # 'Upload theme' form 
Note: See TracChangeset for help on using the changeset viewer.

Sites map