forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: antisa33 on September 07, 2006, 02:44:35 am

Title: php in template.html ?
Post by: antisa33 on September 07, 2006, 02:44:35 am
Hello
Is it possible to add some php code on the template.html ?
I need to add in my header this code :
Quote
<?=diff2jours(date(d),date(m),date(Y),25,12,2003);?>

i think i have to add a line here to call a function in theme.php but i am not able to make a function  :-[

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' ' . $section,
        '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => my_gal_description(),
        '{MAIN_MENU}' => theme_main_menu(),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),


Thanks
Title: Re: php in template.html ?
Post by: Sami on September 07, 2006, 06:59:57 am
Is it possible to add some php code on the template.html ?
No , You can't put PHP code under HTML file !

Use custom header instead
Title: Re: php in template.html ?
Post by: antisa33 on September 07, 2006, 03:35:30 pm
thanks