Changeset 5449


Ignore:
Timestamp:
Mar 29, 2010, 6:52:45 PM (14 years ago)
Author:
patdenice
Message:

2.1 version with configuration page.

Location:
extensions/montblancxl
Files:
23 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/montblancxl/icon/index.php

    r3306 r5449  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     3// | Piwigo - a PHP based picture gallery                                  |
    64// +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
     5// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
     6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
     7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    118// +-----------------------------------------------------------------------+
    129// | This program is free software; you can redistribute it and/or modify  |
  • extensions/montblancxl/mail-css.tpl

    r3306 r5449  
    22/* for MontBlanc/MontBlancXL */
    33
    4 {literal}
    5 * { margin: 0; padding: 0; border: 0; }
    6 body {
     4* {ldelim} margin: 0; padding: 0; border: 0; }
     5
     6body {ldelim}
    77  font-size:0.7em; font-family: Verdana,Arial,Helvetica,sans-serif; color: black;
    88  background: white;
    99}
    10 #the_page {
    11   background: white
    12   url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/background.jpg)
    13   repeat-y left top;
    14   position: absolute; left: 0px; top: 16px; width: 800px; }
    15 .content { background: transparent
    16   url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/header.jpg)
    17   no-repeat left top;
    18   padding-top: 200px; width: 800px; }
    19 #copyright {
    20   background: transparent
    21   url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/footer.jpg)
    22   no-repeat left bottom; width: 800px; }
    23 h2 {color:#06c;margin-top:1em;margin-left:-0.5em;}
    24 h2:before {content: "»»»";}
    25 img { margin:16px;padding:15px;border:1px solid #69c;background-color:#eef;-moz-border-radius:4px; border-radius:4px 4px; }
    26 img:hover {border: 1px solid #c60; -moz-border-radius:4px; border-radius:4px 4px; }
    27 a { color: #06c; background: transparent; }
    28 {/literal}
     10#the_page {ldelim}
     11  /* background: transparent url({$ROOT_URL}themes/montblancxl/img/header.jpg) no-repeat left top; */
     12  position: absolute; left: 0px; top: 16px; width: 800px;
     13}
     14
     15.content {ldelim}
     16  /* background: white url({$ROOT_URL}themes/montblancxl/img/background.jpg) repeat-y left top; */
     17  margin-top: 200px;
     18  width: 800px;
     19}
     20
     21#copyright {ldelim}
     22  /* background: transparent url({$ROOT_URL}themes/montblancxl/img/footer.jpg) no-repeat left bottom; */
     23  width: 800px;
     24}
     25
     26h2 {ldelim} color:#06c;margin-top:1em;margin-left:-0.5em; }
     27h2:before {ldelim} content: "»»»";}
     28img {ldelim} margin:16px;padding:15px;border:1px solid #69c;background-color:#eef;-moz-border-radius:4px; border-radius:4px 4px; }
     29img:hover {ldelim} border: 1px solid #c60; -moz-border-radius:4px; border-radius:4px 4px; }
     30a {ldelim} color: #06c; background: transparent; }
  • extensions/montblancxl/theme.css

    r3609 r5449  
    1 @import url(menu.css);
     1/* @import url(menu.css); */
    22
    33* { margin: 0; padding: 0; border: 0; }
     
    1717ul li { list-style: none; }
    1818
    19 a, a:link { color:#0066CC; text-decoration: none; border:0; }
     19a, a:link, a:hover { color:#0066CC; text-decoration: none; border:0 !important; }
    2020a:hover { text-decoration: none; border-bottom:1px solid #0066CC;}
    2121/*a:visited { color:#333333;}*/
     
    7777}
    7878
    79 /* Spécifique à la page des images */
    80 
    81 #thePicturePage #theHeader {
    82         background: transparent url(img/headerpic.jpg) no-repeat center bottom;
    83         height: 15px;
    84 }
    85 #thePicturePage #theHeader h1 { display: none; }
    86 
    8779/*=========================================================================================*/
    8880
     
    202194
    203195/* Filter button */
    204 #menubar .button { position: absolute; left:95% }
     196#menubar .button { position: absolute; left:95%;}
    205197#menubar P, #menubar P.totalImages{ clear: both; margin: 0; text-align: center; padding: 0.2em }
    206198
     
    395387#copyright a:link, #copyright a:visited { text-decoration: underline; color: #000; }
    396388#copyright a:hover { text-decoration: none; color: #000; border: 0; }
     389
     390/* About page */
     391#piwigoAbout UL { margin: 15px 0; }
  • extensions/montblancxl/themeconf.inc.php

    r3609 r5449  
    11<?php
     2/*
     3Theme Name: Montblanc XL
     4Version: 2.1.a
     5Description: Nature theme
     6Theme URI: http://piwigo.org/ext/extension_view.php?eid=133
     7Author: P@t
     8Author URI: http://www.gauchon.fr
     9*/
     10
    211$themeconf = array(
    3   'template' => 'yoga',
    4   'template_dir' => 'template/yoga',
    5   'theme' => 'montblancxl',
    6   'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/theme/montblancxl/icon',
    7   'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/',
    8   'local_head' => '<!--[if lt IE 7]>
    9   <link rel="stylesheet" type="text/css" href="'.PHPWG_ROOT_PATH.'template/yoga/theme/montblancxl/fix-ie5-ie6.css">
    10 <![endif]-->'
     12  'parent'      => 'default',
     13  'icon_dir'    => 'themes/MontblancXL/icon',
     14  'local_head'  => 'local_head.tpl',
    1115);
    12 $lang['Theme: montblancxl'] = 'Thème MontBlancXL By P@t.';
     16
     17
     18add_event_handler('loc_begin_page_header', 'set_mbxl_header');
     19
     20function set_mbxl_header()
     21{
     22  global $page, $conf, $template;
     23
     24  $config = unserialize($conf['MontblancXL']);
     25
     26  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
     27  {
     28    $header = isset($page['category']) ? $config['categories'] : $config['home'];
     29  }
     30  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
     31  {
     32    $header = $config['picture'];
     33  }
     34  else
     35  {
     36    $header = $config['other'];
     37  }
     38
     39  $template->assign('display_mbxl_banner', $header);
     40}
    1341
    1442?>
Note: See TracChangeset for help on using the changeset viewer.