Rev | Line | |
---|
[6471] | 1 | <?php |
---|
| 2 | |
---|
[7337] | 3 | include_once(PHPWG_THEMES_PATH.'gally-default/admin/Conf.class.inc.php'); |
---|
| 4 | |
---|
| 5 | |
---|
[6471] | 6 | function theme_activate($id, $version, &$errors) |
---|
| 7 | { |
---|
[7373] | 8 | $forcedToDefault=array( |
---|
| 9 | "imageCenterMode" => '', |
---|
| 10 | "imageCenterOffset" => '', |
---|
| 11 | "imageCenterTopMin" => '', |
---|
| 12 | "imageCenterTopBorder" => '', |
---|
| 13 | "interfaceAnimated" => '', |
---|
| 14 | "commentAnimated" => '', |
---|
| 15 | "animateDelay" => '', |
---|
| 16 | "marginContainer" => '', |
---|
| 17 | "paddingContainer" => '', |
---|
| 18 | "tabsAnimated" => '', |
---|
| 19 | "tabsHidden" => '', |
---|
| 20 | "tabsVisible" => '', |
---|
| 21 | "tabsPosition" => '', |
---|
| 22 | "commentRows" => '', |
---|
| 23 | "menuAnimated" => '', |
---|
| 24 | "menuWidth" => '', |
---|
| 25 | "menuMaxWidth" => '', |
---|
| 26 | "menuMSIEMaxWidth" => '', |
---|
| 27 | "expandMenu" => '', |
---|
| 28 | ); |
---|
| 29 | $configDefault = new Conf(); |
---|
| 30 | $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-cuise/conf/default.conf"); |
---|
| 31 | $configDefault->read(false); |
---|
| 32 | |
---|
| 33 | $configLocal = new Conf(); |
---|
| 34 | $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-cuise/conf/local.conf"); |
---|
| 35 | $configLocal->read(false); |
---|
| 36 | |
---|
| 37 | foreach($forcedToDefault as $key => $param) |
---|
| 38 | { |
---|
| 39 | $forcedToDefault[$key]=$configDefault->getConfValue($key); |
---|
| 40 | } |
---|
| 41 | $configLocal->setConf($forcedToDefault, false); |
---|
| 42 | $configLocal->write(); |
---|
[6471] | 43 | } |
---|
| 44 | |
---|
| 45 | function theme_deactivate() |
---|
| 46 | { |
---|
| 47 | |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.