1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

example theme configuration file.

This commit is contained in:
CaMer0n
2009-07-06 06:00:49 +00:00
parent 14c781b772
commit 4bd58644f1

View File

@@ -0,0 +1,31 @@
<?php
// Dummy Theme Configuration File.
function e107v4a_process()
{
global $theme_pref;
$theme_pref['something'] = $_POST['e1074a_something'];
$theme_pref['something2'] = $_POST['e1074a_something2'];
save_prefs('theme');
return "Custom Settings Saved Successfully";
}
function e107v4a_config()
{
global $theme_pref;
$var[0]['caption'] = "This is a sample theme configuration page";
$var[0]['html'] = "<input type='text' name='e1074a_something' value='".$theme_pref['something']."' />";
$var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='e1074a_something2' value='".$theme_pref['something2']."' />";
return $var;
}
?>