0, 'label' => esc_html__('Select Categories','buzzstore') ); $buzzstore_posts = get_categories(); foreach ($buzzstore_posts as $buzzstore_post) : $buzzstore_category_list[$buzzstore_post->term_id] = array( 'value' => $buzzstore_post->term_id, 'label' => $buzzstore_post->name ); endforeach; extract($widget_field); switch ($buzzstore_widgets_field_type) { // Standard text field case 'text' : ?>
/>
';
foreach ($buzzstore_widgets_field_options as $buzzstore_option_name => $buzzstore_option_title) {
?>
/>
/>
'; if (isset($buzzstore_widgets_description)) { ?> get_field_id($buzzstore_widgets_name); $class = ''; $int = ''; $value = $buzzstore_field_value; $name = $instance->get_field_name($buzzstore_widgets_name); if ($value) { $class = ' has-file'; } $output .= '' . "\n"; echo $output; break; } } function buzzstore_widgets_updated_field_value($widget_field, $new_field_value) { extract($widget_field); if ($buzzstore_widgets_field_type == 'number') { return absint($new_field_value); } elseif ($buzzstore_widgets_field_type == 'textarea') { if (!isset($buzzstore_widgets_allowed_tags)) { $buzzstore_widgets_allowed_tags = '