| @@ -81,9 +81,8 @@ | ||
| 81 | 81 | $plan = $this->get_param( 'plan', 'all' ); |
| 82 | 82 | $plan_type = $this->get_plan( $plan ); |
| 83 | 83 | $platform = $this->get_param( 'platform', 'elementor' ); |
| 84 | 84 | $search = $this->get_param( 'search' ); |
| 85 | - $include_search = $this->get_param( 'include_search' ); | |
| 86 | 85 | $page = $this->get_param( 'page', 1, 'intval' ); |
| 87 | 86 | $per_page = $this->get_param( 'per_page', 40, 'intval' ); |
| 88 | 87 | $template_type_id = $this->get_param( 'template_type_id', 0, 'intval' ); |
| 89 | 88 | $category_id = $this->get_param( 'category_id', 0, 'intval' ); |
| @@ -117,13 +116,9 @@ | ||
| 117 | 116 | if ( ! empty( $search ) ) { |
| 118 | 117 | $funcArgs['search'] = $search; |
| 119 | 118 | } |
| 120 | 119 | |
| 121 | - if ( ! empty( $include_search ) ) { | |
| 122 | - $funcArgs['include_search'] = $include_search; | |
| 123 | - } | |
| 124 | - | |
| 125 | - $query = 'total_page, current_page, data { id, fullsite_import, name, price, rating, downloads, type, template_type{ slug }, slug, favourite_count, thumbnail, thumbnail2, thumbnail3 }'; | |
| 120 | + $query = 'total_page, current_page, data { id, name, price, rating, downloads, type, template_type{ slug }, slug, favourite_count, thumbnail, thumbnail2, thumbnail3 }'; | |
| 126 | 121 | if( $type !== 'packs' ) { |
| 127 | 122 | $query = 'total_page, current_page, data { id, name, price, rating, downloads, type, template_type{ slug }, slug, favourite_count, dependencies{ id, name, icon, plugin_file, plugin_original_slug, is_pro, link }, thumbnail }'; |
| 128 | 123 | } |
| 129 | 124 | |
| @@ -159,9 +154,9 @@ | ||
| 159 | 154 | $items_params = 'id, name, rating, type, description, slug, price, features, favourite_count, thumbnail, downloads, categories{ id, name, slug }, dependencies{ id, name, icon, plugin_file, plugin_original_slug, is_pro, link }, tags{ name, id }, categories{ name, id }, screenshots{ url }, banner, pack{ id, name, slug, items{ id, price, name, type, slug, thumbnail } }, live_url, template_type{ id, name, slug }'; |
| 160 | 155 | $params = 'data { ' . $items_params . ', variations { name, slug, type, platform } }'; |
| 161 | 156 | |
| 162 | 157 | if ( $type == 'packs' ) { |
| 163 | - $params = 'data { id, fullsite_import, name, rating, type, slug, live_url, price, features, favourite_count, thumbnail, downloads, categories{ id, name, slug }, items { ' . $items_params . ' }, variations { name, slug, type, platform } }'; | |
| 158 | + $params = 'data { id, name, rating, type, slug, live_url, price, features, favourite_count, thumbnail, downloads, categories{ id, name, slug }, items { ' . $items_params . ' }, variations { name, slug, type, platform } }'; | |
| 164 | 159 | } |
| 165 | 160 | |
| 166 | 161 | $response = $this->http()->query( $type, $params, [ 'slug' => $slug ] )->post(); |
| 167 | 162 | |