[Comoblog-commit] modules/mod_skinselect/templates/sidebar mod_skinselect.tpl.htm,NONE,1.1
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:36
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates/sidebar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/templates/sidebar Added Files: mod_skinselect.tpl.htm Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.tpl.htm --- <!-- BEGIN: main --> <div id="mod_skinselect"> <script > function changeSkinPreview(skin) { //alert(skin); if (skin == 'phpdefault'){location='/';} else if (skin !="") { document.getElementById('previewSwapImage').src= '/skins/'+ skin +'/preview.jpg'; document.getElementById('previewSwapLink').href= 'index.php?useskin='+ skin ; } } </script> <span class="mod_header_text">Change Layout:</span> <sub>select to change preview<br> click preview to apply skin</sub><br> <a href="index.php?useskin=sift" id="previewswaplink"> <img src="/skins/default/preview.jpg" alt="preview of skin" name="previewSwapImage" id="previewSwapImage" width="120" hspace="2" vspace="2" border="0" style="border: 1px dotted;"></a> <br> <select name="my_site" onchange="changeSkinPreview(this.value);" class="sidebar_selector"> <option value="">select skin</option> <!-- BEGIN: item --> <option value="{ITEM.skinselect_nav_link}">{ITEM.skinselect_title}</option> <!-- END: item --> <option value="default">Default</option> </select> </div> <!-- END: main --> |