Changeset 3267433
- Timestamp:
- 04/06/2025 10:12:54 AM (9 months ago)
- Location:
- jamp-notes/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
admin/partials/jamp-admin-admin-bar.php (modified) (1 diff)
-
jamp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jamp-notes/trunk/README.txt
r3187805 r3267433 3 3 Tags: notes, note, memo, dashboard 4 4 Requires at least: 4.9 5 Tested up to: 6. 75 Tested up to: 6.8 6 6 Requires PHP: 5.6 7 Stable tag: 1.5. 27 Stable tag: 1.5.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 == Changelog == 90 90 91 **1.5.3 [2025-04-06]** 92 93 - Tested on WordPress 6.8. 94 - Fixed: section notes without a color were displayed in yellow. 95 - Fixed: show a default text on section notes without a title. 96 91 97 **1.5.2 [2024-11-13]** 92 98 -
jamp-notes/trunk/admin/partials/jamp-admin-admin-bar.php
r3187805 r3267433 98 98 $note_modified_date = date_i18n( $date_time_format, strtotime( $note->post_modified ) ); 99 99 $note_created_date = date_i18n( $date_time_format, strtotime( $note->post_date ) ); 100 $note_title = ( ! empty( $note->post_title ) ? $note->post_title : __( '(no title)' ) ); 100 101 101 102 $jamp_meta = get_post_meta( $note->ID ); 102 103 $note_color_class = 'jamp-note--color-yellow'; 103 if ( isset( $jamp_meta['jamp_color'][0] ) && ! empty( $jamp_meta['jamp_color'][0] ) ) { 104 $note_color_class = 'jamp-note--color-' . $jamp_meta['jamp_color'][0]; 104 105 if ( isset( $jamp_meta['jamp_color'] ) ) { 106 if ( ! empty( $jamp_meta['jamp_color'][0] ) ) { 107 $note_color_class = 'jamp-note--color-' . $jamp_meta['jamp_color'][0]; 108 } else { 109 $note_color_class = ''; 110 } 105 111 } 106 112 107 113 $html .= '<div class="jamp-admin-bar-note ' . esc_attr( $note_color_class ) . '" data-note="' . esc_attr( $note->ID ) . '" data-scope="section">' 108 . '<span class="jamp-admin-bar-note__title">' . esc_html( $note ->post_title ) . '</span>'114 . '<span class="jamp-admin-bar-note__title">' . esc_html( $note_title ) . '</span>' 109 115 . '<span class="jamp-admin-bar-note__actions">' 110 116 . '<a class="jamp-admin-bar-action jamp-admin-bar-action--info" href="#" title="' . esc_html__( 'Details', 'jamp' ) . '"></a>' -
jamp-notes/trunk/jamp.php
r3187805 r3267433 4 4 * Plugin URI: https://github.com/andreaporotti/just-another-memo-plugin 5 5 * Description: This plugin allows you to attach notes to some WordPress elements like posts, pages, dashboard sections and others. 6 * Version: 1.5. 26 * Version: 1.5.3 7 7 * Requires at least: 4.9 8 8 * Requires PHP: 5.6 … … 42 42 * Uses SemVer ( https://semver.org ). 43 43 */ 44 define( 'JAMP_VERSION', '1.5. 2' );44 define( 'JAMP_VERSION', '1.5.3' ); 45 45 46 46 /**
Note: See TracChangeset
for help on using the changeset viewer.