PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.2.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.2.0
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/Builder/Source.php +10 -2 3.1.03.2.0 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace Templately\Builder;
4 4
5 +use Templately\Core\Importer\FullSiteImport;
5 6 use Templately\Utils\Helper;
6 7 use WP_Post;
7 8 use WP_Query;
8 9
@@ -35,9 +36,9 @@
35 36 add_filter( 'post_row_actions', [ $this, 'post_row_actions' ], 10, 2 );
36 37 add_action( 'admin_footer', [ $this, 'app' ] );
37 38 }
38 39
39 - add_action( 'save_post', [ $this, 'save_post' ], 11, 3 );
40 + // add_action( 'save_post', [ $this, 'save_post' ], 11, 3 );
40 41 }
41 42
42 43 /**
43 44 * If needed to add a filter for platform
@@ -215,8 +216,9 @@
215 216 $types = templately()->theme_builder::$templates_manager->get_template_types();
216 217
217 218 $template_types = [];
218 219 $status_args = [ 'post_type' => 'templately_library' ];
220 + $has_revert = FullSiteImport::has_revert();
219 221
220 222 $template_types['all'] = [
221 223 'url' => add_query_arg( $status_args, 'edit.php' ),
222 224 'label' => __( 'All', 'templately' )
@@ -233,9 +235,15 @@
233 235 'label' => call_user_func( [ $type, 'get_title' ] )
234 236 ];
235 237 }
236 238
237 - $this->builder::$views->get( 'builder/tabs', [ 'tabs' => $tabs, 'template_types' => $template_types ] );
239 + $status_args['type'] = 'settings';
240 + $template_types['settings'] = [
241 + 'url' => add_query_arg( $status_args, 'edit.php' ),
242 + 'label' => __( 'Miscellaneous', 'templately' )
243 + ];
244 +
245 + $this->builder::$views->get( 'builder/tabs', [ 'tabs' => $tabs, 'template_types' => $template_types, 'has_revert' => $has_revert ] );
238 246 return [];
239 247 }
240 248
241 249 /**