source: trunk/themes/default/template/popuphelp.tpl @ 29601

Last change on this file since 29601 was 29601, checked in by rvelices, 10 years ago

add a home link and hide close this window link in popuphelp if the page is not opened through javascript

File size: 764 bytes
Line 
1<div id="content" class="content">
2        <div class="titrePage">
3        <ul class="categoryActions">
4                <li><a href="#" onclick="window.close();" title="{'Close this window'|@translate}" class="pwg-state-default pwg-button">
5                        <span class="pwg-icon pwg-icon-close">&nbsp;</span><span class="pwg-button-text">exit</span>
6                </a></li>
7        </ul>
8        <h2><span id="homeLink"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}</span>{$PAGE_TITLE}</h2>
9        </div>
10
11{$HELP_CONTENT}
12
13<p id="closeLink" style="display:none">
14    <a href="#" onclick="window.close();">{'Close this window'|@translate}</a>
15</p>
16
17{footer_script require='jquery'}
18if (window.opener || window.name) {
19        jQuery("#closeLink").show();
20        jQuery("#homeLink").hide();
21}
22{/footer_script}
23</div> <!-- content -->
24
25
Note: See TracBrowser for help on using the repository browser.