A few other thoughts that occur to me:
1) Should the configuration options be saved in a theme specific way,
i.e. the option is the theme name and all the actual values are stored
within that array, so that even if you remove the theme and then want
it back the options won't be overritten by the options of the next
theme.
If so this would need a cleanup option as well.
2) Is there any value in being able to wrap the options in a page in
case there are a lot of options
<config>
<page>
<title>Options page 1</title>
<field ...
<field ...
</page>
<page>
<title>Options page 2</title>
<field ...
<field ...
</page>
</config>
Andrew
2009/4/27 Andrew Rickmann <[email protected]>:
> This is a solid gold idea.
>
> I think it should be possible to include any FormUI type, i.e. radio
> buttons, check boxes, and dropdowns.
>
> I also think the idea of loading the CSS via a PHP file by default
> with any variables being replaced by their option values, or being
> removed, will add a great deal of flexibility without needing any PHP
> by the themer. For example: color: [[option1:#fff]]; would be replaced
> by whatever was in $theme->get_option('option1'), or by the default
> which is colon separated if there is nothing in the option.
>
> Andrew
>
> 2009/4/26 Sean T Evans <[email protected]>:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Arthus Erea wrote:
>>> A while back, I tossed around the idea of simple theme configuration.
>>> Such configuration should be simple enough for designers with little
>>> knowledge of PHP to implement it.
>>>
>>> Since the focus of 0.7 is supposed to be themes, I thought I'd bring
>>> the idea back up.
>>>
>>> I have put together a proposal for the system:
>>> http://wiki.habariproject.org/en/User:arthus/ThemeConfig
>>>
>>> If you have any questions/critiques/suggestions, send theme here or to
>>> the talk page. Otherwise, I'd appreciate some affirmation so I can
>>> begin work on implementation.
>>>
>>> Thanks,
>>> Arthus
>>>
>> I think this looks great. I thought I'd mention a few thing that Arthus
>> and I discussed briefly on IRC. The URL field and "multiple" option
>> would be useful for something like the sidebar on my site
>> (http://www.morydd.net) where the first square images are links to my
>> other sites. That way I could set up the theme to add links from the admin.
>>
>> It occurs to me that it could be very useful to have some sort of app or
>> script that could translate a static CSS file into a PHP file so that a
>> designer doesn't have to know how to do that translation in order to
>> make a theme more customizable.
>>
>> I think this could be a huge step in avoiding the "all habari sites look
>> the same" syndrome.
>>
>> Thanks Arthus!
>>
>> - --
>> Sean T. Evans
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iEYEARECAAYFAkn046gACgkQmQpMBUWJpdt12wCgm7TxaGhqzQmp7C3jwaKUA/jI
>> ZiQAoLL1RLXAKnfX0/bBbtjJ1sOqldqN
>> =6/4b
>> -----END PGP SIGNATURE-----
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---