diff --git a/app/basic_operator_panel/app_config.php b/app/basic_operator_panel/app_config.php index 25678f519d..b011b299e2 100644 --- a/app/basic_operator_panel/app_config.php +++ b/app/basic_operator_panel/app_config.php @@ -75,6 +75,14 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set if extensions are grouped by call_group when viewing all extensions."; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "0d3b16b0-5cd6-4d0e-8b58-967972362ef8"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "operator_panel"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "show_unregistered"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "true"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set whether unregistered extensions are displayed or not."; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "a9ccd174-5ae1-4f90-8ee2-b79a183a04f8"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "operator_panel_main_background_color"; diff --git a/app/basic_operator_panel/resources/content.php b/app/basic_operator_panel/resources/content.php index 603dd3fdd5..7ef6a56ede 100644 --- a/app/basic_operator_panel/resources/content.php +++ b/app/basic_operator_panel/resources/content.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2023 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -338,10 +338,16 @@ if (is_array($activity)) { } if ($found_count > 0) { //determine block style by state (if any) and register status - $style = !empty($ext_state) ? "op_ext op_state_".$ext_state : "op_ext"; + $css_class = !empty($ext_state) ? "op_ext op_state_".$ext_state : "op_ext"; } else { - $style = "off_ext"; + //unregistered extension + if (!empty($_SESSION['operator_panel']['$css_class']['boolean']) && $_SESSION['operator_panel']['$css_class']['boolean'] == 'true') { + $css_class = "ur_ext"; + } + else { + continue; + } } unset($extension_number, $found_count, $array); @@ -430,15 +436,15 @@ if (is_array($activity)) { } //build the list of extensions - $block = "
"; // DRAG TO - $block .= "\n"; + $block = "
"; // DRAG TO + $block .= "
\n"; $block .= " \n"; $block .= " \n"; - $block .= "
\n"; $block .= " \n"; // DRAG FROM $block .= "\n"; $block .= "\n"; $block .= " \n"; + $block .= " \n"; if ($dir_icon ?? '') { $block .= " \"".$text['label-call_direction']."\"\n"; } @@ -554,19 +560,19 @@ if (sizeof($user_extensions) > 0) { foreach ($valet_array as $row) { $extension = $row['extension']; $ext_state = 'active'; - $style = "op_ext op_valet_park_active"; + $css_class = "op_ext op_valet_park_active"; $draggable = false; //build the list of park extensions - $valet_block .= "
\n"; // DRAG TO - $valet_block .= "\n"; + $valet_block .= "
\n"; // DRAG TO + $valet_block .= "
\n"; $valet_block .= " \n"; $valet_block .= " \n"; - $valet_block .= "
\n"; $valet_block .= " "; // DRAG FROM $valet_block .= "\n"; $valet_block .= "\n"; $valet_block .= " \n"; + $valet_block .= " \n"; if ($dir_icon != '') { $valet_block .= " \"".$text['label-call_direction']."\"\n"; } diff --git a/themes/default/css.php b/themes/default/css.php index ff2820fe5b..8b5da185f6 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -2339,7 +2339,7 @@ else { //default: white cursor: default; } - div.off_ext { + div.ur_ext { position: relative; float: left; width: 235px; @@ -2359,20 +2359,20 @@ else { //default: white opacity: 0.5; } - div.off_ext:after { - position: absolute; - content: ""; - z-index: 10; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - display: block; - height: 100%; - top: 0; - left: 0; - right: 0; - background: ; - opacity: 0.5; + div.ur_ext:after { + position: absolute; + content: ""; + z-index: 10; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + display: block; + height: 100%; + top: 0; + left: 0; + right: 0; + background: ; + opacity: 0.5; } div.op_state_active { @@ -2393,7 +2393,7 @@ else { //default: white border-color: #B9A6FC; } - table.op_ext, table.off_ext { + table.op_ext, table.ur_ext { width: 100%; height: 70px; -moz-border-radius: 5px;