* @copyright (C) Copyright 2015 Audio Merchant, MyAudioMerchant.com. All rights reserved. * @license GNU/GPL http://www.gnu.org/licenses/gpl-3.0.txt This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ defined('ABSPATH') or die('No direct access!'); function audio_merchant_enqueue_frontend_player_scripts() { global $wp_scripts; $wp_scripts->queue = array(); wp_enqueue_script('audio-merchant-player-js', audio_merchant_make_url_protocol_less(plugins_url('audio-merchant-html-player-frontend.js', __FILE__)), array('jquery', 'jquery-ui-core', 'jquery-ui-tooltip', 'jquery-ui-slider')); } function audio_merchant_enqueue_frontend_player_styles() { global $wp_styles; $wp_styles->queue = array(); wp_enqueue_style('jquery-ui-css', audio_merchant_make_url_protocol_less(plugins_url('jquery-ui.css', __FILE__))); wp_enqueue_style('audio-merchant-frontend-css', audio_merchant_make_url_protocol_less(plugins_url('audio-merchant-html-player-frontend.css', __FILE__)), array('jquery-ui-css')); } add_action('wp_print_styles', 'audio_merchant_enqueue_frontend_player_styles', 1000); add_action('wp_print_scripts', 'audio_merchant_enqueue_frontend_player_scripts', 1000); ?>

    $audioRecord) { if(preg_match('@^https?://@i', $audioRecord['audio_cover_photo'])) { $coverPhotoUrl = '\''.audio_merchant_make_url_protocol_less($audioRecord['audio_cover_photo']).'\''; } elseif(!empty($audioRecord['audio_cover_photo'])) { $coverPhotoUrl = '\''.audio_merchant_make_url_protocol_less($uploadUrl.'/'.$audioRecord['audio_cover_photo']).'\''; } else { $coverPhotoUrl = 'null'; } if(preg_match('@^https?://@i', $audioRecord['audio_file_preview'])) { $previewFileUrl = audio_merchant_make_url_protocol_less($audioRecord['audio_file_preview']); } else { $previewFileUrl = audio_merchant_make_url_protocol_less($uploadUrl.'/'.$audioRecord['audio_file_preview']); } $audioRecords[$key]['cover_photo_url'] = $coverPhotoUrl; $audioRecords[$key]['preview_file_url'] = $previewFileUrl; ?>
  1. 0 && !is_user_logged_in()) { ?>