Re: If theme variant is so and so, do so and so
Reply #1 – October 21, 2014, 04:28:04 am
emanuele
Global Moderator
I would say that if you have to change the template you are close not to have two variants, but two slightly different themes. The idea of variants is to have two "aspects" perfectly identical in terms of markup but different in the css. Out of curiosity what differences do you want to apply that require markup changes?
Re: If theme variant is so and so, do so and so
Reply #2 – October 21, 2014, 09:50:43 pm
I can see that there is a setting that change css between light and besocial. I was hoping if I could understand that and use it in the index.template.php, I could allow some code being called or removed with this condition. For instance, in my case, I am creating my own custom theme and putting the forum title, the quick login and the search box inline with the menu. This require modifications. So if I can use this condition (if it is somehow able to be used), I am able to disable/enable calling certain code in my light and besocial css. By the way, there is another thing I wish to ponder. I do believe that if a theme is just using css, we can just add a new css in its array. That would be simper rather than adding a new theme. But there is no way (yet) for us to create a simply new css theme. Can I suggest that this is made possible?
Re: If theme variant is so and so, do so and so
Reply #6 – October 26, 2014, 06:03:54 am
What I mean is, in the theme install page, currently you can simply copy a default theme to create your own. If there is no necessity to create theme, why not just allow user to copy a default css variant and rename it to his own css instead? That way, user will be encouraged to use css variant as much as possible rather than creating his own theme. But if this will require a lot of works, just drop it. What can be done via custom theme creation, is so far ok.
Re: If theme variant is so and so, do so and so
Reply #7 – October 26, 2014, 10:59:29 am
emanuele
Global Moderator
Ohh... okay, now I got it. In the current situation it may require few things, even only because variants are "hard-coded" into index.template.php, so it would require also to edit that file or load up the new variant somehow from... dunno, the database or something. It may be possible, at the moment, I honestly don't know.
Re: If theme variant is so and so, do so and so
Reply #8 – October 30, 2014, 08:52:05 pm
My idea is a variant installer/creator. Somethings similar to theme installer/creator. The different is, if variant is created/installed, it will be put in the default theme but under its own (variant) folder. It will also add the new variant as an option to forum admin only or to all users. About adding forum title and search into, as well as login bar inside and inline with the menu, I guess maybe the best thing to do is using an addon instead, that is if the index.template.php is not to be directly modified.