Version 2.3.1 - Solves jquery issues and download button not appearing

This commit is contained in:
mateuswetah 2021-05-27 14:39:41 -03:00
parent 6e910f6eaf
commit 78fd815c34
11 changed files with 19 additions and 18 deletions

View File

@ -2,7 +2,7 @@
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes
Requires at least: WordPress 4.8
Tested up to: WordPress 5.7.2
Version: 2.3
Version: 2.3.1
Requires PHP: 5.6
Stable tag: trunk
License: GNU General Public License v3

View File

@ -22,14 +22,14 @@ jQuery( document ).ready(function( $ ) {
});
// ===== Scroll to Top ====
$( window ).scroll( function() {
$( window ).on('scroll', function() {
if ( $( this ).scrollTop() >= 100 ) { // If page is scrolled more than 50px
$( '#return-to-top' ).fadeIn( 200 ); // Fade in the arrow
} else {
$( '#return-to-top' ).fadeOut( 200 ); // Else fade out the arrow
}
} );
$( '#return-to-top' ).click( function() { // When arrow is clicked
$( '#return-to-top' ).on('click', function() { // When arrow is clicked
$( 'body,html' ).animate( {
scrollTop : 0 // Scroll to top of body
}, 500 );
@ -59,7 +59,7 @@ jQuery( document ).ready(function( $ ) {
*/
$( '.wp-block-button a' ).addClass( 'btn btn-jelly-bean' );
$( '.tainacan-list-post .table .tainacan-list-collection td' ).click( function(){
$( '.tainacan-list-post .table .tainacan-list-collection td' ).on('click', function(){
window.location = $( '.tainacan-list-post .table .tainacan-list-collection' ).data( "href" );
});
@ -189,7 +189,7 @@ jQuery( document ).ready(function( $ ) {
$( '.tainacan-interface-truncate' ).tainacan_interface_truncate();
$( '.tainacan-interface-truncate-term' ).tainacan_interface_truncate_term();
$( ".trigger" ).click( function() {
$( ".trigger" ).on('click', function() {
$( ".collection-header--share" ).toggleClass( "active" );
});
$('#menubelowHeader .dropdown-menu a.dropdown-toggle').addClass('dropdown-submenu');

View File

@ -31,14 +31,14 @@
});
$( 'a.tainacan-interface-more', minimized_elements ).click(function(event){
$( 'a.tainacan-interface-more', minimized_elements ).on('click',function(event){
event.preventDefault();
minimized_elements.addClass( 'full-story' );
$( this ).hide().prev().hide();
$( this ).next().show();
});
$( 'a.tainacan-interface-less', minimized_elements ).click(function(event){
$( 'a.tainacan-interface-less', minimized_elements ).on('click',function(event){
event.preventDefault();
minimized_elements.removeClass( 'full-story' );
$( this ).parent().hide().prev().show().prev().show();
@ -88,14 +88,14 @@
});
$( 'a.tainacan-interface-more-term', minimized_elements ).click(function(event){
$( 'a.tainacan-interface-more-term', minimized_elements ).on('click',function(event){
event.preventDefault();
minimized_elements.addClass( 'full-story' );
$( this ).hide().prev().hide();
$( this ).next().show();
});
$( 'a.tainacan-interface-less-term', minimized_elements ).click(function(event){
$( 'a.tainacan-interface-less-term', minimized_elements ).on('click',function(event){
event.preventDefault();
minimized_elements.removeClass( 'full-story' );
$( this ).parent().hide().prev().show().prev().show();

View File

@ -574,6 +574,7 @@
display: block;
position: relative;
z-index: 99;
padding: 0;
}
&::after {

View File

@ -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.3
Version: 2.3.1
Tested up to: 5.7.2
Requires PHP: 5.6
License: GNU General Public License v3

View File

@ -45,7 +45,7 @@
$footerImage = get_theme_mod( 'tainacan_footer_color', 'dark' ) == 'light' ? esc_url( get_template_directory_uri() ) . '/assets/images/logo.svg' : esc_url( get_template_directory_uri() ) . '/assets/images/logo-footer.svg';
}
?>
<a href="<?php echo get_theme_mod('tainacan_footer_logo_link', 'https://tainacan.org') ?>">
<a href="<?php echo esc_url(get_theme_mod('tainacan_footer_logo_link', 'https://tainacan.org')) ?>">
<img src="<?php echo $footerImage; ?>" class="tainacan-footer-info--logo" >
</a>
</div>

View File

@ -1,7 +1,7 @@
<?php
/** Theme version */
const TAINACAN_INTERFACE_VERSION = '2.3';
const TAINACAN_INTERFACE_VERSION = '2.3.1';
/**
* Setup Theme

View File

@ -1212,7 +1212,7 @@ function tainacan_customize_register( $wp_customize ) {
*/
$wp_customize->add_panel( 'tainacan_items_page', array(
'title' => __( 'Tainacan items list page', 'tainacan-interface' ),
'description' => __( 'Settings related to Tainacan items list pages, such as the repository items list, the colleciton item list and the term items list. Some settings ins this section may be overrided by collection settings or user preference.', 'tainacan-interface' ),
'description' => __( 'Settings related to Tainacan items list pages, such as the repository items list, the collection item list and the term items list. Some settings ins this section may be overrided by collection settings or user preference.', 'tainacan-interface' ),
'priority' => 160 // Mixed with top-level-section hierarchy.,
) );
@ -1222,7 +1222,7 @@ function tainacan_customize_register( $wp_customize ) {
*/
$wp_customize->add_section( 'tainacan_items_page_collection_banner', array(
'title' => __( 'Collection Header', 'tainacan-interface' ),
'description' => __( 'Settings related to Tainacan items list colleciton header.', 'tainacan-interface' ),
'description' => __( 'Settings related to Tainacan items list collection header.', 'tainacan-interface' ),
'panel' => 'tainacan_items_page',
'priority' => 160,
'capability' => 'edit_theme_options'

View File

@ -19,7 +19,7 @@
}
?>
<nav
style="min-height: <?php echo get_theme_mod('tainacan_header_min_height', 50) ?>px;"
style="min-height: <?php echo esc_attr(get_theme_mod('tainacan_header_min_height', 50)) ?>px;"
class="navbar navbar-expand-md navbar-light bg-white menu-shadow px-0 navbar--border-bottom <?php echo 'tainacan-header-layout--' . get_theme_mod('tainacan_header_alignment_options', 'default'); ?>">
<div class="container-fluid max-large px-0 margin-one-column" id="topNavbar">
<?php echo tainacan_get_logo(); ?>

View File

@ -903,7 +903,7 @@ msgstr "Página de Lista de Itens do Tainacan"
#: functions/customizer.php:1197
msgid ""
"Settings related to Tainacan items list pages, such as the repository items "
"list, the colleciton item list and the term items list. Some settings ins "
"list, the collection item list and the term items list. Some settings ins "
"this section may be overrided by collection settings or user preference."
msgstr ""
"Configurações relacionadas apenas à páginas de lista de itens do Tainacan, "
@ -921,7 +921,7 @@ msgstr "Coleção"
#: functions/customizer.php:1207
#, fuzzy
#| msgid "Settings related to Tainacan items list filters panel."
msgid "Settings related to Tainacan items list colleciton header."
msgid "Settings related to Tainacan items list collection header."
msgstr ""
"Configurações relacionadas ao painel de filtros das listas de itens do "
"Tainacan."

View File

@ -684,7 +684,7 @@ msgstr ""
#: functions/customizer.php:899
msgid ""
"Settings related to Tainacan items list pages, such as the repository items "
"list, the colleciton item list and the term items list. Some settings ins "
"list, the collection item list and the term items list. Some settings ins "
"this section may be overrided by collection settings or user preference."
msgstr ""