Announcement

  •  » Themes
  •  » List of themeconf keys

#1 2010-06-27 23:02:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

List of themeconf keys

Hi P@t,

I'm currently writting/translating the documentation to create a theme. I would like to know the complete list of available keys in $themeconf. I currently have:

* name
* parent
* icon_dir
* mime_icon_dir
* local_head
* activable
* load_parent_local_head
* load_parent_css

Am I missing anything?

By the way, I've seen many themes that have 'theme' => 'my_theme' instead of 'name' => 'my_theme', but it doesn't seem to be a problem, Is $themeconf['name'] useful?

Offline

 

#2 2010-06-27 23:17:22

tosca
Former Piwigo Team
Cévennes (France)
2006-09-23
567

Re: List of themeconf keys

plg wrote:

By the way, I've seen many themes that have 'theme' => 'my_theme' instead of 'name' => 'my_theme', but it doesn't seem to be a problem, Is $themeconf['name'] useful?

I'm wondering if this could be the origin of the problem I got with [extension by Nicco] nbc ThemeChanger
I just checked that Kardon and Luciano Amodio didn't set the 'name' parameter.
(see http://fr.piwigo.org/forum/viewtopic.php?id=18054 in the FR forum).


My galleries : Photos, Watercolours, Recipes

Offline

 

#3 2010-06-27 23:21:59

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: List of themeconf keys

Themes could have their own keywords as well, e.g. 'cat_width_on_index' => '49.7%'
This is useful to have additional templates variables.
So there is no exhaustive list, but your list is officially correct.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#4 2010-06-27 23:24:39

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: List of themeconf keys

{$themeconf.id} is provided and must be used in state of {$themeconf.name}


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#5 2010-06-28 00:48:04

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: List of themeconf keys

VDigital wrote:

Themes could have their own keywords as well, e.g. 'cat_width_on_index' => '49.7%'
This is useful to have additional templates variables.
So there is no exhaustive list, but your list is officially correct.

Yes, of course, you can add keys you want, there is no limit. I'm talking about keys supported by Piwigo core.

Offline

 

#6 2010-06-28 07:44:36

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: List of themeconf keys

[wiki] Create a Theme

Wiki wrote:

name      none      Mandatory. Name of the theme directory, no space, no accent

No.
name      none      Fully optional. Name of the theme, including spaces, accents, and any special caracters.



BUT
id          assumed      Prohibited. Name of the theme directory, no space, no accent


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2010-06-28 09:16:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: List of themeconf keys

VDigital wrote:

[wiki] Create a Theme

Wiki wrote:

name      none      Mandatory. Name of the theme directory, no space, no accent

No.
name      none      Fully optional. Name of the theme, including spaces, accents, and any special caracters.



BUT
id          assumed      Prohibited. Name of the theme directory, no space, no accent

It's useless to list a key that is prohibited...

Either "name" is useless and I remove it, or it is useful and I keep it. Let's make things simple.

Offline

 

#8 2010-06-28 09:40:07

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: List of themeconf keys

I agree.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2010-06-29 00:10:58

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

Re: List of themeconf keys

name is useless...


P@t

Offline

 

#10 2010-06-29 00:41:14

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: List of themeconf keys

P@t wrote:

name is useless...

Thank you P@t, I've removed it from the documentation

Offline

 
  •  » Themes
  •  » List of themeconf keys

Board footer

Powered by FluxBB

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