diff --git a/composer.lock b/composer.lock index 9c204ba806..71fbd74c51 100755 --- a/composer.lock +++ b/composer.lock @@ -1606,16 +1606,16 @@ }, { "name": "twbs/bootstrap-icons", - "version": "v1.11.2", + "version": "v1.11.3", "source": { "type": "git", "url": "https://github.com/twbs/icons.git", - "reference": "108565f11f099f177b31929e3eafc2c8d497fcd1" + "reference": "8d88686c03c3768a2d82ba4f20c3c4e1b100fa29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twbs/icons/zipball/108565f11f099f177b31929e3eafc2c8d497fcd1", - "reference": "108565f11f099f177b31929e3eafc2c8d497fcd1", + "url": "https://api.github.com/repos/twbs/icons/zipball/8d88686c03c3768a2d82ba4f20c3c4e1b100fa29", + "reference": "8d88686c03c3768a2d82ba4f20c3c4e1b100fa29", "shasum": "" }, "type": "library", @@ -1639,9 +1639,9 @@ ], "support": { "issues": "https://github.com/twbs/icons/issues", - "source": "https://github.com/twbs/icons/tree/v1.11.2" + "source": "https://github.com/twbs/icons/tree/v1.11.3" }, - "time": "2023-11-21T20:06:00+00:00" + "time": "2024-01-03T15:44:45+00:00" }, { "name": "webklex/composer-info", @@ -2036,25 +2036,27 @@ }, { "name": "nikic/php-parser", - "version": "v4.18.0", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" + "reference": "4a21235f7e56e713259a6f76bf4b5ea08502b9dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4a21235f7e56e713259a6f76bf4b5ea08502b9dc", + "reference": "4a21235f7e56e713259a6f76bf4b5ea08502b9dc", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.0" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -2062,7 +2064,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2086,9 +2088,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.0" }, - "time": "2023-12-10T21:03:43+00:00" + "time": "2024-01-07T17:17:35+00:00" }, { "name": "phar-io/manifest", diff --git a/modules/advanced_search/modules.php b/modules/advanced_search/modules.php index e256253ade..84d4416a58 100644 --- a/modules/advanced_search/modules.php +++ b/modules/advanced_search/modules.php @@ -188,12 +188,10 @@ protected function output() { */ class Hm_Output_advanced_search_content_start extends Hm_Output_Module { protected function output() { - return '
'. - ''. - ''. - $this->trans('Advanced Search').'
'; + return '
'. + ''. + ''. + ''.$this->trans('Advanced Search').'
'; } } @@ -223,37 +221,34 @@ protected function output() { $this->targets(). $this->times(). $this->other(). - '
'. - ' '; + '
'. + ' '; } protected function targets() { - return '
'.
-            $this->trans('targets').''.$this->trans('Targets'). + return '
'.$this->trans('Targets'). ''.sprintf($this->trans('targets: %d'), 0).'
'. - '
'. - '
'. - '
'.''. + ''. - '
'. + '
'.'
'. - '
'.$this->trans('Add').
-            ''; + '
'. + '
'; } protected function terms() { - return '
'.
-            $this->trans('terms').''.$this->trans('Terms'). + return '
'. + ''.$this->trans('Terms'). ''.sprintf($this->trans('terms: %d'), 0).'
'. - '
'. - ' !'. - ''.$this->trans('Add').'
'; + '
'. + '
!'. + '
'; } protected function times() { @@ -261,50 +256,45 @@ protected function times() { $from_date = date("Y-m-d", $from_time); $to_time = strtotime("+1 day", time()); $to_date = date("Y-m-d", $to_time); - return '
'.
-            $this->trans('time').''.$this->trans('Time'). + return '
'.$this->trans('Time'). ''.sprintf($this->trans('time ranges: %d'), 0).'
'. - '
'.$this->trans('From'). - ' '.$this->trans('To').' '.
-            $this->trans('Add').'
'; + '
'.$this->trans('From'). + ' '.$this->trans('To').'
'; } protected function sources() { - return '
'.
-            $this->trans('sources').''.$this->trans('Sources'). + return '
'.$this->trans('Sources'). ''.sprintf($this->trans('sources: %d'), 0).'
'. - '
'.$this->trans('IMAP').' '.$this->trans('Add').'
'.$this->trans('IMAP').'
'; } protected function other() { - return '
'.
-            $this->trans('other').''.$this->trans('Other'). + return '
'.$this->trans('Other'). ''.sprintf($this->trans('other settings: %d'), 0).'
'. - '
'.$this->trans('Character set').''. - '
'.$this->trans('Character set').'
'.$this->trans('Results per source').'
'.$this->trans('Flags').''. - '
'. - ''. - ''. - ''. - ''. - ''. - ''. - ''. - '
'; + '
'.$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 '
'.$this->trans('Results').
             ''.$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', 'CC' => 'Cc', ); - $res = ''; foreach ($flds as $val => $name) { $res .= '