forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: ve.ru on October 30, 2004, 04:20:10 pm

Title: costum php Code in theme.php
Post by: ve.ru on October 30, 2004, 04:20:10 pm
Hi,

is there a way to include custom php code in theme.php, including echo and print statements?

thanks,
verena
Title: Re: costum php Code in theme.php
Post by: Joachim Müller on October 31, 2004, 07:41:31 am
yes, you're free to add code anywhere. Without more details, you can't expect a ready to copy'n paste answer, as it depends on what you want to insert and where it is suppossed to appear. You're probably looking for a way to add a custom header/footer, so I suggest you take a look into http://forum.coppermine-gallery.net/index.php?topic=9863.0

Joachim
Title: Re: costum php Code in theme.php
Post by: ve.ru on November 02, 2004, 11:43:41 pm
Thanks for your hint, but  was looking for something else. I wanted to change the category list and tried to add some php code to this part:
Code: [Select]
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="*" class="tableh1"></td>
        </tr>
<!-- END header -->

but php isn't interpreted in this part of the template. But I found a way to edit
Code: [Select]
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)to get the categories in columns.

verena