[ABANDONNÉ] Proposition d'un gabarit ...
Hello
De passage je propose un gabarit qui permet de rectifer l'affichage de la page principale de "Mon linuxmao". En effet tout le monde sera d'accord sur le fait que c'est assez enervant d'aller scroller tout en bas de la page pour trouver une infos à la c#n alors voici un moyen de lui faire une mise en onglets : il s'agit tu template tiki-my_tiki.tpl
Salut
De passage je propose un gabarit qui permet de rectifer l'affichage de la page principale de "Mon linuxmao". En effet tout le monde sera d'accord sur le fait que c'est assez enervant d'aller scroller tout en bas de la page pour trouver une infos à la c#n alors voici un moyen de lui faire une mise en onglets : il s'agit tu template tiki-my_tiki.tpl
{* $Id: tiki-my_tiki.tpl 47523 2013-09-17 14:39:03Z chibaguy $ *} {title help="MyTiki"}{tr}My Tiki{/tr}{/title} {include file='tiki-mytiki_bar.tpl'} <br> {capture name=my} {tabset} {if $prefs.feature_forums eq 'y' && $mytiki_forum_topics eq 'y'} {tab name="{if $userwatch eq $user}{tr}My forum topics{/tr}{else}{tr}User forum topics{/tr}{/if}"} <div id="content8" class="content"> <div class="cbox"> <div class="cbox-data"> <table class="table normal"> <tr> <th>{tr}Forum topics{/tr}</th> <th>{tr}Date of post{/tr}</th> </tr> {cycle values="even,odd" print=false} {section name=ix loop=$user_forum_topics} <tr class="{cycle}"> <td class="text"> <a class="link" title="{tr}View{/tr}" href="tiki-view_forum_thread.php?comments_parentId={$user_forum_topics[ix].threadId}&forumId={$user_forum_topics[ix].object}">{$user_forum_topics[ix].title}</a> </td> <td class="date"> {$user_forum_topics[ix].commentDate|tiki_short_datetime} </td> </tr> {/section} </table> <div style="text-align:right;">{tr}Records:{/tr} {$user_forum_topics|@count}</div> {/tab} {/if} {if $prefs.feature_forums eq 'y' && $mytiki_forum_replies eq 'y'} {tab name="{if $userwatch eq $user}{tr}My forum replies{/tr}{else}{tr}User forum replies{/tr}{/if}"} <div id="content9" class="content"> <div class="cbox"> <div class="cbox-data"> <table class="table normal"> <tr> <th>{tr}Forum replies{/tr}</th> <th>{tr}Date of post{/tr}</th> </tr> {cycle values="even,odd" print=false} {section name=ix loop=$user_forum_replies} <tr class="{cycle}"> <td class="text"> <a class="link" title="{tr}View{/tr}" href="tiki-view_forum_thread.php?comments_parentId={$user_forum_replies[ix].threadId}&forumId={$user_forum_replies[ix].object}">{$user_forum_replies[ix].title}</a> </td> <td class="date"> {$user_forum_replies[ix].commentDate|tiki_short_datetime} </td> </tr> {/section} </table> <div style="text-align:right;">{tr}Records:{/tr} {$user_forum_replies|@count}</div> </div> </div> </div> {/tab} {/if} {if $prefs.feature_wiki eq 'y' and $mytiki_pages eq 'y'} {tab name="{if $userwatch eq $user}{tr}My pages{/tr}{else}{tr}User Pages{/tr}{/if}"} <div id="content1" class="content"> <div class="cbox"> <div class="cbox-data"> <table class="table normal"> <tr> <th> <a href="tiki-my_tiki.php?sort_mode={if $sort_mode eq 'pageName_desc'}pageName_asc{else}pageName_desc{/if}">{tr}Page{/tr}</a> </th> <th>{tr}Creator{/tr}</th> <th>{tr}Last editor{/tr}</th> <th> <a href="tiki-my_tiki.php?sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Last modification{/tr}</a> </th> <th style="width:50px">{tr}Actions{/tr}</th> </tr> {cycle values="even,odd" print=false} {section name=ix loop=$user_pages} <tr class="{cycle}"> <td class="text"> <a class="link" title="{tr}View:{/tr} {$user_pages[ix].pageName}" href="tiki-index.php?page={$user_pages[ix].pageName|escape:"url"}">{$user_pages[ix].pageName|truncate:40:"(...)"}</a> </td> <td class="username"> {if $userwatch eq $user_pages[ix].creator}{tr}y{/tr}{else} {/if} </td> <td class="username"> {if $userwatch eq $user_pages[ix].lastEditor}{tr}y{/tr}{else} {/if} </td> <td class="date"> {$user_pages[ix].date|tiki_short_datetime} </td> <td class="action"> <a class="link" href="tiki-editpage.php?page={$user_pages[ix].pageName|escape:"url"}"> {capture assign=title}{tr _0=$user_pages[ix].pageName}Edit: %0{/tr}{/capture}{*FIXME*} {icon _id='page_edit' title=$title} </a> </td> </tr> {/section} </table> <div style="text-align:right;">{tr}Records:{/tr} {$user_pages|@count}</div> </div> </div> </div> {/tab} {/if} {if $prefs.feature_articles eq 'y' and $mytiki_articles eq 'y'} {tab name="{if $userwatch eq $user}{tr}My Articles{/tr}{else}{tr}User Articles{/tr}{/if}"} <div id="content2" class="content"> <div class="cbox"> <div class="cbox-data"> <table class="table normal"> <tr> <th>{tr}Article{/tr}</th> <th style="width:50px">{tr}Actions{/tr}</th> </tr> {cycle values="even,odd" print=false} {section name=ix loop=$user_articles} <tr class="{cycle}"> <td class="text"> <a class="link" href="{$user_articles[ix].articleId|sefurl:article}">{$user_articles[ix].title}</a> </td> <td class="action"> <a class="link" href="tiki-edit_article.php?articleId={$user_articles[ix].articleId}"> {icon _id='page_edit'} </a> </td> </tr> {/section} </table> <div style="text-align:right;">{tr}Records:{/tr} {$user_articles|@count}</div> </div> </div> </div> {/tab} {/if} {/tabset} {/capture} {$smarty.capture.my} {if $smarty.capture.my|strip:'' eq ''} {tr}To display the objects you created or contributed to:{/tr} <a href="tiki-user_preferences.php?tab3#MyTiki">{tr}My Tiki{/tr}</a> {/if}
Salut