Plugin Directory

Changeset 2849275


Ignore:
Timestamp:
01/16/2023 04:14:13 PM (3 years ago)
Author:
glewe
Message:

Tagging version 3.3.1

Location:
chordpress
Files:
3 edited
23 copied

Legend:

Unmodified
Added
Removed
  • chordpress/tags/3.3.1/chordpress.php

    r2838045 r2849275  
    1717 * Plugin URI:        https://lewe.gitbook.io/lewe-chordpress/
    1818 * Description:       This plugin renders ChordPro formatted text and chord diagrams in WordPress sites.
    19  * Version:           3.3.0
     19 * Version:           3.3.1
    2020 * Author:            George Lewe
    2121 * Author URI:        https://www.lewe.com
     
    3636 */
    3737define('CHORDPRESS_NAME', 'ChordPress');
    38 define('CHORDPRESS_VERSION', '3.3.0');
     38define('CHORDPRESS_VERSION', '3.3.1');
    3939define('CHORDPRESS_AUTHOR', 'George Lewe');
    4040define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com');
  • chordpress/tags/3.3.1/includes/class-chordpress-renderer.php

    r2797343 r2849275  
    9595
    9696    /**
     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    /**
    97106     * Hide title flag.
    98107     *
     
    104113
    105114    /**
     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    /**
    106124     * Hide year flag.
    107125     *
     
    194212
    195213    /**
     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    /**
    196223     * CSS styles for the chorus sections.
    197224     *
     
    248275
    249276    /**
    250      * Show Chord Sheet for jTab.
     277     * Show Chord Sheet on top.
    251278     *
    252279     * @since    2.1.0
    253280     * @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;
    275284
    276285    /**
     
    417426        if (!$this->displayHBNotation = get_option('chordpress_checkbox_hb_notation')) $this->displayHBNotation = 0;
    418427        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;
    420428        if (!$this->showChordSheetOnTop = get_option('chordpress_checkbox_show_chord_sheet_on_top')) $this->showChordSheetOnTop = 0;
    421429
     
    429437        if (!$this->verseStyle = get_option('chordpress_text_verse_style')) $this->verseStyle = '';
    430438        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 = '';
    435439    }
    436440
     
    765769             */
    766770            $arrBracketSegments = explode("[", $line);
    767 
    768771            foreach ($arrBracketSegments as $segment) {
    769 
    770772                if (strlen($segment)) {
    771773                    $pad = ($segment[strlen($segment) - 1] == ' ') ? ' ' : '';
     
    830832
    831833                        /**
    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.
    833836                         */
    834                         if ($arrChords[$i][0] == "~") {
     837                        if (in_array($arrChords[$i][0], ['~', '|', '/', '.'])) {
    835838                            $returnText .= $arrChords[$i];
    836839                        } else {
  • chordpress/tags/3.3.1/readme.txt

    r2838045 r2849275  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 3.3.0
     7Stable tag: 3.3.1
    88Requires PHP: 5.2.4
    99License: GPLv3
     
    130130
    131131== Changelog ==
     132= 3.3.1 =
     133* 2023-01-16
     134* Support for more special characters iun chords: ~, |, /, .
     135
    132136= 3.3.0 =
    133137* 2022-12-22
  • chordpress/trunk/chordpress.php

    r2838045 r2849275  
    1717 * Plugin URI:        https://lewe.gitbook.io/lewe-chordpress/
    1818 * Description:       This plugin renders ChordPro formatted text and chord diagrams in WordPress sites.
    19  * Version:           3.3.0
     19 * Version:           3.3.1
    2020 * Author:            George Lewe
    2121 * Author URI:        https://www.lewe.com
     
    3636 */
    3737define('CHORDPRESS_NAME', 'ChordPress');
    38 define('CHORDPRESS_VERSION', '3.3.0');
     38define('CHORDPRESS_VERSION', '3.3.1');
    3939define('CHORDPRESS_AUTHOR', 'George Lewe');
    4040define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com');
  • chordpress/trunk/includes/class-chordpress-renderer.php

    r2797343 r2849275  
    9595
    9696    /**
     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    /**
    97106     * Hide title flag.
    98107     *
     
    104113
    105114    /**
     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    /**
    106124     * Hide year flag.
    107125     *
     
    194212
    195213    /**
     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    /**
    196223     * CSS styles for the chorus sections.
    197224     *
     
    248275
    249276    /**
    250      * Show Chord Sheet for jTab.
     277     * Show Chord Sheet on top.
    251278     *
    252279     * @since    2.1.0
    253280     * @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;
    275284
    276285    /**
     
    417426        if (!$this->displayHBNotation = get_option('chordpress_checkbox_hb_notation')) $this->displayHBNotation = 0;
    418427        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;
    420428        if (!$this->showChordSheetOnTop = get_option('chordpress_checkbox_show_chord_sheet_on_top')) $this->showChordSheetOnTop = 0;
    421429
     
    429437        if (!$this->verseStyle = get_option('chordpress_text_verse_style')) $this->verseStyle = '';
    430438        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 = '';
    435439    }
    436440
     
    765769             */
    766770            $arrBracketSegments = explode("[", $line);
    767 
    768771            foreach ($arrBracketSegments as $segment) {
    769 
    770772                if (strlen($segment)) {
    771773                    $pad = ($segment[strlen($segment) - 1] == ' ') ? ' ' : '';
     
    830832
    831833                        /**
    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.
    833836                         */
    834                         if ($arrChords[$i][0] == "~") {
     837                        if (in_array($arrChords[$i][0], ['~', '|', '/', '.'])) {
    835838                            $returnText .= $arrChords[$i];
    836839                        } else {
  • chordpress/trunk/readme.txt

    r2838045 r2849275  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 3.3.0
     7Stable tag: 3.3.1
    88Requires PHP: 5.2.4
    99License: GPLv3
     
    130130
    131131== Changelog ==
     132= 3.3.1 =
     133* 2023-01-16
     134* Support for more special characters iun chords: ~, |, /, .
     135
    132136= 3.3.0 =
    133137* 2022-12-22
Note: See TracChangeset for help on using the changeset viewer.