field, array(
'add_title' => esc_html__( 'Add Gallery', 'sakurairo_csf' ),
'edit_title' => esc_html__( 'Edit Gallery', 'sakurairo_csf' ),
'clear_title' => esc_html__( 'Clear', 'sakurairo_csf' ),
) );
$hidden = ( empty( $this->value ) ) ? ' hidden' : '';
echo $this->field_before();
echo '
';
if ( ! empty( $this->value ) ) {
$values = explode( ',', $this->value );
foreach ( $values as $id ) {
$attachment = wp_get_attachment_image_src( $id, 'thumbnail' );
echo '';
}
}
echo '
';
echo ''. $args['add_title'] .'';
echo ''. $args['edit_title'] .'';
echo ''. $args['clear_title'] .'';
echo 'field_attributes() .'/>';
echo $this->field_after();
}
}
}