Changeset 29601


Ignore:
Timestamp:
Sep 17, 2014, 8:43:20 PM (10 years ago)
Author:
rvelices
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/popuphelp.tpl

    r9706 r29601  
    66                </a></li>
    77        </ul>
    8         <h2>{$PAGE_TITLE}</h2>
     8        <h2><span id="homeLink"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}</span>{$PAGE_TITLE}</h2>
    99        </div>
    1010
    1111{$HELP_CONTENT}
    1212
    13 <p>
     13<p id="closeLink" style="display:none">
    1414    <a href="#" onclick="window.close();">{'Close this window'|@translate}</a>
    1515</p>
    1616
     17{footer_script require='jquery'}
     18if (window.opener || window.name) {
     19        jQuery("#closeLink").show();
     20        jQuery("#homeLink").hide();
     21}
     22{/footer_script}
    1723</div> <!-- content -->
    1824
Note: See TracChangeset for help on using the changeset viewer.