| @@ -93,23 +93,10 @@ | ||
| 93 | 93 | $form_fields['isc_image_source_url']['label'] = __( 'Image Source URL', 'image-source-control-isc' ); |
| 94 | 94 | $form_fields['isc_image_source_url']['value'] = Image_Sources::get_image_source_url( $post->ID ); |
| 95 | 95 | $form_fields['isc_image_source_url']['helps'] = __( 'URL to link the source text to.', 'image-source-control-isc' ); |
| 96 | 96 | |
| 97 | - $options = $this->get_options(); | |
| 98 | - | |
| 99 | - if ( ! empty( $options['ai_images']['show_label'] ) ) { | |
| 100 | - $form_fields['isc_ai_label']['input'] = 'html'; | |
| 101 | - $form_fields['isc_ai_label']['label'] = __( 'AI label', 'image-source-control-isc' ); | |
| 102 | - $form_fields['isc_ai_label']['helps'] = __( 'Choose a label for AI-generated images.', 'image-source-control-isc' ); | |
| 103 | - $html = '<select name="attachments[' . $post->ID . '][isc_ai_label]" id="attachments[' . $post->ID . '][isc_ai_label]">'; | |
| 104 | - $html .= '<option value="">--</option>'; | |
| 105 | - foreach ( Ai_Labels::get_labels() as $value => $label ) { | |
| 106 | - $html .= '<option value="' . esc_attr( $value ) . '" ' . selected( Image_Sources::get_ai_label( $post->ID ), $value, false ) . '>' . esc_html( $label ) . '</option>'; | |
| 107 | - } | |
| 108 | - $html .= '</select>'; | |
| 109 | - $form_fields['isc_ai_label']['html'] = $html; | |
| 110 | - } | |
| 111 | 97 | // add input field for license, if enabled |
| 98 | + $options = $this->get_options(); | |
| 112 | 99 | $licences = Utils::licences_text_to_array( $options['licences'] ); |
| 113 | 100 | if ( $options['enable_licences'] && $licences ) { |
| 114 | 101 | $form_fields['isc_image_licence']['input'] = 'html'; |
| 115 | 102 | $form_fields['isc_image_licence']['label'] = __( 'Image License', 'image-source-control-isc' ); |