Changeset 13548


Ignore:
Timestamp:
Mar 14, 2012, 2:30:14 PM (9 years ago)
Author:
plg
Message:

import theme Simple version 2.2

  • fix the calendar's pages
  • update picture.tpl (download, favorites, metadata, rating)
  • change the way to hide blocks in JS, without <noscript>, thanks to VDigital & nicolas
  • update jquery to 1.4.2
  • remove standard deviation for votes
Location:
extensions/simple_themes/simple
Files:
1 added
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/content.css

    r13547 r13548  
    2222#menuswitcher {
    2323  cursor: pointer;
     24}
     25
     26/* hide javascript stuff */
     27
     28.js #menubar, .js #theComments > div {
     29  display: none;
    2430}
    2531
     
    5056  padding: 0;
    5157  display: inline;
     58}
     59#subcontent h2 {
     60  margin: 0 0 1em;
    5261}
    5362
     
    150159  float: left;
    151160  width: 15%;
    152   display: none;
    153161}
    154162
     
    347355}
    348356
    349 #theComments > div {
    350   display: none;
    351 }
    352 
    353357#commentAdd, #commentList {
    354358  width: 48%;
     
    394398}
    395399
     400/* calendar */
     401
     402.calendarViews, .calendarCalBar {
     403  margin: 1em 0;
     404}
     405
     406.calCalHead {
     407  font-size: 1.1em;
     408  font-weight: bold;
     409}
     410
     411.calMonth {
     412  width: 80%;
     413  margin: 1em auto;
     414}
     415
     416.calendarBar {
     417  text-align: center;
     418}
     419.calendarBar span {
     420  margin: 0 0.5em;
     421}
     422
    396423/* Footer */
    397424
  • extensions/simple_themes/simple/template/footer.tpl

    r13547 r13548  
    1717  {/if}
    1818</div> <!-- the_page -->
    19 <script type="text/javascript" src="{$ROOT_URL}themes/{$themeconf.theme_dir}/scripts.js"></script>
    20 <script type="text/javascript" src="{$ROOT_URL}themes/{$themeconf.theme_dir}/js/jquery-1.3.2.min.js"></script>
     19<script type="text/javascript" src="{$ROOT_URL}themes/{$themeconf.theme_dir}/js/jquery-1.4.2.min.js"></script>
    2120<script type="text/javascript" src="{$ROOT_URL}themes/{$themeconf.theme_dir}/js/scripts.js"></script>
    2221{if isset($debug.QUERIES_LIST)}
  • extensions/simple_themes/simple/template/header.tpl

    r13547 r13548  
    4141  <link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed (images, comments)'|@translate}" href="{$U_FEED}">
    4242  {/if}
    43   <noscript><style type="text/css">
    44       {literal}#menubar {display: block;} #theComments div {display: block;}{/literal}
    45   </style></noscript>
    4643  {if not empty($head_elements)}
    4744    {foreach from=$head_elements item=elt}{$elt}
    4845    {/foreach}
    4946  {/if}
     47  <script type="text/javascript">
     48    document.documentElement.className = 'js';
     49  </script>
    5050</head>
    5151<body id="{$BODY_ID}">
  • extensions/simple_themes/simple/template/index.tpl

    r13547 r13548  
    1818  {$MENUBAR}
    1919  <div id="subcontent">
     20    {if isset($chronology.TITLE) }
     21    <h2>{$chronology.TITLE}</h2>
     22    {/if}
     23    {if isset($chronology_views) }
     24    {if isset($U_MODE_POSTED) }
     25    <a href="{$U_MODE_POSTED}" rel="nofollow">{'display a calendar by posted date'|@translate}</a>
     26    {/if}
     27    {if isset($U_MODE_CREATED) }
     28    <a href="{$U_MODE_CREATED}" rel="nofollow">{'display a calendar by creation date'|@translate}</a>
     29    {/if}
     30    <div class="calendarViews">{'View'|@translate}:
     31    <select onchange="document.location = this.options[this.selectedIndex].value;">
     32      {foreach from=$chronology_views item=view}
     33      <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
     34      {/foreach}
     35    </select>
     36    </div>
     37    {/if}
     38
    2039    {if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    2140    {if !empty($category_search_results) }
     
    4059    </p>
    4160    {/if}
     61    {if isset($FILE_CHRONOLOGY_VIEW) }
     62      {include file=$FILE_CHRONOLOGY_VIEW}
     63    {/if}
     64
    4265    {if !empty($CATEGORIES) }{$CATEGORIES}{/if}
    4366    {if !empty($THUMBNAILS) }<div id="thumbnails">{$THUMBNAILS}</div>{/if}
     
    4871  {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
    4972</div> <!-- content -->
     73
  • extensions/simple_themes/simple/template/picture.tpl

    r13546 r13548  
    22  <div class="imageNumber">{$PHOTO}</div>
    33    {$SECTION_TITLE}
    4   » <h2>{$current.TITLE}</h2>
     4    {$LEVEL_SEPARATOR} <h2>{$current.TITLE}</h2>
    55</div> <!-- imageHeaderBar -->
    66{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
     
    4747        <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li>
    4848        {/if}
     49        {if isset($U_METADATA) }
     50        <li><a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow">{'Show file metadata'|@translate}</a></li>
     51        {/if}
     52        {if isset($current.U_DOWNLOAD) }
     53        <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li>
     54        {/if}
    4955        {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
     56        {if isset($favorite) }
     57        <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{$favorite.FAVORITE_HINT}</a></li>
     58        {/if}
    5059        {if !empty($U_SET_AS_REPRESENTATIVE) }
    5160        <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}">{'representative'|@translate}</a></li>
     
    5463        <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'Modify information'|@translate}</a></li>
    5564        {/if}
    56         <li><a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow">{'Show file metadata'|@translate}</a></li>
    5765      </ul>
    5866    </div>
     
    101109        <dd>{$INFO_VISITS}</dd>
    102110                 {/if}
    103         {if isset($rate_summary)}
     111        {if $display_info.average_rate and isset($rate_summary) }
    104112        <dt>{'Average rate'|@translate}</dt>
    105113        <dd id="ratingSummary">
    106114          {if $rate_summary.count}
    107           {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate }
    108           {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) }
     115          {assign var='rate_text' value='%.2f (rated %d times)'|@translate }
     116          {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
    109117          {else}
    110118          {'no rate'|@translate}
     
    131139                updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}",
    132140                updateRateElement: document.getElementById("updateRate"),
    133                 ratingSummaryText: "{'%.2f (rated %d times, standard deviation = %.2f)'|@translate|@escape:'javascript'}",
     141                ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}",
    134142                ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    135143              </script>
  • extensions/simple_themes/simple/theme.css

    r13547 r13548  
    150150}
    151151
     152
     153/* calendar */
     154
     155.calMonth td {
     156  background-color: #363636;
     157  text-align: center;
     158}
     159
     160.calImg {
     161  text-align: center;
     162}
     163.calImg img {
     164  height: 80px;
     165}
     166
     167.calBackDate, .calForeDate {
     168  display: none;
     169}
     170
    152171/* tags */
    153172
Note: See TracChangeset for help on using the changeset viewer.