add edit link on single item of collection #6

This commit is contained in:
Fabiano Alencar 2018-12-18 15:04:04 -02:00
parent 82efc58867
commit 71fd54548f
2 changed files with 9 additions and 1 deletions

View File

@ -509,6 +509,9 @@ nav{
text-overflow: ellipsis;
white-space: nowrap;
}
.tainacan-edit-item-collection {
font-size: 1rem;
}
}
.title-back{
font: {

View File

@ -13,7 +13,12 @@
<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(); ?>
<?php the_title(); ?>
<?php if(function_exists('tainacan_the_item_edit_link')) {
echo '<span class="tainacan-edit-item-collection">';
tainacan_the_item_edit_link(null, ' - ');
echo '</span>';
} ?>
</li>
<li class="list-inline-item float-right title-back"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul>