PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.11.0
Image Source Control Lite – Show Image Credits and Captions v3.11.0
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
← All changes | includes/image-sources/admin/fields.php +1 -14 trunk3.11.0 View file →
@@ -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' );