Skip to content

Commit

Permalink
Remove boxes and prepend draft status to link
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Feb 15, 2024
1 parent c6d2881 commit 1ed916e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
24 changes: 2 additions & 22 deletions assets/css/translation-events.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,6 @@ h2.event_page_title {
background-color: var(--gp-color-btn-primary-bg) !important;
color: #fff !important;
}
span.event-list-status {
font-weight: 500;
float: left;
color: #fff;
font-size: .7em;
margin-right: 0.3em;
width: 6em;
text-align: center;
padding: 0.2em 0.5em;
border-radius: 1em;
text-transform: capitalize;
}
span.event-list-status.draft {
color:#c05621;
border: 1px solid #c05621;
}
span.event-list-status.published {
border: 1px solid #468d11;
color: #468d11 ;
}
.event-list-item div {
margin-bottom: 2px;
a.event-status-draft {
color:#80807f;
}
6 changes: 1 addition & 5 deletions templates/events-user-created.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
$event_status = ( 'publish' === get_post_status( $event_id ) ) ? 'published' : get_post_status( $event_id );
?>
<li class="event-list-item">
<div>
<span class="event-list-status <?php echo esc_attr( $event_status ); ?>"><?php echo esc_html( $event_status ); ?></span>
<span class="event-list-date"><time class="event-utc-time" datetime="<?php echo esc_attr( $event_start ); ?>"></span>
</div>
<a href="<?php echo esc_url( gp_url( wp_make_link_relative( $permalink ) ) ); ?>"><?php the_title(); ?></a>
<a class="event-status-<?php echo esc_attr( $event_status ); ?>" href="<?php echo esc_url( gp_url( wp_make_link_relative( $permalink ) ) ); ?>"><?php echo ( ( 'draft' === $event_status ) ? esc_html( ucfirst( $event_status ) ) . ' - ' : '' ) . the_title( '', '', false ); ?></a>
<a href="<?php echo esc_url( gp_url( 'events/edit/' . $event_id ) ); ?>" class="button is-small action edit">Edit</a>
<p><?php the_excerpt(); ?></p>
</li>
Expand Down

0 comments on commit 1ed916e

Please sign in to comment.