mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
fixes #1057 use a popin instead of popup to display admin page help.
The "old way" still works with the popuphelp() javascript function.
This commit is contained in:
@@ -61,6 +61,12 @@ $template->assign(
|
||||
'HELP_CONTENT' => $help_content
|
||||
));
|
||||
|
||||
if (isset($_GET['output']) and 'content_only' == $_GET['output'])
|
||||
{
|
||||
echo $help_content;
|
||||
exit();
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | html code display |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
@@ -143,9 +143,12 @@ jQuery(document).ready(function() {
|
||||
{$TABSHEET}
|
||||
{/if}
|
||||
{if isset($U_HELP)}
|
||||
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
{include file='include/colorbox.inc.tpl'}
|
||||
{footer_script}
|
||||
jQuery('.help-popin').colorbox({ width:"500px" });
|
||||
{/footer_script}
|
||||
<ul class="HelpActions">
|
||||
<li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="icon-help-circled"></a></li>
|
||||
<li><a href="{$U_HELP}&output=content_only" title="{'Help'|@translate}" class="help-popin"><span class="icon-help-circled"></span></a></li>
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{include file='include/datepicker.inc.tpl' load_mode='async'}
|
||||
{include file='include/colorbox.inc.tpl' load_mode='async'}
|
||||
{include file='include/colorbox.inc.tpl' load_mode='footer'}
|
||||
{include file='include/add_album.inc.tpl' load_mode='async'}
|
||||
|
||||
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
|
||||
@@ -28,6 +28,8 @@ var lang = {
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
jQuery('.help-popin').colorbox({ width:"500px" });
|
||||
|
||||
{* <!-- TAGS --> *}
|
||||
var tagsCache = new TagsCache({
|
||||
serverKey: '{$CACHE_KEYS.tags}',
|
||||
@@ -456,7 +458,7 @@ var sliders = {
|
||||
{'Search'|@translate}
|
||||
<input name="q" size=40 value="{$filter.search.q|stripslashes|htmlspecialchars}">
|
||||
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
<a href="admin/popuphelp.php?page=quick_search" onclick="popuphelp(this.href);return false;" title="{'Help'|@translate}"><span class="icon-help-circled"></span></a>
|
||||
<a href="admin/popuphelp.php?page=quick_search&output=content_only" class="help-popin" title="{'Help'|@translate}"><span class="icon-help-circled"></span></a>
|
||||
{if (isset($no_search_results))}
|
||||
<div>{'No results for'|@translate} :
|
||||
<em><strong>
|
||||
|
||||
Reference in New Issue
Block a user