Plugin Directory

Changeset 3327253


Ignore:
Timestamp:
07/14/2025 01:22:28 AM (9 months ago)
Author:
jespermhl
Message:

Release version 1.1.3

Location:
image-copyright-manager
Files:
8 edited
10 copied

Legend:

Unmodified
Added
Removed
  • image-copyright-manager/tags/1.1.3/CHANGELOG.txt

    r3327107 r3327253  
    55and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    66
    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
    819### Fixed
    920- 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  
    44 * Plugin URI:          https://mahelwebdesign.com/image-copyright-manager/
    55 * Description:         Adds a custom field for copyright information to WordPress media.
    6  * Version:             1.1.2
     6 * Version:             1.1.3
    77 * Requires at least:   6.4
    88 * Requires PHP:        7.4
  • image-copyright-manager/tags/1.1.3/includes/class-imagcoma-core.php

    r3327101 r3327253  
    1212class IMAGCOMA_Core {
    1313
    14     const VERSION = '1.1.2';
     14    const VERSION = '1.1.3';
    1515   
    1616    const TEXT_DOMAIN = 'image-copyright-manager';
     
    4545       
    4646        $defaults = array(
    47             'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' )
     47            'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ),
     48            'enable_css' => 1
    4849        );
    4950       
  • image-copyright-manager/tags/1.1.3/includes/class-imagcoma-display.php

    r3327036 r3327253  
    5353   
    5454    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        }
    5660    }
    5761}
  • image-copyright-manager/tags/1.1.3/includes/class-imagcoma-settings.php

    r3327101 r3327253  
    4141            __( 'Display Text Format', 'image-copyright-manager' ),
    4242            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' ),
    4351            'image-copyright-manager',
    4452            'imagcoma_general_section'
     
    8896    }
    8997   
     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   
    90116    public function sanitize_settings( $input ) {
    91117        $sanitized = array();
     
    95121        }
    96122
     123        if ( isset( $input['enable_css'] ) ) {
     124            $sanitized['enable_css'] = 1;
     125        } else {
     126            $sanitized['enable_css'] = 0;
     127        }
     128
    97129        return $sanitized;
    98130    }
  • image-copyright-manager/tags/1.1.3/languages/image-copyright-manager.pot

    r3327101 r3327253  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: Image Copyright Manager 1.1.2\n"
     9"Project-Id-Version: Image Copyright Manager 1.1.3\n"
    1010"Report-Msgid-Bugs-To: info@mahelwebdesign.com\n"
    1111"POT-Creation-Date: 2025-01-27 12:00+0000\n"
  • image-copyright-manager/tags/1.1.3/readme.txt

    r3327121 r3327253  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8787== Changelog ==
    8888
    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
    9896
    9997Please refer to the CHANGELOG.txt file for the complete changelog.
    10098
    10199== Upgrade Notice ==
     100
     101= 1.1.3 =
     102This update adds a CSS toggle setting and improves user control over plugin styling behavior.
    102103
    103104= 1.1.2 =
  • image-copyright-manager/trunk/CHANGELOG.txt

    r3327107 r3327253  
    55and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    66
    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
    819### Fixed
    920- 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  
    44 * Plugin URI:          https://mahelwebdesign.com/image-copyright-manager/
    55 * Description:         Adds a custom field for copyright information to WordPress media.
    6  * Version:             1.1.2
     6 * Version:             1.1.3
    77 * Requires at least:   6.4
    88 * Requires PHP:        7.4
  • image-copyright-manager/trunk/includes/class-imagcoma-core.php

    r3327101 r3327253  
    1212class IMAGCOMA_Core {
    1313
    14     const VERSION = '1.1.2';
     14    const VERSION = '1.1.3';
    1515   
    1616    const TEXT_DOMAIN = 'image-copyright-manager';
     
    4545       
    4646        $defaults = array(
    47             'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' )
     47            'display_text' => __( 'Copyright: {copyright}', 'image-copyright-manager' ),
     48            'enable_css' => 1
    4849        );
    4950       
  • image-copyright-manager/trunk/includes/class-imagcoma-display.php

    r3327036 r3327253  
    5353   
    5454    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        }
    5660    }
    5761}
  • image-copyright-manager/trunk/includes/class-imagcoma-settings.php

    r3327101 r3327253  
    4141            __( 'Display Text Format', 'image-copyright-manager' ),
    4242            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' ),
    4351            'image-copyright-manager',
    4452            'imagcoma_general_section'
     
    8896    }
    8997   
     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   
    90116    public function sanitize_settings( $input ) {
    91117        $sanitized = array();
     
    95121        }
    96122
     123        if ( isset( $input['enable_css'] ) ) {
     124            $sanitized['enable_css'] = 1;
     125        } else {
     126            $sanitized['enable_css'] = 0;
     127        }
     128
    97129        return $sanitized;
    98130    }
  • image-copyright-manager/trunk/languages/image-copyright-manager.pot

    r3327101 r3327253  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: Image Copyright Manager 1.1.2\n"
     9"Project-Id-Version: Image Copyright Manager 1.1.3\n"
    1010"Report-Msgid-Bugs-To: info@mahelwebdesign.com\n"
    1111"POT-Creation-Date: 2025-01-27 12:00+0000\n"
  • image-copyright-manager/trunk/readme.txt

    r3327121 r3327253  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8787== Changelog ==
    8888
    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
    9896
    9997Please refer to the CHANGELOG.txt file for the complete changelog.
    10098
    10199== Upgrade Notice ==
     100
     101= 1.1.3 =
     102This update adds a CSS toggle setting and improves user control over plugin styling behavior.
    102103
    103104= 1.1.2 =
Note: See TracChangeset for help on using the changeset viewer.