From bcaf969c52a4b58d98844ad02725b5fd8e5c0628 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 23 Aug 2024 11:42:27 -0300 Subject: [PATCH] Version 2.7.9 - Small fix to copy link functionality. --- src/README.txt | 4 ++-- src/assets/js/copy-link.js | 9 ++++++++- src/assets/scss/style.scss | 2 +- src/functions.php | 2 +- src/template-parts/header-social-share.php | 2 +- src/template-parts/headercollection.php | 2 +- src/template-parts/headertaxonomy.php | 2 +- src/template-parts/single-items-header.php | 2 +- src/template-parts/single-items-metadata_new.php | 2 +- src/template-parts/single-items-metadata_old.php | 2 +- src/template-parts/single-post.php | 2 +- 11 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/README.txt b/src/README.txt index 79051a1..b07bb9b 100644 --- a/src/README.txt +++ b/src/README.txt @@ -1,8 +1,8 @@ === Tainacan Interface === Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes Requires at least: WordPress 5.9 -Tested up to: 6.5.2 -Version: 2.7.8 +Tested up to: 6.6.0 +Version: 2.7.9 Requires PHP: 7.0 Stable tag: trunk License: GNU General Public License v3 diff --git a/src/assets/js/copy-link.js b/src/assets/js/copy-link.js index 46040c5..2f5d553 100644 --- a/src/assets/js/copy-link.js +++ b/src/assets/js/copy-link.js @@ -35,4 +35,11 @@ function copyTextToClipboard(text) { (err) => { console.error('Async: Could not copy text: ', err); }); -} \ No newline at end of file +} + +jQuery( document ).ready(function( $ ) { + $( '#tainacan-interface-sharer' ).on('click', function() { + var link = $(this).data('link'); + copyTextToClipboard(link); + }); +}); diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index 096105b..adef7a0 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -4,7 +4,7 @@ Author: Tainacan Author URI: https://tainacan.org Theme URI: https://tainacan.org/blog/category/tema/ Description: This is the default theme for the Tainacan project. Use this in conjunction with Tainacan plugin to easily manage and publish you digital collections with a beautiful faceted search interface. Ideal for museums, galleries, libraries and anyone who have a digital repository. -Version: 2.7.8 +Version: 2.7.9 Tested up to: 6.5.2 Requires PHP: 7.0 License: GNU General Public License v3 diff --git a/src/functions.php b/src/functions.php index adde410..228eaf8 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,7 +1,7 @@
-
-
diff --git a/src/template-parts/single-items-header.php b/src/template-parts/single-items-header.php index ef8e2e3..6d005cd 100644 --- a/src/template-parts/single-items-header.php +++ b/src/template-parts/single-items-header.php @@ -132,7 +132,7 @@ $next = $adjacent_links['next'];
-
diff --git a/src/template-parts/single-items-metadata_old.php b/src/template-parts/single-items-metadata_old.php index bf4a3a7..ba4985e 100644 --- a/src/template-parts/single-items-metadata_old.php +++ b/src/template-parts/single-items-metadata_old.php @@ -46,7 +46,7 @@ <?php esc_attr_e('Share this on Telegram', 'tainacan-interface') ?> - diff --git a/src/template-parts/single-post.php b/src/template-parts/single-post.php index e85a9dd..dc19b13 100644 --- a/src/template-parts/single-post.php +++ b/src/template-parts/single-post.php @@ -28,7 +28,7 @@ <?php esc_attr_e('Share this on Telegram', 'tainacan-interface') ?> -