ads'] = array(
'name' => __( 'Show Ads?', 'better-studio' ),
'id' => '_bs_smart_lists_ads',
'type' => 'switch',
'on-label' => __( 'Enable', 'better-studio' ),
'off-label' => __( 'Disable', 'better-studio' ),
'desc' => __( 'You can show/hide all smart list ads for this post.', 'better-studio' ),
'show_on' => array(
array(
'_bs_smart_lists_enabled=1',
)
),
);
}
return $fields;
}
}
add_filter( 'better-framework/metabox/better_smart_lists_pack_metabox/std', 'bs_smart_lists_metabox_std', 10 );
if ( ! function_exists( 'bs_smart_lists_metabox_std' ) ) {
/**
* Configs metaboxe STD's
*
* @param $fields
*
* @return array
*/
function bs_smart_lists_metabox_std( $fields ) {
$fields['_bs_smart_lists_enabled'] = array(
'std' => 0,
);
$fields['_bs_smart_lists_style'] = array(
'std' => 'default',
);
$fields['_bs_smart_lists_title_tag'] = array(
'std' => 'h3',
);
$fields['_bs_smart_lists_sort'] = array(
'std' => 'asc',
);
$fields['_bs_smart_lists_ads'] = array(
'std' => 1,
);
return $fields;
}
}