Changeset 2877462
- Timestamp:
- 03/09/2023 08:56:56 PM (3 years ago)
- Location:
- chordpress
- Files:
-
- 9 edited
- 23 copied
-
tags/3.4.0 (copied) (copied from chordpress/trunk)
-
tags/3.4.0/admin/class-chordpress-admin.php (copied) (copied from chordpress/trunk/admin/class-chordpress-admin.php)
-
tags/3.4.0/admin/js/tinymce_buttons.js (copied) (copied from chordpress/trunk/admin/js/tinymce_buttons.js)
-
tags/3.4.0/admin/partials/chordpress-admin-chord-meta-box.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-chord-meta-box.php)
-
tags/3.4.0/admin/partials/chordpress-admin-license.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-license.php)
-
tags/3.4.0/admin/partials/chordpress-admin-options.php (copied) (copied from chordpress/trunk/admin/partials/chordpress-admin-options.php) (5 diffs)
-
tags/3.4.0/chordpress.php (copied) (copied from chordpress/trunk/chordpress.php) (1 diff)
-
tags/3.4.0/includes/class-chordpress-activator.php (copied) (copied from chordpress/trunk/includes/class-chordpress-activator.php)
-
tags/3.4.0/includes/class-chordpress-chord.php (copied) (copied from chordpress/trunk/includes/class-chordpress-chord.php) (1 diff)
-
tags/3.4.0/includes/class-chordpress-deactivator.php (copied) (copied from chordpress/trunk/includes/class-chordpress-deactivator.php)
-
tags/3.4.0/includes/class-chordpress-i18n.php (copied) (copied from chordpress/trunk/includes/class-chordpress-i18n.php)
-
tags/3.4.0/includes/class-chordpress-license.php (copied) (copied from chordpress/trunk/includes/class-chordpress-license.php)
-
tags/3.4.0/includes/class-chordpress-loader.php (copied) (copied from chordpress/trunk/includes/class-chordpress-loader.php)
-
tags/3.4.0/includes/class-chordpress-plugin.php (copied) (copied from chordpress/trunk/includes/class-chordpress-plugin.php) (1 diff)
-
tags/3.4.0/includes/class-chordpress-renderer.php (copied) (copied from chordpress/trunk/includes/class-chordpress-renderer.php) (4 diffs)
-
tags/3.4.0/languages/chordpress.pot (copied) (copied from chordpress/trunk/languages/chordpress.pot) (7 diffs)
-
tags/3.4.0/makepot.cmd (copied) (copied from chordpress/trunk/makepot.cmd) (1 diff)
-
tags/3.4.0/public/class-chordpress-public.php (copied) (copied from chordpress/trunk/public/class-chordpress-public.php)
-
tags/3.4.0/public/css/chordpress-public.css (copied) (copied from chordpress/trunk/public/css/chordpress-public.css)
-
tags/3.4.0/public/js/chordpress-public.js (copied) (copied from chordpress/trunk/public/js/chordpress-public.js)
-
tags/3.4.0/public/partials/chordpress-public-display.php (copied) (copied from chordpress/trunk/public/partials/chordpress-public-display.php)
-
tags/3.4.0/readme.txt (copied) (copied from chordpress/trunk/readme.txt) (2 diffs)
-
tags/3.4.0/uninstall.php (copied) (copied from chordpress/trunk/uninstall.php) (3 diffs)
-
trunk/admin/partials/chordpress-admin-options.php (modified) (5 diffs)
-
trunk/chordpress.php (modified) (1 diff)
-
trunk/includes/class-chordpress-chord.php (modified) (1 diff)
-
trunk/includes/class-chordpress-plugin.php (modified) (1 diff)
-
trunk/includes/class-chordpress-renderer.php (modified) (4 diffs)
-
trunk/languages/chordpress.pot (modified) (7 diffs)
-
trunk/makepot.cmd (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/uninstall.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chordpress/tags/3.4.0/admin/partials/chordpress-admin-options.php
r2838045 r2877462 444 444 <td> 445 445 <input type="text" id="<?php echo $pname; ?>_text_meta_style" name="<?php echo $pname; ?>_text_meta_style" value="<?php echo get_option($pname . '_text_meta_style'); ?>" /> 446 <p class="description"><?php echo esc_html(__('Enter CSS for the meta header block, e.g.: font-style: italic;', 'chordpress')); ?></p> 446 <p class="description"><?php echo esc_html(__('Enter CSS for the meta header block, e.g.', 'chordpress')); ?>:<br> 447 <code>font-style: italic;</code></p> 447 448 </td> 448 449 </tr> … … 458 459 <td> 459 460 <input type="text" id="<?php echo $pname; ?>_text_chord_style" name="<?php echo $pname; ?>_text_chord_style" value="<?php echo get_option($pname . '_text_chord_style'); ?>" /> 460 <p class="description"><?php echo esc_html(__('Enter CSS for the chords here or leave empty to use the page default. E.g. font-weight:bold;color:#990000;', 'chordpress')); ?></p> 461 <p class="description"><?php echo esc_html(__("Enter CSS for the chords here or leave empty to use the page default. E.g. try this for red text on a light yellow badge", 'chordpress')); ?>:<br> 462 <code>background-color: #F7F1AF; border-radius: 0.3em; color: #990000; padding: 0.1em 0.3em 0.1em 0.3em;</code></p> 461 463 </td> 462 464 </tr> … … 472 474 <td> 473 475 <input type="text" id="<?php echo $pname; ?>_text_comment_style" name="<?php echo $pname; ?>_text_comment_style" value="<?php echo get_option($pname . '_text_comment_style'); ?>" /> 474 <p class="description"><?php echo esc_html(__('Enter CSS for comments, e.g.: background-color: #606060; font-style: italic; padding: 4px;', 'chordpress')); ?></p> 476 <p class="description"><?php echo esc_html(__('Enter CSS for comments, e.g.', 'chordpress')); ?>:<br> 477 <code>background-color: #606060; font-style: italic; padding: 4px;</code></p> 475 478 </td> 476 479 </tr> … … 780 783 781 784 <?php 782 // ,----------------- -,783 // _| Tab: Add cChords |_785 // ,-----------------, 786 // _| Tab: Add Chords |_ 784 787 // 785 788 if ($active_tab == 'tab_samples') $display = "display:block;"; … … 895 898 <tbody> 896 899 <tr> 897 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete"><?php echo esc_html(__('Remove data on uninstall', 'chordpress')); ?></label></th> 898 <td> 899 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete" name="<?php echo $pname; ?>_checkbox_uninstall_delete" <?php checked(get_option($pname . '_checkbox_uninstall_delete'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 900 <p class="description"><?php echo esc_html(__('Remove plugin options from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 900 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete_options"><?php echo esc_html(__('Remove options on delete', 'chordpress')); ?></label></th> 901 <td> 902 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete_options" name="<?php echo $pname; ?>_checkbox_uninstall_delete_options" <?php checked(get_option($pname . '_checkbox_uninstall_delete_options'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 903 <p class="description"><?php echo esc_html(__('Remove plugin options and settings from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 904 </td> 905 </tr> 906 <tr> 907 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts"><?php echo esc_html(__('Remove guitar chord posts on delete', 'chordpress')); ?></label></th> 908 <td> 909 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts" name="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts" <?php checked(get_option($pname . '_checkbox_uninstall_delete_chordposts'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 910 <p class="description"><?php echo esc_html(__('Remove all guitar chord posts from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 901 911 </td> 902 912 </tr> -
chordpress/tags/3.4.0/chordpress.php
r2874790 r2877462 36 36 */ 37 37 define('CHORDPRESS_NAME', 'ChordPress'); 38 define('CHORDPRESS_VERSION', '3. 3.3');38 define('CHORDPRESS_VERSION', '3.4.0'); 39 39 define('CHORDPRESS_AUTHOR', 'George Lewe'); 40 40 define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com'); -
chordpress/tags/3.4.0/includes/class-chordpress-chord.php
r2874790 r2877462 611 611 * Replaces round brackets with square brackets. 612 612 * 613 * @param string $inputString with round bracktes614 * @return string String with square brackets613 * @param string $input String with round bracktes 614 * @return string - String with square brackets 615 615 */ 616 616 public function replace_brackets($input) -
chordpress/tags/3.4.0/includes/class-chordpress-plugin.php
r2838045 r2877462 200 200 $this->plugin_name . '_number_chord_tuningsFontSize', 201 201 202 $this->plugin_name . '_checkbox_uninstall_delete' 202 $this->plugin_name . '_checkbox_uninstall_delete_options', 203 $this->plugin_name . '_checkbox_uninstall_delete_chordposts' 203 204 204 205 ); -
chordpress/tags/3.4.0/includes/class-chordpress-renderer.php
r2874790 r2877462 528 528 * 529 529 * @since 1.0.0 530 * @param string$text Text inside shortcode wrapper.530 * @param object $text Text inside shortcode wrapper. 531 531 * @return string Formatted HTML of the ChordPro text. 532 532 */ 533 public function displayText($text) 533 public function displayText($text): string 534 534 { 535 535 /** … … 562 562 * Interactive transpose / print 563 563 */ 564 if ( strtolower($this->interactive) == "yes") {564 if (in_array(strtolower($this->interactive), array("yes", "1", "true"))) { 565 565 $returnText .= "<div class=\"cpress_interaction\">"; 566 566 $transposeForm = ""; … … 991 991 $nashvilleChords = array('1', '2', '3', '4', '5', '6', '7'); 992 992 993 if (strlen($ch) == 0) return ;993 if (strlen($ch) == 0) return ''; 994 994 995 995 /** … … 1140 1140 ); 1141 1141 1142 if ( $this->hbNotation == 'yes') {1142 if (in_array(strtolower($this->hbNotation), array("yes", "1", "true"))) { 1143 1143 if (array_key_exists(strtoupper($n), $hbNotation)) { 1144 1144 return $hbNotation[strtoupper($n)]; -
chordpress/tags/3.4.0/languages/chordpress.pot
r2838045 r2877462 1 # Copyright (C) 202 2George Lewe1 # Copyright (C) 2023 George Lewe 2 2 # This file is distributed under the same license as the Lewe ChordPress plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Lewe ChordPress 3. 2.1\n"5 "Project-Id-Version: Lewe ChordPress 3.3.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/chordpress\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 2-12-22T16:01:46+01:00\n"12 "POT-Creation-Date: 2023-03-09T21:55:13+01:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 157 157 #: admin/partials/chordpress-admin-license.php:41 158 158 #: admin/partials/chordpress-admin-options.php:253 159 #: admin/partials/chordpress-admin-options.php:9 43159 #: admin/partials/chordpress-admin-options.php:953 160 160 msgid "Documentation" 161 161 msgstr "" 162 162 163 163 #: admin/class-chordpress-admin.php:246 164 #: admin/partials/chordpress-admin-options.php:9 49164 #: admin/partials/chordpress-admin-options.php:959 165 165 msgid "Support" 166 166 msgstr "" … … 178 178 #: admin/class-chordpress-admin.php:301 179 179 #: admin/partials/chordpress-admin-chord-meta-box.php:53 180 #: admin/partials/chordpress-admin-options.php:9 25180 #: admin/partials/chordpress-admin-options.php:935 181 181 msgid "Name" 182 182 msgstr "" 183 183 184 184 #: admin/class-chordpress-admin.php:302 185 #: admin/partials/chordpress-admin-options.php:6 89185 #: admin/partials/chordpress-admin-options.php:692 186 186 msgid "Strings" 187 187 msgstr "" … … 221 221 222 222 #: admin/partials/chordpress-admin-chord-meta-box.php:92 223 #: admin/partials/chordpress-admin-options.php:75 4223 #: admin/partials/chordpress-admin-options.php:757 224 224 msgid "Tuning" 225 225 msgstr "" … … 563 563 564 564 #: admin/partials/chordpress-admin-options.php:446 565 msgid "Enter CSS for the meta header block, e.g. : font-style: italic;"566 msgstr "" 567 568 #: admin/partials/chordpress-admin-options.php:45 0565 msgid "Enter CSS for the meta header block, e.g." 566 msgstr "" 567 568 #: admin/partials/chordpress-admin-options.php:451 569 569 msgid "Line Style" 570 570 msgstr "" 571 571 572 #: admin/partials/chordpress-admin-options.php:45 3572 #: admin/partials/chordpress-admin-options.php:454 573 573 msgid "Enter CSS for the lines here or leave empty to use the default (margin: 1em 0 1em 0;)." 574 574 msgstr "" 575 575 576 #: admin/partials/chordpress-admin-options.php:45 7576 #: admin/partials/chordpress-admin-options.php:458 577 577 msgid "Chord Style" 578 578 msgstr "" 579 579 580 #: admin/partials/chordpress-admin-options.php:46 0581 msgid "Enter CSS for the chords here or leave empty to use the page default. E.g. font-weight:bold;color:#990000;"582 msgstr "" 583 584 #: admin/partials/chordpress-admin-options.php:46 4580 #: admin/partials/chordpress-admin-options.php:461 581 msgid "Enter CSS for the chords here or leave empty to use the page default. E.g. try this for red text on a light yellow badge" 582 msgstr "" 583 584 #: admin/partials/chordpress-admin-options.php:466 585 585 msgid "Lyrics Style" 586 586 msgstr "" 587 587 588 #: admin/partials/chordpress-admin-options.php:46 7588 #: admin/partials/chordpress-admin-options.php:469 589 589 msgid "Enter CSS for the lyrics here or leave empty to use the page default." 590 590 msgstr "" 591 591 592 #: admin/partials/chordpress-admin-options.php:47 1592 #: admin/partials/chordpress-admin-options.php:473 593 593 msgid "Comment Style" 594 594 msgstr "" 595 595 596 #: admin/partials/chordpress-admin-options.php:47 4597 msgid "Enter CSS for comments, e.g. : background-color: #606060; font-style: italic; padding: 4px;"598 msgstr "" 599 600 #: admin/partials/chordpress-admin-options.php:4 78596 #: admin/partials/chordpress-admin-options.php:476 597 msgid "Enter CSS for comments, e.g." 598 msgstr "" 599 600 #: admin/partials/chordpress-admin-options.php:481 601 601 msgid "Chorus Style" 602 602 msgstr "" 603 603 604 #: admin/partials/chordpress-admin-options.php:481 604 #: admin/partials/chordpress-admin-options.php:484 605 #: admin/partials/chordpress-admin-options.php:491 606 msgid "Enter CSS for the" 607 msgstr "" 608 609 #: admin/partials/chordpress-admin-options.php:484 610 msgid "chorus sections" 611 msgstr "" 612 605 613 #: admin/partials/chordpress-admin-options.php:488 606 msgid "Enter CSS for the"607 msgstr ""608 609 #: admin/partials/chordpress-admin-options.php:481610 msgid "chorus sections"611 msgstr ""612 613 #: admin/partials/chordpress-admin-options.php:485614 614 msgid "Verse Style" 615 615 msgstr "" 616 616 617 #: admin/partials/chordpress-admin-options.php:4 88617 #: admin/partials/chordpress-admin-options.php:491 618 618 msgid "verse sections" 619 619 msgstr "" 620 620 621 #: admin/partials/chordpress-admin-options.php:5 07621 #: admin/partials/chordpress-admin-options.php:510 622 622 msgid "Use this tab to specify global styles and formats for the ChordPress guitar chord diagrams.<br>For single chords using the <code>[chordpress-chord]</code> shortcode, some of them can be overwritten by shortcode parameters." 623 623 msgstr "" 624 624 625 #: admin/partials/chordpress-admin-options.php:51 2625 #: admin/partials/chordpress-admin-options.php:515 626 626 msgid "Sample Display" 627 627 msgstr "" 628 628 629 #: admin/partials/chordpress-admin-options.php:52 4629 #: admin/partials/chordpress-admin-options.php:527 630 630 msgid "This is a sample display based on your settings. You might need to refresh the page to show the diagram." 631 631 msgstr "" 632 632 633 #: admin/partials/chordpress-admin-options.php:5 28633 #: admin/partials/chordpress-admin-options.php:531 634 634 msgid "Background Color" 635 635 msgstr "" 636 636 637 #: admin/partials/chordpress-admin-options.php:53 1637 #: admin/partials/chordpress-admin-options.php:534 638 638 msgid "The background CSS color of the chord diagram, e.g. #FFFFFF. To set the background to transparent (default) either set this to 'none' or leave empty." 639 639 msgstr "" 640 640 641 #: admin/partials/chordpress-admin-options.php:53 5641 #: admin/partials/chordpress-admin-options.php:538 642 642 msgid "Barre Border Radius" 643 643 msgstr "" 644 644 645 #: admin/partials/chordpress-admin-options.php:5 38645 #: admin/partials/chordpress-admin-options.php:541 646 646 msgid "The barre chord rectangle border radius relative to the nutSize (eg. 1 means completely round endges, 0 means not rounded at all). Leave empty for the default: 0.25." 647 647 msgstr "" 648 648 649 #: admin/partials/chordpress-admin-options.php:54 2649 #: admin/partials/chordpress-admin-options.php:545 650 650 msgid "Barre Bar Stroke Color" 651 651 msgstr "" 652 652 653 #: admin/partials/chordpress-admin-options.php:54 5653 #: admin/partials/chordpress-admin-options.php:548 654 654 msgid "The stroke CSS color of a barre chord. Defaults to the nut color if not set. Leave empty for the default 'Nut Color'." 655 655 msgstr "" 656 656 657 #: admin/partials/chordpress-admin-options.php:5 49657 #: admin/partials/chordpress-admin-options.php:552 658 658 msgid "Barre Bar Stroke Width" 659 659 msgstr "" 660 660 661 #: admin/partials/chordpress-admin-options.php:55 2661 #: admin/partials/chordpress-admin-options.php:555 662 662 msgid "The stroke width of a barre chord in pixel. Leave empty for the default 0." 663 663 msgstr "" 664 664 665 #: admin/partials/chordpress-admin-options.php:55 6665 #: admin/partials/chordpress-admin-options.php:559 666 666 msgid "Canvas Width" 667 667 msgstr "" 668 668 669 #: admin/partials/chordpress-admin-options.php:5 59669 #: admin/partials/chordpress-admin-options.php:562 670 670 msgid "Enter the width of the chord diagrams canvas in pixel. Leave emtpy for the default of 180. The height will be adjusted automatically." 671 671 msgstr "" 672 672 673 #: admin/partials/chordpress-admin-options.php:56 3673 #: admin/partials/chordpress-admin-options.php:566 674 674 msgid "Global Color" 675 675 msgstr "" 676 676 677 #: admin/partials/chordpress-admin-options.php:56 6677 #: admin/partials/chordpress-admin-options.php:569 678 678 msgid "Global color of the whole chart. Can be overridden with more specific color settings such as 'Title Color' or 'String Color'. Leave empty for the default #000000." 679 679 msgstr "" 680 680 681 #: admin/partials/chordpress-admin-options.php:57 0681 #: admin/partials/chordpress-admin-options.php:573 682 682 msgid "Empty String Indicator Size" 683 683 msgstr "" 684 684 685 #: admin/partials/chordpress-admin-options.php:57 3685 #: admin/partials/chordpress-admin-options.php:576 686 686 msgid "Size of the Xs and Os above empty strings relative to the space between two strings. Leave empty for the default: 0.6." 687 687 msgstr "" 688 688 689 #: admin/partials/chordpress-admin-options.php:5 77689 #: admin/partials/chordpress-admin-options.php:580 690 690 msgid "Fixed Diagram Position" 691 691 msgstr "" 692 692 693 #: admin/partials/chordpress-admin-options.php:58 0693 #: admin/partials/chordpress-admin-options.php:583 694 694 msgid "With this option selected, the distance between the chord diagram and the top of the SVG stays the same, no matter if a title is defined or not. Default is off." 695 695 msgstr "" 696 696 697 #: admin/partials/chordpress-admin-options.php:58 4697 #: admin/partials/chordpress-admin-options.php:587 698 698 msgid "Font Family" 699 699 msgstr "" 700 700 701 #: admin/partials/chordpress-admin-options.php:5 87701 #: admin/partials/chordpress-admin-options.php:590 702 702 msgid "The font family used for all letters and numbers. Leave empty for the default: 'Arial, \"Helvetica Neue\", Helvetica, sans-serif'." 703 703 msgstr "" 704 704 705 #: admin/partials/chordpress-admin-options.php:59 1705 #: admin/partials/chordpress-admin-options.php:594 706 706 msgid "Fret Color" 707 707 msgstr "" 708 708 709 #: admin/partials/chordpress-admin-options.php:59 4709 #: admin/partials/chordpress-admin-options.php:597 710 710 msgid "Fret color. Leave empty for default: 'Global Color'." 711 711 msgstr "" 712 712 713 #: admin/partials/chordpress-admin-options.php: 598713 #: admin/partials/chordpress-admin-options.php:601 714 714 msgid "Fret Label Color" 715 715 msgstr "" 716 716 717 #: admin/partials/chordpress-admin-options.php:60 1717 #: admin/partials/chordpress-admin-options.php:604 718 718 msgid "Fret label color. Leave empty for default: 'Global Color'." 719 719 msgstr "" 720 720 721 #: admin/partials/chordpress-admin-options.php:60 5721 #: admin/partials/chordpress-admin-options.php:608 722 722 msgid "Fret Label Font Size" 723 723 msgstr "" 724 724 725 #: admin/partials/chordpress-admin-options.php:6 08725 #: admin/partials/chordpress-admin-options.php:611 726 726 msgid "Font size of the fret label. Leave empty for the default: 38." 727 727 msgstr "" 728 728 729 #: admin/partials/chordpress-admin-options.php:61 2729 #: admin/partials/chordpress-admin-options.php:615 730 730 msgid "Frets" 731 731 msgstr "" 732 732 733 #: admin/partials/chordpress-admin-options.php:61 5733 #: admin/partials/chordpress-admin-options.php:618 734 734 msgid "Number of frets to show in the chart. Leave empty for the default: 4." 735 735 msgstr "" 736 736 737 #: admin/partials/chordpress-admin-options.php:6 19737 #: admin/partials/chordpress-admin-options.php:622 738 738 msgid "Fret Height" 739 739 msgstr "" 740 740 741 #: admin/partials/chordpress-admin-options.php:62 2741 #: admin/partials/chordpress-admin-options.php:625 742 742 msgid "Height of a fret, relative to the space between two strings. Leave empty for the default: 1.5." 743 743 msgstr "" 744 744 745 #: admin/partials/chordpress-admin-options.php:62 6745 #: admin/partials/chordpress-admin-options.php:629 746 746 msgid "Nut Size" 747 747 msgstr "" 748 748 749 #: admin/partials/chordpress-admin-options.php:6 29749 #: admin/partials/chordpress-admin-options.php:632 750 750 msgid "Size of a nut relative to the string spacing. Leave empty for the default: 0.85." 751 751 msgstr "" 752 752 753 #: admin/partials/chordpress-admin-options.php:63 3753 #: admin/partials/chordpress-admin-options.php:636 754 754 msgid "Nut Color" 755 755 msgstr "" 756 756 757 #: admin/partials/chordpress-admin-options.php:63 6757 #: admin/partials/chordpress-admin-options.php:639 758 758 msgid "Color of a finger/nut. Leave empty for default: 'Global Color'." 759 759 msgstr "" 760 760 761 #: admin/partials/chordpress-admin-options.php:64 0761 #: admin/partials/chordpress-admin-options.php:643 762 762 msgid "Nut Stroke Color" 763 763 msgstr "" 764 764 765 #: admin/partials/chordpress-admin-options.php:64 3765 #: admin/partials/chordpress-admin-options.php:646 766 766 msgid "Stroke color of a nut. Leave empty for default: 'Nut Color'. If nut color is not set it defaults to 'Global Color'." 767 767 msgstr "" 768 768 769 #: admin/partials/chordpress-admin-options.php:6 47769 #: admin/partials/chordpress-admin-options.php:650 770 770 msgid "Nut Stroke Width" 771 771 msgstr "" 772 772 773 #: admin/partials/chordpress-admin-options.php:65 0773 #: admin/partials/chordpress-admin-options.php:653 774 774 msgid "Stroke width of a nut. Leave empty for the default: 0." 775 775 msgstr "" 776 776 777 #: admin/partials/chordpress-admin-options.php:65 4777 #: admin/partials/chordpress-admin-options.php:657 778 778 msgid "Nut Text Color" 779 779 msgstr "" 780 780 781 #: admin/partials/chordpress-admin-options.php:6 57781 #: admin/partials/chordpress-admin-options.php:660 782 782 msgid "Text color of a nut. Leave empty for default: #FFFFFF." 783 783 msgstr "" 784 784 785 #: admin/partials/chordpress-admin-options.php:66 1785 #: admin/partials/chordpress-admin-options.php:664 786 786 msgid "Nut Text Size" 787 787 msgstr "" 788 788 789 #: admin/partials/chordpress-admin-options.php:66 4789 #: admin/partials/chordpress-admin-options.php:667 790 790 msgid "Font size of the nut label. Leave empty for the default: 24." 791 791 msgstr "" 792 792 793 #: admin/partials/chordpress-admin-options.php:6 68793 #: admin/partials/chordpress-admin-options.php:671 794 794 msgid "Position" 795 795 msgstr "" 796 796 797 #: admin/partials/chordpress-admin-options.php:67 1797 #: admin/partials/chordpress-admin-options.php:674 798 798 msgid "Default start fret position (first fret is 1). Leave empty for the default: 1." 799 799 msgstr "" 800 800 801 #: admin/partials/chordpress-admin-options.php:67 5801 #: admin/partials/chordpress-admin-options.php:678 802 802 msgid "Side Padding" 803 803 msgstr "" 804 804 805 #: admin/partials/chordpress-admin-options.php:6 78805 #: admin/partials/chordpress-admin-options.php:681 806 806 msgid "The minimum side padding (from the guitar to the edge of the chart) relative to the whole width. This is only applied if it's larger than the letters inside of the padding (eg the starting fret). Leave empty for the default: 0.2." 807 807 msgstr "" 808 808 809 #: admin/partials/chordpress-admin-options.php:68 2809 #: admin/partials/chordpress-admin-options.php:685 810 810 msgid "String Color" 811 811 msgstr "" 812 812 813 #: admin/partials/chordpress-admin-options.php:68 5813 #: admin/partials/chordpress-admin-options.php:688 814 814 msgid "Text color of a nut. Leave empty for default: 'Global Color'." 815 815 msgstr "" 816 816 817 #: admin/partials/chordpress-admin-options.php:70 0817 #: admin/partials/chordpress-admin-options.php:703 818 818 msgid "Number of strings. Default is '6'." 819 819 msgstr "" 820 820 821 #: admin/partials/chordpress-admin-options.php:70 4821 #: admin/partials/chordpress-admin-options.php:707 822 822 msgid "Stroke Width" 823 823 msgstr "" 824 824 825 #: admin/partials/chordpress-admin-options.php:7 07825 #: admin/partials/chordpress-admin-options.php:710 826 826 msgid "Global stroke width. Leave empty for the default: 2." 827 827 msgstr "" 828 828 829 #: admin/partials/chordpress-admin-options.php:71 1829 #: admin/partials/chordpress-admin-options.php:714 830 830 msgid "Style" 831 831 msgstr "" 832 832 833 #: admin/partials/chordpress-admin-options.php:72 2833 #: admin/partials/chordpress-admin-options.php:725 834 834 msgid "Select between 'Normal' and 'Handdrawn'. Default is 'Normal'." 835 835 msgstr "" 836 836 837 #: admin/partials/chordpress-admin-options.php:72 6837 #: admin/partials/chordpress-admin-options.php:729 838 838 msgid "Title Bottom Margin" 839 839 msgstr "" 840 840 841 #: admin/partials/chordpress-admin-options.php:7 29841 #: admin/partials/chordpress-admin-options.php:732 842 842 msgid "Space between the title and the chart. Leave empty for the default: 0." 843 843 msgstr "" 844 844 845 #: admin/partials/chordpress-admin-options.php:73 3845 #: admin/partials/chordpress-admin-options.php:736 846 846 msgid "Title Color" 847 847 msgstr "" 848 848 849 #: admin/partials/chordpress-admin-options.php:73 6849 #: admin/partials/chordpress-admin-options.php:739 850 850 msgid "Text color of the title. Leave empty for default: 'Global Color'." 851 851 msgstr "" 852 852 853 #: admin/partials/chordpress-admin-options.php:74 0853 #: admin/partials/chordpress-admin-options.php:743 854 854 msgid "Title Font Size" 855 855 msgstr "" 856 856 857 #: admin/partials/chordpress-admin-options.php:74 3857 #: admin/partials/chordpress-admin-options.php:746 858 858 msgid "Font size of the title. This is only the initial font size. If the title doesn't fit, the title is automatically scaled so that it fits. Leave empty for the default: 48." 859 859 msgstr "" 860 860 861 #: admin/partials/chordpress-admin-options.php:7 47861 #: admin/partials/chordpress-admin-options.php:750 862 862 msgid "Top Fret Width" 863 863 msgstr "" 864 864 865 #: admin/partials/chordpress-admin-options.php:75 0865 #: admin/partials/chordpress-admin-options.php:753 866 866 msgid "Top fret width (only used if position is 1). Leave empty for the default: 10." 867 867 msgstr "" 868 868 869 #: admin/partials/chordpress-admin-options.php:7 57869 #: admin/partials/chordpress-admin-options.php:760 870 870 msgid "Labels under the strings for their tuning. Leave empty for default: [ 'E', 'A', 'D', 'G', 'B', 'E' ]." 871 871 msgstr "" 872 872 873 #: admin/partials/chordpress-admin-options.php:76 1873 #: admin/partials/chordpress-admin-options.php:764 874 874 msgid "Tunings Color" 875 875 msgstr "" 876 876 877 #: admin/partials/chordpress-admin-options.php:76 4877 #: admin/partials/chordpress-admin-options.php:767 878 878 msgid "Tunings color. Leave empty for default: 'Global Color'." 879 879 msgstr "" 880 880 881 #: admin/partials/chordpress-admin-options.php:7 68881 #: admin/partials/chordpress-admin-options.php:771 882 882 msgid "Tunings Font Size" 883 883 msgstr "" 884 884 885 #: admin/partials/chordpress-admin-options.php:77 1885 #: admin/partials/chordpress-admin-options.php:774 886 886 msgid "Font size of the tunig labels. Leave empty for the default: 28." 887 887 msgstr "" 888 888 889 #: admin/partials/chordpress-admin-options.php:79 0889 #: admin/partials/chordpress-admin-options.php:793 890 890 msgid "Use this tab to create chord diagrams. These diagram are saved as \"Guitar Chord\" posts. They will be added to the ones that already exist." 891 891 msgstr "" 892 892 893 #: admin/partials/chordpress-admin-options.php:79 5893 #: admin/partials/chordpress-admin-options.php:798 894 894 msgid "Major Chords" 895 895 msgstr "" 896 896 897 #: admin/partials/chordpress-admin-options.php: 798897 #: admin/partials/chordpress-admin-options.php:801 898 898 msgid "Imports a common version of the major chords for the base notes A, B, C, D, E, F and G." 899 899 msgstr "" 900 900 901 #: admin/partials/chordpress-admin-options.php:80 2901 #: admin/partials/chordpress-admin-options.php:805 902 902 msgid "Major 7 Chords" 903 903 msgstr "" 904 904 905 #: admin/partials/chordpress-admin-options.php:80 5905 #: admin/partials/chordpress-admin-options.php:808 906 906 msgid "Imports a common version of the major 7 chords for the base notes A, B, C, D, E, F and G." 907 907 msgstr "" 908 908 909 #: admin/partials/chordpress-admin-options.php:8 09909 #: admin/partials/chordpress-admin-options.php:812 910 910 msgid "Major 5 Chords" 911 911 msgstr "" 912 912 913 #: admin/partials/chordpress-admin-options.php:81 2913 #: admin/partials/chordpress-admin-options.php:815 914 914 msgid "Imports a common version of the major 5 chords for the base notes A, B, C, D, E, F and G." 915 915 msgstr "" 916 916 917 #: admin/partials/chordpress-admin-options.php:81 6917 #: admin/partials/chordpress-admin-options.php:819 918 918 msgid "Minor Chords" 919 919 msgstr "" 920 920 921 #: admin/partials/chordpress-admin-options.php:8 19921 #: admin/partials/chordpress-admin-options.php:822 922 922 msgid "Imports a common version of the minor chords for the base notes A, B, C, D, E, F and G." 923 923 msgstr "" 924 924 925 #: admin/partials/chordpress-admin-options.php:82 3925 #: admin/partials/chordpress-admin-options.php:826 926 926 msgid "Minor 7 Chords" 927 927 msgstr "" 928 928 929 #: admin/partials/chordpress-admin-options.php:82 6929 #: admin/partials/chordpress-admin-options.php:829 930 930 msgid "Imports a common version of the minor 7 chords for the base notes A, B, C, D, E, F and G." 931 931 msgstr "" 932 932 933 #: admin/partials/chordpress-admin-options.php:83 0933 #: admin/partials/chordpress-admin-options.php:833 934 934 msgid "Diminished Chords" 935 935 msgstr "" 936 936 937 #: admin/partials/chordpress-admin-options.php:83 3937 #: admin/partials/chordpress-admin-options.php:836 938 938 msgid "Imports a common version of the diminished chords for the base notes A, B, C, D, E, F and G." 939 939 msgstr "" 940 940 941 #: admin/partials/chordpress-admin-options.php:8 37941 #: admin/partials/chordpress-admin-options.php:840 942 942 msgid "Diminished 7 Chords" 943 943 msgstr "" 944 944 945 #: admin/partials/chordpress-admin-options.php:84 0945 #: admin/partials/chordpress-admin-options.php:843 946 946 msgid "Imports a common version of the diminished 7 chords for the base notes A, B, C, D, E, F and G." 947 947 msgstr "" 948 948 949 #: admin/partials/chordpress-admin-options.php:84 4949 #: admin/partials/chordpress-admin-options.php:847 950 950 msgid "Augurated Chords" 951 951 msgstr "" 952 952 953 #: admin/partials/chordpress-admin-options.php:8 47953 #: admin/partials/chordpress-admin-options.php:850 954 954 msgid "Imports a common version of the augurated chords for the base notes A, B, C, D, E, F and G." 955 955 msgstr "" 956 956 957 #: admin/partials/chordpress-admin-options.php:85 1957 #: admin/partials/chordpress-admin-options.php:854 958 958 msgid "Suspended 2 Chords" 959 959 msgstr "" 960 960 961 #: admin/partials/chordpress-admin-options.php:85 4961 #: admin/partials/chordpress-admin-options.php:857 962 962 msgid "Imports a common version of the suspended 2 chords for the base notes A, B, C, D, E, F and G." 963 963 msgstr "" 964 964 965 #: admin/partials/chordpress-admin-options.php:8 58965 #: admin/partials/chordpress-admin-options.php:861 966 966 msgid "Suspended 4 Chords" 967 967 msgstr "" 968 968 969 #: admin/partials/chordpress-admin-options.php:86 1969 #: admin/partials/chordpress-admin-options.php:864 970 970 msgid "Imports a common version of the suspended 4 chords for the base notes A, B, C, D, E, F and G." 971 971 msgstr "" 972 972 973 #: admin/partials/chordpress-admin-options.php:86 5973 #: admin/partials/chordpress-admin-options.php:868 974 974 msgid "Suspended 7_4 Chords" 975 975 msgstr "" 976 976 977 #: admin/partials/chordpress-admin-options.php:8 68977 #: admin/partials/chordpress-admin-options.php:871 978 978 msgid "Imports a common version of the suspended 7_4 chords for the base notes A, B, C, D, E, F and G." 979 979 msgstr "" 980 980 981 #: admin/partials/chordpress-admin-options.php:87 2981 #: admin/partials/chordpress-admin-options.php:875 982 982 msgid "Maj 7 Chords" 983 983 msgstr "" 984 984 985 #: admin/partials/chordpress-admin-options.php:87 5985 #: admin/partials/chordpress-admin-options.php:878 986 986 msgid "Imports a common version of the Maj 7 chords for the base notes A, B, C, D, E, F and G." 987 987 msgstr "" 988 988 989 #: admin/partials/chordpress-admin-options.php:89 2989 #: admin/partials/chordpress-admin-options.php:895 990 990 msgid "Select general options for this plugin." 991 991 msgstr "" 992 992 993 #: admin/partials/chordpress-admin-options.php:897 994 msgid "Remove data on uninstall" 995 msgstr "" 996 997 #: admin/partials/chordpress-admin-options.php:899 993 #: admin/partials/chordpress-admin-options.php:900 994 msgid "Remove options on delete" 995 msgstr "" 996 997 #: admin/partials/chordpress-admin-options.php:902 998 #: admin/partials/chordpress-admin-options.php:909 998 999 msgid "Yes" 999 1000 msgstr "" 1000 1001 1001 #: admin/partials/chordpress-admin-options.php:900 1002 msgid "Remove plugin options from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1003 msgstr "" 1004 1005 #: admin/partials/chordpress-admin-options.php:931 1002 #: admin/partials/chordpress-admin-options.php:903 1003 msgid "Remove plugin options and settings from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1004 msgstr "" 1005 1006 #: admin/partials/chordpress-admin-options.php:907 1007 msgid "Remove guitar chord posts on delete" 1008 msgstr "" 1009 1010 #: admin/partials/chordpress-admin-options.php:910 1011 msgid "Remove all guitar chord posts from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1012 msgstr "" 1013 1014 #: admin/partials/chordpress-admin-options.php:941 1006 1015 msgid "Version" 1007 1016 msgstr "" 1008 1017 1009 #: admin/partials/chordpress-admin-options.php:9 371018 #: admin/partials/chordpress-admin-options.php:947 1010 1019 msgid "Author" 1011 1020 msgstr "" 1012 1021 1013 #: admin/partials/chordpress-admin-options.php:9 551022 #: admin/partials/chordpress-admin-options.php:965 1014 1023 msgid "Credits" 1015 1024 msgstr "" … … 1180 1189 msgstr "" 1181 1190 1182 #: includes/class-chordpress-renderer.php:5 791191 #: includes/class-chordpress-renderer.php:583 1183 1192 msgid "Transpose up" 1184 1193 msgstr "" 1185 1194 1186 #: includes/class-chordpress-renderer.php:59 31195 #: includes/class-chordpress-renderer.php:597 1187 1196 msgid "No chords" 1188 1197 msgstr "" 1189 1198 1190 #: includes/class-chordpress-renderer.php: 5981199 #: includes/class-chordpress-renderer.php:602 1191 1200 msgid "Print" 1192 1201 msgstr "" 1193 1202 1194 #: includes/class-chordpress-renderer.php:63 01203 #: includes/class-chordpress-renderer.php:635 1195 1204 msgid "Composer" 1196 1205 msgstr "" 1197 1206 1198 #: includes/class-chordpress-renderer.php:63 11207 #: includes/class-chordpress-renderer.php:636 1199 1208 msgid "Artist" 1200 1209 msgstr "" 1201 1210 1202 #: includes/class-chordpress-renderer.php:63 21211 #: includes/class-chordpress-renderer.php:637 1203 1212 msgid "Year" 1204 1213 msgstr "" 1205 1214 1206 #: includes/class-chordpress-renderer.php:63 31215 #: includes/class-chordpress-renderer.php:638 1207 1216 msgid "Album" 1208 1217 msgstr "" 1209 1218 1210 #: includes/class-chordpress-renderer.php:6 361219 #: includes/class-chordpress-renderer.php:641 1211 1220 msgid "Key (original)" 1212 1221 msgstr "" 1213 1222 1214 #: includes/class-chordpress-renderer.php:6 371223 #: includes/class-chordpress-renderer.php:642 1215 1224 msgid "Key (transposed)" 1216 1225 msgstr "" 1217 1226 1218 #: includes/class-chordpress-renderer.php:64 41227 #: includes/class-chordpress-renderer.php:649 1219 1228 msgid "Time" 1220 1229 msgstr "" 1221 1230 1222 #: includes/class-chordpress-renderer.php:6 451231 #: includes/class-chordpress-renderer.php:650 1223 1232 msgid "Tempo" 1224 1233 msgstr "" 1225 1234 1226 #: includes/class-chordpress-renderer.php:6 461235 #: includes/class-chordpress-renderer.php:651 1227 1236 msgid "Capo" 1228 1237 msgstr "" 1229 1238 1230 #: includes/class-chordpress-renderer.php:6 681239 #: includes/class-chordpress-renderer.php:674 1231 1240 msgid "These known chords are used in this song" 1232 1241 msgstr "" 1233 1242 1234 #: includes/class-chordpress-renderer.php:76 11243 #: includes/class-chordpress-renderer.php:767 1235 1244 msgid "Missing square bracket in line" 1236 1245 msgstr "" -
chordpress/tags/3.4.0/makepot.cmd
r2754156 r2877462 1 D:\xampp8.1. 6\php\php.exe D:/wp-cli.phar i18n make-pot . languages/chordpress.pot --slug=chordpress --include="*.php,admin/*.php,admin/partials/*.php,includes/*.php,public/*.php,public/partials/*.php"1 D:\xampp8.1.12\php\php.exe D:/wp-cli.phar i18n make-pot . languages/chordpress.pot --slug=chordpress --include="*.php,admin/*.php,admin/partials/*.php,includes/*.php,public/*.php,public/partials/*.php" -
chordpress/tags/3.4.0/readme.txt
r2874790 r2877462 5 5 Requires at least: 4.0 6 6 Tested up to: 6.1 7 Stable tag: 3. 3.37 Stable tag: 3.4.0 8 8 Requires PHP: 5.2.4 9 9 License: GPLv3 … … 130 130 131 131 == Changelog == 132 = 3.4.0 = 133 * 2023-03-09 134 * Allow "yes", "1" and "true" for shortcode parameters 135 * Updated delete function (option to delete settings and chord posts) 136 132 137 = 3.3.3 = 133 138 * 2023-03-04 -
chordpress/tags/3.4.0/uninstall.php
r2624179 r2877462 1 1 <?php 2 3 /** 4 * Fired when the plugin is uninstalled. 2 /** =========================================================================== 3 * Fired when the plugin is uninstalled. 5 4 * 6 5 * @link https://www.lewe.com … … 13 12 /** 14 13 * If uninstall not called from WordPress, then exit. 15 *16 * @since 2.0.017 14 */ 18 if ( ! defined( 'WP_UNINSTALL_PLUGIN' )) {19 exit;15 if (!defined('WP_UNINSTALL_PLUGIN')) { 16 exit; 20 17 } 21 18 22 19 /** 23 * The unique name (slug) of this plugin. 24 * 25 * @since 2.0.0 26 * @var string $pname The ID of this plugin. 20 * @var string $pname The unique name of this plugin. 27 21 */ 28 22 $pname = 'chordpress'; … … 30 24 /** 31 25 * Exit if admin did not select to delete the plugin data upon uninstall/delete. 32 *33 * @since 2.0.034 26 */ 35 if (!get_option($pname .'_checkbox_uninstall_delete')) return false;27 if (!get_option($pname . '_checkbox_uninstall_delete_options') && !get_option($pname . '_checkbox_uninstall_delete_chordposts')) return false; 36 28 29 // ---------------------------------------------------------------------------- 37 30 /** 38 31 * Delete plugin options. 39 *40 * @since 2.0.041 32 */ 42 $options = array ( 33 if (get_option($pname . '_checkbox_uninstall_delete_options')) { 34 $options = array( 35 $pname . '_checkbox_hide_album', 36 $pname . '_checkbox_hide_artist', 37 $pname . '_checkbox_hide_chords', 38 $pname . '_checkbox_hide_comments', 39 $pname . '_checkbox_hide_composer', 40 $pname . '_checkbox_hide_print', 41 $pname . '_checkbox_hide_subtitle', 42 $pname . '_checkbox_hide_title', 43 $pname . '_checkbox_hide_transpose', 44 $pname . '_checkbox_hide_year', 45 $pname . '_checkbox_hb_notation', 46 $pname . '_checkbox_show_chord_sheet', 47 $pname . '_checkbox_show_jtab_sheet', 48 $pname . '_checkbox_show_chord_sheet_on_top', 49 $pname . '_select_title_level', 50 $pname . '_select_subtitle_level', 51 $pname . '_text_meta_style', 52 $pname . '_text_chord_style', 53 $pname . '_text_lyrics_style', 54 $pname . '_text_comment_style', 55 $pname . '_text_chorus_style', 56 $pname . '_text_verse_style', 57 $pname . '_text_line_style', 58 $pname . '_text_chord_backgroundColor', 59 $pname . '_number_chord_barreChordRadius', 60 $pname . '_text_chord_barreChordStrokeColor', 61 $pname . '_number_chord_barreChordStrokeWidth', 62 $pname . '_number_chord_canvasWidth', 63 $pname . '_text_chord_color', 64 $pname . '_number_chord_emptyStringIndicatorSize', 65 $pname . '_checkbox_chord_fixedDiagramPosition', 66 $pname . '_text_chord_fontFamily', 67 $pname . '_text_chord_fretColor', 68 $pname . '_text_chord_fretLabelColor', 69 $pname . '_text_chord_fretLabelColor', 70 $pname . '_select_chord_fretLabelPosition', 71 $pname . '_number_chord_fretLabelFontSize', 72 $pname . '_number_chord_frets', 73 $pname . '_number_chord_fretSize', 74 $pname . '_number_chord_nutSize', 75 $pname . '_text_chord_nutColor', 76 $pname . '_text_chord_nutStrokeColor', 77 $pname . '_number_chord_nutStrokeWidth', 78 $pname . '_text_chord_nutTextColor', 79 $pname . '_number_chord_nutTextSize', 80 $pname . '_number_chord_position', 81 $pname . '_number_chord_sidePadding', 82 $pname . '_text_chord_stringColor', 83 $pname . '_select_chord_strings', 84 $pname . '_number_chord_strokeWidth', 85 $pname . '_select_chord_style', 86 $pname . '_number_chord_titleBottomMargin', 87 $pname . '_text_chord_titleColor', 88 $pname . '_number_chord_titleFontSize', 89 $pname . '_number_chord_topFretWidth', 90 $pname . '_text_chord_tuning', 91 $pname . '_text_chord_tuningsColor', 92 $pname . '_number_chord_tuningsFontSize', 93 ); 43 94 44 $pname.'_checkbox_uninstall_delete', 45 $pname.'_checkbox_hide_album', 46 $pname.'_checkbox_hide_artist', 47 $pname.'_checkbox_hide_chords', 48 $pname.'_checkbox_hide_comments', 49 $pname.'_checkbox_hide_composer', 50 $pname.'_checkbox_hide_print', 51 $pname.'_checkbox_hide_subtitle', 52 $pname.'_checkbox_hide_title', 53 $pname.'_checkbox_hide_transpose', 54 $pname.'_checkbox_hide_year', 55 $pname.'_checkbox_hb_notation', 56 $pname.'_select_title_level', 57 $pname.'_select_subtitle_level', 58 $pname.'_text_meta_style', 59 $pname.'_text_chord_style', 60 $pname.'_text_lyrics_style', 61 $pname.'_text_comment_style', 62 $pname.'_text_chorus_style', 63 $pname.'_text_verse_style' 95 foreach ($options as $option) { 96 delete_option($option); 97 } 98 } 64 99 65 ); 100 // ---------------------------------------------------------------------------- 101 /** 102 * Delete guitar chord posts and post type. 103 */ 104 if (get_option($pname . '_checkbox_uninstall_delete_chordposts')) { 105 $args = array( 106 'post_type' => 'guitar_chord', 107 'posts_per_page' => -1 108 ); 109 $query = new WP_Query ($args); 110 while ($query->have_posts()) { 111 $query->the_post(); 112 $id = get_the_ID(); 113 wp_delete_post($id, true); 114 } 115 wp_reset_postdata(); 66 116 67 foreach ($options as $option) { 68 69 delete_option($option);70 117 global $wp_post_types; 118 if (isset($wp_post_types['guitar_chord'])) { 119 unset($wp_post_types['guitar_chord']); 120 } 71 121 } -
chordpress/trunk/admin/partials/chordpress-admin-options.php
r2838045 r2877462 444 444 <td> 445 445 <input type="text" id="<?php echo $pname; ?>_text_meta_style" name="<?php echo $pname; ?>_text_meta_style" value="<?php echo get_option($pname . '_text_meta_style'); ?>" /> 446 <p class="description"><?php echo esc_html(__('Enter CSS for the meta header block, e.g.: font-style: italic;', 'chordpress')); ?></p> 446 <p class="description"><?php echo esc_html(__('Enter CSS for the meta header block, e.g.', 'chordpress')); ?>:<br> 447 <code>font-style: italic;</code></p> 447 448 </td> 448 449 </tr> … … 458 459 <td> 459 460 <input type="text" id="<?php echo $pname; ?>_text_chord_style" name="<?php echo $pname; ?>_text_chord_style" value="<?php echo get_option($pname . '_text_chord_style'); ?>" /> 460 <p class="description"><?php echo esc_html(__('Enter CSS for the chords here or leave empty to use the page default. E.g. font-weight:bold;color:#990000;', 'chordpress')); ?></p> 461 <p class="description"><?php echo esc_html(__("Enter CSS for the chords here or leave empty to use the page default. E.g. try this for red text on a light yellow badge", 'chordpress')); ?>:<br> 462 <code>background-color: #F7F1AF; border-radius: 0.3em; color: #990000; padding: 0.1em 0.3em 0.1em 0.3em;</code></p> 461 463 </td> 462 464 </tr> … … 472 474 <td> 473 475 <input type="text" id="<?php echo $pname; ?>_text_comment_style" name="<?php echo $pname; ?>_text_comment_style" value="<?php echo get_option($pname . '_text_comment_style'); ?>" /> 474 <p class="description"><?php echo esc_html(__('Enter CSS for comments, e.g.: background-color: #606060; font-style: italic; padding: 4px;', 'chordpress')); ?></p> 476 <p class="description"><?php echo esc_html(__('Enter CSS for comments, e.g.', 'chordpress')); ?>:<br> 477 <code>background-color: #606060; font-style: italic; padding: 4px;</code></p> 475 478 </td> 476 479 </tr> … … 780 783 781 784 <?php 782 // ,----------------- -,783 // _| Tab: Add cChords |_785 // ,-----------------, 786 // _| Tab: Add Chords |_ 784 787 // 785 788 if ($active_tab == 'tab_samples') $display = "display:block;"; … … 895 898 <tbody> 896 899 <tr> 897 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete"><?php echo esc_html(__('Remove data on uninstall', 'chordpress')); ?></label></th> 898 <td> 899 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete" name="<?php echo $pname; ?>_checkbox_uninstall_delete" <?php checked(get_option($pname . '_checkbox_uninstall_delete'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 900 <p class="description"><?php echo esc_html(__('Remove plugin options from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 900 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete_options"><?php echo esc_html(__('Remove options on delete', 'chordpress')); ?></label></th> 901 <td> 902 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete_options" name="<?php echo $pname; ?>_checkbox_uninstall_delete_options" <?php checked(get_option($pname . '_checkbox_uninstall_delete_options'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 903 <p class="description"><?php echo esc_html(__('Remove plugin options and settings from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 904 </td> 905 </tr> 906 <tr> 907 <th scope="row"><label for="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts"><?php echo esc_html(__('Remove guitar chord posts on delete', 'chordpress')); ?></label></th> 908 <td> 909 <p><input type="checkbox" id="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts" name="<?php echo $pname; ?>_checkbox_uninstall_delete_chordposts" <?php checked(get_option($pname . '_checkbox_uninstall_delete_chordposts'), 1); ?> value='1'> <?php echo esc_html(__('Yes', 'chordpress')); ?></p> 910 <p class="description"><?php echo esc_html(__('Remove all guitar chord posts from the database when the plugin is deleted (does not apply when the plugin is just deactivated).', 'chordpress')); ?></p> 901 911 </td> 902 912 </tr> -
chordpress/trunk/chordpress.php
r2874790 r2877462 36 36 */ 37 37 define('CHORDPRESS_NAME', 'ChordPress'); 38 define('CHORDPRESS_VERSION', '3. 3.3');38 define('CHORDPRESS_VERSION', '3.4.0'); 39 39 define('CHORDPRESS_AUTHOR', 'George Lewe'); 40 40 define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com'); -
chordpress/trunk/includes/class-chordpress-chord.php
r2874790 r2877462 611 611 * Replaces round brackets with square brackets. 612 612 * 613 * @param string $inputString with round bracktes614 * @return string String with square brackets613 * @param string $input String with round bracktes 614 * @return string - String with square brackets 615 615 */ 616 616 public function replace_brackets($input) -
chordpress/trunk/includes/class-chordpress-plugin.php
r2838045 r2877462 200 200 $this->plugin_name . '_number_chord_tuningsFontSize', 201 201 202 $this->plugin_name . '_checkbox_uninstall_delete' 202 $this->plugin_name . '_checkbox_uninstall_delete_options', 203 $this->plugin_name . '_checkbox_uninstall_delete_chordposts' 203 204 204 205 ); -
chordpress/trunk/includes/class-chordpress-renderer.php
r2874790 r2877462 528 528 * 529 529 * @since 1.0.0 530 * @param string$text Text inside shortcode wrapper.530 * @param object $text Text inside shortcode wrapper. 531 531 * @return string Formatted HTML of the ChordPro text. 532 532 */ 533 public function displayText($text) 533 public function displayText($text): string 534 534 { 535 535 /** … … 562 562 * Interactive transpose / print 563 563 */ 564 if ( strtolower($this->interactive) == "yes") {564 if (in_array(strtolower($this->interactive), array("yes", "1", "true"))) { 565 565 $returnText .= "<div class=\"cpress_interaction\">"; 566 566 $transposeForm = ""; … … 991 991 $nashvilleChords = array('1', '2', '3', '4', '5', '6', '7'); 992 992 993 if (strlen($ch) == 0) return ;993 if (strlen($ch) == 0) return ''; 994 994 995 995 /** … … 1140 1140 ); 1141 1141 1142 if ( $this->hbNotation == 'yes') {1142 if (in_array(strtolower($this->hbNotation), array("yes", "1", "true"))) { 1143 1143 if (array_key_exists(strtoupper($n), $hbNotation)) { 1144 1144 return $hbNotation[strtoupper($n)]; -
chordpress/trunk/languages/chordpress.pot
r2838045 r2877462 1 # Copyright (C) 202 2George Lewe1 # Copyright (C) 2023 George Lewe 2 2 # This file is distributed under the same license as the Lewe ChordPress plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Lewe ChordPress 3. 2.1\n"5 "Project-Id-Version: Lewe ChordPress 3.3.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/chordpress\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 2-12-22T16:01:46+01:00\n"12 "POT-Creation-Date: 2023-03-09T21:55:13+01:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 157 157 #: admin/partials/chordpress-admin-license.php:41 158 158 #: admin/partials/chordpress-admin-options.php:253 159 #: admin/partials/chordpress-admin-options.php:9 43159 #: admin/partials/chordpress-admin-options.php:953 160 160 msgid "Documentation" 161 161 msgstr "" 162 162 163 163 #: admin/class-chordpress-admin.php:246 164 #: admin/partials/chordpress-admin-options.php:9 49164 #: admin/partials/chordpress-admin-options.php:959 165 165 msgid "Support" 166 166 msgstr "" … … 178 178 #: admin/class-chordpress-admin.php:301 179 179 #: admin/partials/chordpress-admin-chord-meta-box.php:53 180 #: admin/partials/chordpress-admin-options.php:9 25180 #: admin/partials/chordpress-admin-options.php:935 181 181 msgid "Name" 182 182 msgstr "" 183 183 184 184 #: admin/class-chordpress-admin.php:302 185 #: admin/partials/chordpress-admin-options.php:6 89185 #: admin/partials/chordpress-admin-options.php:692 186 186 msgid "Strings" 187 187 msgstr "" … … 221 221 222 222 #: admin/partials/chordpress-admin-chord-meta-box.php:92 223 #: admin/partials/chordpress-admin-options.php:75 4223 #: admin/partials/chordpress-admin-options.php:757 224 224 msgid "Tuning" 225 225 msgstr "" … … 563 563 564 564 #: admin/partials/chordpress-admin-options.php:446 565 msgid "Enter CSS for the meta header block, e.g. : font-style: italic;"566 msgstr "" 567 568 #: admin/partials/chordpress-admin-options.php:45 0565 msgid "Enter CSS for the meta header block, e.g." 566 msgstr "" 567 568 #: admin/partials/chordpress-admin-options.php:451 569 569 msgid "Line Style" 570 570 msgstr "" 571 571 572 #: admin/partials/chordpress-admin-options.php:45 3572 #: admin/partials/chordpress-admin-options.php:454 573 573 msgid "Enter CSS for the lines here or leave empty to use the default (margin: 1em 0 1em 0;)." 574 574 msgstr "" 575 575 576 #: admin/partials/chordpress-admin-options.php:45 7576 #: admin/partials/chordpress-admin-options.php:458 577 577 msgid "Chord Style" 578 578 msgstr "" 579 579 580 #: admin/partials/chordpress-admin-options.php:46 0581 msgid "Enter CSS for the chords here or leave empty to use the page default. E.g. font-weight:bold;color:#990000;"582 msgstr "" 583 584 #: admin/partials/chordpress-admin-options.php:46 4580 #: admin/partials/chordpress-admin-options.php:461 581 msgid "Enter CSS for the chords here or leave empty to use the page default. E.g. try this for red text on a light yellow badge" 582 msgstr "" 583 584 #: admin/partials/chordpress-admin-options.php:466 585 585 msgid "Lyrics Style" 586 586 msgstr "" 587 587 588 #: admin/partials/chordpress-admin-options.php:46 7588 #: admin/partials/chordpress-admin-options.php:469 589 589 msgid "Enter CSS for the lyrics here or leave empty to use the page default." 590 590 msgstr "" 591 591 592 #: admin/partials/chordpress-admin-options.php:47 1592 #: admin/partials/chordpress-admin-options.php:473 593 593 msgid "Comment Style" 594 594 msgstr "" 595 595 596 #: admin/partials/chordpress-admin-options.php:47 4597 msgid "Enter CSS for comments, e.g. : background-color: #606060; font-style: italic; padding: 4px;"598 msgstr "" 599 600 #: admin/partials/chordpress-admin-options.php:4 78596 #: admin/partials/chordpress-admin-options.php:476 597 msgid "Enter CSS for comments, e.g." 598 msgstr "" 599 600 #: admin/partials/chordpress-admin-options.php:481 601 601 msgid "Chorus Style" 602 602 msgstr "" 603 603 604 #: admin/partials/chordpress-admin-options.php:481 604 #: admin/partials/chordpress-admin-options.php:484 605 #: admin/partials/chordpress-admin-options.php:491 606 msgid "Enter CSS for the" 607 msgstr "" 608 609 #: admin/partials/chordpress-admin-options.php:484 610 msgid "chorus sections" 611 msgstr "" 612 605 613 #: admin/partials/chordpress-admin-options.php:488 606 msgid "Enter CSS for the"607 msgstr ""608 609 #: admin/partials/chordpress-admin-options.php:481610 msgid "chorus sections"611 msgstr ""612 613 #: admin/partials/chordpress-admin-options.php:485614 614 msgid "Verse Style" 615 615 msgstr "" 616 616 617 #: admin/partials/chordpress-admin-options.php:4 88617 #: admin/partials/chordpress-admin-options.php:491 618 618 msgid "verse sections" 619 619 msgstr "" 620 620 621 #: admin/partials/chordpress-admin-options.php:5 07621 #: admin/partials/chordpress-admin-options.php:510 622 622 msgid "Use this tab to specify global styles and formats for the ChordPress guitar chord diagrams.<br>For single chords using the <code>[chordpress-chord]</code> shortcode, some of them can be overwritten by shortcode parameters." 623 623 msgstr "" 624 624 625 #: admin/partials/chordpress-admin-options.php:51 2625 #: admin/partials/chordpress-admin-options.php:515 626 626 msgid "Sample Display" 627 627 msgstr "" 628 628 629 #: admin/partials/chordpress-admin-options.php:52 4629 #: admin/partials/chordpress-admin-options.php:527 630 630 msgid "This is a sample display based on your settings. You might need to refresh the page to show the diagram." 631 631 msgstr "" 632 632 633 #: admin/partials/chordpress-admin-options.php:5 28633 #: admin/partials/chordpress-admin-options.php:531 634 634 msgid "Background Color" 635 635 msgstr "" 636 636 637 #: admin/partials/chordpress-admin-options.php:53 1637 #: admin/partials/chordpress-admin-options.php:534 638 638 msgid "The background CSS color of the chord diagram, e.g. #FFFFFF. To set the background to transparent (default) either set this to 'none' or leave empty." 639 639 msgstr "" 640 640 641 #: admin/partials/chordpress-admin-options.php:53 5641 #: admin/partials/chordpress-admin-options.php:538 642 642 msgid "Barre Border Radius" 643 643 msgstr "" 644 644 645 #: admin/partials/chordpress-admin-options.php:5 38645 #: admin/partials/chordpress-admin-options.php:541 646 646 msgid "The barre chord rectangle border radius relative to the nutSize (eg. 1 means completely round endges, 0 means not rounded at all). Leave empty for the default: 0.25." 647 647 msgstr "" 648 648 649 #: admin/partials/chordpress-admin-options.php:54 2649 #: admin/partials/chordpress-admin-options.php:545 650 650 msgid "Barre Bar Stroke Color" 651 651 msgstr "" 652 652 653 #: admin/partials/chordpress-admin-options.php:54 5653 #: admin/partials/chordpress-admin-options.php:548 654 654 msgid "The stroke CSS color of a barre chord. Defaults to the nut color if not set. Leave empty for the default 'Nut Color'." 655 655 msgstr "" 656 656 657 #: admin/partials/chordpress-admin-options.php:5 49657 #: admin/partials/chordpress-admin-options.php:552 658 658 msgid "Barre Bar Stroke Width" 659 659 msgstr "" 660 660 661 #: admin/partials/chordpress-admin-options.php:55 2661 #: admin/partials/chordpress-admin-options.php:555 662 662 msgid "The stroke width of a barre chord in pixel. Leave empty for the default 0." 663 663 msgstr "" 664 664 665 #: admin/partials/chordpress-admin-options.php:55 6665 #: admin/partials/chordpress-admin-options.php:559 666 666 msgid "Canvas Width" 667 667 msgstr "" 668 668 669 #: admin/partials/chordpress-admin-options.php:5 59669 #: admin/partials/chordpress-admin-options.php:562 670 670 msgid "Enter the width of the chord diagrams canvas in pixel. Leave emtpy for the default of 180. The height will be adjusted automatically." 671 671 msgstr "" 672 672 673 #: admin/partials/chordpress-admin-options.php:56 3673 #: admin/partials/chordpress-admin-options.php:566 674 674 msgid "Global Color" 675 675 msgstr "" 676 676 677 #: admin/partials/chordpress-admin-options.php:56 6677 #: admin/partials/chordpress-admin-options.php:569 678 678 msgid "Global color of the whole chart. Can be overridden with more specific color settings such as 'Title Color' or 'String Color'. Leave empty for the default #000000." 679 679 msgstr "" 680 680 681 #: admin/partials/chordpress-admin-options.php:57 0681 #: admin/partials/chordpress-admin-options.php:573 682 682 msgid "Empty String Indicator Size" 683 683 msgstr "" 684 684 685 #: admin/partials/chordpress-admin-options.php:57 3685 #: admin/partials/chordpress-admin-options.php:576 686 686 msgid "Size of the Xs and Os above empty strings relative to the space between two strings. Leave empty for the default: 0.6." 687 687 msgstr "" 688 688 689 #: admin/partials/chordpress-admin-options.php:5 77689 #: admin/partials/chordpress-admin-options.php:580 690 690 msgid "Fixed Diagram Position" 691 691 msgstr "" 692 692 693 #: admin/partials/chordpress-admin-options.php:58 0693 #: admin/partials/chordpress-admin-options.php:583 694 694 msgid "With this option selected, the distance between the chord diagram and the top of the SVG stays the same, no matter if a title is defined or not. Default is off." 695 695 msgstr "" 696 696 697 #: admin/partials/chordpress-admin-options.php:58 4697 #: admin/partials/chordpress-admin-options.php:587 698 698 msgid "Font Family" 699 699 msgstr "" 700 700 701 #: admin/partials/chordpress-admin-options.php:5 87701 #: admin/partials/chordpress-admin-options.php:590 702 702 msgid "The font family used for all letters and numbers. Leave empty for the default: 'Arial, \"Helvetica Neue\", Helvetica, sans-serif'." 703 703 msgstr "" 704 704 705 #: admin/partials/chordpress-admin-options.php:59 1705 #: admin/partials/chordpress-admin-options.php:594 706 706 msgid "Fret Color" 707 707 msgstr "" 708 708 709 #: admin/partials/chordpress-admin-options.php:59 4709 #: admin/partials/chordpress-admin-options.php:597 710 710 msgid "Fret color. Leave empty for default: 'Global Color'." 711 711 msgstr "" 712 712 713 #: admin/partials/chordpress-admin-options.php: 598713 #: admin/partials/chordpress-admin-options.php:601 714 714 msgid "Fret Label Color" 715 715 msgstr "" 716 716 717 #: admin/partials/chordpress-admin-options.php:60 1717 #: admin/partials/chordpress-admin-options.php:604 718 718 msgid "Fret label color. Leave empty for default: 'Global Color'." 719 719 msgstr "" 720 720 721 #: admin/partials/chordpress-admin-options.php:60 5721 #: admin/partials/chordpress-admin-options.php:608 722 722 msgid "Fret Label Font Size" 723 723 msgstr "" 724 724 725 #: admin/partials/chordpress-admin-options.php:6 08725 #: admin/partials/chordpress-admin-options.php:611 726 726 msgid "Font size of the fret label. Leave empty for the default: 38." 727 727 msgstr "" 728 728 729 #: admin/partials/chordpress-admin-options.php:61 2729 #: admin/partials/chordpress-admin-options.php:615 730 730 msgid "Frets" 731 731 msgstr "" 732 732 733 #: admin/partials/chordpress-admin-options.php:61 5733 #: admin/partials/chordpress-admin-options.php:618 734 734 msgid "Number of frets to show in the chart. Leave empty for the default: 4." 735 735 msgstr "" 736 736 737 #: admin/partials/chordpress-admin-options.php:6 19737 #: admin/partials/chordpress-admin-options.php:622 738 738 msgid "Fret Height" 739 739 msgstr "" 740 740 741 #: admin/partials/chordpress-admin-options.php:62 2741 #: admin/partials/chordpress-admin-options.php:625 742 742 msgid "Height of a fret, relative to the space between two strings. Leave empty for the default: 1.5." 743 743 msgstr "" 744 744 745 #: admin/partials/chordpress-admin-options.php:62 6745 #: admin/partials/chordpress-admin-options.php:629 746 746 msgid "Nut Size" 747 747 msgstr "" 748 748 749 #: admin/partials/chordpress-admin-options.php:6 29749 #: admin/partials/chordpress-admin-options.php:632 750 750 msgid "Size of a nut relative to the string spacing. Leave empty for the default: 0.85." 751 751 msgstr "" 752 752 753 #: admin/partials/chordpress-admin-options.php:63 3753 #: admin/partials/chordpress-admin-options.php:636 754 754 msgid "Nut Color" 755 755 msgstr "" 756 756 757 #: admin/partials/chordpress-admin-options.php:63 6757 #: admin/partials/chordpress-admin-options.php:639 758 758 msgid "Color of a finger/nut. Leave empty for default: 'Global Color'." 759 759 msgstr "" 760 760 761 #: admin/partials/chordpress-admin-options.php:64 0761 #: admin/partials/chordpress-admin-options.php:643 762 762 msgid "Nut Stroke Color" 763 763 msgstr "" 764 764 765 #: admin/partials/chordpress-admin-options.php:64 3765 #: admin/partials/chordpress-admin-options.php:646 766 766 msgid "Stroke color of a nut. Leave empty for default: 'Nut Color'. If nut color is not set it defaults to 'Global Color'." 767 767 msgstr "" 768 768 769 #: admin/partials/chordpress-admin-options.php:6 47769 #: admin/partials/chordpress-admin-options.php:650 770 770 msgid "Nut Stroke Width" 771 771 msgstr "" 772 772 773 #: admin/partials/chordpress-admin-options.php:65 0773 #: admin/partials/chordpress-admin-options.php:653 774 774 msgid "Stroke width of a nut. Leave empty for the default: 0." 775 775 msgstr "" 776 776 777 #: admin/partials/chordpress-admin-options.php:65 4777 #: admin/partials/chordpress-admin-options.php:657 778 778 msgid "Nut Text Color" 779 779 msgstr "" 780 780 781 #: admin/partials/chordpress-admin-options.php:6 57781 #: admin/partials/chordpress-admin-options.php:660 782 782 msgid "Text color of a nut. Leave empty for default: #FFFFFF." 783 783 msgstr "" 784 784 785 #: admin/partials/chordpress-admin-options.php:66 1785 #: admin/partials/chordpress-admin-options.php:664 786 786 msgid "Nut Text Size" 787 787 msgstr "" 788 788 789 #: admin/partials/chordpress-admin-options.php:66 4789 #: admin/partials/chordpress-admin-options.php:667 790 790 msgid "Font size of the nut label. Leave empty for the default: 24." 791 791 msgstr "" 792 792 793 #: admin/partials/chordpress-admin-options.php:6 68793 #: admin/partials/chordpress-admin-options.php:671 794 794 msgid "Position" 795 795 msgstr "" 796 796 797 #: admin/partials/chordpress-admin-options.php:67 1797 #: admin/partials/chordpress-admin-options.php:674 798 798 msgid "Default start fret position (first fret is 1). Leave empty for the default: 1." 799 799 msgstr "" 800 800 801 #: admin/partials/chordpress-admin-options.php:67 5801 #: admin/partials/chordpress-admin-options.php:678 802 802 msgid "Side Padding" 803 803 msgstr "" 804 804 805 #: admin/partials/chordpress-admin-options.php:6 78805 #: admin/partials/chordpress-admin-options.php:681 806 806 msgid "The minimum side padding (from the guitar to the edge of the chart) relative to the whole width. This is only applied if it's larger than the letters inside of the padding (eg the starting fret). Leave empty for the default: 0.2." 807 807 msgstr "" 808 808 809 #: admin/partials/chordpress-admin-options.php:68 2809 #: admin/partials/chordpress-admin-options.php:685 810 810 msgid "String Color" 811 811 msgstr "" 812 812 813 #: admin/partials/chordpress-admin-options.php:68 5813 #: admin/partials/chordpress-admin-options.php:688 814 814 msgid "Text color of a nut. Leave empty for default: 'Global Color'." 815 815 msgstr "" 816 816 817 #: admin/partials/chordpress-admin-options.php:70 0817 #: admin/partials/chordpress-admin-options.php:703 818 818 msgid "Number of strings. Default is '6'." 819 819 msgstr "" 820 820 821 #: admin/partials/chordpress-admin-options.php:70 4821 #: admin/partials/chordpress-admin-options.php:707 822 822 msgid "Stroke Width" 823 823 msgstr "" 824 824 825 #: admin/partials/chordpress-admin-options.php:7 07825 #: admin/partials/chordpress-admin-options.php:710 826 826 msgid "Global stroke width. Leave empty for the default: 2." 827 827 msgstr "" 828 828 829 #: admin/partials/chordpress-admin-options.php:71 1829 #: admin/partials/chordpress-admin-options.php:714 830 830 msgid "Style" 831 831 msgstr "" 832 832 833 #: admin/partials/chordpress-admin-options.php:72 2833 #: admin/partials/chordpress-admin-options.php:725 834 834 msgid "Select between 'Normal' and 'Handdrawn'. Default is 'Normal'." 835 835 msgstr "" 836 836 837 #: admin/partials/chordpress-admin-options.php:72 6837 #: admin/partials/chordpress-admin-options.php:729 838 838 msgid "Title Bottom Margin" 839 839 msgstr "" 840 840 841 #: admin/partials/chordpress-admin-options.php:7 29841 #: admin/partials/chordpress-admin-options.php:732 842 842 msgid "Space between the title and the chart. Leave empty for the default: 0." 843 843 msgstr "" 844 844 845 #: admin/partials/chordpress-admin-options.php:73 3845 #: admin/partials/chordpress-admin-options.php:736 846 846 msgid "Title Color" 847 847 msgstr "" 848 848 849 #: admin/partials/chordpress-admin-options.php:73 6849 #: admin/partials/chordpress-admin-options.php:739 850 850 msgid "Text color of the title. Leave empty for default: 'Global Color'." 851 851 msgstr "" 852 852 853 #: admin/partials/chordpress-admin-options.php:74 0853 #: admin/partials/chordpress-admin-options.php:743 854 854 msgid "Title Font Size" 855 855 msgstr "" 856 856 857 #: admin/partials/chordpress-admin-options.php:74 3857 #: admin/partials/chordpress-admin-options.php:746 858 858 msgid "Font size of the title. This is only the initial font size. If the title doesn't fit, the title is automatically scaled so that it fits. Leave empty for the default: 48." 859 859 msgstr "" 860 860 861 #: admin/partials/chordpress-admin-options.php:7 47861 #: admin/partials/chordpress-admin-options.php:750 862 862 msgid "Top Fret Width" 863 863 msgstr "" 864 864 865 #: admin/partials/chordpress-admin-options.php:75 0865 #: admin/partials/chordpress-admin-options.php:753 866 866 msgid "Top fret width (only used if position is 1). Leave empty for the default: 10." 867 867 msgstr "" 868 868 869 #: admin/partials/chordpress-admin-options.php:7 57869 #: admin/partials/chordpress-admin-options.php:760 870 870 msgid "Labels under the strings for their tuning. Leave empty for default: [ 'E', 'A', 'D', 'G', 'B', 'E' ]." 871 871 msgstr "" 872 872 873 #: admin/partials/chordpress-admin-options.php:76 1873 #: admin/partials/chordpress-admin-options.php:764 874 874 msgid "Tunings Color" 875 875 msgstr "" 876 876 877 #: admin/partials/chordpress-admin-options.php:76 4877 #: admin/partials/chordpress-admin-options.php:767 878 878 msgid "Tunings color. Leave empty for default: 'Global Color'." 879 879 msgstr "" 880 880 881 #: admin/partials/chordpress-admin-options.php:7 68881 #: admin/partials/chordpress-admin-options.php:771 882 882 msgid "Tunings Font Size" 883 883 msgstr "" 884 884 885 #: admin/partials/chordpress-admin-options.php:77 1885 #: admin/partials/chordpress-admin-options.php:774 886 886 msgid "Font size of the tunig labels. Leave empty for the default: 28." 887 887 msgstr "" 888 888 889 #: admin/partials/chordpress-admin-options.php:79 0889 #: admin/partials/chordpress-admin-options.php:793 890 890 msgid "Use this tab to create chord diagrams. These diagram are saved as \"Guitar Chord\" posts. They will be added to the ones that already exist." 891 891 msgstr "" 892 892 893 #: admin/partials/chordpress-admin-options.php:79 5893 #: admin/partials/chordpress-admin-options.php:798 894 894 msgid "Major Chords" 895 895 msgstr "" 896 896 897 #: admin/partials/chordpress-admin-options.php: 798897 #: admin/partials/chordpress-admin-options.php:801 898 898 msgid "Imports a common version of the major chords for the base notes A, B, C, D, E, F and G." 899 899 msgstr "" 900 900 901 #: admin/partials/chordpress-admin-options.php:80 2901 #: admin/partials/chordpress-admin-options.php:805 902 902 msgid "Major 7 Chords" 903 903 msgstr "" 904 904 905 #: admin/partials/chordpress-admin-options.php:80 5905 #: admin/partials/chordpress-admin-options.php:808 906 906 msgid "Imports a common version of the major 7 chords for the base notes A, B, C, D, E, F and G." 907 907 msgstr "" 908 908 909 #: admin/partials/chordpress-admin-options.php:8 09909 #: admin/partials/chordpress-admin-options.php:812 910 910 msgid "Major 5 Chords" 911 911 msgstr "" 912 912 913 #: admin/partials/chordpress-admin-options.php:81 2913 #: admin/partials/chordpress-admin-options.php:815 914 914 msgid "Imports a common version of the major 5 chords for the base notes A, B, C, D, E, F and G." 915 915 msgstr "" 916 916 917 #: admin/partials/chordpress-admin-options.php:81 6917 #: admin/partials/chordpress-admin-options.php:819 918 918 msgid "Minor Chords" 919 919 msgstr "" 920 920 921 #: admin/partials/chordpress-admin-options.php:8 19921 #: admin/partials/chordpress-admin-options.php:822 922 922 msgid "Imports a common version of the minor chords for the base notes A, B, C, D, E, F and G." 923 923 msgstr "" 924 924 925 #: admin/partials/chordpress-admin-options.php:82 3925 #: admin/partials/chordpress-admin-options.php:826 926 926 msgid "Minor 7 Chords" 927 927 msgstr "" 928 928 929 #: admin/partials/chordpress-admin-options.php:82 6929 #: admin/partials/chordpress-admin-options.php:829 930 930 msgid "Imports a common version of the minor 7 chords for the base notes A, B, C, D, E, F and G." 931 931 msgstr "" 932 932 933 #: admin/partials/chordpress-admin-options.php:83 0933 #: admin/partials/chordpress-admin-options.php:833 934 934 msgid "Diminished Chords" 935 935 msgstr "" 936 936 937 #: admin/partials/chordpress-admin-options.php:83 3937 #: admin/partials/chordpress-admin-options.php:836 938 938 msgid "Imports a common version of the diminished chords for the base notes A, B, C, D, E, F and G." 939 939 msgstr "" 940 940 941 #: admin/partials/chordpress-admin-options.php:8 37941 #: admin/partials/chordpress-admin-options.php:840 942 942 msgid "Diminished 7 Chords" 943 943 msgstr "" 944 944 945 #: admin/partials/chordpress-admin-options.php:84 0945 #: admin/partials/chordpress-admin-options.php:843 946 946 msgid "Imports a common version of the diminished 7 chords for the base notes A, B, C, D, E, F and G." 947 947 msgstr "" 948 948 949 #: admin/partials/chordpress-admin-options.php:84 4949 #: admin/partials/chordpress-admin-options.php:847 950 950 msgid "Augurated Chords" 951 951 msgstr "" 952 952 953 #: admin/partials/chordpress-admin-options.php:8 47953 #: admin/partials/chordpress-admin-options.php:850 954 954 msgid "Imports a common version of the augurated chords for the base notes A, B, C, D, E, F and G." 955 955 msgstr "" 956 956 957 #: admin/partials/chordpress-admin-options.php:85 1957 #: admin/partials/chordpress-admin-options.php:854 958 958 msgid "Suspended 2 Chords" 959 959 msgstr "" 960 960 961 #: admin/partials/chordpress-admin-options.php:85 4961 #: admin/partials/chordpress-admin-options.php:857 962 962 msgid "Imports a common version of the suspended 2 chords for the base notes A, B, C, D, E, F and G." 963 963 msgstr "" 964 964 965 #: admin/partials/chordpress-admin-options.php:8 58965 #: admin/partials/chordpress-admin-options.php:861 966 966 msgid "Suspended 4 Chords" 967 967 msgstr "" 968 968 969 #: admin/partials/chordpress-admin-options.php:86 1969 #: admin/partials/chordpress-admin-options.php:864 970 970 msgid "Imports a common version of the suspended 4 chords for the base notes A, B, C, D, E, F and G." 971 971 msgstr "" 972 972 973 #: admin/partials/chordpress-admin-options.php:86 5973 #: admin/partials/chordpress-admin-options.php:868 974 974 msgid "Suspended 7_4 Chords" 975 975 msgstr "" 976 976 977 #: admin/partials/chordpress-admin-options.php:8 68977 #: admin/partials/chordpress-admin-options.php:871 978 978 msgid "Imports a common version of the suspended 7_4 chords for the base notes A, B, C, D, E, F and G." 979 979 msgstr "" 980 980 981 #: admin/partials/chordpress-admin-options.php:87 2981 #: admin/partials/chordpress-admin-options.php:875 982 982 msgid "Maj 7 Chords" 983 983 msgstr "" 984 984 985 #: admin/partials/chordpress-admin-options.php:87 5985 #: admin/partials/chordpress-admin-options.php:878 986 986 msgid "Imports a common version of the Maj 7 chords for the base notes A, B, C, D, E, F and G." 987 987 msgstr "" 988 988 989 #: admin/partials/chordpress-admin-options.php:89 2989 #: admin/partials/chordpress-admin-options.php:895 990 990 msgid "Select general options for this plugin." 991 991 msgstr "" 992 992 993 #: admin/partials/chordpress-admin-options.php:897 994 msgid "Remove data on uninstall" 995 msgstr "" 996 997 #: admin/partials/chordpress-admin-options.php:899 993 #: admin/partials/chordpress-admin-options.php:900 994 msgid "Remove options on delete" 995 msgstr "" 996 997 #: admin/partials/chordpress-admin-options.php:902 998 #: admin/partials/chordpress-admin-options.php:909 998 999 msgid "Yes" 999 1000 msgstr "" 1000 1001 1001 #: admin/partials/chordpress-admin-options.php:900 1002 msgid "Remove plugin options from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1003 msgstr "" 1004 1005 #: admin/partials/chordpress-admin-options.php:931 1002 #: admin/partials/chordpress-admin-options.php:903 1003 msgid "Remove plugin options and settings from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1004 msgstr "" 1005 1006 #: admin/partials/chordpress-admin-options.php:907 1007 msgid "Remove guitar chord posts on delete" 1008 msgstr "" 1009 1010 #: admin/partials/chordpress-admin-options.php:910 1011 msgid "Remove all guitar chord posts from the database when the plugin is deleted (does not apply when the plugin is just deactivated)." 1012 msgstr "" 1013 1014 #: admin/partials/chordpress-admin-options.php:941 1006 1015 msgid "Version" 1007 1016 msgstr "" 1008 1017 1009 #: admin/partials/chordpress-admin-options.php:9 371018 #: admin/partials/chordpress-admin-options.php:947 1010 1019 msgid "Author" 1011 1020 msgstr "" 1012 1021 1013 #: admin/partials/chordpress-admin-options.php:9 551022 #: admin/partials/chordpress-admin-options.php:965 1014 1023 msgid "Credits" 1015 1024 msgstr "" … … 1180 1189 msgstr "" 1181 1190 1182 #: includes/class-chordpress-renderer.php:5 791191 #: includes/class-chordpress-renderer.php:583 1183 1192 msgid "Transpose up" 1184 1193 msgstr "" 1185 1194 1186 #: includes/class-chordpress-renderer.php:59 31195 #: includes/class-chordpress-renderer.php:597 1187 1196 msgid "No chords" 1188 1197 msgstr "" 1189 1198 1190 #: includes/class-chordpress-renderer.php: 5981199 #: includes/class-chordpress-renderer.php:602 1191 1200 msgid "Print" 1192 1201 msgstr "" 1193 1202 1194 #: includes/class-chordpress-renderer.php:63 01203 #: includes/class-chordpress-renderer.php:635 1195 1204 msgid "Composer" 1196 1205 msgstr "" 1197 1206 1198 #: includes/class-chordpress-renderer.php:63 11207 #: includes/class-chordpress-renderer.php:636 1199 1208 msgid "Artist" 1200 1209 msgstr "" 1201 1210 1202 #: includes/class-chordpress-renderer.php:63 21211 #: includes/class-chordpress-renderer.php:637 1203 1212 msgid "Year" 1204 1213 msgstr "" 1205 1214 1206 #: includes/class-chordpress-renderer.php:63 31215 #: includes/class-chordpress-renderer.php:638 1207 1216 msgid "Album" 1208 1217 msgstr "" 1209 1218 1210 #: includes/class-chordpress-renderer.php:6 361219 #: includes/class-chordpress-renderer.php:641 1211 1220 msgid "Key (original)" 1212 1221 msgstr "" 1213 1222 1214 #: includes/class-chordpress-renderer.php:6 371223 #: includes/class-chordpress-renderer.php:642 1215 1224 msgid "Key (transposed)" 1216 1225 msgstr "" 1217 1226 1218 #: includes/class-chordpress-renderer.php:64 41227 #: includes/class-chordpress-renderer.php:649 1219 1228 msgid "Time" 1220 1229 msgstr "" 1221 1230 1222 #: includes/class-chordpress-renderer.php:6 451231 #: includes/class-chordpress-renderer.php:650 1223 1232 msgid "Tempo" 1224 1233 msgstr "" 1225 1234 1226 #: includes/class-chordpress-renderer.php:6 461235 #: includes/class-chordpress-renderer.php:651 1227 1236 msgid "Capo" 1228 1237 msgstr "" 1229 1238 1230 #: includes/class-chordpress-renderer.php:6 681239 #: includes/class-chordpress-renderer.php:674 1231 1240 msgid "These known chords are used in this song" 1232 1241 msgstr "" 1233 1242 1234 #: includes/class-chordpress-renderer.php:76 11243 #: includes/class-chordpress-renderer.php:767 1235 1244 msgid "Missing square bracket in line" 1236 1245 msgstr "" -
chordpress/trunk/makepot.cmd
r2754156 r2877462 1 D:\xampp8.1. 6\php\php.exe D:/wp-cli.phar i18n make-pot . languages/chordpress.pot --slug=chordpress --include="*.php,admin/*.php,admin/partials/*.php,includes/*.php,public/*.php,public/partials/*.php"1 D:\xampp8.1.12\php\php.exe D:/wp-cli.phar i18n make-pot . languages/chordpress.pot --slug=chordpress --include="*.php,admin/*.php,admin/partials/*.php,includes/*.php,public/*.php,public/partials/*.php" -
chordpress/trunk/readme.txt
r2874790 r2877462 5 5 Requires at least: 4.0 6 6 Tested up to: 6.1 7 Stable tag: 3. 3.37 Stable tag: 3.4.0 8 8 Requires PHP: 5.2.4 9 9 License: GPLv3 … … 130 130 131 131 == Changelog == 132 = 3.4.0 = 133 * 2023-03-09 134 * Allow "yes", "1" and "true" for shortcode parameters 135 * Updated delete function (option to delete settings and chord posts) 136 132 137 = 3.3.3 = 133 138 * 2023-03-04 -
chordpress/trunk/uninstall.php
r2624179 r2877462 1 1 <?php 2 3 /** 4 * Fired when the plugin is uninstalled. 2 /** =========================================================================== 3 * Fired when the plugin is uninstalled. 5 4 * 6 5 * @link https://www.lewe.com … … 13 12 /** 14 13 * If uninstall not called from WordPress, then exit. 15 *16 * @since 2.0.017 14 */ 18 if ( ! defined( 'WP_UNINSTALL_PLUGIN' )) {19 exit;15 if (!defined('WP_UNINSTALL_PLUGIN')) { 16 exit; 20 17 } 21 18 22 19 /** 23 * The unique name (slug) of this plugin. 24 * 25 * @since 2.0.0 26 * @var string $pname The ID of this plugin. 20 * @var string $pname The unique name of this plugin. 27 21 */ 28 22 $pname = 'chordpress'; … … 30 24 /** 31 25 * Exit if admin did not select to delete the plugin data upon uninstall/delete. 32 *33 * @since 2.0.034 26 */ 35 if (!get_option($pname .'_checkbox_uninstall_delete')) return false;27 if (!get_option($pname . '_checkbox_uninstall_delete_options') && !get_option($pname . '_checkbox_uninstall_delete_chordposts')) return false; 36 28 29 // ---------------------------------------------------------------------------- 37 30 /** 38 31 * Delete plugin options. 39 *40 * @since 2.0.041 32 */ 42 $options = array ( 33 if (get_option($pname . '_checkbox_uninstall_delete_options')) { 34 $options = array( 35 $pname . '_checkbox_hide_album', 36 $pname . '_checkbox_hide_artist', 37 $pname . '_checkbox_hide_chords', 38 $pname . '_checkbox_hide_comments', 39 $pname . '_checkbox_hide_composer', 40 $pname . '_checkbox_hide_print', 41 $pname . '_checkbox_hide_subtitle', 42 $pname . '_checkbox_hide_title', 43 $pname . '_checkbox_hide_transpose', 44 $pname . '_checkbox_hide_year', 45 $pname . '_checkbox_hb_notation', 46 $pname . '_checkbox_show_chord_sheet', 47 $pname . '_checkbox_show_jtab_sheet', 48 $pname . '_checkbox_show_chord_sheet_on_top', 49 $pname . '_select_title_level', 50 $pname . '_select_subtitle_level', 51 $pname . '_text_meta_style', 52 $pname . '_text_chord_style', 53 $pname . '_text_lyrics_style', 54 $pname . '_text_comment_style', 55 $pname . '_text_chorus_style', 56 $pname . '_text_verse_style', 57 $pname . '_text_line_style', 58 $pname . '_text_chord_backgroundColor', 59 $pname . '_number_chord_barreChordRadius', 60 $pname . '_text_chord_barreChordStrokeColor', 61 $pname . '_number_chord_barreChordStrokeWidth', 62 $pname . '_number_chord_canvasWidth', 63 $pname . '_text_chord_color', 64 $pname . '_number_chord_emptyStringIndicatorSize', 65 $pname . '_checkbox_chord_fixedDiagramPosition', 66 $pname . '_text_chord_fontFamily', 67 $pname . '_text_chord_fretColor', 68 $pname . '_text_chord_fretLabelColor', 69 $pname . '_text_chord_fretLabelColor', 70 $pname . '_select_chord_fretLabelPosition', 71 $pname . '_number_chord_fretLabelFontSize', 72 $pname . '_number_chord_frets', 73 $pname . '_number_chord_fretSize', 74 $pname . '_number_chord_nutSize', 75 $pname . '_text_chord_nutColor', 76 $pname . '_text_chord_nutStrokeColor', 77 $pname . '_number_chord_nutStrokeWidth', 78 $pname . '_text_chord_nutTextColor', 79 $pname . '_number_chord_nutTextSize', 80 $pname . '_number_chord_position', 81 $pname . '_number_chord_sidePadding', 82 $pname . '_text_chord_stringColor', 83 $pname . '_select_chord_strings', 84 $pname . '_number_chord_strokeWidth', 85 $pname . '_select_chord_style', 86 $pname . '_number_chord_titleBottomMargin', 87 $pname . '_text_chord_titleColor', 88 $pname . '_number_chord_titleFontSize', 89 $pname . '_number_chord_topFretWidth', 90 $pname . '_text_chord_tuning', 91 $pname . '_text_chord_tuningsColor', 92 $pname . '_number_chord_tuningsFontSize', 93 ); 43 94 44 $pname.'_checkbox_uninstall_delete', 45 $pname.'_checkbox_hide_album', 46 $pname.'_checkbox_hide_artist', 47 $pname.'_checkbox_hide_chords', 48 $pname.'_checkbox_hide_comments', 49 $pname.'_checkbox_hide_composer', 50 $pname.'_checkbox_hide_print', 51 $pname.'_checkbox_hide_subtitle', 52 $pname.'_checkbox_hide_title', 53 $pname.'_checkbox_hide_transpose', 54 $pname.'_checkbox_hide_year', 55 $pname.'_checkbox_hb_notation', 56 $pname.'_select_title_level', 57 $pname.'_select_subtitle_level', 58 $pname.'_text_meta_style', 59 $pname.'_text_chord_style', 60 $pname.'_text_lyrics_style', 61 $pname.'_text_comment_style', 62 $pname.'_text_chorus_style', 63 $pname.'_text_verse_style' 95 foreach ($options as $option) { 96 delete_option($option); 97 } 98 } 64 99 65 ); 100 // ---------------------------------------------------------------------------- 101 /** 102 * Delete guitar chord posts and post type. 103 */ 104 if (get_option($pname . '_checkbox_uninstall_delete_chordposts')) { 105 $args = array( 106 'post_type' => 'guitar_chord', 107 'posts_per_page' => -1 108 ); 109 $query = new WP_Query ($args); 110 while ($query->have_posts()) { 111 $query->the_post(); 112 $id = get_the_ID(); 113 wp_delete_post($id, true); 114 } 115 wp_reset_postdata(); 66 116 67 foreach ($options as $option) { 68 69 delete_option($option);70 117 global $wp_post_types; 118 if (isset($wp_post_types['guitar_chord'])) { 119 unset($wp_post_types['guitar_chord']); 120 } 71 121 }
Note: See TracChangeset
for help on using the changeset viewer.