Remove conflit

This commit is contained in:
Fabiano 2018-08-03 15:08:58 -03:00
commit fc13570682
19 changed files with 784 additions and 261 deletions

View File

@ -8,9 +8,7 @@
"require": {
"twbs/bootstrap": "4.*",
"wp-bootstrap/wp-bootstrap-navwalker": "*",
"kenwheeler/slick": "1.6.1",
"desandro/masonry": "4.*",
"desandro/imagesloaded": "4.*"
"kenwheeler/slick": "1.6.1"
},
"scripts": {
"post-install-cmd": "bash install.sh",

80
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "e76fd93afcf5cccb4b58c468e70bbeba",
"content-hash": "3d0374e3fd2d6b43ef8af59ab09d04f8",
"packages": [
{
"name": "composer/installers",
@ -126,84 +126,6 @@
],
"time": "2017-12-29T09:13:20+00:00"
},
{
"name": "desandro/imagesloaded",
"version": "v4.1.4",
"source": {
"type": "git",
"url": "https://github.com/desandro/imagesloaded.git",
"reference": "67c4e57453120935180c45c6820e7d3fbd2ea1f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/desandro/imagesloaded/zipball/67c4e57453120935180c45c6820e7d3fbd2ea1f9",
"reference": "67c4e57453120935180c45c6820e7d3fbd2ea1f9",
"shasum": ""
},
"type": "component",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "David DeSandro",
"homepage": "http://desandro.com/",
"role": "developer"
}
],
"description": "JavaScript is all like _You images done yet or what?_",
"homepage": "http://imagesloaded.desandro.com",
"keywords": [
"dom",
"images",
"javascript",
"jquery-plugin",
"library",
"loaded",
"ui"
],
"time": "2018-01-02T16:53:35+00:00"
},
{
"name": "desandro/masonry",
"version": "v4.2.2",
"source": {
"type": "git",
"url": "https://github.com/desandro/masonry.git",
"reference": "3b0883cf4a4a046896719b9cf282ea74be7ffecd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/desandro/masonry/zipball/3b0883cf4a4a046896719b9cf282ea74be7ffecd",
"reference": "3b0883cf4a4a046896719b9cf282ea74be7ffecd",
"shasum": ""
},
"type": "component",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "David DeSandro",
"homepage": "http://desandro.com/",
"role": "developer"
}
],
"description": "Cascading grid layout library",
"homepage": "https://masonry.desandro.com",
"keywords": [
"browser",
"dom",
"grid",
"javascript",
"layout",
"library",
"outlayer"
],
"time": "2018-07-04T18:01:15+00:00"
},
{
"name": "kenwheeler/slick",
"version": "1.6.1",

View File

@ -39,13 +39,6 @@ echo "Copy Slick for Slider...\n\n";
copy("vendor/kenwheeler/slick/slick/ajax-loader.gif", "src/assets/vendor/slick/ajax-loader.gif");
recurse_copy("vendor/kenwheeler/slick/slick/fonts", "src/assets/vendor/slick/fonts");
echo "Copy Masonry & ImageLoaded... \n\n";
if (!file_exists("src/assets/vendor/desandro")) {
mkdir("src/assets/vendor/desandro/", 0777, true);
}
copy("vendor/desandro/masonry/dist/masonry.pkgd.min.js", "src/assets/vendor/desandro/masonry.pkgd.min.js");
copy("vendor/desandro/imagesloaded/imagesloaded.pkgd.min.js", "src/assets/vendor/desandro/imagesloaded.pkgd.min.js");
echo "Finish Copy files! \n\n";
function recurse_copy($src,$dst) {

View File

@ -36,31 +36,6 @@ jQuery(document).ready(function( $ ) {
*/
$('.wp-block-button a').toggleClass().addClass('btn btn-jelly-bean');
// Instantiates Masonry;
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if ($('.tainacan-masonry-view')[0]) {
$('.tainacan-masonry-view').masonry({
percentPosition: true,
itemSelector: '.grid-item',
/* columnWidth: '.grid-sizer', */
columnWidth: 277,
//gutter: '.gutter-sizer',
horizontalOrder: true,
});
}
});
});
var config = {
attributes: true,
childList: true,
characterData: true
};
if(document.getElementById('items-list-area'))
observer.observe(document.getElementById('items-list-area'), config);
$('.tainacan-list-post .table .tainacan-list-collection td').click(function(){
window.location = $('.tainacan-list-post .table .tainacan-list-collection').data("href");
});

View File

@ -6,6 +6,8 @@
.col { flex-grow: 0; }
.tainacan-grid-item {
animation-name: item-appear;
animation-duration: 0.5s;
max-width: 258px;
margin: 12px 16px 24px 16px;
text-align: center;

View File

@ -1,50 +0,0 @@
.tainacan-masonry-view {
min-height: 50vh;
.grid-item{
.card{
img{
width: 247.5px;
height: auto;
}
&:hover{
background-color: #eaeaea;
}
/* &:selected{
background-color: #e6f6f8;
} */
.card-body{
padding: 0.85rem;
.card-title{
a{
color: #000 !important;
font-weight: 400;
font-size: 0.85rem;
}
}
}
}
}
/* margin: 1.5em 0;
padding: 0;
-moz-column-gap: 1.5em;
-webkit-column-gap: 1.5em;
column-gap: 0.5em;
.gutter-sizer { width: 4%; }
.grid-sizer, .grid-item{
width: 20%;
@media only screen and (max-width: 700px){
width: 100%;
}
}
.grid-item{
margin-bottom: 10px;
.card{
border: none;
img{
}
}
} */
}

View File

@ -474,6 +474,18 @@ nav{
}
}
// Item appear animation, used in some view modes.
@keyframes item-appear {
from {
opacity: 0;
transform: translate(0, 12px);
}
to {
opacity: 1;
transform: translate(0, 0px);
}
}
@import "_comments";
@import "_list-post";
@ -498,8 +510,6 @@ nav{
@import "_view-mode-frame.scss";
@import "_view-mode-masonry.scss";
@import "_view-mode-books.scss";
@import "_view-mode-polaroid.scss";

View File

@ -61,14 +61,6 @@ if(!function_exists('tainacan_setup')) {
'icon' => '<span class="icon"><i class="mdi mdi-apps mdi-24px"></i></span>',
'dynamic_metadata' => false,
]);
tainacan_register_view_mode('masonry', [
'label' => 'Masonry',
'description' => 'A masonry view',
'icon' => '<span class="icon"><i class="mdi mdi-view-dashboard mdi-24px"></i></span>',
'dynamic_metadata' => false,
]);
}
add_image_size( 'tainacan-theme-list-post', 300, 200, true );
@ -222,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';

View File

@ -14,12 +14,6 @@ if ( ! function_exists('tainacan_Enqueues') ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );
wp_enqueue_script( 'jquery' );
wp_register_script('masonryJS', get_template_directory_uri() . '/assets/vendor/desandro/masonry.pkgd.min.js', '', '', true);
wp_enqueue_script( 'masonryJS' );
wp_register_script('imageLoadedJS', get_template_directory_uri() . '/assets/vendor/desandro/imagesloaded.pkgd.min.js', '', '', true);
wp_enqueue_script( 'imageLoadedJS' );
/**
* Bootstrap 4.1.3
*/

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,18 +22,28 @@
<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>
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--document">
<?php tainacan_the_document(); ?>
</div>
</section>
<?php if (tainacan_has_document()): ?>
<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(); ?>
</div>
</section>
<?php endif; ?>
</article>
</div>
<?php if (tainacan_has_document()): ?>
<div class="tainacan-title my-5">
<div class="border-bottom border-silver tainacan-title-page" style="border-width: 1px !important;">
</div>
</div>
<?php endif; ?>
<?php
$images = get_posts( array (
'post_parent' => get_the_ID(),
@ -41,47 +51,50 @@
'post_per_page' => -1,
'exclude' => get_post_thumbnail_id( get_the_ID() )
));
if ( !empty($images) ) {
?>
<div class="tainacan-title my-5">
<div class="border-bottom border-silver tainacan-title-page" style="border-width: 1px !important;">
<?php if ( !empty($images) ) : ?>
<div class="mt-3 tainacan-single-post">
<article role="article">
<h1 class="title-content-items"><?php _e('Attachments'); ?></h1>
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--attachments">
<?php
foreach ( $images as $attachment ) {
echo '<div class="single-item-collection--attachments-img">' . wp_get_attachment_image( $attachment->ID, 'tainacan-theme-list-post' ) . '</div>';
}
?>
</div>
</section>
</article>
</div>
</div>
<div class="tainacan-title my-5">
<div class="border-bottom border-silver tainacan-title-page" style="border-width: 1px !important;">
</div>
</div>
<?php endif; ?>
<div class="mt-3 tainacan-single-post">
<article role="article">
<h1 class="title-content-items"><?php _e('Attachments'); ?></h1>
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--attachments">
<?php
foreach ( $images as $attachment ) {
echo '<div class="single-item-collection--attachments-img">' . wp_get_attachment_image( $attachment->ID, 'tainacan-theme-list-post' ) . '</div>';
}
?>
</div>
</section>
</article>
</div>
<?php } ?>
<div class="tainacan-title my-5">
<div class="border-bottom border-silver tainacan-title-page" style="border-width: 1px !important;">
</div>
</div>
<div class="mt-3 tainacan-single-post">
<article role="article">
<h1 class="title-content-items"><?php _e('Informations'); ?></h1>
<!-- <h1 class="title-content-items"><?php _e('Information', 'tainacan-theme'); ?></h1> -->
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--information justify-content-center">
<div class="row">
<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

@ -1,33 +0,0 @@
<div class="container">
<?php if (have_posts()): ?>
<div class="clearfix tainacan-masonry-view">
<div class="grid-sizer col col-sm-6 col-md-4 col-lg-3"></div>
<div class="gutter-sizer"></div>
<!-- <div class="tainacan-masonry-container card-columns p-3"> -->
<?php while (have_posts()): the_post(); ?>
<div class="grid-item col col-sm-6 col-md-4 col-lg-3 mb-3">
<div class="card border-0">
<?php if ( tainacan_current_view_displays('thumbnail') ): ?>
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('tainacan-medium-full'); ?>
<?php else: ?>
<?php echo '<img alt="Thumbnail placeholder" src="'.get_stylesheet_directory_uri().'/assets/images/thumbnail_placeholder.png">'?>
<?php endif; ?>
<?php endif; ?>
<div class="card-body">
<h5 class="card-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h5>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php else: ?>
<div class="tainacan-masonry-view">
Nenhum item encontrado
</div>
<?php endif; ?>
</div>

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>