forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: rybosom on December 19, 2004, 01:33:43 am

Title: themes :: hardwired -> not complete!
Post by: rybosom on December 19, 2004, 01:33:43 am
in cpg132\themes\hardwired\theme.php

Code: [Select]
function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;
    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
    user_save_profile();
    $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}' => $CONFIG['gallery_description'],
        '{MAIN_MENU1}' => theme_main_menu1(),
        '{MAIN_MENU2}' => theme_main_menu2(),
        '{ADMIN_MENU}' => theme_admin_mode_menu()
        );
    echo template_eval($template_header, $template_vars);
}

'{GAL_NAME}' => $CONFIG['gallery_name'], work but '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'], isn't!!!
why and how to change it to show gallery_description too
Title: Re: themes :: hardwired -> not complete!
Post by: donnoman on December 19, 2004, 02:15:23 am
The token
Code: [Select]
{GAL_DESCRIPTION} needs to appear somewhere in the template.html between <body> and </body>.

To date, this token hasn't been added to the theme. It's a matter of choice by the theme's author.

You can add it yourself by placing the token as suggested above, where you would like the gallery description to be rendered.

Title: Re: themes :: hardwired -> not complete!
Post by: rybosom on December 19, 2004, 10:38:13 am
thanks, it works!!!  ;D