From 4a01ea039f806264f3e91ba4e0416d3a38a1aaed Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Sat, 29 Aug 2015 14:37:05 -0400 Subject: [PATCH] Clean up api.php --- inc/api.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/inc/api.php b/inc/api.php index d5d3267..c066273 100644 --- a/inc/api.php +++ b/inc/api.php @@ -6,6 +6,7 @@ /** * Display custom CSS + * @since 3.6.3 */ function cwv3_the_css() { echo cwv3_get_css(); @@ -14,6 +15,7 @@ function cwv3_the_css() { /** * Get custom css * Uses filters so you can do what you want here programtically. + * @since 3.6.3 * @return string HTML/CSS */ function cwv3_get_css() { @@ -51,10 +53,21 @@ function cwv3_get_css() { return apply_filters( 'cwv3_css', ob_get_clean() ); } +/** + * Echos out the dialog + * + * @since 3.6.3 + */ function cwv3_js_dialog() { echo cwv3_get_js_dialog(); } +/** + * Builds dialog HTML + * + * @since 3.6.3 + * @return mixed|void + */ function cwv3_get_js_dialog() { $exit_text = get_option( 'cwv3_exit_txt', __( 'Exit', 'cwv3' ) ); @@ -105,4 +118,4 @@ function cwv3_get_js_dialog() {