|
|
$_width_key) : ?>
+ |
$_ads) : ?>
name)){
echo $groups[$_ad_group_id]->name;
} else {
_e('(ads without groups)', 'advanced-ads-responsive');
}
?> |
$_ad) : ?>
---|
post_title, null, null, $_ad->ID ); ?> | ad_options['visitors'] ) ){
foreach( $_ad->ad_options['visitors'] as $_condition ){
// get span
if( 'device_width' === $_condition['type'] ){
switch( $_condition['operator'] ){
case 'is_higher' :
$_from = absint( $_condition['value'] );
break;
case 'is_lower' :
$_to = absint( $_condition['value'] ) + 1;
break;
default :
$_from = absint( $_condition['value'] );
$_to = absint( $_condition['value'] );
}
}
}
}
$_fromkey = $widths[$_from];
$_endkey = ($_to > 1) ? $widths[$_to] : $max_columns;
$_colspan = $_endkey - $_fromkey;
for($_i = 0; $_i < $max_columns; $_i++){
$_class = (($_i >= $_fromkey && $_i < $_endkey) || !$_colspan) ? 'filled' : '';
?> |