Plugin Directory

Changeset 2689809


Ignore:
Timestamp:
03/07/2022 06:25:24 AM (4 years ago)
Author:
wonderplugin
Message:

Version 2.5

Location:
wonderplugin-pdf-embed/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wonderplugin-pdf-embed/trunk/pdfjslight/web/viewer.js

    r2676079 r2689809  
    512512    }
    513513
     514    // custom external link target
     515    const queryString = document.location.search.substring(1);
     516    const params = (0, _ui_utils.parseQueryString)(queryString);
     517    let customTarget;
     518    customTarget = params.get("externallinktarget") ?? 0;
     519    _app_options.AppOptions.set("externalLinkTarget", parseInt(customTarget));
     520
    514521    await this._initializeViewerComponents();
    515522    this.bindEvents();
  • wonderplugin-pdf-embed/trunk/readme.txt

    r2689762 r2689809  
    9797== Changelog ==
    9898
     99= 2.5 =
     100* Fix a bug on setting the default PDF link target
     101
    99102= 2.4 =
    100103* Add an option to specify the default PDF link target
  • wonderplugin-pdf-embed/trunk/wonderplugin-pdf.php

    r2689763 r2689809  
    44Plugin URI: https://www.wonderplugin.com/wordpress-pdf-embed/
    55Description: Embed PDF to your WordPress website
    6 Version: 2.4
     6Version: 2.5
    77Author: Magic Hills Pty Ltd
    88Author URI: https://www.wonderplugin.com
     
    190190                  <option value="4" <?php echo ($settings['externallinktarget'] == 4) ? 'selected="selected"' : ''; ?>>_top</option>
    191191                </select>
    192                 <p style="font-weight:bold;font-style:italic;margin-top:18px;">Please note: make sure to clear caches of your web browser and your WordPress site after you chagne the option.</p>
     192                <p style="font-weight:bold;font-style:italic;margin-top:18px;">Please note: this option only works with the new light color theme.</p>
    193193            </td>
    194194        </tr>
    195195        <tr>
    196196            <th>PDF.js Version</th>
    197             <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>
     197            <td><p><label><input name='usedarktheme' type='checkbox' id='usedarktheme' <?php echo ($settings['usedarktheme'] == 1) ? 'checked' : ''; ?> /> Use Mozilla PDF.js old version 2.0.493 (dark theme toolbar)</label></p></td>
    198198        </tr>
    199199        </table>
Note: See TracChangeset for help on using the changeset viewer.