(2016-09-27, 10:37:54)Timbow Wrote: Still looking really promising but I can't use it yet. I can't get a check box to include/exclude content working at all.
I am really confused by the two export and the two save buttons and not sure what the 'tabs' are for.
The new 'tab' that appears called Theme Settings is a mystery
I still don't know if I should be using (return_setting('theme','banner_inc') or (return_setting('theme_setting','banner_inc') or (return_setting('tab-name','banner_inc') or (return_setting('new_tab','banner_inc') but none of them seem to work.
I would love to see it working.
There's actually a link to copy the code. It looks like:
Code:
< />
What you can do, for example, is create a setting with a radio selection, with options show-content and show-nocontent
In your css you make for example a class .show-nocontent :
Code:
.show-nocontent { display: none;}
Then there are 2 ways to implement that. You can use the code url which will be shown when pressing the < /> button in the Edit screen. You can use that in your theme code as a class to hide that.
Or you use the code url shown in the Manage screen when pressing the < /> button. This can be used in the editor to change the class of a <p> or an image to show/not show it.
Or the checkbox method: Make a setting called display with a checkbox for type.
make a class .content-off with display:none . Then the code for the class in the editor is something like:
Code:
<p class="content-(% setting: content-show/display %)">bla2 bl2a cbcffh2</p>
Depending on the state of the setting it will give <p class="content-on">bla2 bl2a cbcffh2</p> or <p class="content-off">bla2 bl2a cbcffh2</p>
Maybe there's a better way, since this method isn't very elegant. It adds a unused class when content is being shown.