* @license GPL-2.0+ * @link http://webgilde.com * @copyright 2014-2017 Thomas Maier, webgilde GmbH * @since 1.8 * * Class containing information about the dummy ad type * */ class Advanced_Ads_Ad_Type_Dummy extends Advanced_Ads_Ad_Type_Abstract{ /** * ID - internal type of the ad type */ public $ID = 'dummy'; /** * set basic attributes */ public function __construct() { $this->title = __( 'Dummy', 'advanced-ads' ); $this->description = __( 'Uses a simple placeholder ad for quick testing.', 'advanced-ads' ); } /** * output for the ad parameters metabox * * this will be loaded using ajax when changing the ad type radio buttons * echo the output right away here * name parameters must be in the "advanced_ads" array * * @param obj $ad ad object */ public function render_parameters( $ad ){ // don’t show url field if tracking plugin enabled if( ! defined( 'AAT_VERSION' )) : $url = ( ! empty( $ad->url ) ) ? esc_attr( $ad->url ) : home_url(); ?>

url ) ) ? esc_url( $ad->url ) : ''; // get general target setting $options = Advanced_Ads::get_instance()->options(); $target_blank = !empty( $options['target-blank'] ) ? ' target="_blank"' : ''; ob_start(); if( ! defined( 'AAT_VERSION' ) && $url ){ echo ''; } echo ''; if( ! defined( 'AAT_VERSION' ) && $url ){ echo ''; } return ob_get_clean(); } }