mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-06 16:48:43 +00:00
Template, Core Apps: Update to new modal.
This commit is contained in:
@@ -409,8 +409,8 @@ $text['message-unsupported_file_type']['ru-ru'] = "Тип файла не под
|
||||
$text['message-unsupported_file_type']['sv-se'] = "Inte stöds filtyp";
|
||||
$text['message-unsupported_file_type']['uk-ua'] = "Тип файлу не підтримується";
|
||||
|
||||
$text['confirm-delete']['en-us'] = "Do you really want to delete this?";
|
||||
$text['confirm-delete']['en-gb'] = "Do you really want to delete this?";
|
||||
$text['confirm-delete']['en-us'] = "Do you really want to DELETE this?";
|
||||
$text['confirm-delete']['en-gb'] = "Do you really want to DELETE this?";
|
||||
$text['confirm-delete']['ar-eg'] = "هل تريد حقا أن تحذف هذا؟";
|
||||
$text['confirm-delete']['de-at'] = "Wollen Sie das wirklich löschen?"; //copied from de-de
|
||||
$text['confirm-delete']['de-ch'] = "Wollen Sie das wirklich löschen?"; //copied from de-de
|
||||
@@ -432,8 +432,8 @@ $text['confirm-delete']['sv-se'] = "Vill du verkligen ta bort detta?";
|
||||
$text['confirm-delete']['uk-ua'] = "Ви дійсно бажаєте це видалити?";
|
||||
$text['confirm-delete']['tr-tr'] = "Bunu gerçekten silmek istiyor musunuz?";
|
||||
|
||||
$text['confirm-copy']['en-us'] = "Do you really want to copy this?";
|
||||
$text['confirm-copy']['en-gb'] = "Do you really want to copy this?";
|
||||
$text['confirm-copy']['en-us'] = "Do you really want to COPY this?";
|
||||
$text['confirm-copy']['en-gb'] = "Do you really want to COPY this?";
|
||||
$text['confirm-copy']['ar-eg'] = "";
|
||||
$text['confirm-copy']['de-at'] = "Wollen Sie das wirklich kopieren?"; //copied from de-de
|
||||
$text['confirm-copy']['de-ch'] = "Wollen Sie das wirklich kopieren?"; //copied from de-de
|
||||
@@ -455,28 +455,28 @@ $text['confirm-copy']['sv-se'] = "Vill du verkligen kopiera detta?";
|
||||
$text['confirm-copy']['uk-ua'] = "";
|
||||
$text['confirm-copy']['tr-tr'] = "Bunu gerçekten kopyalamak istiyor musunuz?";
|
||||
|
||||
$text['confirm-toggle']['en-us'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['en-gb'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['ar-eg'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['de-at'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['de-ch'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['de-de'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['el-gr'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['es-cl'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['es-mx'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['fr-ca'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['fr-fr'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['he-il'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['it-it'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['nl-nl'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['pl-pl'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['en-us'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['en-gb'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['ar-eg'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['de-at'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['de-ch'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['de-de'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['el-gr'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['es-cl'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['es-mx'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['fr-ca'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['fr-fr'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['he-il'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['it-it'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['nl-nl'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['pl-pl'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['pt-br'] = "Deseja realmente alterar?";
|
||||
$text['confirm-toggle']['pt-pt'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['ro-ro'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['ru-ru'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['sv-se'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['uk-ua'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['tr-tr'] = "Do you really want to toggle this?";
|
||||
$text['confirm-toggle']['pt-pt'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['ro-ro'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['ru-ru'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['sv-se'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['uk-ua'] = "Do you really want to TOGGLE this?";
|
||||
$text['confirm-toggle']['tr-tr'] = "Do you really want to TOGGLE this?";
|
||||
|
||||
$text['button-apply']['en-us'] = "Apply";
|
||||
$text['button-apply']['en-gb'] = "Apply";
|
||||
|
||||
@@ -1051,7 +1051,7 @@ if (!class_exists('menu')) {
|
||||
if (isset($_SESSION['username']) && $_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible']['text'] == "true") {
|
||||
$username_full = $_SESSION['username'].((count($_SESSION['domains']) > 1) ? "@".$_SESSION["user_context"] : null);
|
||||
$html .= " <li class='nav-item'>\n";
|
||||
$html .= " <a class='nav-link logout_icon' href='".PROJECT_PATH."/logout.php' title=\"".$text['theme-label-logout']."\" onclick=\"return confirm('".$this->text['theme-confirm-logout']."')\"><span class='fas fa-sign-out-alt'></span></a>";
|
||||
$html .= " <a class='nav-link logout_icon' href='#' title=\"".$this->text['theme-label-logout']."\" onclick=\"modal_open('modal-logout','btn_logout');\"><span class='fas fa-sign-out-alt'></span></a>";
|
||||
$html .= " </li>\n";
|
||||
unset($username_full);
|
||||
}
|
||||
@@ -1061,6 +1061,11 @@ if (!class_exists('menu')) {
|
||||
$html .= " </div>\n";
|
||||
$html .= "</nav>\n";
|
||||
|
||||
//modal for logout icon (above)
|
||||
if (isset($_SESSION['username']) && $_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible']['text'] == "true") {
|
||||
$html .= modal::create(['id'=>'modal-logout','type'=>'general','message'=>$this->text['theme-confirm-logout'],'actions'=>button::create(['type'=>'button','label'=>$this->text['theme-label-logout'],'icon'=>'sign-out-alt','id'=>'btn_logout','style'=>'float: right; margin-left: 15px;','collapse'=>'never','link'=>PROJECT_PATH.'/logout.php','onclick'=>"modal_close();"])]);
|
||||
}
|
||||
|
||||
return $html;
|
||||
unset($html);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010 - 2019
|
||||
Copyright (C) 2010 - 2020
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -32,7 +32,7 @@ if (!class_exists('modal')) {
|
||||
|
||||
$modal = "<div id='".($array['id'] ? $array['id'] : 'modal')."' class='modal-window'>\n";
|
||||
$modal .= " <div>\n";
|
||||
$modal .= " <a href='#' title=\"".$text['button-close']."\" class='modal-close'>".($array['close'] ? $array['close'] : '×')."</a>\n";
|
||||
$modal .= " <span title=\"".$text['button-close']."\" class='modal-close' onclick=\"modal_close();\">".($array['close'] ? $array['close'] : '×')."</span>\n";
|
||||
if ($array['type'] != '') {
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
@@ -51,6 +51,8 @@ if (!class_exists('modal')) {
|
||||
$array['title'] = $text['modal_title-confirmation'];
|
||||
$array['message'] = $text['confirm-delete'];
|
||||
break;
|
||||
default:
|
||||
$array['title'] = $array['title'] != '' ? $array['title'] : $text['modal_title-confirmation'];
|
||||
}
|
||||
//prefix cancel button to action
|
||||
$array['actions'] = button::create(['type'=>'button','label'=>$text['button-cancel'],'icon'=>$_SESSION['theme']['button_icon_cancel'],'collapse'=>'never','onclick'=>'modal_close();']).$array['actions'];
|
||||
@@ -69,4 +71,4 @@ if (!class_exists('modal')) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
@@ -78,7 +78,7 @@
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text_default = $language->get();
|
||||
$text_application = $language->get(null,'themes/default');
|
||||
$text_application = $language->get(null,'themes/'.$_SESSION['domain']['template']['name']);
|
||||
$text = array_merge($text_default, $text_application);
|
||||
|
||||
//set template variables
|
||||
|
||||
Reference in New Issue
Block a user