From: <jon...@us...> - 2010-08-07 20:15:19
|
Revision: 28383 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=28383&view=rev Author: jonnybradley Date: 2010-08-07 20:15:12 +0000 (Sat, 07 Aug 2010) Log Message: ----------- [MOD] Custom CSS: Move the brosho test link next to the right pref, and give it it's own tab, as it will need more room soon. (TODO admin/look/misc is an odd place for header_custom_js to remain but i can't find a better one now) Modified Paths: -------------- trunk/templates/tiki-admin-include-look.tpl Modified: trunk/templates/tiki-admin-include-look.tpl =================================================================== --- trunk/templates/tiki-admin-include-look.tpl 2010-08-07 20:01:35 UTC (rev 28382) +++ trunk/templates/tiki-admin-include-look.tpl 2010-08-07 20:15:12 UTC (rev 28383) @@ -79,28 +79,6 @@ {tab name="{tr}General Layout options{/tr}"} {preference name=feature_custom_html_head_content} - <div class="adminoptionboxchild"> - {self_link _onclick="toggle_brosho();return false;" _ajax="n"}{icon _id="bricks"} Experimental: CSS assistant (work in progress - reload page to remove){/self_link} - </div> - {jq} -var brosho_loaded = false; -toggle_brosho = function() { - if (!brosho_loaded) { - $jq.getScript('lib/jquery/brosho/jquery.brosho.js', function() { - $jq.fn.brosho({ //call to the brosho plugin - stylesheet: "lib/jquery_tiki/brosho/tiki.brosho.css", //path of custom brosho stylesheet - position: "left", //initial position of the editor ("top", "bottom", "left", "right") - elementHoverClass: "custom-hover", //a custom hover class - editorOpacity: 0.8 //full opacity on editor - }); - }); - } else { // doesn't work as brosho absorbs all the clicks - $jq('#brosho-wrapper, #brosho-overlay-wrapper').remove(); //remove old stuff - $jq('body *').unbind(); //unbind the previous hover event handler on every element within the body - } - return false; -}; - {/jq} {preference name=feature_fixed_width} {preference name=feature_secondary_sitemenu_custom_code} {preference name=feature_sitemycode} @@ -277,6 +255,35 @@ </fieldset> {/tab} + {tab name="{tr}Custom CSS{/tr}"} + <fieldset> + <legend>{tr}Custom CSS{/tr}</legend> + <div class="adminoptionboxchild"> + {self_link _onclick="toggle_brosho();return false;" _ajax="n"}{icon _id="bricks"} Experimental: CSS assistant (work in progress - reload page to remove){/self_link} + </div> + {jq} +var brosho_loaded = false; +toggle_brosho = function() { + if (!brosho_loaded) { + $jq.getScript('lib/jquery/brosho/jquery.brosho.js', function() { + $jq.fn.brosho({ //call to the brosho plugin + stylesheet: "lib/jquery_tiki/brosho/tiki.brosho.css", //path of custom brosho stylesheet + position: "left", //initial position of the editor ("top", "bottom", "left", "right") + elementHoverClass: "custom-hover", //a custom hover class + editorOpacity: 0.8 //full opacity on editor + }); + }); + } else { // doesn't work as brosho absorbs all the clicks + $jq('#brosho-wrapper, #brosho-overlay-wrapper').remove(); //remove old stuff + $jq('body *').unbind(); //unbind the previous hover event handler on every element within the body + } + return false; +}; + {/jq} + {preference name="header_custom_css"} + </fieldset> + {/tab} + {tab name="{tr}Miscellaneous{/tr}"} {preference name=feature_tabs} {preference name=layout_section} @@ -321,7 +328,6 @@ <fieldset> <legend>{tr}Custom Code{/tr}</legend> - {preference name="header_custom_css"} {preference name="header_custom_js"} </fieldset> {/tab} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |