mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
bug:2848
added two options for the slideshow ToDo lang var git-svn-id: http://piwigo.org/svn/trunk@23718 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
function theme_activate($id, $version, &$errors)
|
||||
{
|
||||
global $prefixeTable, $conf;
|
||||
|
||||
if (!isset($conf['smartpocket']))
|
||||
{
|
||||
$config = array(
|
||||
'loop' => true,//true - false
|
||||
'autohide' => 5000,//5000 - 0
|
||||
);
|
||||
|
||||
$query = "
|
||||
INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
|
||||
VALUES ('smartpocket' , '".pwg_db_real_escape_string(serialize($config))."' , 'loop#autohide');";
|
||||
pwg_query($query);
|
||||
}
|
||||
}
|
||||
|
||||
function theme_delete()
|
||||
{
|
||||
global $prefixeTable;
|
||||
|
||||
$query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smartpocket" ;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user