Changeset 2849275
- Timestamp:
- 01/16/2023 04:14:13 PM (3 years ago)
- Location:
- chordpress
- Files:
-
- 3 edited
- 23 copied
-
tags/3.3.1 (copied) (copied from chordpress/trunk)
-
tags/3.3.1/admin/class-chordpress-admin.php (copied) (copied from chordpress/trunk/admin/class-chordpress-admin.php)
-
tags/3.3.1/admin/js/tinymce_buttons.js (copied) (copied from chordpress/trunk/admin/js/tinymce_buttons.js)
-
tags/3.3.1/admin/partials/chordpress-admin-chord-meta-box.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-chord-meta-box.php)
-
tags/3.3.1/admin/partials/chordpress-admin-license.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-license.php)
-
tags/3.3.1/admin/partials/chordpress-admin-options.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-options.php)
-
tags/3.3.1/chordpress.php (copied) (copied from chordpress/trunk/chordpress.php) (2 diffs)
-
tags/3.3.1/includes/class-chordpress-activator.php (copied) (copied from chordpress/trunk/includes/class-chordpress-activator.php)
-
tags/3.3.1/includes/class-chordpress-chord.php (copied) (copied from chordpress/trunk/includes/class-chordpress-chord.php)
-
tags/3.3.1/includes/class-chordpress-deactivator.php (copied) (copied from chordpress/trunk/includes/class-chordpress-deactivator.php)
-
tags/3.3.1/includes/class-chordpress-i18n.php (copied) (copied from chordpress/trunk/includes/class-chordpress-i18n.php)
-
tags/3.3.1/includes/class-chordpress-license.php (copied) (copied from chordpress/trunk/includes/class-chordpress-license.php)
-
tags/3.3.1/includes/class-chordpress-loader.php (copied) (copied from chordpress/trunk/includes/class-chordpress-loader.php)
-
tags/3.3.1/includes/class-chordpress-plugin.php (copied) (copied from chordpress/trunk/includes/class-chordpress-plugin.php)
-
tags/3.3.1/includes/class-chordpress-renderer.php (copied) (copied from chordpress/trunk/includes/class-chordpress-renderer.php) (8 diffs)
-
tags/3.3.1/languages/chordpress.pot (copied) (copied from chordpress/trunk/languages/chordpress.pot)
-
tags/3.3.1/makepot.cmd (copied) (copied from chordpress/trunk/makepot.cmd)
-
tags/3.3.1/public/class-chordpress-public.php (copied) (copied from chordpress/trunk/public/class-chordpress-public.php)
-
tags/3.3.1/public/css/chordpress-public.css (copied) (copied from chordpress/trunk/public/css/chordpress-public.css)
-
tags/3.3.1/public/js/chordpress-public.js (copied) (copied from chordpress/trunk/public/js/chordpress-public.js)
-
tags/3.3.1/public/partials/chordpress-public-display.php (copied) (copied from chordpress/trunk/public/partials/chordpress-public-display.php)
-
tags/3.3.1/readme.txt (copied) (copied from chordpress/trunk/readme.txt) (2 diffs)
-
tags/3.3.1/uninstall.php (copied) (copied from chordpress/trunk/uninstall.php)
-
trunk/chordpress.php (modified) (2 diffs)
-
trunk/includes/class-chordpress-renderer.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chordpress/tags/3.3.1/chordpress.php
r2838045 r2849275 17 17 * Plugin URI: https://lewe.gitbook.io/lewe-chordpress/ 18 18 * Description: This plugin renders ChordPro formatted text and chord diagrams in WordPress sites. 19 * Version: 3.3. 019 * Version: 3.3.1 20 20 * Author: George Lewe 21 21 * Author URI: https://www.lewe.com … … 36 36 */ 37 37 define('CHORDPRESS_NAME', 'ChordPress'); 38 define('CHORDPRESS_VERSION', '3.3. 0');38 define('CHORDPRESS_VERSION', '3.3.1'); 39 39 define('CHORDPRESS_AUTHOR', 'George Lewe'); 40 40 define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com'); -
chordpress/tags/3.3.1/includes/class-chordpress-renderer.php
r2797343 r2849275 95 95 96 96 /** 97 * Hide print button. 98 * 99 * @since 1.0.0 100 * @access private 101 * @var boolean $hidePrint Hide print button. 102 */ 103 private $hidePrint; 104 105 /** 97 106 * Hide title flag. 98 107 * … … 104 113 105 114 /** 115 * Hide transpose button. 116 * 117 * @since 1.0.0 118 * @access private 119 * @var boolean $hideTranspose Hide transpose button 120 */ 121 private $hideTranspose; 122 123 /** 106 124 * Hide year flag. 107 125 * … … 194 212 195 213 /** 214 * CSS styles for the chords. 215 * 216 * @since 1.0.0 217 * @access private 218 * @var string $chordStyle CSS styles for the chorus sections. 219 */ 220 private $chordStyle; 221 222 /** 196 223 * CSS styles for the chorus sections. 197 224 * … … 248 275 249 276 /** 250 * Show Chord Sheet for jTab.277 * Show Chord Sheet on top. 251 278 * 252 279 * @since 2.1.0 253 280 * @access private 254 * @var string $showjTabSheet Show jTab Sheet: no/yes. 255 */ 256 private $showjTabSheet; 257 258 /** 259 * Show Chord Sheet for jTab. 260 * 261 * @since 2.5.0 262 * @access private 263 * @var string $jTabColor CSS value for jTab chord text color 264 */ 265 private $jTabColor; 266 267 /** 268 * Show Chord Sheet for jTab. 269 * 270 * @since 2.5.0 271 * @access private 272 * @var string $jTabBgColor CSS value for jTab chord background color 273 */ 274 private $jTabBgColor; 281 * @var string $showChordSheetOnTop Show Chord Sheet on top: no/yes. 282 */ 283 private $showChordSheetOnTop; 275 284 276 285 /** … … 417 426 if (!$this->displayHBNotation = get_option('chordpress_checkbox_hb_notation')) $this->displayHBNotation = 0; 418 427 if (!$this->showChordSheet = get_option('chordpress_checkbox_show_chord_sheet')) $this->showChordSheet = 0; 419 if (!$this->showjTabSheet = get_option('chordpress_checkbox_show_jtab_sheet')) $this->showjTabSheet = 0;420 428 if (!$this->showChordSheetOnTop = get_option('chordpress_checkbox_show_chord_sheet_on_top')) $this->showChordSheetOnTop = 0; 421 429 … … 429 437 if (!$this->verseStyle = get_option('chordpress_text_verse_style')) $this->verseStyle = ''; 430 438 if (!$this->lineStyle = get_option('chordpress_text_line_style')) $this->lineStyle = 'margin: 1em 0 1em 0;'; 431 432 if (!$this->jTabChordsPerRow = get_option('chordpress_number_jtab_chords_per_row')) $this->jTabChordsPerRow = 6;433 if (!$this->jTabColor = get_option('chordpress_text_jtab_color')) $this->jTabColor = '';434 if (!$this->jTabBgColor = get_option('chordpress_text_jtab_bgcolor')) $this->jTabBgColor = '';435 439 } 436 440 … … 765 769 */ 766 770 $arrBracketSegments = explode("[", $line); 767 768 771 foreach ($arrBracketSegments as $segment) { 769 770 772 if (strlen($segment)) { 771 773 $pad = ($segment[strlen($segment) - 1] == ' ') ? ' ' : ''; … … 830 832 831 833 /** 832 * Allow chords starting with a ~ as chord placeholders. Just return the string. 834 * Allow chords starting with a ~, |, / and . as chord placeholders. Just return the string. 835 * Att: ... will end up as &ellip; . Use blanks between each dot. 833 836 */ 834 if ( $arrChords[$i][0] == "~") {837 if (in_array($arrChords[$i][0], ['~', '|', '/', '.'])) { 835 838 $returnText .= $arrChords[$i]; 836 839 } else { -
chordpress/tags/3.3.1/readme.txt
r2838045 r2849275 5 5 Requires at least: 4.0 6 6 Tested up to: 6.1 7 Stable tag: 3.3. 07 Stable tag: 3.3.1 8 8 Requires PHP: 5.2.4 9 9 License: GPLv3 … … 130 130 131 131 == Changelog == 132 = 3.3.1 = 133 * 2023-01-16 134 * Support for more special characters iun chords: ~, |, /, . 135 132 136 = 3.3.0 = 133 137 * 2022-12-22 -
chordpress/trunk/chordpress.php
r2838045 r2849275 17 17 * Plugin URI: https://lewe.gitbook.io/lewe-chordpress/ 18 18 * Description: This plugin renders ChordPro formatted text and chord diagrams in WordPress sites. 19 * Version: 3.3. 019 * Version: 3.3.1 20 20 * Author: George Lewe 21 21 * Author URI: https://www.lewe.com … … 36 36 */ 37 37 define('CHORDPRESS_NAME', 'ChordPress'); 38 define('CHORDPRESS_VERSION', '3.3. 0');38 define('CHORDPRESS_VERSION', '3.3.1'); 39 39 define('CHORDPRESS_AUTHOR', 'George Lewe'); 40 40 define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com'); -
chordpress/trunk/includes/class-chordpress-renderer.php
r2797343 r2849275 95 95 96 96 /** 97 * Hide print button. 98 * 99 * @since 1.0.0 100 * @access private 101 * @var boolean $hidePrint Hide print button. 102 */ 103 private $hidePrint; 104 105 /** 97 106 * Hide title flag. 98 107 * … … 104 113 105 114 /** 115 * Hide transpose button. 116 * 117 * @since 1.0.0 118 * @access private 119 * @var boolean $hideTranspose Hide transpose button 120 */ 121 private $hideTranspose; 122 123 /** 106 124 * Hide year flag. 107 125 * … … 194 212 195 213 /** 214 * CSS styles for the chords. 215 * 216 * @since 1.0.0 217 * @access private 218 * @var string $chordStyle CSS styles for the chorus sections. 219 */ 220 private $chordStyle; 221 222 /** 196 223 * CSS styles for the chorus sections. 197 224 * … … 248 275 249 276 /** 250 * Show Chord Sheet for jTab.277 * Show Chord Sheet on top. 251 278 * 252 279 * @since 2.1.0 253 280 * @access private 254 * @var string $showjTabSheet Show jTab Sheet: no/yes. 255 */ 256 private $showjTabSheet; 257 258 /** 259 * Show Chord Sheet for jTab. 260 * 261 * @since 2.5.0 262 * @access private 263 * @var string $jTabColor CSS value for jTab chord text color 264 */ 265 private $jTabColor; 266 267 /** 268 * Show Chord Sheet for jTab. 269 * 270 * @since 2.5.0 271 * @access private 272 * @var string $jTabBgColor CSS value for jTab chord background color 273 */ 274 private $jTabBgColor; 281 * @var string $showChordSheetOnTop Show Chord Sheet on top: no/yes. 282 */ 283 private $showChordSheetOnTop; 275 284 276 285 /** … … 417 426 if (!$this->displayHBNotation = get_option('chordpress_checkbox_hb_notation')) $this->displayHBNotation = 0; 418 427 if (!$this->showChordSheet = get_option('chordpress_checkbox_show_chord_sheet')) $this->showChordSheet = 0; 419 if (!$this->showjTabSheet = get_option('chordpress_checkbox_show_jtab_sheet')) $this->showjTabSheet = 0;420 428 if (!$this->showChordSheetOnTop = get_option('chordpress_checkbox_show_chord_sheet_on_top')) $this->showChordSheetOnTop = 0; 421 429 … … 429 437 if (!$this->verseStyle = get_option('chordpress_text_verse_style')) $this->verseStyle = ''; 430 438 if (!$this->lineStyle = get_option('chordpress_text_line_style')) $this->lineStyle = 'margin: 1em 0 1em 0;'; 431 432 if (!$this->jTabChordsPerRow = get_option('chordpress_number_jtab_chords_per_row')) $this->jTabChordsPerRow = 6;433 if (!$this->jTabColor = get_option('chordpress_text_jtab_color')) $this->jTabColor = '';434 if (!$this->jTabBgColor = get_option('chordpress_text_jtab_bgcolor')) $this->jTabBgColor = '';435 439 } 436 440 … … 765 769 */ 766 770 $arrBracketSegments = explode("[", $line); 767 768 771 foreach ($arrBracketSegments as $segment) { 769 770 772 if (strlen($segment)) { 771 773 $pad = ($segment[strlen($segment) - 1] == ' ') ? ' ' : ''; … … 830 832 831 833 /** 832 * Allow chords starting with a ~ as chord placeholders. Just return the string. 834 * Allow chords starting with a ~, |, / and . as chord placeholders. Just return the string. 835 * Att: ... will end up as &ellip; . Use blanks between each dot. 833 836 */ 834 if ( $arrChords[$i][0] == "~") {837 if (in_array($arrChords[$i][0], ['~', '|', '/', '.'])) { 835 838 $returnText .= $arrChords[$i]; 836 839 } else { -
chordpress/trunk/readme.txt
r2838045 r2849275 5 5 Requires at least: 4.0 6 6 Tested up to: 6.1 7 Stable tag: 3.3. 07 Stable tag: 3.3.1 8 8 Requires PHP: 5.2.4 9 9 License: GPLv3 … … 130 130 131 131 == Changelog == 132 = 3.3.1 = 133 * 2023-01-16 134 * Support for more special characters iun chords: ~, |, /, . 135 132 136 = 3.3.0 = 133 137 * 2022-12-22
Note: See TracChangeset
for help on using the changeset viewer.