Making WordPress.org

Changeset 7861


Ignore:
Timestamp:
11/16/2018 09:24:02 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Central: Apply coding standards.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/archive.php

    r4038 r7861  
    1212            <h1 class="page-title">
    1313                <?php if ( is_day() ) : ?>
    14                     <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
     14                    <?php printf(
     15                        wp_kses_post( __( 'Daily Archives: <span>%s</span>', 'twentyten' ) ),
     16                        get_the_date()
     17                    ); ?>
    1518                <?php elseif ( is_month() ) : ?>
    16                         <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
     19                    <?php printf(
     20                        wp_kses_post( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ) ),
     21                        get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) )
     22                    ); ?>
    1723                <?php elseif ( is_year() ) : ?>
    18                         <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
     24                    <?php printf(
     25                        wp_kses_post( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ) ),
     26                        get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) )
     27                    ); ?>
    1928                <?php else : ?>
    20                         <?php _e( 'Blog Archives', 'twentyten' ); ?>
     29                    <?php esc_html_e( 'Blog Archives', 'twentyten' ); ?>
    2130                <?php endif; ?>
    2231            </h1>
     
    2837            <?php get_template_part( 'navigation-above' ); ?>
    2938
    30             <?php while ( have_posts() ) : the_post(); ?>
     39            <?php while ( have_posts() ) :
     40                the_post(); ?>
    3141
    3242                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/author.php

    r4038 r7861  
    1010            <?php if ( have_posts() ) the_post(); ?>
    1111
    12             <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1>
     12            <h1 class="page-title author">
     13                <?php printf(
     14                    wp_kses_post( __( 'Author Archives: %s', 'twentyten' ) ),
     15                    "<span class='vcard'>
     16                        <a class='url fn n' href='" . esc_attr( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" .
     17                            esc_html( get_the_author() ) .
     18                        '</a>
     19                    </span>'
     20                ); ?>
     21            </h1>
    1322
    1423            <?php
     
    2029                    </div><!-- #author-avatar -->
    2130                    <div id="author-description">
    22                         <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
     31                        <h2>
     32                            <?php printf(
     33                                esc_html__( 'About %s', 'twentyten' ),
     34                                esc_html( get_the_author() )
     35                            ); ?>
     36                        </h2>
    2337                        <?php the_author_meta( 'description' ); ?>
    2438                    </div><!-- #author-description  -->
     
    3347            <?php get_template_part( 'navigation-above' ); ?>
    3448
    35             <?php while ( have_posts() ) : the_post(); ?>
     49            <?php while ( have_posts() ) :
     50                the_post(); ?>
    3651
    3752                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/category.php

    r4038 r7861  
    99        <div id="content" role="main" class="group">
    1010
    11             <h1 class="page-title"><?php
    12                 printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    13             ?></h1>
     11            <h1 class="page-title">
     12                <?php printf(
     13                    wp_kses_post( __( 'Category Archives: %s', 'twentyten' ) ),
     14                    '<span>' . single_cat_title( '', false ) . '</span>'
     15                ); ?>
     16            </h1>
     17
    1418            <?php
    15                 $category_description = category_description();
    16                 if ( ! empty( $category_description ) )
    17                     echo '<div class="archive-meta">' . $category_description . '</div>';
     19
     20            $category_description = category_description();
     21
     22            if ( ! empty( $category_description ) ) {
     23                echo '<div class="archive-meta">' . wp_kses_post( $category_description ) . '</div>';
     24            }
     25
    1826            ?>
    1927
     
    2230            <?php get_template_part( 'navigation-above' ); ?>
    2331
    24             <?php while ( have_posts() ) : the_post(); ?>
     32            <?php while ( have_posts() ) :
     33                the_post(); ?>
    2534
    2635                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/comments.php

    r842 r7861  
    77 * handled by a callback to twentyten_comment which is
    88 * located in the functions.php file.
    9  *
    109 */
    1110?>
     
    1312            <div id="comments">
    1413<?php if ( post_password_required() ) : ?>
    15                 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
     14                <p class="nopassword">
     15                    <?php esc_html_e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?>
     16                </p>
    1617            </div><!-- #comments -->
    1718<?php
    18         /* Stop the rest of comments.php from being processed,
     19        /*
     20         * Stop the rest of comments.php from being processed,
    1921         * but don't kill the script entirely -- we still have
    2022         * to fully load the template.
     
    2931
    3032<?php if ( have_comments() ) : ?>
    31             <h3 id="comments-title"><?php
    32             printf( _n( 'One Reply to %2$s', '%1$s Replies to %2$s', get_comments_number(), 'twentyten' ),
    33             number_format_i18n( get_comments_number() ), '<a href="#">' . get_the_title() . '</a>' );
    34             ?></h3>
     33            <h3 id="comments-title">
     34                <?php
     35                printf(
     36                    wp_kses_post( _n( 'One Reply to %2$s', '%1$s Replies to %2$s', get_comments_number(), 'twentyten' ) ),
     37                    wp_kses_post( number_format_i18n( get_comments_number() ) ),
     38                    '<a href="#">' . get_the_title() . '</a>'
     39                );
     40                ?>
     41            </h3>
    3542
    3643<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
     
    4350            <ol class="commentlist">
    4451                <?php
    45                     /* Loop through and list the comments. Tell wp_list_comments()
     52                    /*
     53                     * Loop through and list the comments. Tell wp_list_comments()
    4654                     * to use twentyten_comment() to format the comments.
    4755                     * If you want to overload this in a child theme then you can
     
    6270<?php else : // or, if we don't have comments:
    6371
    64     /* If there are no comments and comments are closed,
     72    /*
     73     * If there are no comments and comments are closed,
    6574     * let's leave a little note, shall we?
    6675     */
    6776    if ( ! comments_open() ) :
    6877?>
    69     <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
     78    <p class="nocomments">
     79        <?php esc_html_e( 'Comments are closed.', 'twentyten' ); ?>
     80    </p>
    7081<?php endif; // end ! comments_open() ?>
    7182
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/content-image.php

    r842 r7861  
    2525                <?php if ( count( get_the_category() ) ) : ?>
    2626                    <span class="cat-links">
    27                         <?php printf( __( '<span class="%1$s">Categories</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
     27                        <?php printf(
     28                            wp_kses_post( __( '<span class="%1$s">Categories</span> %2$s', 'twentyten' ) ),
     29                            'entry-utility-prep entry-utility-prep-cat-links',
     30                            wp_kses_post( get_the_category_list( ', ' ) )
     31                        ); ?>
    2832                    </span>
    2933                    <span class="meta-sep">|</span>
     
    3438                ?>
    3539                    <span class="tag-links">
    36                         <?php printf( __( '<span class="%1$s">Tags</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     40                        <?php printf(
     41                            wp_kses_post( __( '<span class="%1$s">Tags</span> %2$s', 'twentyten' ) ),
     42                            'entry-utility-prep entry-utility-prep-tag-links',
     43                            wp_kses_post( $tags_list )
     44                        ); ?>
    3745                    </span>
    3846                <?php endif; ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/content.php

    r4038 r7861  
    1111
    1212        <div class="entry-meta">
    13             Posted by <?php the_author_posts_link(); ?> on <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_date(); ?></a> with <?php comments_popup_link( 'No replies yet', '1 reply', '% replies', 'comments-link', 'Comments are off for this post');?>
     13            Posted by <?php the_author_posts_link(); ?> on <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_date(); ?></a> with <?php comments_popup_link( 'No replies yet', '1 reply', '% replies', 'comments-link', 'Comments are off for this post'); ?>
    1414        </div><!-- .entry-meta -->
    1515
     
    3131            <?php if ( count( get_the_category() ) ) : ?>
    3232                <span class="cat-links">
    33                     <?php printf( __( '<span class="%1$s">Categories</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
     33                    <?php printf(
     34                        wp_kses_post( __( '<span class="%1$s">Categories</span> %2$s', 'twentyten' ) ),
     35                        'entry-utility-prep entry-utility-prep-cat-links',
     36                        wp_kses_post( get_the_category_list( ', ' ) )
     37                    ); ?>
    3438                </span>
    3539                <span class="meta-sep">|</span>
     
    4044            ?>
    4145                <span class="tag-links">
    42                     <?php printf( __( '<span class="%1$s">Tags</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     46                    <?php printf(
     47                        wp_kses_post( __( '<span class="%1$s">Tags</span> %2$s', 'twentyten' ) ),
     48                        'entry-utility-prep entry-utility-prep-tag-links',
     49                        wp_kses_post( $tags_list )
     50                    ); ?>
    4351                </span>
    4452                <span class="meta-sep">|</span>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r7671 r7861  
    618618                            <?php echo get_avatar( $comment, 60 ); ?>
    619619                            <?php printf(
    620                                 __( '%s <span class="says">says:</span>', 'twentyten' ),
    621                                 sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() )
     620                                wp_kses_post( __( '%s <span class="says">says:</span>', 'twentyten' ) ),
     621                                sprintf( '<cite class="fn">%s</cite>', wp_kses_post( get_comment_author_link() ) )
    622622                            ); ?>
    623623                        </div>
     
    630630                        <?php endif; ?>
    631631
    632                         <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    633                             <?php
    634                                 /* translators: 1: date, 2: time */
    635                                 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    636                             ?>
     632                        <div class="comment-meta commentmetadata">
     633                            <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
     634                                <?php
     635                                    /* translators: 1: date, 2: time */
     636                                    printf(
     637                                        esc_html__( '%1$s at %2$s', 'twentyten' ),
     638                                        get_comment_date(),
     639                                        get_comment_time()
     640                                    );
     641                                ?>
     642                            </a>
     643
     644                            <?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?>
    637645                        </div>
    638646
     
    715723        }
    716724
    717         echo "$start_month $start_day";
     725        echo esc_html( "$start_month $start_day" );
    718726
    719727        if ( $end_day ) {
    720728            if ( $show_year && $start_year !== $end_year ) {
    721                 echo ", $start_year";
     729                echo esc_html( ", $start_year" );
    722730            }
    723731
     
    725733
    726734            if ( $start_month !== $end_month ) {
    727                 echo "$end_month ";
    728             }
    729 
    730             echo $end_day;
     735                echo esc_html( "$end_month " );
     736            }
     737
     738            echo esc_html( $end_day );
    731739
    732740            if ( $show_year ) {
    733                 echo ", $end_year";
     741                echo esc_html( ", $end_year" );
    734742            }
    735743        } elseif ( $show_year ) {
    736             echo ", $start_year";
     744            echo esc_html( ", $start_year" );
    737745        }
    738746    }
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/header.php

    r6086 r7861  
    3333    $site_description = get_bloginfo( 'description', 'display' );
    3434    if ( $site_description && ( is_home() || is_front_page() ) )
    35         echo " | $site_description";
     35        echo esc_html( " | $site_description" );
    3636
    3737    // Add a page number if necessary:
    38     if ( $paged >= 2 || $page >= 2 )
    39         echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
     38    if ( $paged >= 2 || $page >= 2 ) {
     39        echo ' | ' . sprintf( esc_html__( 'Page %s', 'twentyten' ), (int) max( $paged, $page ) );
     40    }
    4041
    4142    ?></title>
     
    4344<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    4445<?php
    45     /* Always have wp_head() just before the closing </head>
     46    /*
     47     * Always have wp_head() just before the closing </head>
    4648     * tag of your theme, or you will break many plugins, which
    4749     * generally use this hook to add elements to <head> such
     
    8385    <div id="masthead" class="group">
    8486        <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    85         <a href="#<?php echo is_front_page()? 'wc-hero-panel': 'content'; ?>" class="skip-link screen-reader-text"><?php _e( 'Skip to content', 'twentyten' ); ?></a>
     87        <a href="#<?php echo is_front_page() ? 'wc-hero-panel' : 'content'; ?>" class="skip-link screen-reader-text">
     88            <?php esc_html_e( 'Skip to content', 'twentyten' ); ?>
     89        </a>
    8690
    87         <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    88         <<?php echo $heading_tag; ?> id="site-title">
     91        <?php $use_heading_tag = is_home() || is_front_page(); ?>
     92        <?php echo $use_heading_tag ? '<h1 id="site-title">' : '<div id="site-title">'; ?>
    8993            <span>
    90                 <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
     94                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
     95                    <?php bloginfo( 'name' ); ?>
     96                </a>
    9197            </span>
    92         </<?php echo $heading_tag; ?>>
     98        <?php echo $use_heading_tag ? '</h1>' : '</div>'; ?>
    9399
    94100        <div id="access" role="navigation">
    95101            <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    96             <button class="wc-primary-button menu-toggle"><?php _e( 'Primary Menu', 'adirondack' ); ?></button>
     102            <button class="wc-primary-button menu-toggle">
     103                <?php esc_html_e( 'Primary Menu', 'twentyten' ); ?>
     104            </button>
    97105            <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    98106        </div><!-- #access -->
     
    111119            </p>
    112120            <p class="wc-hero-actions">
    113                 <a href="<?php echo home_url( '/about/' ); ?>" class="wc-hero-learnmore">Learn More</a> or
    114                 <a href="<?php echo home_url( '/schedule/' ); ?>" class="wc-primary-button">Find a WordCamp</a>
     121                <a href="<?php echo esc_url( home_url( '/about/' ) ); ?>" class="wc-hero-learnmore">Learn More</a> or
     122                <a href="<?php echo esc_url( home_url( '/schedule/' ) ); ?>" class="wc-primary-button">Find a WordCamp</a>
    115123            </p>
    116124        </div><!-- .wc-hero-intro -->
     
    120128                // Get image attachments from page Home.
    121129                $attachments = get_posts( array(
    122                     'post_type' => 'attachment',
     130                    'post_type'      => 'attachment',
    123131                    'posts_per_page' => 10,
    124                     'post_parent' => get_the_ID(),
     132                    'post_parent'    => get_the_ID(),
    125133                    'post_mime_type' => 'image',
    126                     'orderby' => 'date',
    127                     'order' => 'DESC',
     134                    'orderby'        => 'date',
     135                    'order'          => 'DESC',
    128136                ) );
    129137            ?>
     
    162170                <?php elseif ( WordCamp_Central_Theme::get_subscription_status() == false ) : ?>
    163171                    <h3>Join the <strong>Mailing List</strong></h3>
    164                     <form action="<?php echo home_url( '/' ); ?>" method="POST">
    165                     <input type="hidden" name="wccentral-form-action" value="subscribe" />
    166                     <input type="text" class="wc-hero-mailinglist-email" placeholder="Enter your email address" name="wccentral-subscribe-email" />
    167                     <input type="submit" class="wc-hero-mailinglist-submit" value="Go" />
     172
     173                    <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="POST">
     174                        <input type="hidden" name="wccentral-form-action" value="subscribe" />
     175                        <input type="text" class="wc-hero-mailinglist-email" placeholder="Enter your email address" name="wccentral-subscribe-email" />
     176                        <input type="submit" class="wc-hero-mailinglist-submit" value="Go" />
    168177                    </form>
    169178                <?php endif; // get_subscription_status ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/index.php

    r4038 r7861  
    1313    <?php get_template_part( 'navigation-above' ); ?>
    1414
    15     <?php while ( have_posts() ) : the_post(); ?>
     15    <?php while ( have_posts() ) :
     16        the_post(); ?>
    1617
    1718            <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/loop-attachment.php

    r4038 r7861  
    1616?>
    1717
    18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    19 
     18<?php
     19if ( have_posts() )
     20    while ( have_posts() ) :
     21        the_post();
     22        $title = sprintf(
     23            esc_html__( 'Return to %s', 'twentyten' ),
     24            strip_tags( get_the_title( $post->post_parent ) )
     25        );
     26?>
    2027                <?php if ( ! empty( $post->post_parent ) ) : ?>
    21                     <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php
    22                         /* translators: %s - title of parent post */
    23                         printf( __( '&larr; %s', 'twentyten' ), get_the_title( $post->post_parent ) );
    24                     ?></a></p>
     28                    <p class="page-title">
     29                        <a
     30                            href="<?php echo esc_attr( get_permalink( $post->post_parent ) ); ?>"
     31                            title="<?php echo esc_attr( $title ); ?>"
     32                            rel="gallery"
     33                        >
     34                            <?php
     35                                /* translators: %s - title of parent post */
     36                                printf(
     37                                    wp_kses_post( __( '&larr; %s', 'twentyten' ) ),
     38                                    get_the_title( $post->post_parent )
     39                                );
     40                            ?>
     41                        </a>
     42                    </p>
    2543                <?php endif; ?>
    2644
     
    3351                        <li>
    3452                        <?php
     53
    3554                        if ( wp_attachment_is_image() ) {
    3655                            $metadata = wp_get_attachment_metadata();
    37                             printf( __( 'Full size is %s pixels', 'twentyten' ),
    38                                 sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
    39                                     wp_get_attachment_url(),
     56                            printf(
     57                                wp_kses_post( __( 'Full size is %s pixels', 'twentyten' ) ),
     58                                sprintf(
     59                                    '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
     60                                    esc_url( wp_get_attachment_url() ),
    4061                                    esc_attr( __( 'Link to full-size image', 'twentyten' ) ),
    41                                     $metadata['width'],
    42                                     $metadata['height']
     62                                    absint( $metadata['width'] ),
     63                                    absint( $metadata['height'] )
    4364                                )
    4465                            );
    4566                        }
    46                     ?>
     67
     68                        ?>
    4769                        </li>
    4870                        <li class="wc-single-search"><strong>Search</strong> <?php get_search_form(); ?></li>
     
    7799                                }
    78100                            ?>
    79                             <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
    80                                 $attachment_width  = apply_filters( 'twentyten_attachment_size', 900 );
    81                                 $attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
    82                                 echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
    83                             ?></a></p>
     101                            <p class="attachment">
     102                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php esc_attr( the_title_attribute( array( 'echo' => false ) ) ); ?>" rel="attachment">
     103                                    <?php
     104                                    $attachment_width  = apply_filters( 'twentyten_attachment_size', 900 );
     105                                    $attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
     106                                    echo wp_kses_post( wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ) ); // filterable image width with, essentially, no limit for image height.
     107                                    ?>
     108                                </a>
     109                            </p>
    84110
    85111                            <div id="nav-below" class="navigation">
     
    88114                            </div><!-- #nav-below -->
    89115    <?php else : ?>
    90                             <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
     116                            <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php esc_attr( the_title_attribute( array( 'echo' => false ) ) ); ?>" rel="attachment">
     117                                <?php echo esc_html( basename( get_permalink() ) ); ?>
     118                            </a>
    91119<?php endif; ?>
    92120                        </div><!-- .entry-attachment -->
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/navigation-below.php

    r4038 r7861  
    55?>
    66<?php /* Display navigation to next/previous pages when applicable */ ?>
    7 <?php if (  $wp_query->max_num_pages > 1 ) : ?>
     7<?php if ( $wp_query->max_num_pages > 1 ) : ?>
    88                <div id="nav-below" class="navigation">
    99                    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav arrow">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/page.php

    r4038 r7861  
    99
    1010            <?php if ( have_posts() ) : ?>
    11                 <?php while ( have_posts() ) : the_post(); ?>
     11                <?php while ( have_posts() ) :
     12                    the_post(); ?>
    1213
    1314                            <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/search.php

    r4038 r7861  
    88    <div id="container" class="group">
    99        <div id="content" role="main" class="group">
    10             <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
     10            <h1 class="page-title">
     11                <?php printf(
     12                    esc_html( __( 'Search Results for: %s', 'twentyten' ) ),
     13                    '<span>' . esc_html( get_search_query() ). '</span>'
     14                ); ?>
     15            </h1>
    1116
    1217            <?php get_search_form(); ?>
     
    1621                <?php get_template_part( 'navigation-above' ); ?>
    1722
    18                 <?php while ( have_posts() ) : the_post(); ?>
     23                <?php while ( have_posts() ) :
     24                    the_post(); ?>
    1925
    2026                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    3137
    3238                <div id="post-0" class="post no-results not-found">
    33                     <h2 class="entry-title"><?php _e( 'We couldn&#8217;t find anything!', 'twentyten' ); ?></h2>
     39                    <h2 class="entry-title">
     40                        <?php esc_html_e( 'We couldn&#8217;t find anything!', 'twentyten' ); ?>
     41                    </h2>
     42
    3443                    <div class="entry-content">
    35                         <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
    36                         <p><?php get_search_form(); ?></p>
     44                        <p>
     45                            <?php esc_html_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?>
     46                        </p>
     47
     48                        <p>
     49                            <?php get_search_form(); ?>
     50                        </p>
    3751                    </div><!-- .entry-content -->
    3852                </div><!-- #post-0 -->
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/sidebar-footer.php

    r4038 r7861  
    66
    77<?php
    8     /* The footer widget area is triggered if any of the areas
     8    /*
     9     The footer widget area is triggered if any of the areas
    910     * have widgets. So let's check that first.
    1011     *
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/sidebar-schedule.php

    r2898 r7861  
    88            <h3>Planned WordCamps</h3>
    99
    10             <?php echo wptexturize( wpautop( "These WordCamps are in the early stages of planning, but don't have a date yet. When their dates are confirmed, they'll be added to the schedule of approved WordCamps." ) );
    11             ?>
     10            <p>
     11                These WordCamps are in the early stages of planning, but don't have a date yet. When their dates are confirmed, they'll be added to the schedule of approved WordCamps.
     12            </p>
    1213
    1314            <?php
     
    1516                $args = array(
    1617                    'posts_per_page' => -1,
    17                     'post_status' => WordCamp_Loader::get_pre_planning_post_statuses(),
     18                    'post_status'    => WordCamp_Loader::get_pre_planning_post_statuses(),
    1819                    'meta_key'       => 'Start Date (YYYY-mm-dd)',
    1920                    'orderby'        => 'meta_value',
     
    3233
    3334                <?php wcpt_has_wordcamps( $args ); ?>
    34                 <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?>
     35                <?php while ( wcpt_wordcamps() ) :
     36                    wcpt_the_wordcamp(); ?>
    3537
    3638                    <li>
     
    5456                    // and run the query again
    5557                    $args['meta_query'][0]['compare'] = '<';
    56                     $args['orderby'] = 'date';
     58                    $args['orderby']                  = 'date';
    5759                    wcpt_has_wordcamps( $args );
    5860                ?>
    5961
    60                 <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?>
     62                <?php while ( wcpt_wordcamps() ) :
     63                    wcpt_the_wordcamp(); ?>
    6164
    6265                    <li>
     
    7679
    7780                <li>
    78                     <?php echo wptexturize(
    79                         wpautop( 'Don&#8217;t see your city on the list, but yearning for a local WordCamp? Check out what it takes to <a href="/become-an-organizer/">become an organizer</a>!')
    80                     ); ?>
     81                    Don&#8217;t see your city on the list, but yearning for a local WordCamp? Check out what it takes to <a href="/become-an-organizer/">become an organizer</a>!
    8182                </li>
    8283
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/single-mes-sponsor-level.php

    r842 r7861  
    1 <?php require_once( __DIR__ . '/single-mes.php' ); ?>
     1<?php require_once( __DIR__ . '/single-mes.php' );
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/single-mes.php

    r4038 r7861  
    1111
    1212                <?php if ( have_posts() ) : ?>
    13                     <?php while ( have_posts() ) : the_post(); ?>
     13                    <?php while ( have_posts() ) :
     14                        the_post(); ?>
    1415
    1516                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/single-wordcamp.php

    r7860 r7861  
    107107                <div class="wc-single-past">
    108108
    109                     <h3><?php echo $wordcamp_title; ?></h3>
     109                    <h3>
     110                        <?php echo esc_html( $wordcamp_title ); ?>
     111                    </h3>
     112
    110113                    <ul>
    111114
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/single.php

    r4038 r7861  
    77
    88        <div id="container">
    9             <a href="<?php echo home_url( '/news/' ); ?>" class="wc-back-link"><span class="arrow">&larr;</span> Back to WordCamp News</a>
     9            <a href="<?php echo esc_url( home_url( '/news/' ) ); ?>" class="wc-back-link">
     10                <span class="arrow">&larr;</span>
     11                Back to WordCamp News
     12            </a>
    1013
    1114            <div id="content" role="main">
    1215
    1316                <?php if ( have_posts() ) : ?>
    14                     <?php while ( have_posts() ) : the_post(); ?>
     17                    <?php while ( have_posts() ) :
     18                        the_post(); ?>
    1519
    1620                                <div class="entry-meta">
    1721                                    <ul>
    18                                         <li class="wc-single-avatar"><?php echo get_avatar( get_the_author_meta('ID'), 140 ); ?></li>
    19                                         <li class="wc-single-author"><strong>Posted by</strong> <?php the_author_posts_link(); ?></li>
    20                                         <li class="wc-single-date"><strong>Posted on</strong> <?php the_date(); ?></li>
    21                                         <li class="wc-single-cats"><strong>Categories</strong> <?php echo get_the_category_list(', '); ?></li>
     22                                        <li class="wc-single-avatar">
     23                                            <?php echo get_avatar( get_the_author_meta('ID'), 140 ); ?>
     24                                        </li>
     25
     26                                        <li class="wc-single-author">
     27                                            <strong>Posted by</strong>
     28                                            <?php the_author_posts_link(); ?>
     29                                        </li>
     30
     31                                        <li class="wc-single-date">
     32                                            <strong>Posted on</strong>
     33                                            <?php the_date(); ?>
     34                                        </li>
     35
     36                                        <li class="wc-single-cats">
     37                                            <strong>Categories</strong>
     38                                            <?php echo wp_kses_post( get_the_category_list(', ') ); ?>
     39                                        </li>
     40
    2241                                        <?php if ( has_tag() ) : ?>
    2342                                            <li><strong>Tags</strong> <?php the_tags(' '); ?></li>
    2443                                        <?php endif; ?>
    25                                         <li><?php comments_popup_link('No replies yet', '1 reply', '% replies', 'comments-link', 'Comments are off for this post' ); ?></li>
    26                                         <li class="wc-single-search"><strong>Search</strong> <?php get_search_form(); ?></li>
     44
     45                                        <li>
     46                                            <?php comments_popup_link('No replies yet', '1 reply', '% replies', 'comments-link', 'Comments are off for this post' ); ?>
     47                                        </li>
     48
     49                                        <li class="wc-single-search">
     50                                            <strong>Search</strong>
     51                                            <?php get_search_form(); ?>
     52                                        </li>
    2753
    2854                                    </ul>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/tag.php

    r4038 r7861  
    1010
    1111            <h1 class="page-title"><?php
    12                 printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
     12                printf(
     13                    wp_kses_post( __( 'Tag Archives: %s', 'twentyten' ) ),
     14                    '<span>' . single_tag_title( '', false ) . '</span>'
     15                );
    1316            ?></h1>
    1417
     
    1720            <?php get_template_part( 'navigation-above' ); ?>
    1821
    19             <?php while ( have_posts() ) : the_post(); ?>
     22            <?php while ( have_posts() ) :
     23                the_post(); ?>
    2024
    2125                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-home.php

    r5896 r7861  
    1717            if ( function_exists( 'wcpt_has_wordcamps' ) &&
    1818                wcpt_has_wordcamps( array(
    19                     'post_status' => WordCamp_Loader::get_public_post_statuses(),
     19                    'post_status'    => WordCamp_Loader::get_public_post_statuses(),
    2020                    'posts_per_page' => 5,
    2121                    'meta_key'       => 'Start Date (YYYY-mm-dd)',
     
    3232
    3333            <ul>
    34             <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?>
     34            <?php while ( wcpt_wordcamps() ) :
     35                wcpt_the_wordcamp(); ?>
    3536
    3637                <li>
     
    4243            <?php endwhile; // wcpt_wordcamps ?>
    4344            </ul>
    44             <a href="<?php echo home_url( '/schedule/' ); ?>" class="more">More WordCamps &rarr;</a>
     45
     46            <a href="<?php echo esc_url( home_url( '/schedule/' ) ); ?>" class="more">
     47                More WordCamps &rarr;
     48            </a>
    4549
    4650            <?php endif; // wcpt_has_wordcamps ?>
     
    6064
    6165                $news = new WP_Query( array(
    62                     'posts_per_page' => 1,
     66                    'posts_per_page'      => 1,
    6367                    'ignore_sticky_posts' => 1,
    64                     'tax_query' => array(
     68                    'tax_query'           => array(
    6569                        array(
    66                             'taxonomy'  => 'post_format',
    67                             'field'     => 'slug',
    68                             'terms'     => $formats,
    69                             'operator'  => 'NOT IN',
    70                         )
    71                     )
     70                            'taxonomy' => 'post_format',
     71                            'field'    => 'slug',
     72                            'terms'    => $formats,
     73                            'operator' => 'NOT IN',
     74                        ),
     75                    ),
    7276                ) );
    7377            ?>
     
    7680                    <?php $news_class_last = 'last'; // (bool) ( ++$post_counter % 2 ) ? '' : 'last'; ?>
    7781
    78             <div class="news-item <?php echo $news_class_last; ?>">
    79                 <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    80                 <span class="wc-news-meta">by <?php the_author_posts_link(); ?> on <strong><?php the_date(); ?></strong></span>
    81                 <?php the_excerpt('keep reading'); ?>
    82                 <a href="<?php the_permalink(); ?>" class="wc-news-more">Keep Reading &raquo;</a>
    83             </div>
     82                    <div class="news-item <?php echo esc_attr( $news_class_last ); ?>">
     83                        <h4>
     84                            <a href="<?php the_permalink(); ?>">
     85                                <?php the_title(); ?>
     86                            </a>
     87                        </h4>
     88
     89                        <span class="wc-news-meta">
     90                            by <?php the_author_posts_link(); ?> on <strong><?php the_date(); ?></strong>
     91                        </span>
     92
     93                        <?php the_excerpt('keep reading'); ?>
     94
     95                        <a href="<?php the_permalink(); ?>" class="wc-news-more">
     96                            Keep Reading &raquo;
     97                        </a>
     98                    </div>
    8499
    85100                <?php endwhile; ?>
    86101            <?php endif; ?>
    87102
    88             <a href="<?php echo home_url( '/news/' ); ?>" class="more">More News &rarr;</a>
    89 
     103            <a href="<?php echo esc_url( home_url( '/news/' ) ); ?>" class="more">
     104                More News &rarr;
     105            </a>
    90106        </div><!-- .wc-news -->
    91107
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-past-wordcamps.php

    r5530 r7861  
    1  <?php
     1<?php
    22/**
    33 * Template Name: Past WordCamps
    44 *
    55 * A custom page template for the Past WordCamps list.
    6  *
    76 */
    87
     
    1211            <div id="content" role="main">
    1312
    14                 <?php if ( have_posts() ) : the_post(); ?>
     13                <?php if ( have_posts() ) :
     14                    the_post(); ?>
    1515
    1616                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    5151
    5252                        <ul class="wc-schedule-list">
    53                             <?php foreach ( $posts as $post ) : setup_postdata( $post ); ?>
     53                            <?php foreach ( $posts as $post ) :
     54                                setup_postdata( $post ); ?>
    5455
    5556                                <li>
     
    7475                    <?php wp_reset_postdata(); endforeach; ?>
    7576
    76                 <a href="<?php echo home_url( '/schedule/' ); ?>" class="wc-schedule-more"><span class="arrow">&larr;</span> Upcoming WordCamps</a>
     77                <a href="<?php echo esc_url( home_url( '/schedule/' ) ); ?>" class="wc-schedule-more">
     78                    <span class="arrow">&larr;</span>
     79                    Upcoming WordCamps
     80                </a>
    7781
    7882                <?php endif; // wcpt_has_wordcamps ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-schedule.php

    r5530 r7861  
    44 *
    55 * A custom page template for the Upcoming WordCamp schedule.
    6  *
    76 */
    87
     
    1211            <div id="content" role="main">
    1312
    14                 <?php if ( have_posts() ) : the_post(); ?>
     13                <?php if ( have_posts() ) :
     14                    the_post(); ?>
    1515
    1616                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    2626                    if ( function_exists( 'wcpt_has_wordcamps' ) &&
    2727                        wcpt_has_wordcamps( array(
    28                             'post_status' => WordCamp_Loader::get_public_post_statuses(),
     28                            'post_status'    => WordCamp_Loader::get_public_post_statuses(),
    2929                            'posts_per_page' => -1,
    3030                            'meta_key'       => 'Start Date (YYYY-mm-dd)',
     
    4646
    4747                        <ul class="wc-schedule-list">
    48                             <?php foreach ( $posts as $post ) : setup_postdata( $post ); ?>
     48                            <?php foreach ( $posts as $post ) :
     49                                setup_postdata( $post ); ?>
    4950
    5051                                <li>
     
    6970                    <?php wp_reset_postdata(); endforeach; ?>
    7071
    71                 <a href="<?php echo home_url( '/schedule/past-wordcamps/' ); ?>" class="wc-schedule-more">Past WordCamps &rarr;</a>
     72                <a href="<?php echo esc_url( home_url( '/schedule/past-wordcamps/' ) ); ?>" class="wc-schedule-more">
     73                    Past WordCamps &rarr;
     74                </a>
    7275
    7376                <?php endif; // wcpt_has_wordcamps ?>
Note: See TracChangeset for help on using the changeset viewer.