Merge branch 'develop' of https://github.com/tainacan/tainacan-theme into develop

This commit is contained in:
mateuswetah 2018-08-03 13:55:51 -03:00
commit 2732468e46
10 changed files with 726 additions and 19 deletions

View File

@ -214,6 +214,14 @@ add_filter('get_the_archive_title', function() {
}
});
add_action('pre_get_posts', function($query) {
if ($query->is_main_query() && $query->is_post_type_archive('tainacan-collection')) {
$query->set('posts_per_page', 12);
}
});
require get_template_directory() . '/functions/customizer.php';
require get_template_directory() . '/functions/pagination.php';
require get_template_directory() . '/functions/single-functions.php';

Binary file not shown.

View File

@ -0,0 +1,332 @@
# WordPress Blank Pot
# Copyright (C) 2014 ...
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
"POT-Creation-Date: 2018-08-03 12:20-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: Your Team <translations@example.com>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,"
"_nc:4c,1,2\n"
"X-Poedit-Basepath: ..\n"
"X-Generator: Poedit 2.0.4\n"
"X-Poedit-SearchPath-0: .\n"
#: 404.php:9
msgid "The page you are looking for does not exist!"
msgstr "A página que você está buscando não existe"
#: 404.php:14
msgid "Go to first page"
msgstr "Ir para página inicial"
#: archive-tainacan-collection.php:15
msgid "Sorting"
msgstr "Ordenaçao"
#: archive-tainacan-collection.php:18
msgid "Creation date"
msgstr "Data de criação"
#: archive-tainacan-collection.php:19
#: template-parts/loop-tainacan-collection-table.php:8
msgid "Title"
msgstr "Título"
#: archive-tainacan-collection.php:33
msgid "View Mode"
msgstr "Modo de visualização"
#: archive-tainacan-collection.php:36
msgid "Cards"
msgstr "Cartões"
#: archive-tainacan-collection.php:37
msgid "Thumbnails"
msgstr "Miniaturas"
#: archive-tainacan-collection.php:38
msgid "Table"
msgstr "Tabela"
#: archive-tainacan-collection.php:47
msgid "Search collections"
msgstr "Buscar coleções"
#: comments.php:23
#, php-format
msgid "You must be %slogged%s in to post a comment."
msgstr "Você precisa estar %sconectado%s para publicar um comentário"
#: comments.php:27
msgid "Leave your comment"
msgstr "Deixe seu comentário"
#: comments.php:31 comments.php:42 comments.php:61
msgid "Authenticated as"
msgstr "Conectado como"
#: comments.php:46 comments.php:65
msgid "Anonymous"
msgstr "Anônimo"
#: comments.php:74
msgid "Name"
msgstr "Nome"
#: comments.php:78 functions/customizer.php:48
msgid "E-mail"
msgstr "E-mail"
#: comments.php:82
msgid "Website"
msgstr "Website"
#: comments.php:86
msgid "Comment"
msgstr "Comentário"
#: comments.php:92
msgid "Cancel"
msgstr "Cancelar"
#: comments.php:93
msgid "Send"
msgstr "Enviar"
#: comments.php:108
msgid "Previous Comments"
msgstr "Comentários Anteriores"
#: comments.php:111
msgid "Next Comments"
msgstr "Próximos Comentários"
#: comments.php:117
msgid "Comments are closed."
msgstr "Comentários estão fechados"
#: footer.php:28
msgid "E-mail: "
msgstr "E-mail: "
#: footer.php:35
msgid "Telephone: "
msgstr "Telefone:"
#: functions.php:85
msgid "Tainacan Sidebar Right"
msgstr "Barra lateral direita do Tainacan"
#: functions.php:100
msgid "Tainacan Sidebar Footer"
msgstr "Rodapé do Tainacan"
#: functions.php:141 searchform.php:3
msgid "Search"
msgstr "Buscar"
#: functions.php:180
msgid "Nav Menu Below Header"
msgstr "Navegação abaixo do cabeçalho"
#: functions.php:221
msgid "Collections"
msgstr "Coleções"
#: functions/customizer.php:20
msgid "Footer settings"
msgstr "Configurações do rodapé"
#: functions/customizer.php:29
msgid "Address"
msgstr "Endereço"
#: functions/customizer.php:38
msgid "Phone Number"
msgstr "Telefone"
#: functions/customizer.php:62
msgid "Upload a logo to the footer"
msgstr "Suba uma imagem de logo para o rodapé"
#: functions/customizer.php:79
msgid "Base Color Scheme"
msgstr "Esquema de cores"
#: functions/customizer.php:101
msgid "Link Color"
msgstr "Cor do link"
#: functions/customizer.php:170
msgid "Default"
msgstr "Padrão"
#: functions/customizer.php:178
msgid "Carmine"
msgstr "Carmine"
#: functions/customizer.php:186
msgid "Cherry"
msgstr "Cherry"
#: functions/customizer.php:194
msgid "Mustard"
msgstr "Mustard"
#: functions/customizer.php:202
msgid "Mint Green"
msgstr "Mint Green"
#: functions/customizer.php:210
msgid "Dark Turquoise"
msgstr "Dark Turquoise"
#: functions/customizer.php:218
msgid "Turquoise"
msgstr "Turquoise"
#: functions/customizer.php:226
msgid "Light Blue"
msgstr "Light Blue"
#: functions/customizer.php:234
msgid "Purple"
msgstr "Purple"
#: functions/customizer.php:242
msgid "Violet"
msgstr "Violet"
#: functions/single-functions.php:30
msgid "Your comment is awaiting moderation."
msgstr "Seu comentário está aguardando moderação"
#: functions/single-functions.php:35
msgid "Reply"
msgstr "Responder"
#: functions/single-functions.php:42
msgid "Edit"
msgstr "Editar"
#: functions/single-functions.php:46
msgid "Hide reply"
msgstr "Esconder resposta"
#: tainacan/single-items.php:17 template-parts/loop-singular.php:9
#: template-parts/loop.php:17
msgid "Back"
msgstr "Voltar"
#: tainacan/single-items.php:26 template-parts/list-post.php:13
#: template-parts/single-post.php:4
#, php-format
msgid "by %s"
msgstr "por %s"
#: tainacan/single-items.php:29
msgid "Document"
msgstr "Documento"
#: tainacan/single-items.php:52
msgid "Attachments"
msgstr "Anexos"
#: tainacan/single-items.php:71
msgid "Informations"
msgstr "Informações"
#: tainacan/single-items.php:78
msgid "Thumbnail"
msgstr "Miniatura"
#: tainacan/single-items.php:84
msgid "Share"
msgstr "Compartilhar"
#: tainacan/single-items.php:122 template-parts/loop-singular.php:18
#: template-parts/loop-tainacan-collection-grid.php:28
#: template-parts/loop-tainacan-collection-table.php:43
#: template-parts/loop-tainacan-collection.php:35 template-parts/loop.php:36
msgid "Nothing found"
msgstr "Nada encontrado"
#: template-parts/bannerHeader.php:18
msgid "Search Results"
msgstr "Resultado da busca"
#: template-parts/bannerHeader.php:26
#, php-format
msgid "Daily Archives: %s"
msgstr "Arquivos diários: %s"
#: template-parts/bannerHeader.php:29
#, php-format
msgid "Monthly Archives: %s"
msgstr "Arquivos mensais: %s"
#: template-parts/bannerHeader.php:29
msgctxt "monthly archives date format"
msgid "F Y"
msgstr "F de Y"
#: template-parts/bannerHeader.php:32
#, php-format
msgid "Yearly Archives: %s"
msgstr "Arquivos Anuais: %s"
#: template-parts/bannerHeader.php:32
msgctxt "yearly archives date format"
msgid "Y"
msgstr "Y"
#: template-parts/list-post.php:14
msgid "Read more..."
msgstr "Leia mais..."
#: template-parts/loop-tainacan-collection-table.php:9
msgid "Description"
msgstr "Descrição"
#: template-parts/loop.php:7
msgid "Posts of blog"
msgstr "Posts do blog"
#: template-parts/loop.php:9
msgid "Search Results for"
msgstr "Resultados de busca por"
#: template-parts/single-post.php:17
msgid "Category: "
msgstr "Categoria:"
#: template-parts/single-post.php:22
msgid "Comments"
msgstr "Comentários"
#: template-parts/single-post.php:23
msgid "None"
msgstr "Nenhum"
#: vendor/class-wp-bootstrap-navwalker.php:366
msgid "Add a menu"
msgstr "Adcionar um menu"
#~ msgid ", by "
#~ msgstr ", por"
#~ msgid "Content"
#~ msgstr "Conteúdo"

View File

@ -0,0 +1,373 @@
# WordPress Blank Pot
# Copyright (C) 2014 ...
# This file is distributed under the GNU General Public License v2 or later.
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: "
"WordPress Blank Pot "
"v1.0.0\n"
"POT-Creation-Date: "
"2018-08-03 11:47-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: Your "
"Name <you@example.com>\n"
"Language-Team: Your Team "
"<translations@example."
"com>\n"
"Report-Msgid-Bugs-To: "
"Translator Name "
"<translations@example."
"com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/"
"plain; charset=UTF-8\n"
"Content-Transfer-"
"Encoding: 8bit\n"
"Plural-Forms: "
"nplurals=2; plural=n != "
"1;\n"
"X-Textdomain-Support: "
"yesX-Generator: Poedit "
"1.6.4\n"
"X-Poedit-SourceCharset: "
"UTF-8\n"
"X-Poedit-KeywordsList: "
"__;_e;esc_html_e;"
"esc_html_x:1,2c;"
"esc_html__;esc_attr_e;"
"esc_attr_x:1,2c;"
"esc_attr__;_ex:1,2c;"
"_nx:4c,1,2;"
"_nx_noop:4c,1,2;_x:1,2c;"
"_n:1,2;_n_noop:1,2;"
"__ngettext:1,2;"
"__ngettext_noop:1,2;_c,"
"_nc:4c,1,2\n"
"X-Poedit-Basepath: ..\n"
"Language: en_US\n"
"X-Generator: Poedit "
"2.0.4\n"
"X-Poedit-"
"SearchPath-0: .\n"
#: 404.php:9
msgid ""
"The page you are looking "
"for does not exist!"
msgstr ""
#: 404.php:14
msgid "Go to first page"
msgstr ""
#: archive-tainacan-collection.php:15
msgid "Sorting"
msgstr ""
#: archive-tainacan-collection.php:18
msgid "Creation date"
msgstr ""
#: archive-tainacan-collection.php:19
#: template-parts/loop-tainacan-collection-table.php:8
msgid "Title"
msgstr ""
#: archive-tainacan-collection.php:33
msgid "View Mode"
msgstr ""
#: archive-tainacan-collection.php:36
msgid "Cards"
msgstr ""
#: archive-tainacan-collection.php:37
msgid "Thumbnails"
msgstr ""
#: archive-tainacan-collection.php:38
msgid "Table"
msgstr ""
#: archive-tainacan-collection.php:47
msgid "Search collections"
msgstr ""
#: comments.php:23
#, php-format
msgid ""
"You must be %slogged%s "
"in to post a comment."
msgstr ""
#: comments.php:27
msgid "Leave your comment"
msgstr ""
#: comments.php:31
#: comments.php:42
#: comments.php:61
msgid "Authenticated as"
msgstr ""
#: comments.php:46
#: comments.php:65
msgid "Anonymous"
msgstr ""
#: comments.php:74
msgid "Name"
msgstr ""
#: comments.php:78
#: functions/customizer.php:48
msgid "E-mail"
msgstr ""
#: comments.php:82
msgid "Website"
msgstr ""
#: comments.php:86
msgid "Comment"
msgstr ""
#: comments.php:92
msgid "Cancel"
msgstr ""
#: comments.php:93
msgid "Send"
msgstr ""
#: comments.php:108
msgid "Previous Comments"
msgstr ""
#: comments.php:111
msgid "Next Comments"
msgstr ""
#: comments.php:117
msgid ""
"Comments are closed."
msgstr ""
#: footer.php:28
msgid "E-mail: "
msgstr ""
#: footer.php:35
msgid "Telephone: "
msgstr ""
#: functions.php:85
msgid ""
"Tainacan Sidebar Right"
msgstr ""
#: functions.php:100
msgid ""
"Tainacan Sidebar Footer"
msgstr ""
#: functions.php:141
#: searchform.php:3
msgid "Search"
msgstr ""
#: functions.php:180
msgid ""
"Nav Menu Below Header"
msgstr ""
#: functions.php:221
msgid "Collections"
msgstr ""
#: functions/customizer.php:20
msgid "Footer settings"
msgstr ""
#: functions/customizer.php:29
msgid "Address"
msgstr ""
#: functions/customizer.php:38
msgid "Phone Number"
msgstr ""
#: functions/customizer.php:62
msgid ""
"Upload a logo to the "
"footer"
msgstr ""
#: functions/customizer.php:79
msgid "Base Color Scheme"
msgstr ""
#: functions/customizer.php:101
msgid "Link Color"
msgstr ""
#: functions/customizer.php:170
msgid "Default"
msgstr ""
#: functions/customizer.php:178
msgid "Carmine"
msgstr ""
#: functions/customizer.php:186
msgid "Cherry"
msgstr ""
#: functions/customizer.php:194
msgid "Mustard"
msgstr ""
#: functions/customizer.php:202
msgid "Mint Green"
msgstr ""
#: functions/customizer.php:210
msgid "Dark Turquoise"
msgstr ""
#: functions/customizer.php:218
msgid "Turquoise"
msgstr ""
#: functions/customizer.php:226
msgid "Light Blue"
msgstr ""
#: functions/customizer.php:234
msgid "Purple"
msgstr ""
#: functions/customizer.php:242
msgid "Violet"
msgstr ""
#: functions/single-functions.php:30
msgid ""
"Your comment is awaiting "
"moderation."
msgstr ""
#: functions/single-functions.php:35
msgid "Reply"
msgstr ""
#: functions/single-functions.php:42
msgid "Edit"
msgstr ""
#: functions/single-functions.php:46
msgid "Hide reply"
msgstr ""
#: tainacan/single-items.php:17
#: template-parts/loop-singular.php:9
#: template-parts/loop.php:17
msgid "Back"
msgstr ""
#: tainacan/single-items.php:26
#: template-parts/single-post.php:6
msgid ", by "
msgstr ""
#: tainacan/single-items.php:29
msgid "Content"
msgstr ""
#: tainacan/single-items.php:52
msgid "Attachments"
msgstr ""
#: tainacan/single-items.php:71
msgid "Informations"
msgstr ""
#: tainacan/single-items.php:122
#: template-parts/loop-singular.php:18
#: template-parts/loop-tainacan-collection-grid.php:28
#: template-parts/loop-tainacan-collection-table.php:43
#: template-parts/loop-tainacan-collection.php:35
#: template-parts/loop.php:36
msgid "Nothing found"
msgstr ""
#: template-parts/bannerHeader.php:18
msgid "Search Results"
msgstr ""
#: template-parts/bannerHeader.php:26
#, php-format
msgid "Daily Archives: %s"
msgstr ""
#: template-parts/bannerHeader.php:29
#, php-format
msgid ""
"Monthly Archives: %s"
msgstr ""
#: template-parts/bannerHeader.php:29
msgctxt ""
"monthly archives date "
"format"
msgid "F Y"
msgstr ""
#: template-parts/bannerHeader.php:32
#, php-format
msgid "Yearly Archives: %s"
msgstr ""
#: template-parts/bannerHeader.php:32
msgctxt ""
"yearly archives date "
"format"
msgid "Y"
msgstr ""
#: template-parts/list-post.php:12
msgid "for"
msgstr ""
#: template-parts/list-post.php:13
msgid "Read more..."
msgstr ""
#: template-parts/loop-tainacan-collection-table.php:9
msgid "Description"
msgstr ""
#: template-parts/loop.php:7
msgid "Posts of blog"
msgstr ""
#: template-parts/loop.php:9
msgid "Search Results for"
msgstr ""
#: template-parts/single-post.php:23
msgid "Category: "
msgstr ""
#: template-parts/single-post.php:28
msgid "Comments"
msgstr ""
#: template-parts/single-post.php:29
msgid "None"
msgstr ""
#: vendor/class-wp-bootstrap-navwalker.php:366
msgid "Add a menu"
msgstr ""

View File

@ -22,11 +22,11 @@
<article role="article" id="post_<?php the_ID()?>" <?php post_class()?>>
<header class="mb-4">
<div class="header-meta text-muted mb-5">
<span class="time"><?php tainacan_post_date(); ?></span>
<?php _e(', by ', 'tainacan-theme'); the_author_posts_link(); ?>
<span class="time"><?php tainacan_post_date(); ?></span>
<?php printf(__('by %s', 'tainacan-theme'), get_the_author_posts_link()); ?>
</div>
</header>
<h1 class="title-content-items"><?php _e('Content'); ?></h1>
<h1 class="title-content-items"><?php _e('Document', 'tainacan-theme'); ?></h1>
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--document">
<?php tainacan_the_document(); ?>
@ -75,13 +75,13 @@
<div class="col-12 col-md-4">
<div class="card border-0">
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
<h3>Miniature</h3>
<h3><?php _e('Thumbnail', 'tainacan-theme'); ?></h3>
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID()) ?>" class="item-card--thumbnail mt-2">
</div>
</div>
<div class="card border-0 my-3">
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
<h3>Sharing</h3>
<h3><?php _e('Share', 'tainacan-theme'); ?></h3>
<div class="btn-group" role="group">
<a href="#" class="item-card-link--sharing"><img src="<?=get_template_directory_uri().'/assets/images/facebook-circle.png'; ?>" alt=""></a>
<a href="#" class="item-card-link--sharing"><img src="<?=get_template_directory_uri().'/assets/images/twitter-circle.png'; ?>" alt=""></a>

View File

@ -9,14 +9,13 @@
<h1 class="mb-0 text-truncate">
<?php
if(is_home()) { ?>
Blog <?php bloginfo('title');
<?php bloginfo('title');
}
elseif(is_singular()) { ?>
Blog <?php bloginfo('title');
<?php bloginfo('title');
}
elseif(is_search()){
_e('Search Results for ', 'tainacan-theme');
the_search_query();
_e('Search Results', 'tainacan-theme');
}
elseif(is_tag() || is_category() || is_tax()){
single_term_title();

View File

@ -9,7 +9,8 @@
<a href="<?php the_permalink(); ?>" class="font-weight-bold"><?php the_title(); ?></a>
</h3>
<?php echo '<p class="text-black">'.wp_trim_words( get_the_excerpt(), 28, '...').'</p>'; ?>
<time><?php the_time('j M Y \\a\\t g:i'); echo ', '; _e('for');?></time> <?php echo ' '; the_author_posts_link(); ?>
<?php tainacan_post_date(); ?>
<?php printf(__('by %s', 'tainacan-theme'), get_the_author_posts_link()); ?>
<a href="<?php the_permalink(); ?>" class="readmore float-right"><?php _e('Read more...'); ?></a>
</div>
</div>

View File

@ -4,7 +4,7 @@
<table class="table table-hover">
<thead>
<tr>
<th scope="col"><?php //_e('Miniature'); ?></th>
<th scope="col"></th>
<th scope="col"><?php _e('Title'); ?></th>
<th scope="col"><?php _e('Description'); ?></th>
<!-- <th scope="col"><?php //_e('Date'); ?></th>

View File

@ -7,7 +7,7 @@
if(is_home()) _e('Posts of blog', 'tainacan-theme');
elseif(is_search()){
_e('Search Results for', 'tainacan-theme');
the_search_query();
echo ' "' , get_search_query(), '"';
}
elseif(is_archive()){
echo ' ' . get_the_archive_title();

View File

@ -1,13 +1,7 @@
<article role="article" id="post_<?php the_ID()?>" <?php post_class()?>>
<header class="mb-4">
<div class="header-meta text-muted mb-5">
<?php
tainacan_post_date();
_e(', by ', 'tainacan-theme');
the_author_posts_link();
/* echo ' ';
_e('on', 'tainacan-theme'); */
?>
<?php tainacan_post_date(); ?> <?php printf(__('by %s', 'tainacan-theme'), get_the_author_posts_link()); ?>
</div>
<?php the_post_thumbnail(); ?>
</header>