Plugin Directory

Changeset 2914500


Ignore:
Timestamp:
05/18/2023 09:30:34 PM (3 years ago)
Author:
efreja
Message:

v 4.1

Location:
music-sheet-viewer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • music-sheet-viewer/trunk/music-sheet-viewer.php

    r2707165 r2914500  
    88 * License:        GPL3
    99 * License URI:    https://www.gnu.org/licenses/gpl-3.0.html
    10  * Version:        4.0.2
    11 
    12 Copyright Etienne Frejaville 2018, 2019, 2020, 2021, 2022
     10 * Version:        4.1
     11
     12Copyright Etienne Frejaville 2018, 2019, 2020, 2021, 2022, 2023
    1313
    1414Music Sheet Viewer is free software: you can redistribute it and/or modify
     
    3737    class MusicSheetViewerPlugin
    3838    {
    39         const MSV_VERSION = '4.0.2';
     39        const MSV_VERSION = '4.1';
    4040        const VRV_VERSION = '3.9.0';
    4141       
     
    5353        const MSV_OPTION_CLASS = 'class';
    5454        const MSV_OPTION_PLAY = 'play';
     55        const MSV_OPTION_TRANSP = 'transpose';
    5556       
    5657        // Fonts
     
    108109        protected $myclass;
    109110        protected $myplay;
     111        protected $mytransp;
    110112       
    111113        protected $uniqueid;
     
    221223                                                                            'default' => NULL,
    222224                                                                            'type' => 'string'
     225                                                                        ],
     226                                                                        'transpose' => [
     227                                                                            'default' => NULL,
     228                                                                            'type' => 'string'
    223229                                                                        ]
    224230                                                                   ]
     
    271277                //we use the shortcode as handler
    272278                wp_enqueue_script (self::MSV_SHORTCODE, plugins_url('/js/verovio-toolkit-light.js', __FILE__ ), array(), self::VRV_VERSION);
    273                 wp_enqueue_script ('msv', plugins_url('/js/msv.js', __FILE__ ), array(), self::MSV_VERSION);
     279                wp_enqueue_script ('msv', plugins_url('/js/msv.js', __FILE__ ), array('jquery'), self::MSV_VERSION);
    274280
    275281                // For setting filePackagePrefixURL in MidiPlayer of midiplayer.js. Useful to locate <instrument>.data
     
    312318                                                ,self::MSV_OPTION_CLASS => NULL
    313319                                                ,self::MSV_OPTION_PLAY => NULL
     320                                                ,self::MSV_OPTION_TRANSP => NULL
    314321                                                // ...etc
    315322                                                ), $atts );
     
    331338                && $attributes[self::MSV_OPTION_CLASS] == '')
    332339                $attributes[self::MSV_OPTION_CLASS] = NULL;
     340            if (isset($attributes[self::MSV_OPTION_TRANSP])
     341                && $attributes[self::MSV_OPTION_TRANSP] == '')
     342                $attributes[self::MSV_OPTION_TRANSP] = NULL;
    333343           
    334344            $this->myformat = $attributes[self::MSV_OPTION_FORMAT];
     
    339349            $this->myclass = $attributes[self::MSV_OPTION_CLASS];
    340350            $this->myplay = $attributes[self::MSV_OPTION_PLAY];
     351            $this->mytransp = $attributes[self::MSV_OPTION_TRANSP];
    341352           
    342353            // Check params
     
    533544                $renderdpart .= '
    534545                                          breaks:"auto",';
     546               
     547                $renderdpart .= '
     548                                          transpose:"'.$this->mytransp.'",';
    535549           
    536550                $renderdpart .= <<<RDP1
  • music-sheet-viewer/trunk/readme.txt

    r2707165 r2914500  
    44Tags: musicxml, abc, sheet, music, score, mei, MEI, viewer, MusicXML, pae, PAE, javascript
    55Requires at least: 4.6
    6 Tested up to: 5.9
     6Tested up to: 6.2
    77Stable tag: trunk
    88Requires PHP: 5.6.32
     
    8484== Changelog ==
    8585
     86= 4.1 =
     87* New transpose option
     88* Fix for adding jquery which may be missing on WP fresh install 6.0+
     89* Tested compatibility with WordPress 6.2
     90
    8691= 4.0.2 =
    87 * Fix issue making that scores won't play unless plugin is deactivated then activated (after upgrade). BE CAUTIOUS, PLEASE APPLY THAT FIX !!!!
     92* Fix issue making that scores won't play unless plugin is deactivated then activated (after upgrade).
    8893
    8994= 4.0 =
Note: See TracChangeset for help on using the changeset viewer.