Making WordPress.org

Changeset 2846


Ignore:
Timestamp:
03/29/2016 11:11:22 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Show extra [application-tracker] data on large screens.

Location:
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/tracker.php

    r2845 r2846  
    6868                }
    6969
    70                 /* todo drop a few fields on responsive layouts so it fits */
     70                /* Show extra data on large screens */
     71                .application-tracker .milestone,
     72                .application-tracker .applicant {
     73                        display: none;
     74                }
     75
     76                @media screen and ( min-width: 750px ) {
     77                        .application-tracker .applicant {
     78                                display: table-cell;
     79                        }
     80                }
     81
     82                @media screen and ( min-width: 850px ) {
     83                        .application-tracker .milestone {
     84                                display: table-cell;
     85                        }
     86                }
    7187        </style>
    7288
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/javascript/applications/wordcamp.js

    r2797 r2846  
    1 /* todo
    2  *
    3  * cleanup
    4  * make sure all this runs at startup, b/c have to set initial values after refresh
    5  * blur instead of click b/c keyboard nav ?
    6  *
    7  * maybe strict mode, try/catch, module pattern, etc
    8  */
    9 
    101// Modified from https://polldaddy.com/js/survey/jane-theme.js
    112
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/views/applications/tracker/shortcode-application-tracker.php

    r2828 r2846  
    99        <thead>
    1010                <tr>
    11                         <th>City</th>
    12                         <th>Applicant</th>
    13                         <th>Milestone</th>
    14                         <th>Status</th>
    15                         <th>Last Update</th>
     11                        <th class="city"       >City</th>
     12                        <th class="applicant"  >Applicant</th>
     13                        <th class="milestone"  >Milestone</th>
     14                        <th class="status"     >Status</th>
     15                        <th class="last-update">Last Update</th>
    1616                </tr>
    1717        </thead>
     
    2020                <?php foreach ( $posts as $post ) : ?>
    2121                        <tr>
    22                                 <td><?php echo esc_html( $post->post_title );                                                ?></td>
    23                                 <td><?php echo esc_html( get_post_meta( $post->ID, 'Organizer Name', true ) );               ?></td>
    24                                 <td><?php echo esc_html( $milestones[ $post->post_status ] );                  ?></td>
    25                                 <td><?php echo esc_html( $statuses[ $post->post_status ] );                                   ?></td>
    26                                 <td><?php echo esc_html( get_last_status_update_time_diff( $post->ID ) );                    ?></td>
    27 
    28                                 <!-- todo realign -->
     22                                <td class="city"       ><?php echo esc_html( $post->post_title );                                  ?></td>
     23                                <td class="applicant"  ><?php echo esc_html( get_post_meta( $post->ID, 'Organizer Name', true ) ); ?></td>
     24                                <td class="milestone"  ><?php echo esc_html( $milestones[ $post->post_status ] );                  ?></td>
     25                                <td class="status"     ><?php echo esc_html( $statuses[ $post->post_status ] );                    ?></td>
     26                                <td class="last-update"><?php echo esc_html( get_last_status_update_time_diff( $post->ID ) );      ?></td>
    2927                        </tr>
    3028                <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.