choices ) ) { return; } $name = $this->id; $value = $this->value(); ?> label ) ) : ?> label ); ?> description ) ) : ?> description; ?> '; foreach ( $this->choices as $list_key => $list_value ) { $selected = ''; if ( $list_key == $value ) { $selected = ' class="cpotheme-imagelist-selected"'; } $output .= ''; } $output .= ''; echo $output; } } class Antreas_Customize_Collection_Control extends WP_Customize_Control { public function render_content() { if ( empty( $this->choices ) ) { return; } $name = $this->id; $value = $this->value(); ?> label ) ) : ?> label ); ?> description ) ) : ?> description; ?> '; foreach ( $value as $current_key => $current_value ) { $counter++; $output .= '