Changeset 3327253
- Timestamp:
- 07/14/2025 01:22:28 AM (9 months ago)
- Location:
- image-copyright-manager
- Files:
-
- 8 edited
- 10 copied
-
tags/1.1.3 (copied) (copied from image-copyright-manager/trunk)
-
tags/1.1.3/CHANGELOG.txt (copied) (copied from image-copyright-manager/trunk/CHANGELOG.txt) (1 diff)
-
tags/1.1.3/image-copyright-manager.php (copied) (copied from image-copyright-manager/trunk/image-copyright-manager.php) (1 diff)
-
tags/1.1.3/includes/class-imagcoma-core.php (copied) (copied from image-copyright-manager/trunk/includes/class-imagcoma-core.php) (2 diffs)
-
tags/1.1.3/includes/class-imagcoma-display.php (modified) (1 diff)
-
tags/1.1.3/includes/class-imagcoma-settings.php (copied) (copied from image-copyright-manager/trunk/includes/class-imagcoma-settings.php) (3 diffs)
-
tags/1.1.3/includes/class-imagcoma-shortcodes.php (copied) (copied from image-copyright-manager/trunk/includes/class-imagcoma-shortcodes.php)
-
tags/1.1.3/includes/css/copyright-styles.css (copied) (copied from image-copyright-manager/trunk/includes/css/copyright-styles.css)
-
tags/1.1.3/languages/image-copyright-manager.pot (copied) (copied from image-copyright-manager/trunk/languages/image-copyright-manager.pot) (1 diff)
-
tags/1.1.3/public (copied) (copied from image-copyright-manager/trunk/public)
-
tags/1.1.3/readme.txt (copied) (copied from image-copyright-manager/trunk/readme.txt) (2 diffs)
-
trunk/CHANGELOG.txt (modified) (1 diff)
-
trunk/image-copyright-manager.php (modified) (1 diff)
-
trunk/includes/class-imagcoma-core.php (modified) (2 diffs)
-
trunk/includes/class-imagcoma-display.php (modified) (1 diff)
-
trunk/includes/class-imagcoma-settings.php (modified) (3 diffs)
-
trunk/languages/image-copyright-manager.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-copyright-manager/tags/1.1.3/CHANGELOG.txt
r3327107 r3327253 5 5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 6 7 ## [1.1.2] - 2025-01-27 7 ## [1.1.3] - 2025-07-14 8 ### Added 9 - Added CSS toggle setting in admin panel (Settings → Image Copyright) 10 - Added ability to enable/disable custom CSS styling for copyright information 11 - Added checkbox control for "Enable CSS Styling" option 12 13 ### Changed 14 - CSS is now conditionally loaded based on user preference 15 - When CSS is disabled, copyright information displays with browser default styling 16 - Improved user control over plugin styling behavior 17 18 ## [1.1.2] - 2025-07-13 8 19 ### Fixed 9 20 - Fixed CSS class name mismatch between PHP code and CSS file (imagcoma-copyright-text vs icm-copyright-text) -
image-copyright-manager/tags/1.1.3/image-copyright-manager.php
r3327101 r3327253 4 4 * Plugin URI: https://mahelwebdesign.com/image-copyright-manager/ 5 5 * Description: Adds a custom field for copyright information to WordPress media. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Requires at least: 6.4 8 8 * Requires PHP: 7.4 -
image-copyright-manager/tags/1.1.3/includes/class-imagcoma-core.php
r3327101 r3327253 12 12 class IMAGCOMA_Core { 13 13 14 const VERSION = '1.1. 2';14 const VERSION = '1.1.3'; 15 15 16 16 const TEXT_DOMAIN = 'image-copyright-manager'; … … 45 45 46 46 $defaults = array( 47 'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ) 47 'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ), 48 'enable_css' => 1 48 49 ); 49 50 -
image-copyright-manager/tags/1.1.3/includes/class-imagcoma-display.php
r3327036 r3327253 53 53 54 54 public function enqueue_styles() { 55 wp_enqueue_style( 'imagcoma-copyright-styles', IMAGCOMA_PLUGIN_URL . 'includes/css/copyright-styles.css', array(), IMAGCOMA_Core::VERSION ); 55 $settings = IMAGCOMA_Core::get_settings(); 56 57 if ( $settings['enable_css'] ) { 58 wp_enqueue_style( 'imagcoma-copyright-styles', IMAGCOMA_PLUGIN_URL . 'includes/css/copyright-styles.css', array(), IMAGCOMA_Core::VERSION ); 59 } 56 60 } 57 61 } -
image-copyright-manager/tags/1.1.3/includes/class-imagcoma-settings.php
r3327101 r3327253 41 41 __( 'Display Text Format', 'image-copyright-manager' ), 42 42 array( $this, 'render_display_text_field' ), 43 'image-copyright-manager', 44 'imagcoma_general_section' 45 ); 46 47 add_settings_field( 48 'enable_css', 49 __( 'Enable CSS Styling', 'image-copyright-manager' ), 50 array( $this, 'render_enable_css_field' ), 43 51 'image-copyright-manager', 44 52 'imagcoma_general_section' … … 88 96 } 89 97 98 public function render_enable_css_field() { 99 $settings = IMAGCOMA_Core::get_settings(); 100 ?> 101 <label for="imagcoma_settings[enable_css]"> 102 <input 103 type="checkbox" 104 name="imagcoma_settings[enable_css]" 105 value="1" 106 <?php checked( $settings['enable_css'], 1 ); ?> 107 /> 108 <?php esc_html_e( 'Enable CSS styling for copyright information.', 'image-copyright-manager' ); ?> 109 </label> 110 <p class="description"> 111 <?php esc_html_e( 'When disabled, copyright information will be displayed without custom styling.', 'image-copyright-manager' ); ?> 112 </p> 113 <?php 114 } 115 90 116 public function sanitize_settings( $input ) { 91 117 $sanitized = array(); … … 95 121 } 96 122 123 if ( isset( $input['enable_css'] ) ) { 124 $sanitized['enable_css'] = 1; 125 } else { 126 $sanitized['enable_css'] = 0; 127 } 128 97 129 return $sanitized; 98 130 } -
image-copyright-manager/tags/1.1.3/languages/image-copyright-manager.pot
r3327101 r3327253 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Image Copyright Manager 1.1. 2\n"9 "Project-Id-Version: Image Copyright Manager 1.1.3\n" 10 10 "Report-Msgid-Bugs-To: info@mahelwebdesign.com\n" 11 11 "POT-Creation-Date: 2025-01-27 12:00+0000\n" -
image-copyright-manager/tags/1.1.3/readme.txt
r3327121 r3327253 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 1.1.2 = 90 * Fixed bugs and made minor improvements 91 * Updated the translation template (POT) file 92 * Improved code quality 93 * Fixed CSS class name mismatch between PHP code and CSS file (imagcoma-copyright-text vs icm-copyright-text) 94 * Fixed CSS class name mismatch for media list (imagcoma-media-list vs icm-media-list) 95 * Updated CSS selectors to match the actual class names used in PHP code 96 * Improved code consistency by aligning CSS class names with PHP implementation 97 * Enhanced maintainability by ensuring CSS and PHP use consistent naming conventions 89 = 1.1.3 = 90 - Added CSS toggle setting in admin panel (Settings → Image Copyright) 91 - Added ability to enable/disable custom CSS styling for copyright information 92 - Added checkbox control for "Enable CSS Styling" option 93 - CSS is now conditionally loaded based on user preference 94 - When CSS is disabled, copyright information displays with browser default styling 95 - Improved user control over plugin styling behavior 98 96 99 97 Please refer to the CHANGELOG.txt file for the complete changelog. 100 98 101 99 == Upgrade Notice == 100 101 = 1.1.3 = 102 This update adds a CSS toggle setting and improves user control over plugin styling behavior. 102 103 103 104 = 1.1.2 = -
image-copyright-manager/trunk/CHANGELOG.txt
r3327107 r3327253 5 5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 6 7 ## [1.1.2] - 2025-01-27 7 ## [1.1.3] - 2025-07-14 8 ### Added 9 - Added CSS toggle setting in admin panel (Settings → Image Copyright) 10 - Added ability to enable/disable custom CSS styling for copyright information 11 - Added checkbox control for "Enable CSS Styling" option 12 13 ### Changed 14 - CSS is now conditionally loaded based on user preference 15 - When CSS is disabled, copyright information displays with browser default styling 16 - Improved user control over plugin styling behavior 17 18 ## [1.1.2] - 2025-07-13 8 19 ### Fixed 9 20 - Fixed CSS class name mismatch between PHP code and CSS file (imagcoma-copyright-text vs icm-copyright-text) -
image-copyright-manager/trunk/image-copyright-manager.php
r3327101 r3327253 4 4 * Plugin URI: https://mahelwebdesign.com/image-copyright-manager/ 5 5 * Description: Adds a custom field for copyright information to WordPress media. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Requires at least: 6.4 8 8 * Requires PHP: 7.4 -
image-copyright-manager/trunk/includes/class-imagcoma-core.php
r3327101 r3327253 12 12 class IMAGCOMA_Core { 13 13 14 const VERSION = '1.1. 2';14 const VERSION = '1.1.3'; 15 15 16 16 const TEXT_DOMAIN = 'image-copyright-manager'; … … 45 45 46 46 $defaults = array( 47 'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ) 47 'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ), 48 'enable_css' => 1 48 49 ); 49 50 -
image-copyright-manager/trunk/includes/class-imagcoma-display.php
r3327036 r3327253 53 53 54 54 public function enqueue_styles() { 55 wp_enqueue_style( 'imagcoma-copyright-styles', IMAGCOMA_PLUGIN_URL . 'includes/css/copyright-styles.css', array(), IMAGCOMA_Core::VERSION ); 55 $settings = IMAGCOMA_Core::get_settings(); 56 57 if ( $settings['enable_css'] ) { 58 wp_enqueue_style( 'imagcoma-copyright-styles', IMAGCOMA_PLUGIN_URL . 'includes/css/copyright-styles.css', array(), IMAGCOMA_Core::VERSION ); 59 } 56 60 } 57 61 } -
image-copyright-manager/trunk/includes/class-imagcoma-settings.php
r3327101 r3327253 41 41 __( 'Display Text Format', 'image-copyright-manager' ), 42 42 array( $this, 'render_display_text_field' ), 43 'image-copyright-manager', 44 'imagcoma_general_section' 45 ); 46 47 add_settings_field( 48 'enable_css', 49 __( 'Enable CSS Styling', 'image-copyright-manager' ), 50 array( $this, 'render_enable_css_field' ), 43 51 'image-copyright-manager', 44 52 'imagcoma_general_section' … … 88 96 } 89 97 98 public function render_enable_css_field() { 99 $settings = IMAGCOMA_Core::get_settings(); 100 ?> 101 <label for="imagcoma_settings[enable_css]"> 102 <input 103 type="checkbox" 104 name="imagcoma_settings[enable_css]" 105 value="1" 106 <?php checked( $settings['enable_css'], 1 ); ?> 107 /> 108 <?php esc_html_e( 'Enable CSS styling for copyright information.', 'image-copyright-manager' ); ?> 109 </label> 110 <p class="description"> 111 <?php esc_html_e( 'When disabled, copyright information will be displayed without custom styling.', 'image-copyright-manager' ); ?> 112 </p> 113 <?php 114 } 115 90 116 public function sanitize_settings( $input ) { 91 117 $sanitized = array(); … … 95 121 } 96 122 123 if ( isset( $input['enable_css'] ) ) { 124 $sanitized['enable_css'] = 1; 125 } else { 126 $sanitized['enable_css'] = 0; 127 } 128 97 129 return $sanitized; 98 130 } -
image-copyright-manager/trunk/languages/image-copyright-manager.pot
r3327101 r3327253 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Image Copyright Manager 1.1. 2\n"9 "Project-Id-Version: Image Copyright Manager 1.1.3\n" 10 10 "Report-Msgid-Bugs-To: info@mahelwebdesign.com\n" 11 11 "POT-Creation-Date: 2025-01-27 12:00+0000\n" -
image-copyright-manager/trunk/readme.txt
r3327121 r3327253 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 1.1.2 = 90 * Fixed bugs and made minor improvements 91 * Updated the translation template (POT) file 92 * Improved code quality 93 * Fixed CSS class name mismatch between PHP code and CSS file (imagcoma-copyright-text vs icm-copyright-text) 94 * Fixed CSS class name mismatch for media list (imagcoma-media-list vs icm-media-list) 95 * Updated CSS selectors to match the actual class names used in PHP code 96 * Improved code consistency by aligning CSS class names with PHP implementation 97 * Enhanced maintainability by ensuring CSS and PHP use consistent naming conventions 89 = 1.1.3 = 90 - Added CSS toggle setting in admin panel (Settings → Image Copyright) 91 - Added ability to enable/disable custom CSS styling for copyright information 92 - Added checkbox control for "Enable CSS Styling" option 93 - CSS is now conditionally loaded based on user preference 94 - When CSS is disabled, copyright information displays with browser default styling 95 - Improved user control over plugin styling behavior 98 96 99 97 Please refer to the CHANGELOG.txt file for the complete changelog. 100 98 101 99 == Upgrade Notice == 100 101 = 1.1.3 = 102 This update adds a CSS toggle setting and improves user control over plugin styling behavior. 102 103 103 104 = 1.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.