Clean up api.php
This commit is contained in:
15
inc/api.php
15
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() {
|
||||
<?php
|
||||
$dialog_output = ob_get_clean();
|
||||
return apply_filters( 'cwv3_js_dialog_output', $dialog_output );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user