PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.0.1
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.0.1
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/Items.php +1 -6 3.1.03.0.1 View file →
@@ -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,12 +116,8 @@
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 120 $query = 'total_page, current_page, data { id, fullsite_import, 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 }
@@ -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, has_settings, 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, 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 } }';
164 159 }
165 160
166 161 $response = $this->http()->query( $type, $params, [ 'slug' => $slug ] )->post();
167 162