| @@ -39,9 +39,10 @@ | ||
| 39 | 39 | 'title_tag' => 'h2', |
| 40 | 40 | 'layout_type' => '', |
| 41 | 41 | 'list_icon_url' => '', |
| 42 | 42 | 'sidebar_layout' => '', |
| 43 | - 'list_icon_name' => '' | |
| 43 | + 'list_icon_name' => '', | |
| 44 | + 'lazy_load' => false | |
| 44 | 45 | ]; |
| 45 | 46 | } |
| 46 | 47 | |
| 47 | 48 | public function view_params() { |
| @@ -46,9 +47,9 @@ | ||
| 46 | 47 | |
| 47 | 48 | public function view_params() { |
| 48 | 49 | $terms_query = $this->query->terms_query( |
| 49 | 50 | [ |
| 50 | - 'multiple_kb' => $this->attributes['multiple_knowledge_base'], | |
| 51 | + 'multiple_kb' => ( $this->attributes['multiple_knowledge_base'] && ! empty( $this->attributes['kb_slug'] ) ) ? true : false, | |
| 51 | 52 | 'kb_slug' => $this->attributes['kb_slug'], |
| 52 | 53 | 'terms' => $this->attributes['terms'], |
| 53 | 54 | 'order' => $this->attributes['terms_order'], |
| 54 | 55 | 'orderby' => $this->attributes['terms_orderby'], |
| @@ -89,9 +90,10 @@ | ||
| 89 | 90 | 'layout_type' => $this->attributes['layout_type'], |
| 90 | 91 | 'list_icon_url' => $this->attributes['list_icon_url'], |
| 91 | 92 | 'sidebar_layout' => $this->attributes['sidebar_layout'], |
| 92 | 93 | 'list_icon_name' => $this->attributes['list_icon_name'], |
| 93 | - 'title_tag' => $this->attributes['title_tag'] | |
| 94 | + 'title_tag' => $this->attributes['title_tag'], | |
| 95 | + 'lazy_load' => ! empty( $this->attributes['lazy_load'] ) | |
| 94 | 96 | ]; |
| 95 | 97 | } |
| 96 | 98 | |
| 97 | 99 | public function render( $atts, $content = null ) { |