I'm trying to create my on theme for serendipity. The problem I have is that I want to remove the sidebar and instead have a page with the archive.
I'm trying to do this:
Code: Select all
<?php
$serendipity_directory = '../serendipity/';
$cwd = getcwd();
chdir($serendipity_directory);
define('S9Y_INCLUDE_PATH', $serendipity_directory);
include_once(S9Y_INCLUDE_PATH . 'serendipity_config.inc.php');
include_once(S9Y_INCLUDE_PATH . 'include/functions.inc.php');
include_once(S9Y_INCLUDE_PATH . 'include/plugin_api.inc.php');
include_once(S9Y_INCLUDE_PATH . 'include/plugin_internal.inc.php');
$serendipity['smarty_file'] = 'index.tpl';
$serendipity['smarty_raw_mode'] = false;
serendipity_smarty_init();
$serendipity['smarty']->assign(
array(
'leftSidebarElements' => serendipity_plugin_api::count_plugins('left'),
'rightSidebarElements' => serendipity_plugin_api::count_plugins('right')
)
);
chdir($cwd);
ob_start();
/* SERENDIPITY HOOK END */
?>
<?php include("plugins/serendipity_plugin_history/serendipity_plugin_history.php");
generate_content();
?>
<?php serendipity_smarty_shutdown($serendipity_directory); ?>
Code: Select all
Fatal error: Call to undefined function: generate_content() in /mnt/home/chorizo/public_html/archives/index.php on line 28