* @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!'); audio_merchant_db_install(); $supportedImageTypes = array('jpg', 'jpeg', 'png', 'gif'); $supportedAudioExtensions = wp_get_audio_extensions(); $uploadDir = wp_upload_dir(); $uploadUrl = $uploadDir['baseurl'].'/audio/'.get_current_blog_id(); $uploadDir = $uploadDir['basedir'].DIRECTORY_SEPARATOR.'audio'.DIRECTORY_SEPARATOR.get_current_blog_id(); $tempLinkExpirationsDays = (int)audio_merchant_get_setting('temp_download_link_expiration'); $currency = audio_merchant_get_setting('currency'); $downloadRequiresRegistration = (int)audio_merchant_get_setting('download_user_login_required'); $purchaseRequiresRegistration = (int)audio_merchant_get_setting('purchase_user_login_required'); $audioFiles = audio_merchant_get_audio(false); if(!get_option('css_frontend_default')) { update_option('css_frontend_default', file_get_contents(plugin_dir_path( __FILE__ ).'audio-merchant-html-player-frontend.css')); } ?>















    $audioFile) { if(preg_match('@^https?://@i', $audioFile[4])) { $coverPhotoUrl = $audioFile[4]; } else { $coverPhotoUrl = $uploadUrl.'/'.$audioFile[4]; } if(preg_match('@^https?://@i', $audioFile[5])) { $fileUrl = $audioFile[5]; } else { $fileUrl = $uploadUrl.'/'.$audioFile[5]; } if(!empty($audioFile[4])) { $coverPhoto = ''; } else { $coverPhoto = ''; } echo '
  1. '; } } else { echo '
  2. '.__('There are currently no files uploaded!', 'audio-merchant').'
  3. '; } ?>




Click here to upgrade >>', 'audio-merchant'); ?>















click here to upgrade for a $25 one-time fee >>', 'audio-merchant'); ?>