Announcement

#1 2009-05-19 21:05:10

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

[resolved]template extension for 1 theme only ?

is there a way to set a template extension only for 1 theme ?
my idea was to set a $conf['something'] in themeconf.inc.php and to check this value in my extension.
I think it would work, but I'm not sure it's the better way to do it

Last edited by repie38 (2009-07-17 18:45:06)

Offline

 

#2 2009-05-19 21:09:28

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [resolved]template extension for 1 theme only ?

$user['theme'] would be enough, no need to set a value in themeconf.inc.php

Offline

 

#3 2009-05-20 01:59:55

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: [resolved]template extension for 1 theme only ?

In themeconf.inc.php, you can code:

$this->set_extents(
  array(
    'menubar.tpl' => 'menubar',
    'picture.tpl'    => 'picture'
    ),
  dirname(__FILE__).'/template-extension/'
);

... where template-extension is a sub-directory of your theme directory.

Last edited by P@t (2009-05-20 02:11:38)


P@t

Offline

 

#4 2009-05-20 02:20:34

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [resolved]template extension for 1 theme only ?

as usual, great !!
thanks P@t ;)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact