1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

More menu_class.php work. menu parms added.

This commit is contained in:
CaMer0n
2009-08-16 23:58:33 +00:00
parent bfd64fc2a6
commit 455c5eca1b
10 changed files with 300 additions and 260 deletions

View File

@@ -1,57 +1,65 @@
<?php
// Dummy Theme Configuration File.
function _blank_process()
class theme__blank
{
global $theme_pref;
$theme_pref['example'] = $_POST['_blank_example'];
$theme_pref['example2'] = $_POST['_blank_example2'];
save_prefs('theme');
}
var $themePref;
function process()
{
$theme_pref = array();
$pref = e107::getConfig();
$theme_pref['example'] = $_POST['_blank_example'];
$theme_pref['example2'] = $_POST['_blank_example2'];
// print_a($theme_pref);
$pref->add('sitetheme_pref', $theme_pref);
print_a($pref->get('sitetheme_pref'));
var_dump($pref->add('sitetheme_pref', $theme_pref)->save(FALSE));
// save_prefs($pref['sitetheme_pref']);
}
function config()
{
$var[0]['caption'] = "Sample configuration field";
$var[0]['html'] = "<input type='text' name='_blank_example' value='".e107::getThemePref('example')."' />";
$var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='_blank_example2' value='".e107::getThemePref('example2')."' />";
var_dump(e107::getThemePref());
return $var;
}
function help()
{
return "
<div class='block-text' style='text-align:left;margin-left:auto;margin-right:auto;width:80%'>
function _blank_config()
{
global $theme_pref;
$var[0]['caption'] = "Sample configuration field";
$var[0]['html'] = "<input type='text' name='_blank_example' value='".$theme_pref['_blank_example']."' />";
$var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='_blank_example2' value='".$theme_pref['_blank_example2']."' />";
return $var;
}
function _blank_help()
{
return "
<div class='block-text' style='text-align:left;margin-left:auto;margin-right:auto;width:80%'>
<a href='http://e107.org'>All the HTML that you want</a>.<br /><br />
<a href='http://e107.org'>All the HTML that you want</a>.<br /><br />
Mauris sit amet arcu arcu. Curabitur ultrices, felis ac sagittis elementum, justo dolor posuere eros, eu sollicitudin eros mi nec leo. Quisque sapien justo, ultricies at sollicitudin non; rhoncus vel nisi. Fusce egestas orci a diam vestibulum ut gravida ipsum tristique. Nullam et turpis nibh; eu dapibus ligula. Fusce ornare massa ac ante tincidunt euismod varius augue volutpat? Suspendisse potenti. Morbi eget velit in nulla tristique ultricies suscipit consequat ligula. Integer quis arcu vel sem scelerisque gravida vitae vel tortor! Suspendisse tincidunt scelerisque nibh, quis consectetur mauris varius sit amet! Pellentesque et urna vel est rutrum viverra?
Mauris sit amet arcu arcu. Curabitur ultrices, felis ac sagittis elementum, justo dolor posuere eros, eu sollicitudin eros mi nec leo. Quisque sapien justo, ultricies at sollicitudin non; rhoncus vel nisi. Fusce egestas orci a diam vestibulum ut gravida ipsum tristique. Nullam et turpis nibh; eu dapibus ligula. Fusce ornare massa ac ante tincidunt euismod varius augue volutpat? Suspendisse potenti. Morbi eget velit in nulla tristique ultricies suscipit consequat ligula. Integer quis arcu vel sem scelerisque gravida vitae vel tortor! Suspendisse tincidunt scelerisque nibh, quis consectetur mauris varius sit amet! Pellentesque et urna vel est rutrum viverra?
<br /><br />
<ul>
<li>Curabitur ultrices</li>
<li>Ollicitudin eros</li>
<li>Felis ac sagittis</li>
<li>Quisque sapien</li>
</ul>
<br /><br />
<ul>
<li>Curabitur ultrices</li>
<li>Ollicitudin eros</li>
<li>Felis ac sagittis</li>
<li>Quisque sapien</li>
</ul>
</div>
</div>
";
";
}
}

View File

@@ -1,31 +1,32 @@
<?php
// Dummy Theme Configuration File.
function e107v4a_process()
class theme_e107v4a
{
global $theme_pref;
$theme_pref['example'] = $_POST['e1074a_example'];
$theme_pref['example2'] = $_POST['e1074a_example2'];
save_prefs('theme');
return "Custom Settings Saved Successfully";
function process()
{
global $theme_pref;
$theme_pref['example'] = $_POST['e1074a_example'];
$theme_pref['example2'] = $_POST['e1074a_example2'];
save_prefs('theme');
return "Custom Settings Saved Successfully";
}
function config()
{
global $theme_pref;
$var[0]['caption'] = "Sample configuration field";
$var[0]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example']."' />";
$var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example2']."' />";
return $var;
}
}
function e107v4a_config()
{
global $theme_pref;
$var[0]['caption'] = "Sample configuration field";
$var[0]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example']."' />";
$var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example2']."' />";
return $var;
}
?>

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/e107v4a/theme.php,v $
| $Revision: 1.5 $
| $Date: 2009-08-14 22:31:09 $
| $Revision: 1.6 $
| $Date: 2009-08-16 23:58:33 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -74,6 +74,7 @@ $HEADER['3_column'] =
$FOOTER['3_column'] =
"</td><td style='width:20%; vertical-align:top'>
{PLUGIN=user_menu/usertheme_menu}
{SETSTYLE=rightmenu}
{MENU=2}
</td></tr>
@@ -254,6 +255,7 @@ define(LINKALIGN, "left");
function tablestyle($caption, $text,$id, $dataArray)
{
// global $style; // Not needed - see $dataArray;
// print_a($dataArray);
echo "