Fork me on GitHub

Making my Palette Pop  Bottom

  • 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
  • (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 :)
  • 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)?
  • 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 icon_wink

    Greetings!

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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 :)
  • 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:

    Code

    <div style="background: <!--[$bgcolor|default:'transparent']-->">
    Default because the palette is optional and those values are not loaded in some cases icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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 :)

This list is based on users active over the last 60 minutes.