HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
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 );
	}
}