diff --git a/flowview_filters.php b/flowview_filters.php index ce9e6ec..597ed8f 100644 --- a/flowview_filters.php +++ b/flowview_filters.php @@ -27,6 +27,7 @@ include('./include/auth.php'); include_once($config['base_path'] . '/plugins/flowview/setup.php'); include_once($config['base_path'] . '/plugins/flowview/functions.php'); +include_once($config['base_path'] . '/plugins/flowview/ui_helpers.php'); include_once($config['base_path'] . '/lib/time.php'); include_once($config['base_path'] . '/lib/timespan_settings.php'); @@ -52,21 +53,11 @@ sort_filter(); break; case 'edit': - if (!isset_request_var('embed')) { - top_header(); - } - - edit_filter(); - - if (!isset_request_var('embed')) { - bottom_footer(); - } + flowview_filters_render_with_layout('edit_filter', true); break; default: - top_header(); - show_filters(); - bottom_footer(); + flowview_filters_render_with_layout('show_filters'); break; } @@ -399,4 +390,3 @@ function clearFilter() { form_end(); } - diff --git a/tests/test_layout_wrapper.php b/tests/test_layout_wrapper.php new file mode 100644 index 0000000..c07aeba --- /dev/null +++ b/tests/test_layout_wrapper.php @@ -0,0 +1,85 @@ +