1
_metemet_
Using theme.ini or xo-info.php to get variables with smarty
  • 2009/12/4 16:38

  • _metemet_

  • Just popping in

  • Posts: 62

  • Since: 2008/4/1 2


Hi,
Is there anyway to get variables for themes.

I mean in theme.ini
width="100%"
color="red"


then if it s possible we ll use smarty <{width}> , <{color}> in theme.html

how can we take variables with this way or another way like xo-info.php or whatelse .

thanks

2
Burning
Re: Using theme.ini or xo-info.php to get variables with smarty
  • 2009/12/4 17:16

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

There are many ways to proceed (but I haven't tested anyone) :

• a module, it means by database :
> dbcss

• using smarty in stylesheet, eg Pico
Quote:
div.pico_controllers_in_menu { float: <{$smarty.const._ALIGN_END}>; position: relative; top : -1.5em;}



3
kris_fr
Re: Using theme.ini or xo-info.php to get variables with smarty
  • 2009/12/5 9:59

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31



4
_metemet_
Re: Using theme.ini or xo-info.php to get variables with smarty
  • 2009/12/5 12:39

  • _metemet_

  • Just popping in

  • Posts: 62

  • Since: 2008/4/1 2


thanks.

but how can we put this with smarty.
I can not use it like this :

in xo-info.php :
$take = array(
        
'width'  => '100%',
        
'color' => 'blue'),
);


in theme.html :
<{$take.width}>


how can it works ???

Login

Who's Online

58 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits