Skip to content

Commit

Permalink
#23 Ajustes de metadados no template
Browse files Browse the repository at this point in the history
  • Loading branch information
dvespasiano committed Jun 14, 2021
1 parent 4deea97 commit 68c6f3f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
12 changes: 10 additions & 2 deletions sass/components/template-inventarios/_template-inventarios.scss
Expand Up @@ -46,13 +46,21 @@
& .post-inventario {
margin-left: 50px;
margin-bottom: 100px;
width: auto;
width: 100%;
padding-right: 4.73%;
padding-bottom: 100px;
}
& .alinhamento-template-inventarios {
display: flex;
width: 100%
width: 100%;
}
& .share-button-wrapper {
margin-left: auto;
padding-left: 4.73%;
padding-right: 4.73%;
max-width: 1157px;
margin-top: 28px;
margin-bottom: 28px;
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions single-tnc_col_527_item.php
Expand Up @@ -17,11 +17,19 @@
<h1 class="is-style-title-iphan-underscore">
<?php echo tainacan_get_the_collection_name(); ?>
</h1>
<div class="entry-content meta-content">
<div class="share-button-wrapper">
<?php $postUrl = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; ?>
<a target="_blank" class="share-button share-twitter" href="https://twitter.com/intent/tweet?url=<?php echo $postUrl; ?>&text=<?php echo the_title(); ?>&via=<?php the_author_meta('twitter'); ?>" title="<?php _e('Twittar', 'iphan_inrc'); ?>"><i class="tainacan-icon tainacan-icon-1-25em tainacan-icon-twitter"></i></a>
<a target="_blank" class="share-button share-facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $postUrl; ?>" title="<?php _e('Compartilhar no Facebook', 'iphan_inrc'); ?>"><i class="tainacan-icon tainacan-icon-1-25em tainacan-icon-facebook"></i></a>
</div>
</div>
<div>
<?php echo tainacan_get_item(); ?>
</div>
</div>
</div>
<?php comments_template(); ?>
</div>
<div class="inventario-footer">
<?php
Expand Down
11 changes: 10 additions & 1 deletion style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

0 comments on commit 68c6f3f

Please sign in to comment.