Making WordPress.org

Changeset 2910


Ignore:
Timestamp:
04/06/2016 09:42:57 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Link to application site if one exists.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
2 edited

Legend:

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

    r2901 r2910  
    5353            unset( $wordcamps[ $key ] );
    5454        }
     55
     56        $wordcamp->url = filter_var( get_post_meta( $wordcamp->ID, 'URL', true ), FILTER_VALIDATE_URL );
    5557    }
    5658
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/views/applications/tracker/shortcode-application-tracker.php

    r2900 r2910  
    2020        <?php foreach ( $posts as $post ) : ?>
    2121            <tr>
    22                 <td class="city"       ><?php echo esc_html( $post->post_title );                                                ?></td>
     22                <td class="city">
     23                    <?php if ( $post->url ) : ?>
     24                        <a href="<?php echo esc_url( $post->url ); ?>">
     25                            <?php echo esc_html( $post->post_title ); ?>
     26                        </a>
     27                    <?php else : ?>
     28                        <?php echo esc_html( $post->post_title ); ?>
     29                    <?php endif; ?>
     30                </td>
     31               
    2332                <td class="applicant"  ><?php echo esc_html( get_post_meta( $post->ID, 'Organizer Name', true ) );               ?></td>
    2433                <td class="milestone"  ><?php echo esc_html( $milestones[ $post->post_status ] );                                ?></td>
Note: See TracChangeset for help on using the changeset viewer.