Making WordPress.org


Ignore:
Timestamp:
01/14/2019 10:16:20 AM (7 years ago)
Author:
vedjain
Message:

WCPT: Make deputy notes more prominent and readable.

Currently log sections of Meetup/WordCamp application has lot info including status changes, tag change, notes added by deputies etc. This patch will make the deputy notes more prominent by so that they are easily parsable. Also applying wpautop to notes since they are added via textarea and can be long with new lines breaks between them.

props sippis
fixes 3893

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/views/common/metabox-log.php

    r2876 r8080  
    1 <?php defined( 'WPINC' ) or die(); ?>
     1<?php defined( 'WPINC' ) || die(); ?>
    22
    33<table class="widefat striped">
     
    1515
    1616            <?php foreach ( $entries as $entry ) : ?>
    17                 <tr>
    18                     <th><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) );          ?></th>
    19                     <th><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) ); ?></th>
    20                     <th><?php echo esc_html( $entry['user_display_name'] );                        ?></th>
    21                     <th><?php echo wp_kses(  $entry['message'], wp_kses_allowed_html( 'data') );  ?></th>
     17                <tr class="<?php echo esc_attr( str_replace( '_', '-', $entry['type'] ) ); ?>">
     18                    <th><p><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) ); ?></p></th>
     19                    <th><p><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) ); ?></p></th>
     20                    <th><p><?php echo esc_html( $entry['user_display_name'] ); ?></p></th>
     21                    <th><?php echo wp_kses( wpautop( $entry['message'] ), wp_kses_allowed_html( 'data' ) ); ?></th>
    2222                </tr>
    2323            <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.