0, 'label' => esc_html__('--choose--','buzmag') ); $arg = array('posts_per_page' => -1); $buzmag_pages = get_pages($arg); foreach($buzmag_pages as $buzmag_page) : $buzmag_pagelist[$buzmag_page->ID] = array( 'value' => $buzmag_page->ID, 'label' => $buzmag_page->post_title ); endforeach; //print_r($widget_field); extract( $widget_field ); switch( $buzmag_widgets_field_type ) { // Standard text field case 'text' : ?>


'; foreach ( $buzmag_widgets_field_options as $athm_option_name => $athm_option_title) { if( isset( $athm_field_value[$athm_option_name] ) ) { $athm_field_value[$athm_option_name] = 1; }else{ $athm_field_value[$athm_option_name] = 0; } ?>

/>

'; if (isset($buzmag_widgets_description)) { ?>

'; foreach( $buzmag_widgets_field_options as $athm_option_name => $athm_option_title ) { ?> />




'; } return strip_tags( $new_field_value, $buzmag_widgets_allowed_tags ); } else { return strip_tags( $new_field_value ); } }