[geeklog-cvs] geeklog-1.3/public_html/admin/plugins/staticpages index.php,1.35,1.36
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Aug 8 04:56:00 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages
In directory www:/tmp/cvs-serv26321/public_html/admin/plugins/staticpages
Modified Files:
index.php
Log Message:
The plugin now checks for template files in the current theme's directory before falling back to the default template files
Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages/index.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** index.php 2 Aug 2004 18:38:52 -0000 1.35
--- index.php 8 Aug 2004 08:55:58 -0000 1.36
***************
*** 86,91 ****
$retval .= $error . '<br><br>';
} else {
! $sp_template = new Template($_CONF['path'] . 'plugins/staticpages/templates/admin');
! if (isset ($_CONF['advanced_editor']) && ($_CONF['advanced_editor'] == 1) && file_exists ($_CONF['path'] . 'plugins/staticpages/templates/admin/editor_advanced.thtml')) {
$sp_template->set_file ('form', 'editor_advanced.thtml');
} else {
--- 86,92 ----
$retval .= $error . '<br><br>';
} else {
! $template_path = staticpages_templatePath ('admin');
! $sp_template = new Template ($template_path);
! if (isset ($_CONF['advanced_editor']) && ($_CONF['advanced_editor'] == 1) && file_exists ($template_path . '/editor_advanced.thtml')) {
$sp_template->set_file ('form', 'editor_advanced.thtml');
} else {
***************
*** 350,354 ****
$retval = '';
! $sp_templates = new Template($_CONF['path'] . '/plugins/staticpages/templates/admin');
$sp_templates->set_file(array('list'=>'list.thtml','row'=>'row.thtml'));
$sp_templates->set_var('site_url', $_CONF['site_url']);
--- 351,356 ----
$retval = '';
! $template_path = staticpages_templatePath ('admin');
! $sp_templates = new Template ($template_path);
$sp_templates->set_file(array('list'=>'list.thtml','row'=>'row.thtml'));
$sp_templates->set_var('site_url', $_CONF['site_url']);
More information about the geeklog-cvs
mailing list