Ignore:
Timestamp:
Mar 14, 2012, 2:28:10 PM (12 years ago)
Author:
plg
Message:

import theme Simple version 2.1

  • bugfix for user's profile - use default profile_content.tpl
  • child themes do not need to have content.css
  • use local_head.tpl
  • correct order of thumbnails & show copyright on picture page
  • use default as parent theme & change theme URI
  • add quicksearch and style input, textarea, ...
  • add login link in the footer
Location:
extensions/simple_themes/simple
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/.hg_archival.txt

    r13546 r13547  
    11repo: ad69c371136d0c4e387cc14fa610d6cbde0fb0e5
    2 node: 967e328424de5ac22882ee791b601eafef7a9107
     2node: b69b7514684b64cff02057f5be00a8f42887dde6
    33branch: Simple_Grey
    4 latesttag: 2.0
     4latesttag: 2.1
    55latesttagdistance: 1
  • extensions/simple_themes/simple/.hgtags

    r13546 r13547  
    22a4ac267f8391f8cf886de538119a5d3fc58d041d 1.3
    33387248a694a7eaa7f05496717ed426ff9991dc1b 2.0
     4f64aa8ecba6c77aa2ed71bc7b207d94b26cd3466 2.1
  • extensions/simple_themes/simple/README.markdown

    r13546 r13547  
    1 Simple theme for Piwigo
    2 =======================
     1Simple grey theme for Piwigo
     2============================
    33
    4 *Simple* is a theme for *Piwigo* gallery software.
     4*Simple grey* is a theme for *Piwigo* gallery software.
    55
    66This theme was inspired by *gally / Graphite* theme for Piwigo, and *Carbon*
     
    2727  extract it in ``your-gallery/template/``.
    2828
     29Changelog
     30---------
     31
     32### version 2.1
     33
     34- bugfix for user's profile - use default `profile_content.tpl`
     35- child themes do not need to have `content.css`
     36- use `local_head.tpl`
     37- correct order of thumbnails & show copyright on picture page
     38- use default as parent theme & change theme URI
     39- add quicksearch and style input, textarea, ...
     40- add login link in the footer
     41
     42### version 2.0
     43
     44- adapt the theme for Piwigo 2.1
     45- add Readme
     46- tweak for plugins adding icons in .titrePage (piwishak, addthis, ...)
  • extensions/simple_themes/simple/content.css

    r13546 r13547  
    4343.titrePage {
    4444  margin: 1em 0;
     45  line-height: 1.5em;
    4546}
    4647
     
    128129
    129130.property {
    130   display: block;
    131   min-width: 275px;
    132   float: left;
     131  display: inline-block;
     132  width: 180px;
     133}
     134
     135#quicksearch {
     136  margin: 1em 0 0;
     137}
     138#quicksearch p {
     139  margin: 0;
     140}
     141#quicksearch #q {
     142  width: 150px;
    133143}
    134144
     
    175185  margin: 0;
    176186  padding: 0;
    177   float: right;
     187  float: left;
    178188  width: 200px;
    179189  height: 200px;
     
    244254/* pictures pages */
    245255
    246 #thePicturePage #theHeader, #thePicturePage #copyright {
     256#thePicturePage #theHeader {
    247257  display: none;
    248258}
    249259#thePicturePage #content {
    250   margin-bottom: 1em;
    251260  padding: 1em 0 0;
    252261}
  • extensions/simple_themes/simple/template/footer.tpl

    r13546 r13547  
    55    {'Powered by'|@translate} <a href="{$PHPWG_URL}">Piwigo</a>
    66     - <a href="{$themeconf.url}">{$themeconf.name}</a>
     7     - <a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a>
    78    {if isset($CONTACT_MAIL)}
    89    - {'Contact'|@translate}
  • extensions/simple_themes/simple/template/header.tpl

    r13546 r13547  
    44  <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
    55  <meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
    6 {if isset($meta_ref) } 
     6{if isset($meta_ref) }
    77{if isset($INFO_AUTHOR)}
    88<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
     
    2727  {if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
    2828
     29  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/simple/content.css">
    2930  {foreach from=$themes item=theme}
    3031  {if $theme.load_css}
    31   <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/content.css">
    3232  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
    3333  {/if}
  • extensions/simple_themes/simple/template/index.tpl

    r13546 r13547  
    4646  </div> <!-- subContent -->
    4747  <div style="clear: both;"></div>
     48  {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
    4849</div> <!-- content -->
    49 {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
  • extensions/simple_themes/simple/template/menubar_menu.tpl

    r13546 r13547  
    11<h3>{'Menu'|@translate}</h3>
     2{*if isset($block->data.qsearch) and  $block->data.qsearch==true*}
     3<form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch">
     4  <p><input type="text" name="q" id="q" value="{'Quick search'|@translate|@escape:'javascript'}" onfocus="value='';"></p>
     5</form>
     6{*/if*}
    27<ul>
    38{foreach from=$block->data item=link}
  • extensions/simple_themes/simple/template/profile.tpl

    r13546 r13547  
    1515  </div>
    1616  {/if}
    17   <form method="post" name="profile" action="{$F_ACTION}" id="profile" class="properties">
    18     <fieldset>
    19       <legend>{'Registration'|@translate}</legend>
    20       <input type="hidden" name="redirect" value="{$REDIRECT}" />
    21       <ul>
    22         <li>
    23           <div class="property">{'Username'|@translate}</div>
    24           {$USERNAME}
    25         </li>
    26         {if not $SPECIAL_USER} {* can modify password + email*}
    27         <li>
    28           <div class="property">
    29             <label for="mail_address">{'Email address'|@translate}</label>
    30           </div>
    31           <input type="text" name="mail_address" id="mail_address" value="{$EMAIL}" size=35>
    32         </li>
    33         {if not $IN_ADMIN} {* admins do not need old password*}
    34         <li>
    35           <div class="property">
    36             <label for="password">{'Password'|@translate}</label>
    37           </div>
    38           <input type="password" name="password" id="password" value="">
    39         </li>
    40         {/if}
    41         <li>
    42           <div class="property">
    43             <label for="use_new_pwd">{'New password'|@translate}</label>
    44           </div>
    45           <input type="password" name="use_new_pwd" id="use_new_pwd" value="">
    46         </li>
    47         <li>
    48           <div class="property">
    49             <label for="passwordConf">{'Confirm Password'|@translate}</label>
    50           </div>
    51           <input type="password" name="passwordConf" id="passwordConf" value="">
    52         </li>
    53       </ul>
    54       {/if}
    55     </fieldset>
    56     <fieldset>
    57       <legend>{'Preferences'|@translate}</legend>
    58       <ul>
    59         <li>
    60           <div class="property">
    61             <label for="nb_image_line">{'Number of images per row'|@translate}</label>
    62           </div>
    63           <input type="text" size="3" maxlength="2" name="nb_image_line" id="nb_image_line" value="{$NB_IMAGE_LINE}">
    64         </li>
    65         <li>
    66           <div class="property">
    67             <label for="nb_line_page">{'Number of rows per page'|@translate}</label>
    68           </div>
    69           <input type="text" size="3" maxlength="2" name="nb_line_page" id="nb_line_page" value="{$NB_ROW_PAGE}" >
    70         </li>
    71         <li>
    72           <div class="property">
    73             <label>{'Interface theme'|@translate}</label>
    74           </div>
    75           {html_options name=template options=$template_options selected=$template_selection}
    76         </li>
    77         <li>
    78           <div class="property">
    79             <label>{'Language'|@translate}</label>
    80           </div>
    81           {html_options name=language options=$language_options selected=$language_selection}
    82         </li>
    83         <li>
    84           <div class="property">
    85             <label for="recent_period">{'Recent period'|@translate}</label>
    86           </div>
    87           <input type="text" size="3" maxlength="2" name="recent_period" id="recent_period" value="{$RECENT_PERIOD}">
    88         </li>
    89         <li>
    90           <div class="property">{'Expand all categories'|@translate}</div>
    91           {html_radios name='expand' options=$radio_options selected=$EXPAND}
    92         </li>
    93         <li>
    94           <div class="property">{'Show number of comments'|@translate}</div>
    95           {html_radios name='show_nb_comments' options=$radio_options selected=$NB_COMMENTS}
    96         </li>
    97         <li>
    98           <div class="property">{'Show number of hits'|@translate}</div>
    99           {html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS}
    100         </li>
    101         <li>
    102           <div class="property">
    103             <label for="maxwidth">{'Maximum width of the pictures'|@translate}</label>
    104           </div>
    105           <input type="text" size="4" maxlength="4" name="maxwidth" id="maxwidth" value="{$MAXWIDTH}">
    106         </li>
    107         <li>
    108           <div class="property">
    109             <label for="maxheight">{'Maximum height of the pictures'|@translate}</label>
    110           </div>
    111           <input type="text" size="4" maxlength="4" name="maxheight" id="maxheight" value="{$MAXHEIGHT}">
    112         </li>
    113       </ul>
    114     </fieldset>
    115     <p class="bottomButtons">
    116       <input class="submit" type="submit" name="validate" value="{'Submit'|@translate}">
    117       <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
    118     </p>
    119   </form>
     17{$PROFILE_CONTENT}
    12018</div> <!-- content -->
  • extensions/simple_themes/simple/template/slideshow.tpl

    r13546 r13547  
     1{html_head}
     2{literal}
     3<style>#copyright {display: none;}</style>
     4{/literal}
     5{/html_head}
    16<div id="slideshow" class="titrePage">
    27  <div class="imageNumber">{$PHOTO}</div>
  • extensions/simple_themes/simple/theme.css

    r13546 r13547  
    8383/* inputs */
    8484
    85 input[type="text"], input[type="password"], select, textarea, file {
    86  background:#f0f0f0;
    87  color: #333;
    88  border: 1px solid;
    89  margin: 0;
     85input, select, textarea {
     86  background-color: #666;
     87  border: 1px solid #999;
     88  color: #F0F0F0;
     89}
     90
     91input[type="submit"], input[type="reset"] {
     92  background-color: #3f3f3f;
     93  border: 1px solid #606060;
     94  color: #999;
     95}
     96input[type="submit"]:hover, input[type="reset"]:hover {
     97  background-color: #666;
     98  border: 1px solid #999;
     99  color: #F0F0F0;
    90100}
    91101
     
    97107
    98108fieldset legend {
    99   background-color: #333;
    100109  padding: 0 3px;
     110}
     111
     112fieldset li {
     113  margin: 0.5em 0;
     114}
     115
     116#quicksearch #q {
     117  background-color: #3f3f3f;
     118  border: 1px solid #606060;
     119  color: #999;
    101120}
    102121
  • extensions/simple_themes/simple/themeconf.inc.php

    r13546 r13547  
    44Version: 2.0
    55Description: Simple Grey theme
    6 Theme URI: http://saimon.org/blog/pages/Theme-Simple-Grey-Piwigo
     6Theme URI: http://piwigo.org/ext/extension_view.php?eid=308
    77Author: Saïmon
    88Author URI: http://saimon.org/
     
    1010
    1111$themeconf = array(
    12   /* 'parent' => 'default', */
     12  'parent' => 'default',
     13  'load_parent_css' => false,
     14  'load_parent_local_head' => false,
    1315  'name' => 'simple-grey',
    1416  'theme_dir' => 'simple',
     
    1618  'admin_icon_dir' => 'themes/default/icon/admin',
    1719  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
     20  'local_head' => 'local_head.tpl',
    1821  'url' => 'http://saimon.org/blog/pages/Theme-Simple-Grey-Piwigo'
    1922);
Note: See TracChangeset for help on using the changeset viewer.