conditions;
$options = $ad->options('conditions');
// error_log(print_r($display_conditions, true));
// error_log(print_r($options, true));
$empty_options = ( !is_array( $options ) || !count( $options ) );
if( $empty_options ) :
?>
class="advads-hide-in-wizard">
this article to learn more.', 'advanced-ads' ), ADVADS_URL . 'manual/jquery-problem-in-dashboard/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-jquery-error' ); ?>
$_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' ) . '';
?> |
| | |