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; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tainacan-edit-item-collection {
font-size: 1rem;
}
} }
.title-back{ .title-back{
font: { font: {

View File

@ -14,6 +14,11 @@
<ul class="list-inline mb-1"> <ul class="list-inline mb-1">
<li class="list-inline-item text-midnight-blue font-weight-bold title-page"> <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>
<li class="list-inline-item float-right title-back"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li> <li class="list-inline-item float-right title-back"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul> </ul>