map(); $preview_url = static::atbs_get_preview_url(); require_once ATBS_DIR . 'includes/views/settings.php'; } } /** * atbs_get_preview_url * @return string|null */ public static function atbs_get_preview_url() { if (($post_id = get_option('atbs_post_id', null)) && ($post = get_post($post_id))) { return get_preview_post_link($post); } return null; } /** * Profile page * @return string */ public static function atbs_render_profile_page() { if (!static::atbs_is_logged_in()) { static::atbs_render_login_page(); } else { $profile = ATBS_Handlers::atbs_handle_get_profile(); require_once ATBS_DIR . 'includes/views/profile.php'; } } /** * Capture page * @return string */ public static function atbs_render_capture_page() { if (!static::atbs_is_logged_in()) { static::atbs_render_login_page(); } else { $links = ATBS_Handlers::atbs_handle_get_capture_links(); require_once ATBS_DIR . 'includes/views/capture.php'; } } /** * Help page * @return string */ public static function atbs_render_help_page() { require_once ATBS_DIR . 'includes/views/help.php'; } }