Version 2.3.1 - Solves jquery issues and download button not appearing
This commit is contained in:
parent
6e910f6eaf
commit
78fd815c34
|
@ -2,7 +2,7 @@
|
||||||
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes
|
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes
|
||||||
Requires at least: WordPress 4.8
|
Requires at least: WordPress 4.8
|
||||||
Tested up to: WordPress 5.7.2
|
Tested up to: WordPress 5.7.2
|
||||||
Version: 2.3
|
Version: 2.3.1
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
Stable tag: trunk
|
Stable tag: trunk
|
||||||
License: GNU General Public License v3
|
License: GNU General Public License v3
|
||||||
|
|
|
@ -22,14 +22,14 @@ jQuery( document ).ready(function( $ ) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// ===== Scroll to Top ====
|
// ===== Scroll to Top ====
|
||||||
$( window ).scroll( function() {
|
$( window ).on('scroll', function() {
|
||||||
if ( $( this ).scrollTop() >= 100 ) { // If page is scrolled more than 50px
|
if ( $( this ).scrollTop() >= 100 ) { // If page is scrolled more than 50px
|
||||||
$( '#return-to-top' ).fadeIn( 200 ); // Fade in the arrow
|
$( '#return-to-top' ).fadeIn( 200 ); // Fade in the arrow
|
||||||
} else {
|
} else {
|
||||||
$( '#return-to-top' ).fadeOut( 200 ); // Else fade out the arrow
|
$( '#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( {
|
$( 'body,html' ).animate( {
|
||||||
scrollTop : 0 // Scroll to top of body
|
scrollTop : 0 // Scroll to top of body
|
||||||
}, 500 );
|
}, 500 );
|
||||||
|
@ -59,7 +59,7 @@ jQuery( document ).ready(function( $ ) {
|
||||||
*/
|
*/
|
||||||
$( '.wp-block-button a' ).addClass( 'btn btn-jelly-bean' );
|
$( '.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" );
|
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' ).tainacan_interface_truncate();
|
||||||
$( '.tainacan-interface-truncate-term' ).tainacan_interface_truncate_term();
|
$( '.tainacan-interface-truncate-term' ).tainacan_interface_truncate_term();
|
||||||
$( ".trigger" ).click( function() {
|
$( ".trigger" ).on('click', function() {
|
||||||
$( ".collection-header--share" ).toggleClass( "active" );
|
$( ".collection-header--share" ).toggleClass( "active" );
|
||||||
});
|
});
|
||||||
$('#menubelowHeader .dropdown-menu a.dropdown-toggle').addClass('dropdown-submenu');
|
$('#menubelowHeader .dropdown-menu a.dropdown-toggle').addClass('dropdown-submenu');
|
||||||
|
|
|
@ -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();
|
event.preventDefault();
|
||||||
minimized_elements.addClass( 'full-story' );
|
minimized_elements.addClass( 'full-story' );
|
||||||
$( this ).hide().prev().hide();
|
$( this ).hide().prev().hide();
|
||||||
$( this ).next().show();
|
$( this ).next().show();
|
||||||
});
|
});
|
||||||
|
|
||||||
$( 'a.tainacan-interface-less', minimized_elements ).click(function(event){
|
$( 'a.tainacan-interface-less', minimized_elements ).on('click',function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
minimized_elements.removeClass( 'full-story' );
|
minimized_elements.removeClass( 'full-story' );
|
||||||
$( this ).parent().hide().prev().show().prev().show();
|
$( 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();
|
event.preventDefault();
|
||||||
minimized_elements.addClass( 'full-story' );
|
minimized_elements.addClass( 'full-story' );
|
||||||
$( this ).hide().prev().hide();
|
$( this ).hide().prev().hide();
|
||||||
$( this ).next().show();
|
$( 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();
|
event.preventDefault();
|
||||||
minimized_elements.removeClass( 'full-story' );
|
minimized_elements.removeClass( 'full-story' );
|
||||||
$( this ).parent().hide().prev().show().prev().show();
|
$( this ).parent().hide().prev().show().prev().show();
|
||||||
|
|
|
@ -574,6 +574,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
|
|
|
@ -4,7 +4,7 @@ Author: Tainacan
|
||||||
Author URI: https://tainacan.org
|
Author URI: https://tainacan.org
|
||||||
Theme URI: https://tainacan.org/blog/category/tema/
|
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.
|
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
|
Tested up to: 5.7.2
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
License: GNU General Public License v3
|
License: GNU General Public License v3
|
||||||
|
|
|
@ -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';
|
$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" >
|
<img src="<?php echo $footerImage; ?>" class="tainacan-footer-info--logo" >
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/** Theme version */
|
/** Theme version */
|
||||||
const TAINACAN_INTERFACE_VERSION = '2.3';
|
const TAINACAN_INTERFACE_VERSION = '2.3.1';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup Theme
|
* Setup Theme
|
||||||
|
|
|
@ -1212,7 +1212,7 @@ function tainacan_customize_register( $wp_customize ) {
|
||||||
*/
|
*/
|
||||||
$wp_customize->add_panel( 'tainacan_items_page', array(
|
$wp_customize->add_panel( 'tainacan_items_page', array(
|
||||||
'title' => __( 'Tainacan items list page', 'tainacan-interface' ),
|
'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.,
|
'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(
|
$wp_customize->add_section( 'tainacan_items_page_collection_banner', array(
|
||||||
'title' => __( 'Collection Header', 'tainacan-interface' ),
|
'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',
|
'panel' => 'tainacan_items_page',
|
||||||
'priority' => 160,
|
'priority' => 160,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<nav
|
<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'); ?>">
|
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">
|
<div class="container-fluid max-large px-0 margin-one-column" id="topNavbar">
|
||||||
<?php echo tainacan_get_logo(); ?>
|
<?php echo tainacan_get_logo(); ?>
|
||||||
|
|
|
@ -903,7 +903,7 @@ msgstr "Página de Lista de Itens do Tainacan"
|
||||||
#: functions/customizer.php:1197
|
#: functions/customizer.php:1197
|
||||||
msgid ""
|
msgid ""
|
||||||
"Settings related to Tainacan items list pages, such as the repository items "
|
"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."
|
"this section may be overrided by collection settings or user preference."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Configurações relacionadas apenas à páginas de lista de itens do Tainacan, "
|
"Configurações relacionadas apenas à páginas de lista de itens do Tainacan, "
|
||||||
|
@ -921,7 +921,7 @@ msgstr "Coleção"
|
||||||
#: functions/customizer.php:1207
|
#: functions/customizer.php:1207
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#| msgid "Settings related to Tainacan items list filters panel."
|
#| 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 ""
|
msgstr ""
|
||||||
"Configurações relacionadas ao painel de filtros das listas de itens do "
|
"Configurações relacionadas ao painel de filtros das listas de itens do "
|
||||||
"Tainacan."
|
"Tainacan."
|
||||||
|
|
|
@ -684,7 +684,7 @@ msgstr ""
|
||||||
#: functions/customizer.php:899
|
#: functions/customizer.php:899
|
||||||
msgid ""
|
msgid ""
|
||||||
"Settings related to Tainacan items list pages, such as the repository items "
|
"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."
|
"this section may be overrided by collection settings or user preference."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue