diff --git a/Assets/css/plugin-manager.css b/Assets/css/plugin-manager.css index 9bea8ea..30b1fb5 100644 --- a/Assets/css/plugin-manager.css +++ b/Assets/css/plugin-manager.css @@ -749,14 +749,14 @@ button.install-plugin-btn { a.download-archive, a.download-archive:link, a.download-archive:visited { color: var(--link-color-pm); font-weight: 600; - padding: 3px 5px; + padding: 5px 5px 3px 5px; border: 2px solid var(--pp-light-grey); border-radius: var(--border-radius-pm); transition: var(--transition-pm); } .download-archive svg { - vertical-align: bottom; + vertical-align: sub; margin-right: 4px; margin-left: 1px; pointer-events: none; @@ -1443,3 +1443,15 @@ fieldset.manual-install { .file-url-form .form-actions { padding-top: 10px; } + +.copy-url-link-format { + padding: 2px 5px 2px 5px; + margin: auto 5px; + border: 2px solid var(--pp-light-grey); + border-radius: var(--border-radius-pm); + transition: var(--transition-pm); +} + +.copy-url-link-format svg { + vertical-align: bottom; +} diff --git a/Assets/js/plugin-manager.js b/Assets/js/plugin-manager.js index 3c25e2f..81d743a 100644 --- a/Assets/js/plugin-manager.js +++ b/Assets/js/plugin-manager.js @@ -101,3 +101,31 @@ $( document ).ready(function() { }, 3500); }); }); + +// INSTALLED PLUGIN LIST +// COPY TO CLIPBOARD SCRIPT - INSTANTIATE SCRIPT - /// FORMATTED OUTPUT TO CLIPBOARD +$( document ).ready(function() { + var clipboard = new ClipboardJS('.copy-url-link-format'); + + // COPY TO CLIPBOARD SCRIPT - SUCCESS/ERROR STATES + clipboard.on('success', function(e) { + $(e.trigger).html(""); + console.info('Action:', e.action); + console.info('Text:', e.text); + console.info('Trigger:', e.trigger); + e.clearSelection(); + setTimeout(function() { + $(e.trigger).html(""); + }, 3500); + }); + clipboard.on('error', function(e) { + $(e.trigger).html(""); + console.info('Action:', e.action); + console.info('Text:', e.text); + console.info('Trigger:', e.trigger); + e.clearSelection(); + setTimeout(function() { + $(e.trigger).html(""); + }, 3500); + }); +}); diff --git a/Template/plugin/manual-plugins.php b/Template/plugin/manual-plugins.php index fac670f..845dc52 100644 --- a/Template/plugin/manual-plugins.php +++ b/Template/plugin/manual-plugins.php @@ -268,6 +268,12 @@ + + + + + +