Plugin Directory

Changeset 3327610


Ignore:
Timestamp:
07/14/2025 02:57:36 PM (9 months ago)
Author:
glewe
Message:

Tagging version 3.9.9

Location:
chordpress
Files:
3 edited
23 copied

Legend:

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

    r3325136 r3327610  
    1919 * Plugin URI:        https://lewe.gitbook.io/lewe-chordpress/
    2020 * Description:       This plugin renders ChordPro formatted text and chord diagrams in WordPress sites.
    21  * Version:           3.9.8
     21 * Version:           3.9.9
    2222 * Author:            George Lewe
    2323 * Author URI:        https://www.lewe.com
     
    3838 */
    3939define('CHORDPRESS_NAME', 'ChordPress');
    40 define('CHORDPRESS_VERSION', '3.9.8');
     40define('CHORDPRESS_VERSION', '3.9.9');
    4141define('CHORDPRESS_AUTHOR', 'George Lewe');
    4242define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com');
  • chordpress/tags/3.9.9/includes/class-chordpress-renderer.php

    r3325136 r3327610  
    717717     */
    718718    $this->songsheetStyles = "<style>div.cpress { float: " . $this->float . "; clear: both; } div.cpress_line { " . $this->lineStyle . "; } div.cpress_line_section { display: inline; float: left; } div.cpress_line_section .chord .chordshort { " . $this->chordStyle . "; } div.cpress_line_section .lyric { " . $this->lyricsStyle . "; } div.cpress_chorus { " . $this->chorusStyle . "; } div.cpress_verse { " . $this->verseStyle . "; } div.cpress_clear { clear: both; } div.cpress_meta { " . $this->metaStyle . "; } div.cpress_interaction { float: right; } div.cpress_interaction select { width: auto; } span.cpress_comment { " . $this->commentStyle . "; } div.cpress_chordsheet { text-align: center; }</style>";
     719    $this->songsheetStyles = str_replace(';;', ';', $this->songsheetStyles);
    719720
    720721    $songsheetHtml = "\n\n
     
    10241025                <button type='button' class='cpress-btn cpress-btn-secondary cpress-btn-sm' onclick=\"transposeChromatic('%cpressID%', 'btnTranspose-', 'up', " . $baseNote . ");\">+</button>
    10251026              </div>
    1026               </span>";
     1027            </span>";
    10271028        }
    10281029        $interactionForm .= "
     
    10391040        $printTitle = $this->arrDirectives['title'];
    10401041      }
    1041       $interactionForm .= "<br><button class=\"cpress-btn cpress-btn-secondary cpress-btn-sm\" onclick=\"printElement('%cpressID%', '" . $printTitle . "', '" . $this->songsheetStyles . "');\">" . __('Print', 'chordpress') . "</button>\n";
     1042      $escapedStyles = htmlspecialchars($this->songsheetStyles, ENT_QUOTES);
     1043      $printFunctionCall = "printElement('%cpressID%', '{$printTitle}', '{$escapedStyles}');";
     1044      $printButton = "<br><button class='cpress-btn cpress-btn-secondary cpress-btn-sm' onclick=\"{$printFunctionCall}\">" . __('Print', 'chordpress') . "</button>";
     1045      $interactionForm .= $printButton;
    10421046    }
    10431047    $interactionForm .= "</div>
  • chordpress/tags/3.9.9/readme.txt

    r3325136 r3327610  
    55Requires at least: 4.0
    66Tested up to: 6.8
    7 Stable tag: 3.9.8
     7Stable tag: 3.9.9
    88Requires PHP: 5.2.4
    99License: GPLv3
     
    130130
    131131== Changelog ==
     132= 3.9.9 =
     133* 2025-07-14
     134* Print button fix
     135
    132136= 3.9.8 =
    133137* 2025-07-09
  • chordpress/trunk/chordpress.php

    r3325136 r3327610  
    1919 * Plugin URI:        https://lewe.gitbook.io/lewe-chordpress/
    2020 * Description:       This plugin renders ChordPro formatted text and chord diagrams in WordPress sites.
    21  * Version:           3.9.8
     21 * Version:           3.9.9
    2222 * Author:            George Lewe
    2323 * Author URI:        https://www.lewe.com
     
    3838 */
    3939define('CHORDPRESS_NAME', 'ChordPress');
    40 define('CHORDPRESS_VERSION', '3.9.8');
     40define('CHORDPRESS_VERSION', '3.9.9');
    4141define('CHORDPRESS_AUTHOR', 'George Lewe');
    4242define('CHORDPRESS_AUTHOR_URI', 'https://www.lewe.com');
  • chordpress/trunk/includes/class-chordpress-renderer.php

    r3325136 r3327610  
    717717     */
    718718    $this->songsheetStyles = "<style>div.cpress { float: " . $this->float . "; clear: both; } div.cpress_line { " . $this->lineStyle . "; } div.cpress_line_section { display: inline; float: left; } div.cpress_line_section .chord .chordshort { " . $this->chordStyle . "; } div.cpress_line_section .lyric { " . $this->lyricsStyle . "; } div.cpress_chorus { " . $this->chorusStyle . "; } div.cpress_verse { " . $this->verseStyle . "; } div.cpress_clear { clear: both; } div.cpress_meta { " . $this->metaStyle . "; } div.cpress_interaction { float: right; } div.cpress_interaction select { width: auto; } span.cpress_comment { " . $this->commentStyle . "; } div.cpress_chordsheet { text-align: center; }</style>";
     719    $this->songsheetStyles = str_replace(';;', ';', $this->songsheetStyles);
    719720
    720721    $songsheetHtml = "\n\n
     
    10241025                <button type='button' class='cpress-btn cpress-btn-secondary cpress-btn-sm' onclick=\"transposeChromatic('%cpressID%', 'btnTranspose-', 'up', " . $baseNote . ");\">+</button>
    10251026              </div>
    1026               </span>";
     1027            </span>";
    10271028        }
    10281029        $interactionForm .= "
     
    10391040        $printTitle = $this->arrDirectives['title'];
    10401041      }
    1041       $interactionForm .= "<br><button class=\"cpress-btn cpress-btn-secondary cpress-btn-sm\" onclick=\"printElement('%cpressID%', '" . $printTitle . "', '" . $this->songsheetStyles . "');\">" . __('Print', 'chordpress') . "</button>\n";
     1042      $escapedStyles = htmlspecialchars($this->songsheetStyles, ENT_QUOTES);
     1043      $printFunctionCall = "printElement('%cpressID%', '{$printTitle}', '{$escapedStyles}');";
     1044      $printButton = "<br><button class='cpress-btn cpress-btn-secondary cpress-btn-sm' onclick=\"{$printFunctionCall}\">" . __('Print', 'chordpress') . "</button>";
     1045      $interactionForm .= $printButton;
    10421046    }
    10431047    $interactionForm .= "</div>
  • chordpress/trunk/readme.txt

    r3325136 r3327610  
    55Requires at least: 4.0
    66Tested up to: 6.8
    7 Stable tag: 3.9.8
     7Stable tag: 3.9.9
    88Requires PHP: 5.2.4
    99License: GPLv3
     
    130130
    131131== Changelog ==
     132= 3.9.9 =
     133* 2025-07-14
     134* Print button fix
     135
    132136= 3.9.8 =
    133137* 2025-07-09
Note: See TracChangeset for help on using the changeset viewer.