From c3fde6dc3c2500a278a655acdf6b41b575720202 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 25 Oct 2024 20:36:21 +0200 Subject: [PATCH] Move skins HTML into helper function Gotta render this in the admin, too. --- includes/functions/_helpers-templates.php | 49 +++++++++++++++++++++-- partials/account/_skins.php | 34 +--------------- 2 files changed, 47 insertions(+), 36 deletions(-) diff --git a/includes/functions/_helpers-templates.php b/includes/functions/_helpers-templates.php index dea84ac3..a28dacc0 100644 --- a/includes/functions/_helpers-templates.php +++ b/includes/functions/_helpers-templates.php @@ -2673,8 +2673,7 @@ function fictioneer_get_splide_loading_style( $json_string, $uid ) { */ function fictioneer_get_splide_placeholders( $uid = null, $ttb = false ) { - return apply_filters( 'fictioneer_filter_splide_placeholders', '', $uid, $ttb - ); + return apply_filters( 'fictioneer_filter_splide_placeholders', '', $uid, $ttb ); } // ============================================================================= @@ -2727,7 +2726,7 @@ if ( FICTIONEER_LIST_SCHEDULED_CHAPTERS ) { } // ============================================================================= -// GET CUSTOM CSS SKIN TRANSLATIONS +// CUSTOM CSS SKINS // ============================================================================= /** @@ -2750,3 +2749,47 @@ function fictioneer_get_skin_translations() { 'error' => _x( 'Error.', 'Custom CSS skin.', 'fictioneer' ) ); } + +/** + * Renders the HTML for the custom CSS skin interface + * + * @since 5.26.0 + */ + +function fictioneer_render_skin_interface() { + // Start HTML ---> ?> +