default.php
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_multilangstatus
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include jQuery
JHtml::_('jquery.framework');
// Use javascript to remove the modal added below from the current div and add it to the end of html body tag.
JFactory::getDocument()->addScriptDeclaration("
jQuery(document).ready(function($) {
var multilangueModal = $('#multiLangModal').clone();
$('#multiLangModal').remove();
$('body').append(multilangueModal);
});
");
?>
<div class="btn-group multilanguage">
<a data-toggle="modal"
href="#multiLangModal"
title="<?php echo JText::_('MOD_MULTILANGSTATUS'); ?>"
role="button">
<span class="icon-comment" aria-hidden="true"></span><?php echo JText::_('MOD_MULTILANGSTATUS'); ?>
</a>
<span class="btn-group separator"></span>
</div>
<?php echo JHtml::_(
'bootstrap.renderModal',
'multiLangModal',
array(
'title' => JText::_('MOD_MULTILANGSTATUS'),
'url' => JRoute::_('index.php?option=com_languages&view=multilangstatus&tmpl=component'),
'height' => '400px',
'width' => '800px',
'bodyHeight' => '70',
'modalWidth' => '80',
'footer' => '<button type="button" class="btn" data-dismiss="modal">'
. JText::_('JTOOLBAR_CLOSE') . '</button>',
)
);