Example #1
0
<?php

/**
 * AdsXML file for player.
 * 
 * @category   Apptha
 * @package    Contus video Gallery
 * @version    3.0
 * @author     Apptha Team <*****@*****.**>
 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html 
 */
/** Include plugin configuration */
require_once dirname(__FILE__) . '/hdflv-config.php';
/** Get published imaads from db */
$themediafiles = getVideoAdDetails('imaad', '1');
/** Get player height, width from settings */
$settings = getPluginSettings();
/** Set XML header for IMA ADs */
xmlHeader();
/** Set xml version and encoding for IMA ADs */
echo '<?xml version="1.0" encoding="utf-8"?>';
/** IMA ADS XML starts */
echo '<ima>';
/**
 * Check if ima ad details are exist
 * If exist, then display ima ad details
 * Otherwise display sample ima ad details    
 */
if (count($themediafiles) > 0) {
    /** Loop through IMA Ad details */
Example #2
0
<?php

/**
 * AdsXML file for player.
 * @category   Apptha
 * @package    Contus video Gallery
 * @version    3.0
 * @author     Apptha Team <*****@*****.**>
 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html 
 */
/** Used to import plugin configuration */
require_once dirname(__FILE__) . '/hdflv-config.php';
/** Select published midroll ads from db */
$themediafiles = getVideoAdDetails('midroll', '');
/** Set XML header for midroll ads */
xmlHeader();
/** Set xml version and encoding for Midroll */
echo '<?xml version="1.0" encoding="utf-8"?>';
/** Midroll XML data starts */
echo '<midrollad begin="5" adinterval="6" adrotate="false" random="false">';
/**
 * Check whether the ad details are exist 
 * If yes, display midroll ad details
 * Else display sample midroll ad details
 */
if (count($themediafiles) > 0) {
    /** Looping midroll details */
    foreach ($themediafiles as $rows) {
        /** Display midroll details as XML */
        echo ' <midroll targeturl="' . $rows->targeturl . '" clickurl="' . $rows->clickurl . '" impressionurl="' . $rows->impressionurl . '">
Example #3
0
    echo $checked;
}
?>
 value="0"> <label>No</label></td>
									</tr>

								</table>
							</div>
						</div>
<?php 
/** Enable/disbale publish option ends */
/** To display the list of pre roll ads */
/** Check whether preroll ads are enable
 * Get pre and post roll ad details to display in drop down */
global $wpdb;
$tables = getVideoAdDetails('prepost', '');
/** Get plugin settings for ads */
$settings = getPluginSettings();
/** Get goolge adsense detials to display in drop down */
$key = '.*"publish";s:1:"1"*.';
$google_adsenses = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "hdflvvideoshare_vgoogleadsense WHERE googleadsense_details REGEXP '{$key}'");
$flag = 0;
if ($settings->preroll == 0 || $settings->postroll == 0) {
    $flag = 1;
}
if ($flag || $settings->midroll_ads == 0 || $settings->imaAds == 0 || $player_colors['googleadsense_visible'] == 1) {
    ?>
  <?php 
    /** Enable/disbale preroll option */
    ?>
                  <div class="stuffbox" id="adstypebox"> <h3 class="hndle"> <span><?php 
Example #4
0
<?php

/**
 * AdsXML files
 * @category   Apptha
 * @package    Contus video Gallery
 * @version    3.0
 * @author     Apptha Team <*****@*****.**>
 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html 
 */
/** Used to include plugin configuration */
require_once dirname(__FILE__) . '/hdflv-config.php';
/** Get pre / post roll ad details from db */
$themediafiles = getVideoAdDetails('prepost', '');
/** Set video ads clicks URL */
$clicksURL = get_site_url() . '/wp-admin/admin-ajax.php?action=impressionclicks&click=click';
/** Set video ads Impression URL */
$impressionURL = get_site_url() . '/wp-admin/admin-ajax.php?action=impressionclicks&click=impression';
/** Set XML header for pre / post roll ads */
xmlHeader();
/**
 * Set xml version and encoding for ADs xml
 * Pre/ Post roll Ad XML starts here
 */
echo '<?xml version="1.0" encoding="utf-8"?>
    <ads random="false">';
/**
 * Check pre/ post roll ad exist
 * If yes, then display ads details  
 */