Changeset 8532


Ignore:
Timestamp:
Jan 8, 2011, 5:40:05 PM (9 years ago)
Author:
grum
Message:

Updated for Gally/Default 1.4.0

Location:
extensions/gally/gally-pink-wedding
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-pink-wedding/admin/maintain.inc.php

    r8191 r8532  
    11<?php
    22
    3 include_once(PHPWG_THEMES_PATH.'gally-default/admin/Conf.class.inc.php');
     3include_once(PHPWG_THEMES_PATH.'gally-default/admin/GallyDefault.class.inc.php');
    44
    55function theme_activate($id, $version, &$errors)
    66{
    7   $forcedToDefault=array(
    8     "imageCenterMode" => '',
    9     "imageCenterOffset" => '',
    10     "imageCenterTopMin" => '',
    11     "imageCenterTopBorder" => '',
    12     "interfaceAnimated" => '',
    13     "commentAnimated" => '',
    14     "animateDelay" => '',
    15     "marginContainer" => '',
    16     "paddingContainer" => '',
    17     "tabsAnimated" => '',
    18     "tabsHidden" => '',
    19     "tabsVisible" => '',
    20     "tabsPosition" => '',
    21     "commentRows" => '',
    22     "menuAnimated" => '',
    23     "menuWidth" => '',
    24     "menuMaxWidth" => '',
    25     "menuMSIEMaxWidth" => ''
    26     //"expandMenu" => '',
    27   );
    28   $configDefault = new Conf();
    29   $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-pink-wedding/conf/default.conf");
    30   $configDefault->read(false);
    31 
    32   $configLocal = new Conf();
    33   $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-pink-wedding/conf/local.conf");
    34   $configLocal->read(false);
    35 
    36   foreach($forcedToDefault as $key => $param)
    37   {
    38     $forcedToDefault[$key]=$configDefault->getConfValue($key);
    39   }
    40   $configLocal->setConf($forcedToDefault, false);
    41   $configLocal->write();
     7  $errors=GallyDefault::activate($id, $version, '1.4.0', $errors);
    428}
    439
    4410function theme_deactivate()
    4511{
    46 
     12  GallyDefault::deactivate();
    4713}
    4814
  • extensions/gally/gally-pink-wedding/conf/default.conf

    r8191 r8532  
    3535#     works well with FF2, FF3, Opera, Safari
    3636imageAutoScroll = "yes"
     37
     38# -- 1.3.1 --
     39# the 'imageSimulateHighRes' option can take theses values :
     40#   "yes" => if there is no high res file and if the image need scroll, the
     41#            template simulate an high res image managment
     42#   "no"  => don't simulate high res image
     43imageSimulateHighRes = "no"
    3744
    3845# The 'imageCenterMode' option can take theses values :
  • extensions/gally/gally-pink-wedding/css/theme.css

    r8191 r8532  
    66  file version: 1.0.0
    77  ------------------------------------------------------------------------------
    8   author: grum at grum.dnsalias.com
     8  author: grum at piwigo.org
    99  << May the Little SpaceFrog be with you >>
    1010  ------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.