id_base = isset( $args['id_base'] ) ? strtolower( $args['id_base'] ) : strtolower( get_class( $this ) ); $this->name = isset( $args['name'] ) ? $args['name'] : get_class( $this ); $this->description = isset( $args['description'] ) ? $args['description'] : ''; $this->id = isset( $args['id'] ) ? $this->id_base . '_' . $args['id'] : $this->id_base; $this->icon = isset( $args['icon'] ) ? $args['icon'] : 'dashicons dashicons-plus'; $this->option_name = 'bloghash_customizer_widget_' . $this->id_base; $this->values = isset( $args['values'] ) ? $args['values'] : array(); $this->number = isset( $args['number'] ) ? intval( $args['number'] ) : '__i__'; $this->type = isset( $args['type'] ) ? $args['type'] : ''; $this->locations = isset( $args['locations'] ) ? $args['locations'] : array(); $this->visibility = isset( $args['visibility'] ) ? $args['visibility'] : array(); } /** * Displays the form fields for this widget. * * @since 1.0.0 * @return void */ public function form() {} /** * Displays the complete widget control. * * @since 1.0.0 * @return void */ public function template() { ?>

name ); ?>

form(); ?> locations ) && is_array( $this->locations ) && ! empty( $this->locations ) ) { ?> values['location'] ) ? $this->values['location'] : key( $this->locations ); ?>

locations as $id => $name ) { ?> data-option-name="location">

visibility ) && is_array( $this->visibility ) && ! empty( $this->visibility ) ) { ?> values['visibility'] ) ? $this->values['visibility'] : key( array_reverse( $this->visibility ) ); ?>

|

description ) ) { ?>
description ); ?>