get_conditions(); // add mockup conditions if add-ons are missing $pro_conditions = array(); if( ! defined( 'AAP_VERSION' ) ){ $pro_conditions[] = __( 'parent page', 'advanced-ads'); $pro_conditions[] = __( 'post meta', 'advanced-ads'); $pro_conditions[] = __( 'page template', 'advanced-ads'); $pro_conditions[] = __( 'url parameters', 'advanced-ads'); } if( ! defined( 'AAR_VERSION') ){ $pro_conditions[] = __( 'accelerated mobile pages', 'advanced-ads'); } asort( $pro_conditions ); $options = $ad->options('conditions'); $empty_options = ( !is_array( $options ) || !count( $options ) ); if( $empty_options ) : ?>

class="advads-hide-in-wizard">

 

$_options) : $show_or_force_warning = false; // get type attribute from previous option format $_options['type'] = isset($_options['type']) ? $_options['type'] : $_index; $connector = ( ! isset($_options['connector'] ) || 'or' !== $_options['connector'] ) ? 'and' : 'or'; if (isset($_options['type']) && isset($display_conditions[$_options['type']]['metabox'])) { $metabox = $display_conditions[$_options['type']]['metabox']; } else { continue; } if (method_exists($metabox[0], $metabox[1])) { /** * show warning for connector when * not set to OR already * this condition and the previous are on page level and not from the identical type * they are both set to SHOW */ $tax = ( isset( $_options['type'] ) && isset( $display_conditions[ $_options['type'] ]['taxonomy'] ) ) ? $display_conditions[ $_options['type'] ]['taxonomy'] : false; $last_tax = ( isset( $options[$last_index]['type'] ) && isset( $display_conditions[ $options[$last_index]['type'] ]['taxonomy'] ) ) ? $display_conditions[ $options[$last_index]['type'] ]['taxonomy'] : false; if( $tax && $last_tax && $last_tax === $tax && ( ! isset( $_options['connector'] ) || $_options['connector'] !== 'or' ) && 'is' === $_options['operator'] && 'is' === $options[$last_index]['operator'] && $_options['type'] !== $options[$last_index]['type'] ){ $show_or_force_warning = true; } if( $i > 0 ) : ?>

' . __( 'manual', 'advanced-ads' ) . ''; ?>

class="advads-hide-in-wizard">