From: <ge...@us...> - 2012-01-06 20:15:42
|
Revision: 39419 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=39419&view=rev Author: gezzzan Date: 2012-01-06 20:15:35 +0000 (Fri, 06 Jan 2012) Log Message: ----------- [MOD] Nicer popup structure selection on wiki pages Modified Paths: -------------- branches/8.x/templates/tiki-wiki_topline.tpl Modified: branches/8.x/templates/tiki-wiki_topline.tpl =================================================================== --- branches/8.x/templates/tiki-wiki_topline.tpl 2012-01-06 20:12:31 UTC (rev 39418) +++ branches/8.x/templates/tiki-wiki_topline.tpl 2012-01-06 20:15:35 UTC (rev 39419) @@ -107,24 +107,34 @@ </ul> </div> {/if} + {if ( $structure eq 'y' and count($showstructs) gt 1 ) or ( $structure eq 'n' and count($showstructs) neq 0 )} + <div class="structure_select"> + <ul class="clearfix cssmenu_horiz"> + <li class="tabmark"> + {icon _id=chart_organisation title="{tr}Structures{/tr}" class="icon"} + <ul class="structure_poppedup"> + <li class="tabcontent"> + {section name=struct loop=$showstructs} + <a href="tiki-index.php?page={$page}&structure={$showstructs[struct].pageName|escape}" {if $showstructs[struct].pageName eq $structure_path[0].pageName} title="Current structure: {$showstructs[struct].pageName|escape}" class="selected" {else} title="Show structure: {$showstructs[struct].pageName|escape}"{/if}> + {if $showstructs[struct].page_alias} + {$showstructs[struct].page_alias} + {else} + {$showstructs[struct].pageName} + {/if} + </a> + {/section} + {if $showstructs[struct].pageName neq $structure_path[0].pageName} + <a href="tiki-index.php?page={$page|escape:url}" title="{tr}Hide structure bar{/tr}"> + {tr}Hide structure{/tr} + </a> + {/if} + </li> + </ul> + </li> + </ul> + </div> + {/if} </div><!-- END of icons --> - - {if ( $structure eq 'y' and count($showstructs) gt 1 ) or ( $structure eq 'n' and count($showstructs) neq 0 )} - <form action="tiki-index.php" method="post" style="float: left"> - <select name="page_ref_id" onchange="this.form.submit()"> - <option>{tr}Structures{/tr}...</option> - {section name=struct loop=$showstructs} - <option value="{$showstructs[struct].req_page_ref_id}" {if $showstructs[struct].pageName eq $structure_path[0].pageName}selected="selected"{/if}> - {if $showstructs[struct].page_alias} - {$showstructs[struct].page_alias} - {else} - {$showstructs[struct].pageName} - {/if} - </option> - {/section} - </select> - </form> - {/if} {if $prefs.feature_multilingual eq 'y' && $prefs.show_available_translations eq 'y' && $machine_translate_to_lang eq ''} <div style="float: left"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |