File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed
Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,8 @@ $search-item-hover: $primary-dark !default;
4646 display : flex ;
4747 flex-direction : column ;
4848 align-items : flex-start ;
49-
50- .search-item__meta-container {
51- order : -1 ;
52- }
5349 }
5450
55- & __breadcrumbs {
56- order : -1 ;
57- }
5851
5952 & __meta-item ,
6053 & __title {
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ private function enrich_results(
303303
304304 switch ( $ post_item ->post_type ) {
305305 case Page::SLUG :
306- $ post_item ->content_type = get_post_type_object ( Page::SLUG )->labels ->singular_name ;
306+ $ post_item ->page_content_type = \ get_post_type_object ( Page::SLUG )->labels ->singular_name ;
307307 $ post_item ->breadcrumbs = $ this ->prepare_by_type (
308308 Page::SLUG ,
309309 $ post_item ->ID ,
@@ -317,16 +317,14 @@ private function enrich_results(
317317
318318 break ;
319319 case Post::SLUG :
320- $ post_item ->content_type = get_post_type_object ( Post::SLUG )->labels ->singular_name ;
321-
322320 $ meta = $ this ->format_result_item_meta (
323321 $ post_item ,
324322 Post::get_primary_category ( $ post_item ->ID )
325323 );
326324
327325 break ;
328326 case BlogArticle::SLUG :
329- $ post_item ->content_type = get_post_type_object ( BlogArticle::SLUG )->labels ->singular_name ;
327+ $ post_item ->content_type = \ get_post_type_object ( BlogArticle::SLUG )->labels ->singular_name ;
330328
331329 $ meta = $ this ->format_result_item_meta (
332330 $ post_item ,
@@ -341,9 +339,9 @@ private function enrich_results(
341339 }
342340
343341 $ post_item ->meta = $ meta ;
344- $ post_item ->permalink = get_permalink ( $ post_item ->ID );
342+ $ post_item ->permalink = \ get_permalink ( $ post_item ->ID );
345343
346- apply_filters ( 'tms/theme/base/search_result_item ' , $ post_item );
344+ \ apply_filters ( 'tms/theme/base/search_result_item ' , $ post_item );
347345 }
348346
349347 return $ posts ;
Original file line number Diff line number Diff line change 1515 </h2>
1616
1717 {?meta}
18- <div class="search-item__meta-container has-text-weight-medium">
18+ <div class="search-item__meta-container has-text-weight-medium mt-4 ">
1919 {>"views/search/search-item-meta" /}
2020 </div>
2121 {/meta}
3333 {/post_excerpt}
3434 </div>
3535
36- <div class="search-item__breadcrumbs">
36+ <div class="search-item__breadcrumbs mt-4 ">
3737 {?breadcrumbs}
3838 <div class="search-item__meta-container has-text-weight-medium">
3939 <span class="is-sr-only">{Strings.s.search.breadcrumbs|html} </span>
4040 <div class="breadcrumb has-succeeds-separator">
41- <ul class="breadcrumbs__nav is-relative is-flex m-0 p-0 is-family-secondary">
41+ <ul class="breadcrumbs__nav is-relative is-flex p-0 is-family-secondary">
4242 {#breadcrumbs}
4343 <li class="{?is_active}is-active{/is_active} {?class}{class|attr}{/class}">
4444 {?permalink}
6868 {/breadcrumbs}
6969 </div>
7070
71+ <div class="search-item__content">
72+ {?page_content_type}
73+ <span class="mt-4 pill has-background-primary-invert has-text-primary is-bordered">
74+ {page_content_type|html}
75+ </span>
76+ {/page_content_type}
77+ </div>
78+
7179 </div>
7280 </div>
7381 {/results.posts}
You can’t perform that action at this time.
0 commit comments