I have gone brain dead - how do I use my theme's palette colors again? I went looking in the Wiki and could not find that answer.
Paul
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Making my Palette Pop
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
(Are the Palettes Still not implemented?) - edited sorry I looked at an old reference.
I did just find :
http://community.zikula.org/index.php?module=Wiki&tag=ThemeTemplateVariables
In which there is referencing :
$palette - The name of the current palette
How do I pull this variable in again? I am not great with the syntax there.
Thanks in Advance,
Paul
edited by: TakeIT2, Mar 07, 2009 - 06:49 PM
--
Paul
____________________________________________________
"...Humor, ITs just a state of mind"
TakeIT2.CoM :: Open Destination
...my site is a perfect example of why doctors do not operate on them self :) -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
my main reason for asking is I am trying to call a color from the palette in my style sheet and it is doing nothing as though the palette is not connected.
What is the corresponding style call then for say, "color3" of the palette(X)? -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Hi!
When you set a palette in the .ini of a theme, the values are loaded cleanly like: $color3. Insert a in any template under a default theme like andreas08, and you'll see the palette values there
Greetings!
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
Thanks Mateo.
Is there any way to call it in the style sheet?
--
Paul
____________________________________________________
"...Humor, ITs just a state of mind"
TakeIT2.CoM :: Open Destination
...my site is a perfect example of why doctors do not operate on them self :) -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Uh
i'm afraid that no
because the CSSs are not parsed by PHP...
the use of the Theme palette is through ugly inline stylesheets, and it's almost deprecated (IMHO)... anyways, a "correct" use of it can be:
Default because the palette is optional and those values are not loaded in some casesCode
<div style="background: <!--[$bgcolor|default:'transparent']-->">
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
thanks Mateo -
it would be kinda cool if there was a plugin for the themes that could load a palette kinda the way the old, (old,old,old) theme.php did - but that is not my area, (the PHP.)
thanks again - none the less -
it is always quicker to work smart, and knowing this now I can just focus on my CSS
Paul
--
Paul
____________________________________________________
"...Humor, ITs just a state of mind"
TakeIT2.CoM :: Open Destination
...my site is a perfect example of why doctors do not operate on them self :)
- Moderated by:
- Support
