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
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).
Offline
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.
Offline
{$themeconf.id} is provided and must be used in state of {$themeconf.name}
Offline
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
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
Offline
VDigital wrote:
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
I agree.
Offline
P@t wrote:
name is useless...
Thank you P@t, I've removed it from the documentation
Offline