Changeset 12008


Ignore:
Timestamp:
Aug 30, 2011, 10:24:42 AM (9 years ago)
Author:
plg
Message:

feature 2420 added: automatically use the gallery title in the page banner.
Just write %gallery_title% in the page banner (this is written by default).

The default gallery title and tagline are now localized.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/page_header.php

    r11368 r12008  
    3636
    3737    'PAGE_BANNER' =>
    38       trigger_event('render_page_banner',
    39         isset($page['page_banner']) ?
    40           $page['page_banner'] : $conf['page_banner']),
     38      trigger_event(
     39        'render_page_banner',
     40        str_replace(
     41          '%gallery_title%',
     42          $conf['gallery_title'],
     43          isset($page['page_banner']) ? $page['page_banner'] : $conf['page_banner']
     44          )
     45        ),
    4146
    4247    'BODY_ID' =>
  • trunk/install.php

    r11511 r12008  
    341341
    342342    conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION));
     343    conf_update_param('gallery_title', l10n('Just another Piwigo gallery'));
     344    conf_update_param('page_banner', '<h1>%gallery_title%</h1>'."\n\n<p>".l10n('Welcome to my photo gallery').'</p>');
    343345
    344346    // fill languages table
  • trunk/install/config.sql

    r11987 r12008  
    1010INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_comment_deletion','false','Send an email to the administrators when a comment is deleted');
    1111INSERT INTO piwigo_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users');
    12 INSERT INTO piwigo_config (param,value,comment) VALUES ('gallery_title','Piwigo demonstration site','Title at top of each page and for RSS feed');
     12INSERT INTO piwigo_config (param,value,comment) VALUES ('gallery_title','','Title at top of each page and for RSS feed');
    1313INSERT INTO piwigo_config (param,value,comment) VALUES ('rate','true','Rating pictures feature is enabled');
    1414INSERT INTO piwigo_config (param,value,comment) VALUES ('rate_anonymous','true','Rating pictures feature is also enabled for visitors');
    15 INSERT INTO piwigo_config (param,value,comment) VALUES ('page_banner','<h1>Piwigo demonstration site</h1><p>My photos web site</p>','html displayed on the top each page of your gallery');
     15INSERT INTO piwigo_config (param,value,comment) VALUES ('page_banner','','html displayed on the top each page of your gallery');
    1616INSERT INTO piwigo_config (param,value,comment) VALUES ('history_admin','false','keep a history of administrator visits on your website');
    1717INSERT INTO piwigo_config (param,value,comment) VALUES ('history_guest','true','keep a history of guest visits on your website');
  • trunk/language/en_UK/install.lang.php

    r8728 r12008  
    7373$lang['SQLite and PostgreSQL are currently in experimental state.'] = 'SQLite and PostgreSQL are currently in experimental state.';
    7474$lang['Learn more'] = 'Learn more';
     75$lang['Just another Piwigo gallery'] = 'Just another Piwigo gallery';
     76$lang['Welcome to my photo gallery'] = 'Welcome to my photo gallery';
    7577?>
  • trunk/language/fr_FR/install.lang.php

    r8728 r12008  
    7474$lang['SQLite and PostgreSQL are currently in experimental state.'] = 'Les types SQLite et PostgreSQL sont actuellement en phase expérimentale.';
    7575$lang['Learn more'] = 'En savoir plus';
     76$lang['Just another Piwigo gallery'] = 'Une galerie Piwigo de plus';
     77$lang['Welcome to my photo gallery'] = 'Bienvenue sur ma galerie photo';
    7678?>
Note: See TracChangeset for help on using the changeset viewer.