File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/website-song/helper.php
<?php
if ( ! function_exists( 'neobeat_core_is_page_website-song_enabled' ) ) {
function neobeat_core_is_page_website_song_enabled() {
return neobeat_core_get_post_value_through_levels( 'qodef_enable_page_website_song' ) === 'yes';
}
}
if ( ! function_exists( 'neobeat_core_load_page_website_song' ) ) {
/**
* Loads Spinners HTML
*/
function neobeat_core_load_page_website_song() {
if ( neobeat_core_is_page_website_song_enabled() ) {
$parameters = array();
neobeat_core_template_part( 'website-song', 'templates/website-song', '', $parameters );
}
}
add_action( 'neobeat_action_after_body_tag_open', 'neobeat_core_load_page_website_song' );
}
if ( ! function_exists( 'neobeat_core_get_website_songs' ) ) {
function neobeat_core_get_website_songs() {
$html = '';
$source = neobeat_core_get_post_value_through_levels( 'qodef_website_song_source' );
if ( ! empty( $source ) ) {
$html = wp_get_attachment_url($source);
}
echo esc_url( $html );
}
}