!['.
- $this->trans('sources').']('.Hm_Image_Sources::$folder.')
'.$this->trans('Sources').
+ return '
'.$this->trans('Sources').
''.sprintf($this->trans('sources: %d'), 0).'
'.
- '
'.$this->trans('IMAP').'
!['.$this->trans('Add').']('.Hm_Image_Sources::$plus.')
';
}
protected function other() {
- return '
!['.
- $this->trans('other').']('.Hm_Image_Sources::$cog.')
'.$this->trans('Other').
+ return '
'.$this->trans('Other').
''.sprintf($this->trans('other settings: %d'), 0).'
'.
- '
'.$this->trans('Character set').' | |
---|
'.$this->trans('Flags').' | '.
+ ' |
---|
';
}
}
@@ -314,7 +304,7 @@ protected function other() {
*/
class Hm_Output_advanced_search_form_end extends Hm_Output_Module {
protected function output() {
- return '
![]('.
+ return '</div><div class=)
!['.$this->trans('Results').
']('.
Hm_Image_Sources::$env_closed.')
'.$this->trans('Search Results').'
'.
'
'.message_controls($this).' '.combined_sort_dialog($this).'
'.
diff --git a/modules/advanced_search/site.css b/modules/advanced_search/site.css
index d5d7f1f90e..3329cbac59 100644
--- a/modules/advanced_search/site.css
+++ b/modules/advanced_search/site.css
@@ -1,19 +1,9 @@
-.targets_section, .other_section, .submit_section, .time_section, .source_section, .terms_section { padding: 20px; padding-left: 60px; margin-bottom: 10px; }
.adv_controls { margin-left: 25px; display: none; }
-.targets_section img, .time_section img, .source_section img, .terms_section img { cursor: pointer; margin-left: 10px; vertical-align: -3px; opacity: .4; }
-.submit_section { margin-top: 20px; }
-.other_section table, .targets_section table { width: 1%; white-space: nowrap; margin-bottom: 5px; }
-.other_section th, .targets_section th { vertical-align: top; font-weight: normal; text-align: left; padding: 5px; padding-bottom: 10px; }
-.other_section .flags { line-height: 150%; }
-.andor { width: 200px; padding: 10px; text-align: center; }
-.timeandor { width: 400px; padding: 10px; text-align: center; }
.adv_folder_list { width: 400px; }
.adv_source_list { margin-top: 10px; line-height: 150%; }
.adv_source_list img { margin-right: 10px; }
-.adv_collapse_all, .adv_expand_all { margin-right: 10px; opacity: .4; vertical-align: -1px; cursor: pointer; }
.adv_expand_all { display: none; }
#adv_search { cursor: pointer; }
-.search_result_title { margin-bottom: 20px; }
.source_count, .time_count, .target_count, .other_count, .term_count { display: none; float: right; margin-right: 30px; }
.imap_support_required { padding: 100px; text-align: center; font-size: 120%; color: #666; }
.adv_reset { margin-left: 20px; cursor: pointer; }
diff --git a/modules/advanced_search/site.js b/modules/advanced_search/site.js
index 0d2fe3e80a..0591788a71 100644
--- a/modules/advanced_search/site.js
+++ b/modules/advanced_search/site.js
@@ -4,13 +4,14 @@ var add_remove_terms = function(el) {
var close = $(globals.close_html);
var count = $('.adv_terms').length;
var term = $('#adv_term').clone(false);
- var not_chk = $('
!');
- var and_or_html = '
and
!');
+ var and_or_html = '
and or
';
var and_or = $(and_or_html);
term.attr('id', 'adv_term'+count);
close.attr('id', 'term_adv_remove'+count);
+ close.addClass('ms-2');
and_or.attr('id', 'term_and_or'+count);
not_chk.attr('id', 'adv_term_not'+count);
$(el).prev().after(and_or.prop('outerHTML')+not_chk.prop('outerHTML')+term.prop('outerHTML')+close.prop('outerHTML'));
@@ -27,14 +28,15 @@ var add_remove_terms = function(el) {
var add_remove_times = function(el) {
var close = $(globals.close_html);
var count = $('.adv_times').length;
- var time_html = '
From To ';
+ var time_html = '
From To ';
var timeset = $(time_html);
- var and_or_html = '
or
';
var and_or = $(and_or_html);
timeset.attr('id', 'adv_time'+count);
close.attr('id', 'time_adv_remove'+count);
+ close.addClass('me-2');
and_or.attr('id', 'time_and_or'+count);
$(el).prev().after(and_or.prop('outerHTML')+timeset.prop('outerHTML')+close.prop('outerHTML'));
$('#time_adv_remove'+count).on("click", function() {
@@ -48,8 +50,8 @@ var add_remove_targets = function(el) {
var close = $(globals.close_html);
var count = $('.adv_targets').length;
var target = $('#adv_target').clone(false);
- var and_or_html = '
and and or
';
var and_or = $(and_or_html);
@@ -57,6 +59,7 @@ var add_remove_targets = function(el) {
$('.target_radio', target).attr('name', 'target_type'+count);
$('.target_radio', target).removeAttr('checked');
close.attr('id', 'target_adv_remove'+count);
+ close.addClass('ms-2');
and_or.attr('id', 'target_and_or'+count);
$(el).prev().after(and_or.prop('outerHTML')+target.prop('outerHTML')+close.prop('outerHTML'));
$(el).hide();
@@ -84,7 +87,7 @@ var expand_adv_folder = function(res) {
var adv_select_imap_folder = function(el) {
var close = $(globals.close_html);
- close.addClass('close_adv_folders');
+ close.addClass('close_adv_folders ms-2');
var list_container = $('.adv_folder_list');
var folders = $('.email_folders').clone(false);
folders.find('.manage_folders_li').remove();
@@ -515,13 +518,7 @@ var adv_reset_page = function() {
$(function() {
if (hm_page_name() == 'advanced_search') {
- globals.close_html = '
![R';
- globals.close_html += 'emove](data:image/svg+xml,%3Csvg%20xmlns%3D%22';
- globals.close_html += 'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%228%2';
- globals.close_html += '2%20viewBox%3D%220%200%208%208%22%3E%0A%20%20%3Cpath%20d%3D%22M4%200c-2.21%';
- globals.close_html += '200-4%201.79-4%204s1.79%204%204%204%204-1.79%204-4-1.79-4-4-4zm-1.5%201.781';
- globals.close_html += 'l1.5%201.5%201.5-1.5.719.719-1.5%201.5%201.5%201.5-.719.719-1.5-1.5-1.5%201';
- globals.close_html += '.5-.719-.719%201.5-1.5-1.5-1.5.719-.719z%22%20%2F%3E%0A%3C%2Fsvg%3E)
';
+ globals.close_html = '
';
$('.settings_subtitle').on("click", function() { return Hm_Utils.toggle_page_section($(this).data('target')); });
$('.adv_folder_select').on("click", function() { adv_select_imap_folder(this); });
diff --git a/modules/core/message_list_functions.php b/modules/core/message_list_functions.php
index f1cda526ec..cc12fad359 100644
--- a/modules/core/message_list_functions.php
+++ b/modules/core/message_list_functions.php
@@ -546,7 +546,7 @@ function search_field_selection($current, $output_mod) {
'TO' => 'To',
'CC' => 'Cc',
);
- $res = '