plugin updates
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
/* PDF embed template */
|
||||
$plugins_url = $_GET['plugins_url']; // phpcs:ignore
|
||||
// phpcs:disable
|
||||
$plugins_url = $_GET['plugins_url'];
|
||||
if (isset($_GET['remove_items'])) {
|
||||
$remove_items = $_GET['remove_items'];
|
||||
$remove_items = explode(',', $remove_items);
|
||||
}
|
||||
// phpcs:enable
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
@@ -41,6 +47,17 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
wpmf_pdf_embed_obj.errorLoadingPdf = "<?php echo $plugins_url . 'assets/pdf-loading-error.pdf'; // phpcs:ignore ?>";
|
||||
</script>
|
||||
<script src="<?php echo $plugins_url . 'assets/js/pdf-embed/viewer.js' ?>"></script><?php // phpcs:ignore ?>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var removeItems = <?php echo json_encode($remove_items); ?>;
|
||||
removeItems.forEach(function(itemId) {
|
||||
var element = document.getElementById(itemId);
|
||||
if (element) {
|
||||
element.remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body tabindex="1">
|
||||
@@ -176,9 +193,9 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
|
||||
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
||||
|
||||
<button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
||||
<!-- <button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<a href="#" id="viewBookmark" class="secondaryToolbarButton" title="Current Page (View URL from Current Page)" tabindex="55" data-l10n-id="bookmark1">
|
||||
<span data-l10n-id="bookmark1_label">Current Page</span>
|
||||
@@ -288,7 +305,9 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<span data-l10n-id="save_label">Save</span>
|
||||
</button>
|
||||
|
||||
<div class="verticalToolbarSeparator hiddenMediumView"></div>
|
||||
<button id="presentationMode" class="toolbarButton hiddenMediumView" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
|
||||
<div id="editorModeButtons" class="splitToolbarButton toggled" role="radiogroup">
|
||||
<button id="editorFreeText" class="toolbarButton" disabled="disabled" title="Text" role="radio" aria-checked="false" aria-controls="editorFreeTextParamsToolbar" tabindex="34" data-l10n-id="editor_free_text2">
|
||||
@@ -302,7 +321,6 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="editorModeSeparator" class="verticalToolbarSeparator"></div>
|
||||
|
||||
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="48" data-l10n-id="tools" aria-expanded="false" aria-controls="secondaryToolbar">
|
||||
<span data-l10n-id="tools_label">Tools</span>
|
||||
|
||||
Reference in New Issue
Block a user