Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: themes :: hardwired -> not complete!  (Read 2813 times)

0 Members and 1 Guest are viewing this topic.

rybosom

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
themes :: hardwired -> not complete!
« 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
« Last Edit: December 19, 2004, 11:29:04 am by TranzNDance »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: themes :: hardwired -> not complete!
« Reply #1 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.

Logged

rybosom

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
Re: themes :: hardwired -> not complete!
« Reply #2 on: December 19, 2004, 10:38:13 am »

thanks, it works!!!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.