Changeset 4710


Ignore:
Timestamp:
01/20/10 00:21:18 (10 years ago)
Author:
boulde
Message:

remove unused code, add image size limit in themeconf and other suggestions
from EX-FTB, make the theme useable without javascript (show menu & comments),
...

Location:
extensions/Simple_Grey
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • extensions/Simple_Grey/comment_list.tpl

    r4456 r4710  
    1919      {/if} 
    2020      <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 
    21       <blockquote>{$comment.CONTENT}</blockquote> 
     21      {$comment.CONTENT} 
    2222    </div> 
    2323  </li> 
  • extensions/Simple_Grey/content.css

    r4457 r4710  
    6060} 
    6161 
     62#titrePage img { 
     63  float: left; 
     64  margin-top: -5px; 
     65} 
     66 
    6267#titrePage .categoryActions { 
    6368  float: right; 
     
    6671  list-style: none; 
    6772  width: auto; 
    68 } 
    69  
    70 #titrePage img { 
    71   float: left; 
    72   margin-top: -5px; 
    7373} 
    7474 
     
    8080  margin: 1em 0 0; 
    8181  padding: 1em; 
    82 } 
    83  
    84 #subcontent { 
    8582} 
    8683 
     
    103100} 
    104101 
    105 #fullTagCloud span a { 
     102#fullTagCloud a { 
    106103  padding: 2px; 
    107104} 
     
    111108} 
    112109 
    113 ul.tagSelection li { 
     110.tagSelection li { 
    114111  display:  inline; 
    115 } 
    116  
    117 /* actions */ 
    118  
    119 ul.categoryActions { 
    120   list-style: none; 
    121   float: right; 
    122   margin: 0; 
    123   padding: 0; 
    124 } 
    125  
    126 ul.categoryActions li { 
    127   display: inline; 
    128 } 
    129  
    130 ul.categoryActions li.selector { 
    131   position: relative; 
    132   top: -10px; 
    133112} 
    134113 
     
    138117  color: #e04040; 
    139118  border: 1px dashed; 
    140 } 
    141 .errors div, .infos div { 
    142   margin: auto; 
    143   padding: 8px; 
    144   text-align: center; 
    145   width: 60%; 
     119  margin: 0 1em; 
    146120} 
    147121 
     
    216190/* categories thumbnails */ 
    217191 
    218 ul.thumbnailCategories { 
     192.thumbnailCategories { 
    219193  margin: 0; 
    220194  padding: 1em; 
     
    223197} 
    224198 
    225 ul.thumbnailCategories li { 
     199.thumbnailCategories li { 
    226200  float: left; 
    227201  height: 160px; 
     
    246220} 
    247221 
    248 p.thumbCatDescNfoDate, p.thumbCatDescNbImg { 
     222.thumbCatDescNfoDate, .thumbCatDescNbImg { 
    249223  margin: 0; 
    250224  font-size: 80%; 
    251225} 
    252226 
    253 p.thumbCatDesc { 
     227.thumbCatDesc { 
    254228  margin: 0; 
    255229  padding-top: 4px; 
     
    310284} 
    311285 
    312 #imageInfos dt.label, #imageMeta dt.label { 
     286#imageInfos dt, #imageMeta dt { 
    313287  font-weight: bold; 
    314288} 
    315 #imageInfos dd.value, #imageMeta dd.value { 
     289#imageInfos dd, #imageMeta dd { 
    316290  margin-left: 1em; 
    317291  overflow: hidden; 
     
    321295  text-align: center; 
    322296  padding: 1em 0; 
     297  margin: auto; 
    323298} 
    324299 
     
    363338} 
    364339 
    365 #theComments div { 
     340#theComments > div { 
    366341    display: none; 
    367342} 
     
    389364} 
    390365 
    391 #commentList .description blockquote { 
    392   margin: 0; 
    393 } 
    394 #commentList ul.actions { 
     366ul.actions { 
    395367    float: right; 
    396 } 
    397 #commentList ul.actions li { 
    398     border: 0; 
    399368} 
    400369 
     
    407376} 
    408377 
    409 #comments li { 
    410   clear: both; 
     378#theCommentsPage #comments li { 
     379  clear: left; 
    411380  list-style: none; 
    412381} 
  • extensions/Simple_Grey/header.tpl

    r4702 r4710  
    1313  {if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if} 
    1414  {if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if} 
    15   {$themeconf.local_head} 
    1615  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if} 
    1716  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if} 
     
    2221  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/content.css"> 
    2322  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> 
    24         <!--  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/local-layout.css"> --> 
     23  <!--  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/local-layout.css"> --> 
     24  <noscript><style type="text/css"> 
     25      {literal}#menubar {display: block;} #theComments div {display: block;}{/literal} 
     26  </style></noscript> 
     27  {$themeconf.local_head} 
    2528  {if not empty($head_elements)} 
    2629    {foreach from=$head_elements item=elt}{$elt} 
  • extensions/Simple_Grey/js/scripts.js

    r4456 r4710  
    33jQuery(document).ready(function($){ 
    44  $("#theComments h3").click(function () { 
    5     $("#theComments div").toggle("slow"); 
     5    $("#theComments > div").toggle("slow"); 
    66  }); 
    77 
  • extensions/Simple_Grey/picture.tpl

    r4456 r4710  
    3131    {if isset($previous) } 
    3232    <div id="navThumbPrev"> 
    33       <a class="navThumb" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"> 
     33      <a href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"> 
    3434        <img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}"></a> 
    35     </div> <!-- navThumbPrev --> 
     35    </div> 
    3636    {/if} 
    3737    {if isset($next) } 
    3838    <div id="navThumbNext"> 
    39       <a class="navThumb" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"> 
     39      <a href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"> 
    4040        <img src="{$next.THUMB_SRC}" alt="{$next.TITLE}"></a> 
    41     </div> <!-- navThumbNext --> 
     41    </div> 
    4242    {/if} 
    4343    <div id="randomButtons"> 
     
    6262      <dl> 
    6363        {foreach from=$meta.lines item=value key=label} 
    64         <dt class="label">{$label}</dt> 
    65         <dd class="value">{$value}</dd> 
     64        <dt>{$label}</dt> 
     65        <dd>{$value}</dd> 
    6666        {/foreach} 
    6767      </dl> 
     
    7272      <dl> 
    7373        {if isset($INFO_AUTHOR)} 
    74         <dt class="label">{'Author'|@translate}</dt> 
    75         <dd class="value">{$INFO_AUTHOR}</dd> 
     74        <dt>{'Author'|@translate}</dt> 
     75        <dd>{$INFO_AUTHOR}</dd> 
    7676        {/if} 
    7777        {if isset($INFO_CREATION_DATE)} 
    78         <dt class="label">{'Created on'|@translate}</dt> 
    79         <dd class="value">{$INFO_CREATION_DATE}</dd> 
     78        <dt>{'Created on'|@translate}</dt> 
     79        <dd>{$INFO_CREATION_DATE}</dd> 
    8080        {/if} 
    81 <!--    <dt class="label">{'Posted on'|@translate}</dt> 
    82         <dd class="value">{$INFO_POSTED_DATE}</dd>--> 
     81<!--    <dt>{'Posted on'|@translate}</dt> 
     82        <dd>{$INFO_POSTED_DATE}</dd>--> 
    8383        {if isset($related_tags)} 
    84         <dt class="label">{'Tags'|@translate}</dt> 
    85         <dd class="value">{foreach from=$related_tags item=tag name=tag_loop} 
     84        <dt>{'Tags'|@translate}</dt> 
     85        <dd>{foreach from=$related_tags item=tag name=tag_loop} 
    8686          {if !$smarty.foreach.tag_loop.first}, {/if} 
    8787          <a href="{$tag.URL}">{$tag.name}</a>{/foreach}</dd> 
    8888        {/if} 
    8989        {if isset($related_categories)} 
    90         <dt class="label">{'Categories'|@translate}</dt> 
    91         <dd class="value"> 
     90        <dt>{'Categories'|@translate}</dt> 
     91        <dd> 
    9292          {foreach from=$related_categories item=cat name=tag_loop} 
    9393          {if !$smarty.foreach.tag_loop.first}, {/if} {'&nbsp;'|@str_ireplace:'&#32;':$cat}{/foreach} 
    9494        </dd> 
    9595        {/if} 
    96         <dt class="label">{'Visits'|@translate}</dt> 
    97         <dd class="value">{$INFO_VISITS}</dd> 
     96        <dt>{'Visits'|@translate}</dt> 
     97        <dd>{$INFO_VISITS}</dd> 
    9898        {if isset($rate_summary)} 
    99         <dt class="label">{'Average rate'|@translate}</dt> 
    100         <dd class="value" id="ratingSummary"> 
     99        <dt>{'Average rate'|@translate}</dt> 
     100        <dd id="ratingSummary"> 
    101101          {if $rate_summary.count} 
    102102          {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate } 
     
    108108        {/if} 
    109109        {if isset($rating)} 
    110         <dt class="label"><span id="updateRate">{if isset($rating.USER_RATE)}{'update_rate'|@translate}{else}{'new_rate'|@translate}{/if}</span></dt> 
    111         <dd class="value"> 
     110        <dt><span id="updateRate">{if isset($rating.USER_RATE)}{'update_rate'|@translate}{else}{'new_rate'|@translate}{/if}</span></dt> 
     111        <dd> 
    112112          <form action="{$rating.F_ACTION}" method="post" id="rateForm"> 
    113113            <div>&nbsp; 
  • extensions/Simple_Grey/picture_nav_buttons.tpl

    r4456 r4710  
    44{/if} 
    55{if isset($slideshow.U_START_PLAY)} 
    6   <a class="navButton" href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}">Play</a> 
     6  <a href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}">Play</a> 
    77{/if} 
    88{if isset($slideshow)} 
    99  {if isset($slideshow.U_STOP_PLAY)} 
    10     <a class="navButton" href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}">Pause</a> 
     10    <a href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}">Pause</a> 
    1111  {/if} 
    1212  {if isset($slideshow.U_DEC_PERIOD)} 
    13     <a class="navButton" href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}">&nbsp;+&nbsp;</a> 
     13    <a href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}">&nbsp;+&nbsp;</a> 
    1414  {/if} 
    1515  {if isset($slideshow.U_INC_PERIOD)} 
    16     <a class="navButton" href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}">&nbsp;-&nbsp;</a> 
     16    <a href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}">&nbsp;-&nbsp;</a> 
    1717  {/if} 
    1818{/if} 
  • extensions/Simple_Grey/print.css

    r4456 r4710  
    1010 
    1111#menubar, #content .navigationBar, ul.categoryActions, 
    12 #content div.calendarViews, .calendarBar, #imageToolBar, 
    13 .navThumb, #addComment { 
     12#content div.calendarViews, .calendarBar, #imageToolBar, #addComment { 
    1413    display: none; 
    1514} 
  • extensions/Simple_Grey/theme/grey/theme.css

    r4703 r4710  
    1 /* 
    2    GRUM: GRAPHITE 
    3    Graphite for template "Gally" 
    4    author:  grum at grum.dnsalias.com 
    5  */ 
    6  
    7 /* page */ 
     1/* Grey theme for the simple template 
     2   author: Saïmon <contact at saimon.org> */ 
    83 
    94body { 
     
    1813} 
    1914 
    20 #menubar p.totalImages { 
     15.totalImages { 
    2116  font-style: italic; 
    2217  margin-top: 0; 
     
    4641  font-weight: bold; 
    4742} 
    48  
    49 #thumbnails li a img { 
     43.thumbnail { 
    5044  border: 2px #707070 solid; 
    5145} 
    52 #thumbnails li a:hover img { 
     46.thumbnail:hover { 
    5347  border: 2px #f0f0f0 solid; 
    5448} 
    55 #thumbnails li p { 
     49#thumbnails p { 
    5650  margin: 0; 
    5751} 
     
    5953/* page content :  categories thumbnails */ 
    6054 
    61 .illustration a img { 
     55.illustration img { 
    6256  border: 1px #606060 solid; 
    6357} 
    6458 
    65 .illustration a:hover img { 
     59.illustration img:hover { 
    6660  border: 1px #f0f0f0 solid; 
    6761} 
    6862 
    69 p.thumbCatDesc { 
     63.thumbCatDesc { 
    7064  border-top: 1px #606060 dotted; 
    7165  text-align: justify; 
     
    10296} 
    10397 
    104 #navThumbPrev a img, #navThumbNext a img { 
     98#navThumbPrev img, #navThumbNext img { 
    10599  border: 2px #606060 solid; 
    106100} 
    107 #navThumbPrev a:hover img, #navThumbNext a:hover img { 
     101#navThumbPrev img:hover, #navThumbNext img:hover { 
    108102  border: 2px #f0f0f0 solid; 
    109103} 
     
    121115/* tags */ 
    122116 
    123 #fullTagCloud span a:hover { 
     117#fullTagCloud a:hover { 
    124118  background: #606060; 
    125119} 
     
    133127} 
    134128 
    135 .tagaddbutton { 
    136 } 
    137  
    138129.mandatorystar { 
    139130  color: #e04040; 
     
    142133/* help */ 
    143134 
    144 .errors div { 
    145   background: #FFB0B0; 
    146   border: 4px solid #A04040; 
     135.errors { 
     136  border: 2px solid #A04040; 
    147137  color: #A04040; 
    148138} 
    149 .errors div a { 
     139.errors a { 
    150140  color: #FF0000; 
    151141  font-weight: bold; 
    152142} 
    153143 
    154 .infos div { 
    155   background: #B0FFB0; 
    156   border: 4px solid #40A040; 
     144.infos { 
     145  border: 2px solid #40A040; 
    157146  color: #40A040; 
    158147} 
    159 .infos div a { 
     148.infos a { 
    160149  color: #00FF00; 
    161150  font-weight: bold; 
    162151} 
    163  
    164 .errors ul, .infos ul { 
    165   text-align: justify; 
    166 } 
  • extensions/Simple_Grey/theme/grey/themeconf.inc.php

    r4703 r4710  
    1010  'local_head' => '<!-- no theme specific head content -->', 
    1111); 
     12 
     13global $user; 
     14$user['maxwidth'] = 680; 
    1215?> 
Note: See TracChangeset for help on using the changeset viewer.