Generate settings tabs with a template object 'settingstabs' and let plugins register themselves there using the 'settings_actions' hook
parent
85fece2c4d
commit
c49c35ca0f
@ -1,8 +1,6 @@
|
|||||||
<div id="tabsbar">
|
<div id="tabsbar">
|
||||||
<span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span>
|
<roundcube:object name="settingstabs" class="tablink" selClass="tablink-selected" />
|
||||||
<span id="settingstabfolders" class="tablink"><roundcube:button command="folders" type="link" label="folders" title="managefolders" class="tablink" /></span>
|
|
||||||
<span id="settingstabidentities" class="tablink"><roundcube:button command="identities" type="link" label="identities" title="manageidentities" class="tablink" /></span>
|
|
||||||
<span id="settingstababout" class="tablink"><roundcube:button command="about" type="link" label="about" title="about" class="tablink" /></span>
|
|
||||||
<roundcube:container name="tabs" id="tabsbar" />
|
<roundcube:container name="tabs" id="tabsbar" />
|
||||||
|
<span id="settingstababout" class="tablink"><roundcube:button command="about" type="link" label="about" title="about" class="tablink" /></span>
|
||||||
<script type="text/javascript"> if (window.rcmail) rcmail.add_onload(rcube_init_settings_tabs); </script>
|
<script type="text/javascript"> if (window.rcmail) rcmail.add_onload(rcube_init_settings_tabs); </script>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
<div id="settings-sections" class="uibox listbox">
|
<div id="settings-sections" class="uibox listbox">
|
||||||
<h2 class="boxtitle"><roundcube:label name="settings" /></h2>
|
<h2 class="boxtitle"><roundcube:label name="settings" /></h2>
|
||||||
<div id="settings-tabs" class="scroller">
|
<div id="settings-tabs" class="scroller">
|
||||||
<span id="settingstabpreferences" class="listitem preferences"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span>
|
<roundcube:object name="settingstabs" class="listitem" />
|
||||||
<span id="settingstabfolders" class="listitem folders"><roundcube:button command="folders" type="link" label="folders" title="managefolders" /></span>
|
|
||||||
<span id="settingstabidentities" class="listitem identities"><roundcube:button command="identities" type="link" label="identities" title="manageidentities" /></span>
|
|
||||||
<roundcube:container name="tabs" id="settings-tabs" />
|
<roundcube:container name="tabs" id="settings-tabs" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue