$field ) { if ( $first_field === $name ) { do_action( "acatw_form_before_fields_{$fieldset}", $instance, $widget ); } do_action( "acatw_form_before_field_{$name}", $instance, $widget ); // output the actual field echo apply_filters( "acatw_form_field_{$name}", $field, $instance, $widget ) . "\n"; do_action( "acatw_form_after_field_{$name}", $instance, $widget ); if ( $last_field === $name ) { do_action( "acatw_form_after_fields_{$fieldset}", $instance, $widget ); } } $fieldset = ob_get_clean(); echo $fieldset; } /** * Build section header for widget form * * @access public * * @since 1.0 * * @param string $fieldset Slug of fieldset. * @param array $title Name of fieldset. * @param array $instance Current settings. * @param object $widget Widget object. */ public static function build_section_header( $fieldset = 'general', $title = 'General Settings', $instance, $widget ) { ob_start(); ?>

__( 'Category Name', 'advanced-categories-widget' ), 'count' => __( 'Post Count', 'advanced-categories-widget' ), ); $params = apply_filters( 'acatw_allowed_orderby_params', $_orderby ); $params = Advanced_Categories_Widget_Utils::sanitize_select_array( $params ); return $params; } /** * Builds form field: order * * @access public * * @since 1.0 * * @param array $instance Current settings. * @param object $widget Widget object. */ public static function build_field_order( $instance, $widget ) { ob_start(); ?>

$label ) { self::build_term_select( $name, $label, $instance, $widget ); } endif; ?> 0, 'number' => 99 ) ); $args['fields'] = 'all'; // don't allow override $args['taxonomy'] = $taxonomy; // don't allow override $_terms = get_terms( $taxonomy, $args ); if( empty( $_terms ) || is_wp_error( $_terms ) ) { return; } ?> %s:

', sprintf( __( '%s', 'advanced-categories-widget' ), $label ) ); ?>
taxonomy][$_term->term_id] )) ? 'checked="checked"' : '' ; printf( '
', $widget->get_field_id( 'tax_term-' . $taxonomy . '-' . $_term->term_id ), $widget->get_field_name( 'tax_term' ) . '['.$taxonomy.']['.$_term->term_id.']', $_term->term_id, $checked, sprintf( __( '%s', 'advanced-categories-widget' ), $_term->name ), $_term->count ); ?>

/>

drop down for widget form */ public static function build_img_select( $instance, $widget ) { $sizes = Advanced_Categories_Widget_Utils::get_allowed_image_sizes( $fields = 'all' ); if( count( $sizes ) ) : ?>




/>


/>

/>