Merge branch 'release/1.6'

This commit is contained in:
leogermani 2019-11-18 12:38:22 -03:00
commit 91521ffdb4
20 changed files with 260 additions and 77 deletions

View File

@ -1,8 +1,8 @@
=== Tainacan Interface ===
Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila
Requires at least: WordPress 4.8
Tested up to: WordPress 5.2.4
Version: 1.5
Tested up to: WordPress 5.3
Version: 1.6
Requires PHP: 5.6
Stable tag: trunk
License: GNU General Public License v3

View File

@ -3,9 +3,19 @@
<!-- Get the banner to display -->
<?php get_template_part( 'template-parts/bannerheader' ); ?>
<main role="main" class="max-large margin-one-column">
<main role="main" class="mt-5 max-large margin-one-column">
<div class="row">
<div class="col col-sm mx-sm-auto">
<div class="tainacan-title">
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1 d-flex">
<li class="list-inline-item font-weight-bold title-page">
<h1><?php echo get_the_archive_title(); ?></h1>
</li>
<li class="list-inline-item float-right title-back align-self-end ml-auto"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul>
</div>
</div>
<div class="form-inline mt-4 tainacan-collection-list--simple-search justify-content-between">
<div class="dropdown dropdown-sorting">

View File

@ -138,6 +138,8 @@ jQuery( document ).ready(function( $ ) {
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
$(this).ekkoLightbox({
showArrows: true,
});
});
});

View File

@ -2,8 +2,7 @@
border: 0;
display: flex;
height: 400px;
margin-top: 1rem;
margin-bottom: 50px;
margin: 0;
position: relative;
background-color: #f2f2f2;
@media only screen and (max-width: 576px) {

View File

@ -6,6 +6,7 @@
.modal-dialog {
margin: 3.75rem auto;
max-width: calc(1400px - 16.667vw) !important;
}
.modal-content {
@ -13,8 +14,48 @@
.modal-body {
padding: 0;
.ekko-lightbox-container {
height: auto !important;
max-height: 100%;
max-height: 85vh;
}
.ekko-lightbox-item {
display: -ms-flexbox;
display: flex;
justify-content: center;
align-items: center;
& > * {
width: 100%;
max-width: calc(100% - 98px); // Enough to fit arrows aside
height: auto;
max-height: 85vh;
}
& > img {
width: auto;
}
& > iframe {
min-height: 80vh;
border: none;
}
& > audio {
min-height: 54px;
padding: 12px;
}
& > a,
& > p {
padding: 1rem 4.33337vw;
background: white;
border-radius: 3px;
word-wrap: break-word;
}
}
.ekko-lightbox-nav-overlay {
display: -ms-flexbox !important;
display: flex !important;
a {
opacity: 1;
span {
@ -24,8 +65,8 @@
}
span::before {
display: inline-block;
font: normal normal normal 64px/1 "TainacanIcons";
font-size: 64px !important;
font: normal normal normal 56px/1 "TainacanIcons";
font-size: 56px !important;
line-height: 1;
font-size: inherit;
text-rendering: auto;
@ -36,7 +77,7 @@
color: white;
}
&:first-child {
left: -64px;
left: -6px;
position: relative;
span:before {
@ -44,7 +85,7 @@
}
}
&:last-child {
right: -64px;
right: -6px;
position: relative;
span:before {

View File

@ -24,7 +24,6 @@
}
}
img{
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
@ -116,6 +115,7 @@
.wp-block-separator {
border-color: #cbcbcb;
width: 50%;
max-width: 300px;
&.is-style-wide{
width: 100%;
}
@ -126,17 +126,42 @@
}
}
}
ul {
.tainacan-group-heading {
h1 { font-size: 1.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p {
font-style: italic;
color: #898d8f;
}
hr.wp-block-separator:not(.is-style-wide) {
margin-left: 0;
max-width: 200px;
}
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
border-width: 4px;
height: 4px;
}
}
&>ul,
&>ol {
font-size: 1rem;
font-weight: 400;
color: #000;
margin-left: 1.75rem;
}
.wp-block-media-text__content>ul,
.wp-block-media-text__content>ol {
margin-left: 1.75rem;
}
.table {
thead {
border-bottom: 1px solid #cbcbcb;
color: #555758;
font-weight: 400;
font-size: 0.75rem;
th {
font-weight: normal;
font-size: 0.75rem;
}
}
tbody {
font-size: 0.875rem;
@ -154,6 +179,8 @@
font-style: italic;
}
p {
margin-top: 0.5rem;
margin-bottom: 1rem;
code {
border-radius: 5px;
-moz-border-radius: 5px;
@ -185,31 +212,25 @@
}
.wp-block-columns {
display: flex;
@media only screen and (max-width: 781px){
.wp-block-column {
margin-left: 0 !important;
margin-right: 0 !important;
}
}
margin: 0;
.wp-block-column {
flex-basis: 100%;
}
.wp-block-column:not(:last-child) {
margin-right: 4.16666667%;
margin-right: 2.0833333%; // Half column
}
.wp-block-column:not(:first-child) {
margin-left: 4.16666667%;
margin-left: 2.0833333%; // Half column
}
}
.alignleft {
float:left;
margin: 0 1em 1em 0;
margin: 1rem 1rem 1rem 0;
}
.alignright {
float:right;
margin: 0 0 1em 1em;
margin: 1rem 0 1rem 1rem;
}
@media only screen and (max-width: 576px) {
.alignleft, .alignright {

View File

@ -47,10 +47,10 @@
/* Columns */
.wp-block-columns>.editor-inner-blocks >.editor-block-list__layout> [data-type="core/column"]:not(:last-child) {
margin-right: 4.1666667%;
margin-right: 2.0833333%; // Half column
}
.wp-block-columns>.editor-inner-blocks >.editor-block-list__layout> [data-type="core/column"]:not(:first-child) {
margin-left: 4.1666667%;
margin-left: 2.0833333%; // Half column
}
.wp-block-columns>.editor-inner-blocks >.editor-block-list__layout> [data-type="core/column"] {
margin-left: 0;
@ -340,6 +340,8 @@
/* Tables */
.wp-block-table th {
border-bottom: 1px solid #cbcbcb;
font-weight: normal;
font-size: 0.75rem;
}
.wp-block-table td {
border: 1px solid #f2f2f2;
@ -389,4 +391,27 @@
}
}
/* Extra title group class, that can be added for styling special headings */
.wp-block-group.tainacan-group-heading {
.wp-block-heading {
color: #298596 !important;
}
h1.wp-block-heading { font-size: 1.5rem; }
h2.wp-block-heading { font-size: 1.5rem; }
h3.wp-block-heading { font-size: 1.25rem; }
h4.wp-block-heading { font-size: 1.125rem; }
p.wp-block-paragraph {
font-style: italic;
color: #898d8f;
}
hr.wp-block-separator:not(.is-style-wide) {
margin-left: 0;
max-width: 200px;
border-color: #298596;
}
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
border-width: 4px;
height: 4px;
}
}
}

View File

@ -3,7 +3,7 @@ Theme Name: Tainacan Interface
Author: MediaLab UFG
Author URI: https://tainacan.org
Description: This is the default theme for the Tainacan project. Use this in conjunction with Tainacan plugin to easily manage and publish you digital collectinons with a beautiful faceted search interface. Ideal for museums, galleries, libraries and anyone who have a digital repository.
Version: 1.5
Version: 1.6
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Tags: two-columns, right-sidebar, grid-layout, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, threaded-comments, translation-ready, photography, portfolio
@ -740,13 +740,23 @@ nav{
display: block;
}
.page-template-landing article section.tainacan-content,
.page-template-landing-breadcrumb article section.tainacan-content {
&>div {
margin-top: 0;
}
}
.tainacan-title{
.tainacan-title-page{
.title-page{
margin-bottom: 0.75rem;
.title-page h1{
font-size: 1.25rem;
font-weight: bold;
word-break: break-word;
margin: 0;
@media only screen and (max-width: 576px){
width: 85%;
min-width: 85%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -760,7 +770,7 @@ nav{
size: 0.875rem;
weight: 400;
}
margin-top: 0.5rem;
margin-top: 0.25rem;
}
}
}

View File

@ -19,7 +19,8 @@
/* Pre */
/* Code */
/* Tables */
/* Tainacan Selection Modal */ }
/* Tainacan Selection Modal */
/* Extra title group class, that can be added for styling special headings */ }
.edit-post-visual-editor.editor-styles-wrapper .editor-block-list__layout,
.components-modal__screen-overlay .editor-block-list__layout {
padding-left: 8.3333333%;
@ -56,10 +57,10 @@
margin-right: -8.3333333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child),
.components-modal__screen-overlay .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child) {
margin-right: 4.1666667%; }
margin-right: 2.0833333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child),
.components-modal__screen-overlay .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) {
margin-left: 4.1666667%; }
margin-left: 2.0833333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"],
.components-modal__screen-overlay .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
margin-left: 0;
@ -450,7 +451,9 @@
color: #298596; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-table th,
.components-modal__screen-overlay .wp-block-table th {
border-bottom: 1px solid #cbcbcb; }
border-bottom: 1px solid #cbcbcb;
font-weight: normal;
font-size: 0.75rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-table td,
.components-modal__screen-overlay .wp-block-table td {
border: 1px solid #f2f2f2;
@ -489,5 +492,33 @@
.components-modal__screen-overlay .wp-block-tainacan-modal .modal-search-area .components-base-control .components-base-control__field label {
flex-shrink: 0;
margin-right: 12px; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading .wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading .wp-block-heading {
color: #298596 !important; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h1.wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h1.wp-block-heading {
font-size: 1.5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h2.wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h2.wp-block-heading {
font-size: 1.5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h3.wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h3.wp-block-heading {
font-size: 1.25rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h4.wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h4.wp-block-heading {
font-size: 1.125rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading p.wp-block-paragraph,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading p.wp-block-paragraph {
font-style: italic;
color: #898d8f; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide) {
margin-left: 0;
max-width: 200px;
border-color: #298596; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
border-width: 4px;
height: 4px; }
/*# sourceMappingURL=editor-style.css.map */

View File

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAAA;iCACkC;EAE9B,WAAW,EAAE,+BAA+B;EAuB5C,uBAAuB;EAOvB,4BAA4B;EAM5B,4BAA4B;EAQ5B,aAAa;EAYb,gBAAgB;EAmBhB,aAAa;EAkBb,WAAW;EAGX,aAAa;EA2Db,gBAAgB;EA2ChB,YAAY;EAMZ,qBAAqB;EAMrB,kBAAkB;EAelB,iCAAiC;EAuDjC,gBAAgB;EAuBhB,eAAe;EAoBf,SAAS;EAQT,UAAU;EAKV,YAAY;EASZ,8BAA8B;EAtV9B;8DAA2B;IACvB,YAAY,EAAE,UAAU;IACxB,aAAa,EAAE,UAAU;EAE7B;wEAAqC;IACjC,KAAK,EAAE,IAAI;EAIf;;;qFACgD;IAC5C,YAAY,EAAE,CAAC;IACf,aAAa,EAAE,CAAC;IAEhB;;;iGAAU;MACN,YAAY,EAAE,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AQ;EACzC;+FAAqB;IACjB,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,OAAO;EAElB;oHAA0C;IACtC,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,OAAO;EAEzB;wIAA8D;IAC1D,YAAY,EAAE,GAAG;IACjB,MAAM,EAAE,GAAG",
"sources": ["assets/scss/editor-style.scss"],
"names": [],
"file": "editor-style.css"

View File

@ -634,6 +634,18 @@ function tainacan_get_color_scheme_css( $colors ) {
color: {$colors['tainacan_link_color']} !important;
}
/* Extra title group class, that can be added for styling special headings */
.wp-block-group.tainacan-group-heading h1,
.wp-block-group.tainacan-group-heading h2,
.wp-block-group.tainacan-group-heading h3,
.wp-block-group.tainacan-group-heading h4 {
color: {$colors['tainacan_link_color']} !important;
}
.wp-block-group.tainacan-group-heading hr.wp-block-separator {
background-color: {$colors['tainacan_link_color']};
border-color: {$colors['tainacan_link_color']};
}
/**
* Tainacan Taxonomy Archive Page
*/

View File

@ -61,4 +61,6 @@
<a href="javascript:" id="return-to-top"><i class="tainacan-icon tainacan-icon-arrowup"></i></a>
<?php tainacan_interface_the_breadcrumb(); ?>
<?php if ( !is_page_template( 'page-templates/landing.php' ) ) : ?>
<?php tainacan_interface_the_breadcrumb(); ?>
<?php endif; ?>

View File

@ -0,0 +1,14 @@
<?php /* Template Name: Landing with Breadcrumb */ ?>
<?php get_header(); ?>
<div class="max-large margin-one-column">
<div class="row">
<div class="col col-sm mx-sm-auto">
<div id="content" role="main">
<?php get_template_part( 'template-parts/loop', 'singular' ); ?>
</div><!-- /#content -->
</div>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -0,0 +1,14 @@
<?php /* Template Name: Landing */ ?>
<?php get_header(); ?>
<div class="max-large margin-one-column">
<div class="row">
<div class="col col-sm mx-sm-auto">
<div id="content" role="main">
<?php get_template_part( 'template-parts/loop', 'singular' ); ?>
</div><!-- /#content -->
</div>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1">
<li class="list-inline-item text-midnight-blue font-weight-bold title-page">
<?php the_title(); ?>
<h1><?php the_title(); ?></h1>
</li>
<li class="list-inline-item float-right title-back">
<a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a>
@ -81,10 +81,17 @@
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--attachments">
<?php foreach ( $attachments as $attachment ) { ?>
<?php
if ( function_exists('tainacan_get_attachment_html_url') ) {
$href = tainacan_get_attachment_html_url($attachment->ID);
} else {
$href = wp_get_attachment_url($attachment->ID, 'large');
}
?>
<div class="single-item-collection--attachments-file">
<a
class="<?php if (!wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments')) echo'attachment-without-image'; ?>"
href="<?php echo wp_get_attachment_url($attachment->ID, 'large'); ?>" data-toggle="lightbox" data-disable-external-check="true" data-gallery="example-gallery">
href="<?php echo $href; ?>" data-toggle="lightbox" data-gallery="example-gallery">
<?php
echo wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments', true );
echo get_the_title( $attachment->ID );

View File

@ -2,32 +2,7 @@
<div class="container-fluid p-0 ph-title-description">
<div class="bg-white-title title-header <?php if ( is_singular() || is_archive() || is_search() || is_home() ) { echo 'singular-title'; }?>">
<h1 class="mb-0 text-truncate">
<?php
if ( is_home() ) {
bloginfo( 'title' );
} elseif ( is_singular() ) {
bloginfo( 'title' );
} elseif ( is_search() ) {
_e( 'Search Results', 'tainacan-interface' );
} elseif ( is_tag() || is_category() || is_tax() ) {
single_term_title();
} elseif ( is_archive() ) {
if ( have_posts() ) {
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'tainacan-interface' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'tainacan-interface' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'Y', 'yearly archives date format', 'tainacan-interface' ) ) );
elseif ( is_author() ) :
echo get_the_author();
elseif ( 'tainacan-collection' == get_post_type() ) :
echo get_the_archive_title();
else :
echo tainacan_the_collection_name();
endif;
}
} ?>
<?php bloginfo( 'title' ) ?>
</h1>
<?php do_action( 'tainacan-interface-banner-header-description' ); ?>
</div>

View File

@ -1,11 +1,11 @@
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( get_the_title() != '') : ?>
<?php if (!is_page_template( 'page-templates/landing.php' ) && !is_page_template( 'page-templates/landing-breadcrumb.php' ) ) : ?>
<div class="tainacan-title">
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1">
<li class="list-inline-item text-midnight-blue font-weight-bold title-page">
<?php the_title(); ?>
<h1><?php the_title(); ?></h1>
</li>
<li class="list-inline-item float-right title-back"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul>

View File

@ -1,20 +1,40 @@
<?php if ( have_posts() ) : ?>
<div class="tainacan-title">
<div class="border-bottom border-jelly-bean tainacan-title-page">
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1 d-flex">
<li class="list-inline-item text-midnight-blue font-weight-bold title-page">
<h1>
<?php if ( is_home() ) {
if ( get_option( 'page_for_posts' ) ) :
echo get_the_title( get_option( 'page_for_posts' ) );
else :
_e( 'Blog Posts', 'tainacan-interface' );
endif;
} elseif ( is_search() ) {
_e( 'Search Results for', 'tainacan-interface' );
echo ' "' , get_search_query(), '"';
} elseif ( is_archive() ) {
echo ' ' . get_the_archive_title();
} ?>
} elseif ( is_singular() ) {
bloginfo( 'title' );
} elseif ( is_search() ) {
_e( 'Search Results for', 'tainacan-interface' );
echo ' "' , get_search_query(), '"';
} elseif ( is_tag() || is_category() || is_tax() ) {
single_term_title();
} elseif ( is_archive() ) {
if ( have_posts() ) {
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'tainacan-interface' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'tainacan-interface' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'Y', 'yearly archives date format', 'tainacan-interface' ) ) );
elseif ( is_author() ) :
echo get_the_author();
elseif ( 'tainacan-collection' == get_post_type() ) :
echo tainacan_the_collection_name();
else :
echo get_the_archive_title();
endif;
}
} ?>
</h1>
</li>
<li class="list-inline-item float-right title-back align-self-end ml-auto"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul>

View File

@ -1,5 +1,5 @@
<article role="article" id="post_<?php the_ID()?>" <?php post_class()?>>
<?php if ( get_the_title() != '') : ?>
<?php if (!is_page_template( 'page-templates/landing.php' ) && !is_page_template( 'page-templates/landing-breadcrumb.php' ) ) : ?>
<header class="mb-4">
<div class="header-meta text-muted mb-5 d-flex">
<?php if ( ! is_singular( 'page' ) ) { ?>