Plugin Directory

Changeset 2675488


Ignore:
Timestamp:
02/09/2022 07:36:58 AM (4 years ago)
Author:
wonderplugin
Message:

Version 2.0

Location:
wonderplugin-pdf-embed/trunk
Files:
478 added
2 edited

Legend:

Unmodified
Added
Removed
  • wonderplugin-pdf-embed/trunk/readme.txt

    r2674716 r2675488  
    9797== Changelog ==
    9898
     99= 2.0 =
     100* Add Mozilla PDF.js version 2.0.493 (dark theme toolbar) as an option
     101
    99102= 1.9 =
    100103* Update Mozilla PDF.js to the latest version 2.12.313
  • wonderplugin-pdf-embed/trunk/wonderplugin-pdf.php

    r2674716 r2675488  
    44Plugin URI: https://www.wonderplugin.com/wordpress-pdf-embed/
    55Description: Embed PDF to your WordPress website
    6 Version: 1.9
     6Version: 2.0
    77Author: Magic Hills Pty Ltd
    88Author URI: https://www.wonderplugin.com
     
    5959        $settings = $this->get_settings();
    6060       
     61        if ($settings['usedarktheme'] == 1) {
     62            $engine = plugin_dir_url(__FILE__) . 'pdfjsdark/web/viewer.html';
     63        }
     64
    6165        $params = array();
    6266       
     
    165169            </td>
    166170        </tr>
     171        <tr>
     172            <th>PDF.js Version</th>
     173            <td><p><label><input name='usedarktheme' type='checkbox' id='usedarktheme' <?php echo ($settings['usedarktheme'] == 1) ? 'checked' : ''; ?> /> Use Mozilla PDF.js version 2.0.493 (dark theme toolbar)</label></p></td>
     174        </tr>
    167175        </table>
    168176       
     
    189197            'disableopenfile' => get_option( 'wonderplugin_pdf_disableopenfile', 0 ),
    190198            'disabletoolbar' => get_option( 'wonderplugin_pdf_disabletoolbar', 0 ),
    191             'disablerightclick' => get_option( 'wonderplugin_pdf_disablerightclick', 0 )
     199            'disablerightclick' => get_option( 'wonderplugin_pdf_disablerightclick', 0 ),
     200            'usedarktheme' => get_option( 'wonderplugin_pdf_usedarktheme', 0 )
    192201        );
    193202       
     
    204213        update_option( 'wonderplugin_pdf_disabletoolbar', (!isset($options) || !isset($options['disabletoolbar'])) ? 0 : 1 );
    205214        update_option( 'wonderplugin_pdf_disablerightclick', (!isset($options) || !isset($options['disablerightclick'])) ? 0 : 1 );
     215        update_option( 'wonderplugin_pdf_usedarktheme', (!isset($options) || !isset($options['usedarktheme'])) ? 0 : 1 );
    206216    }
    207217}
Note: See TracChangeset for help on using the changeset viewer.