You are here:
Foswiki
>
System Web
>
NatSkinStyleBrowser
Edit
Attach
Tags:
create new tag
,
view all tags
---+ Style Browser Explore the style variations of the %SYSTEMWEB%.NatSkin by changing the base _style_ and a _variation_ of it. In general style variations are used to change the header art but also adapt colors to match the graphics. Various elements of the style can be relocated using style switches or even be switched off. Use the "reset" button whenever you want to revert your selection and come back to the site's default settings. Note that each web may have its own defaults build in. If you select different style options they have precedence over those. Register [[%USERREGISTRATION%][here]] to make your settings persistent. See the %SYSTEMWEB%.NatSkinPlugin documentation on how to use style settings in your personal <nop>%WIKITOOLNAME% account. %STARTINCLUDE%<!-- style browser --> <noautolink> <div class="natSkinStyleBrowser"> <form action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%" _method="post"> <div class="foswikiFormSteps"> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Style"}%:</h3> <table> <tr> <td width="20px"> <a href="?switchstyle=prev" title="%MAKETEXT{"Switch to previous style"}%"><img src="%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/arrowleft.gif" border="0" alt="%MAKETEXT{"prev"}%"/></a> </td> <td> <select id="style" name="style""> %FORMATLIST{"%KNOWNSTYLES%" pattern="\s*(.*)\s*" format="<option $percntIF{\"context natskin_style_$1\" then=\"selected='selected'\"}$percnt>$1</option>" join="\n" separator=" "}% </select> </td> <td align="right" width="20px"> <a href="?switchstyle=next" title="%MAKETEXT{"Switch to next style"}%"><img src="%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/arrowright.gif" border="0" alt="%MAKETEXT{"next"}%"/></a> </td> </tr> </table> </div> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Variation"}%:</h3> <table> <tr> <td width="20px"> <a href="?switchvariation=prev" title="%MAKETEXT{"Switch to previous variation"}%"><img src="%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/arrowleft.gif" border="0" alt="%MAKETEXT{"prev"}%"/></a> </td> <td> <select id="variation" name="stylevariation"> </select> </td> <td align="right" width="20px"> <a href="?switchvariation=next" title="%MAKETEXT{"Switch to next variation"}%"><img src="%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/arrowright.gif" border="0" alt="%MAKETEXT{"prev"}%"/></a> </td> </tr> </table> </div> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Layout"}%:</h3> <ul> <li> <input type="radio" class="foswikiRadiobox" id="borderon" name="styleborder" value="on" %IF{"context natskin_border_on" then="checked='checked'"}% /><label for="borderon">%MAKETEXT{"Border On"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="borderoff" name="styleborder" value="off" %IF{"context natskin_border_off" then="checked='checked'"}% /><label for="borderoff">%MAKETEXT{"Border Off"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="borderthin" name="styleborder" value="thin" %IF{"context natskin_border_thin" then="checked='checked'"}% /><label for="borderthin">%MAKETEXT{"Thin Layout"}%</label></li> </ul> <ul> <li> <input type="radio" class="foswikiRadiobox" id="sidebarleft" name="stylesidebar" value="left" %IF{"context natskin_sidebar_left" then="checked='checked'"}% /><label for="sidebarleft">%MAKETEXT{"Sidebar Left"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="sidebarright" name="stylesidebar" value="right" %IF{"context natskin_sidebar_right" then="checked='checked'"}% /><label for="sidebarright">%MAKETEXT{"Sidebar Right"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="sidebarboth" name="stylesidebar" value="both" %IF{"context natskin_sidebar_both" then="checked='checked'"}% /><label for="sidebarboth">%MAKETEXT{"Both sidebars"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="sidebaroff" name="stylesidebar" value="off" %IF{"context natskin_sidebar_off" then="checked='checked'"}% /><label for="sidebaroff">%MAKETEXT{"Sidebar Off"}%</label></li> </ul> <ul> <li> <input type="radio" class="foswikiRadiobox" id="buttonson" name="stylebuttons" value="on" %IF{"context natskin_buttons_on" then="checked='checked'"}% /><label for="buttonson">%MAKETEXT{"Web Buttons On"}%</label></li> <li> <input type="radio" class="foswikiRadiobox" id="buttonsoff" name="stylebuttons" value="off" %IF{"context natskin_buttons_off" then="checked='checked'"}% /><label for="buttonsoff">%MAKETEXT{"Web Buttons Off"}%</label></li> </ul> </div> <div class="foswikiFormStep foswikiFormLast foswikiFormButtons"> %BUTTON{"%MAKETEXT{"OK"}%" type="submit" icon="tick"}% %BUTTON{"%MAKETEXT{"Reset"}%" icon="cross" onclick="window.location.href='%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?style=reset';" }% %CLEAR% </div> </div> </form> </div> <script type="text/javascript"> var knownVariations = { %KNOWNVARIATIONS{header="'$style': [" format="'$variation'" footer="]" separator=", " varseparator="', '"}% }; var selectedVariation = '%GETSKINSTATE{"$variation"}%'; function setVariations() { var style = jQuery("#style").val(); var varSelect = jQuery("#variation").empty().append("<option>none</option>"); if (knownVariations[style]) { for (var i = 0; i < knownVariations[style].length; i++) { var variation = knownVariations[style][i]; var selected = variation == selectedVariation ? "selected":""; varSelect.append("<option "+selected+">"+knownVariations[style][i]+"</option>"); } } if (jQuery.browser.msie) { varSelect.find("option").width("auto"); // IE7 fix, IE6 is okay } } jQuery(function() { jQuery("#style").change(function() { setVariations(); }).change(); }); </script> </noautolink> <!-- //style browser -->%STOPINCLUDE%
Edit
|
Attach
|
P
rint version
|
H
istory
:
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit WikiText
|
More topic actions...
Topic revision: r1 - 12 Feb 2008,
ProjectContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Applications
ClassificationApp
Extensions
Main
System
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback