get_pro_templates(); if (!$is_pro && in_array($template_id, $pro_templates, true)) { $template_id = 'minimal'; } $pages = get_pages([ 'sort_column' => 'post_title', 'sort_order' => 'ASC', 'post_status' => 'publish', ]); $elementor_templates = []; if (class_exists('\\Elementor\\Plugin')) { $elementor_templates = get_posts([ 'post_type' => 'elementor_library', 'post_status' => 'publish', 'posts_per_page' => 50, 'orderby' => 'title', 'order' => 'ASC', ]); } $preview_url = wp_nonce_url(add_query_arg([ 'kng_maintenance_preview' => 1, ], home_url('/')), 'kng_maintenance_preview', '_kng_preview_nonce'); ?>