| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | add_filter( 'post_row_actions', [ $this, 'post_row_actions' ], 10, 2 ); |
| 37 | 37 | add_action( 'admin_footer', [ $this, 'app' ] ); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - // add_action( 'save_post', [ $this, 'save_post' ], 11, 3 ); | |
| 40 | + add_action( 'save_post', [ $this, 'save_post' ], 11, 3 ); | |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * If needed to add a filter for platform |
| @@ -216,8 +216,9 @@ | ||
| 216 | 216 | $types = templately()->theme_builder::$templates_manager->get_template_types(); |
| 217 | 217 | |
| 218 | 218 | $template_types = []; |
| 219 | 219 | $status_args = [ 'post_type' => 'templately_library' ]; |
| 220 | + $has_revert = FullSiteImport::has_revert(); | |
| 220 | 221 | |
| 221 | 222 | $template_types['all'] = [ |
| 222 | 223 | 'url' => add_query_arg( $status_args, 'edit.php' ), |
| 223 | 224 | 'label' => __( 'All', 'templately' ) |
| @@ -234,9 +235,15 @@ | ||
| 234 | 235 | 'label' => call_user_func( [ $type, 'get_title' ] ) |
| 235 | 236 | ]; |
| 236 | 237 | } |
| 237 | 238 | |
| 238 | - $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 ] ); | |
| 239 | 246 | return []; |
| 240 | 247 | } |
| 241 | 248 | |
| 242 | 249 | /** |