Changeset 7861
- Timestamp:
- 11/16/2018 09:24:02 PM (7 years ago)
- 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 12 12 <h1 class="page-title"> 13 13 <?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 ); ?> 15 18 <?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 ); ?> 17 23 <?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 ); ?> 19 28 <?php else : ?> 20 <?php_e( 'Blog Archives', 'twentyten' ); ?>29 <?php esc_html_e( 'Blog Archives', 'twentyten' ); ?> 21 30 <?php endif; ?> 22 31 </h1> … … 28 37 <?php get_template_part( 'navigation-above' ); ?> 29 38 30 <?php while ( have_posts() ) : the_post(); ?> 39 <?php while ( have_posts() ) : 40 the_post(); ?> 31 41 32 42 <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 10 10 <?php if ( have_posts() ) the_post(); ?> 11 11 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> 13 22 14 23 <?php … … 20 29 </div><!-- #author-avatar --> 21 30 <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> 23 37 <?php the_author_meta( 'description' ); ?> 24 38 </div><!-- #author-description --> … … 33 47 <?php get_template_part( 'navigation-above' ); ?> 34 48 35 <?php while ( have_posts() ) : the_post(); ?> 49 <?php while ( have_posts() ) : 50 the_post(); ?> 36 51 37 52 <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 9 9 <div id="content" role="main" class="group"> 10 10 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 14 18 <?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 18 26 ?> 19 27 … … 22 30 <?php get_template_part( 'navigation-above' ); ?> 23 31 24 <?php while ( have_posts() ) : the_post(); ?> 32 <?php while ( have_posts() ) : 33 the_post(); ?> 25 34 26 35 <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 7 7 * handled by a callback to twentyten_comment which is 8 8 * located in the functions.php file. 9 *10 9 */ 11 10 ?> … … 13 12 <div id="comments"> 14 13 <?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> 16 17 </div><!-- #comments --> 17 18 <?php 18 /* Stop the rest of comments.php from being processed, 19 /* 20 * Stop the rest of comments.php from being processed, 19 21 * but don't kill the script entirely -- we still have 20 22 * to fully load the template. … … 29 31 30 32 <?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> 35 42 36 43 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> … … 43 50 <ol class="commentlist"> 44 51 <?php 45 /* Loop through and list the comments. Tell wp_list_comments() 52 /* 53 * Loop through and list the comments. Tell wp_list_comments() 46 54 * to use twentyten_comment() to format the comments. 47 55 * If you want to overload this in a child theme then you can … … 62 70 <?php else : // or, if we don't have comments: 63 71 64 /* If there are no comments and comments are closed, 72 /* 73 * If there are no comments and comments are closed, 65 74 * let's leave a little note, shall we? 66 75 */ 67 76 if ( ! comments_open() ) : 68 77 ?> 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> 70 81 <?php endif; // end ! comments_open() ?> 71 82 -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/content-image.php
r842 r7861 25 25 <?php if ( count( get_the_category() ) ) : ?> 26 26 <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 ); ?> 28 32 </span> 29 33 <span class="meta-sep">|</span> … … 34 38 ?> 35 39 <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 ); ?> 37 45 </span> 38 46 <?php endif; ?> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/content.php
r4038 r7861 11 11 12 12 <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'); ?> 14 14 </div><!-- .entry-meta --> 15 15 … … 31 31 <?php if ( count( get_the_category() ) ) : ?> 32 32 <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 ); ?> 34 38 </span> 35 39 <span class="meta-sep">|</span> … … 40 44 ?> 41 45 <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 ); ?> 43 51 </span> 44 52 <span class="meta-sep">|</span> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
r7671 r7861 618 618 <?php echo get_avatar( $comment, 60 ); ?> 619 619 <?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() ) ) 622 622 ); ?> 623 623 </div> … … 630 630 <?php endif; ?> 631 631 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' ), ' ' ); ?> 637 645 </div> 638 646 … … 715 723 } 716 724 717 echo "$start_month $start_day";725 echo esc_html( "$start_month $start_day" ); 718 726 719 727 if ( $end_day ) { 720 728 if ( $show_year && $start_year !== $end_year ) { 721 echo ", $start_year";729 echo esc_html( ", $start_year" ); 722 730 } 723 731 … … 725 733 726 734 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 ); 731 739 732 740 if ( $show_year ) { 733 echo ", $end_year";741 echo esc_html( ", $end_year" ); 734 742 } 735 743 } elseif ( $show_year ) { 736 echo ", $start_year";744 echo esc_html( ", $start_year" ); 737 745 } 738 746 } -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/header.php
r6086 r7861 33 33 $site_description = get_bloginfo( 'description', 'display' ); 34 34 if ( $site_description && ( is_home() || is_front_page() ) ) 35 echo " | $site_description";35 echo esc_html( " | $site_description" ); 36 36 37 37 // 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 } 40 41 41 42 ?></title> … … 43 44 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 44 45 <?php 45 /* Always have wp_head() just before the closing </head> 46 /* 47 * Always have wp_head() just before the closing </head> 46 48 * tag of your theme, or you will break many plugins, which 47 49 * generally use this hook to add elements to <head> such … … 83 85 <div id="masthead" class="group"> 84 86 <?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> 86 90 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">'; ?> 89 93 <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> 91 97 </span> 92 < /<?php echo $heading_tag; ?>>98 <?php echo $use_heading_tag ? '</h1>' : '</div>'; ?> 93 99 94 100 <div id="access" role="navigation"> 95 101 <?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> 97 105 <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> 98 106 </div><!-- #access --> … … 111 119 </p> 112 120 <p class="wc-hero-actions"> 113 <a href="<?php echo home_url( '/about/'); ?>" class="wc-hero-learnmore">Learn More</a> or114 <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> 115 123 </p> 116 124 </div><!-- .wc-hero-intro --> … … 120 128 // Get image attachments from page Home. 121 129 $attachments = get_posts( array( 122 'post_type' => 'attachment',130 'post_type' => 'attachment', 123 131 'posts_per_page' => 10, 124 'post_parent' => get_the_ID(),132 'post_parent' => get_the_ID(), 125 133 'post_mime_type' => 'image', 126 'orderby' => 'date',127 'order' => 'DESC',134 'orderby' => 'date', 135 'order' => 'DESC', 128 136 ) ); 129 137 ?> … … 162 170 <?php elseif ( WordCamp_Central_Theme::get_subscription_status() == false ) : ?> 163 171 <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" /> 168 177 </form> 169 178 <?php endif; // get_subscription_status ?> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/index.php
r4038 r7861 13 13 <?php get_template_part( 'navigation-above' ); ?> 14 14 15 <?php while ( have_posts() ) : the_post(); ?> 15 <?php while ( have_posts() ) : 16 the_post(); ?> 16 17 17 18 <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 16 16 ?> 17 17 18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 19 18 <?php 19 if ( 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 ?> 20 27 <?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( __( '← %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( __( '← %s', 'twentyten' ) ), 38 get_the_title( $post->post_parent ) 39 ); 40 ?> 41 </a> 42 </p> 25 43 <?php endif; ?> 26 44 … … 33 51 <li> 34 52 <?php 53 35 54 if ( wp_attachment_is_image() ) { 36 55 $metadata = wp_get_attachment_metadata(); 37 printf( __( 'Full size is %s pixels', 'twentyten' ), 38 sprintf( '<a href="%1$s" title="%2$s">%3$s × %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 × %4$s</a>', 60 esc_url( wp_get_attachment_url() ), 40 61 esc_attr( __( 'Link to full-size image', 'twentyten' ) ), 41 $metadata['width'],42 $metadata['height']62 absint( $metadata['width'] ), 63 absint( $metadata['height'] ) 43 64 ) 44 65 ); 45 66 } 46 ?> 67 68 ?> 47 69 </li> 48 70 <li class="wc-single-search"><strong>Search</strong> <?php get_search_form(); ?></li> … … 77 99 } 78 100 ?> 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> 84 110 85 111 <div id="nav-below" class="navigation"> … … 88 114 </div><!-- #nav-below --> 89 115 <?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> 91 119 <?php endif; ?> 92 120 </div><!-- .entry-attachment --> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/navigation-below.php
r4038 r7861 5 5 ?> 6 6 <?php /* Display navigation to next/previous pages when applicable */ ?> 7 <?php if ( 7 <?php if ( $wp_query->max_num_pages > 1 ) : ?> 8 8 <div id="nav-below" class="navigation"> 9 9 <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav arrow">←</span> Older posts', 'twentyten' ) ); ?></div> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/page.php
r4038 r7861 9 9 10 10 <?php if ( have_posts() ) : ?> 11 <?php while ( have_posts() ) : the_post(); ?> 11 <?php while ( have_posts() ) : 12 the_post(); ?> 12 13 13 14 <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 8 8 <div id="container" class="group"> 9 9 <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> 11 16 12 17 <?php get_search_form(); ?> … … 16 21 <?php get_template_part( 'navigation-above' ); ?> 17 22 18 <?php while ( have_posts() ) : the_post(); ?> 23 <?php while ( have_posts() ) : 24 the_post(); ?> 19 25 20 26 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 31 37 32 38 <div id="post-0" class="post no-results not-found"> 33 <h2 class="entry-title"><?php _e( 'We couldn’t find anything!', 'twentyten' ); ?></h2> 39 <h2 class="entry-title"> 40 <?php esc_html_e( 'We couldn’t find anything!', 'twentyten' ); ?> 41 </h2> 42 34 43 <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> 37 51 </div><!-- .entry-content --> 38 52 </div><!-- #post-0 --> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/sidebar-footer.php
r4038 r7861 6 6 7 7 <?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 9 10 * have widgets. So let's check that first. 10 11 * -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/sidebar-schedule.php
r2898 r7861 8 8 <h3>Planned WordCamps</h3> 9 9 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> 12 13 13 14 <?php … … 15 16 $args = array( 16 17 'posts_per_page' => -1, 17 'post_status' => WordCamp_Loader::get_pre_planning_post_statuses(),18 'post_status' => WordCamp_Loader::get_pre_planning_post_statuses(), 18 19 'meta_key' => 'Start Date (YYYY-mm-dd)', 19 20 'orderby' => 'meta_value', … … 32 33 33 34 <?php wcpt_has_wordcamps( $args ); ?> 34 <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?> 35 <?php while ( wcpt_wordcamps() ) : 36 wcpt_the_wordcamp(); ?> 35 37 36 38 <li> … … 54 56 // and run the query again 55 57 $args['meta_query'][0]['compare'] = '<'; 56 $args['orderby'] = 'date';58 $args['orderby'] = 'date'; 57 59 wcpt_has_wordcamps( $args ); 58 60 ?> 59 61 60 <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?> 62 <?php while ( wcpt_wordcamps() ) : 63 wcpt_the_wordcamp(); ?> 61 64 62 65 <li> … … 76 79 77 80 <li> 78 <?php echo wptexturize( 79 wpautop( 'Don’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’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>! 81 82 </li> 82 83 -
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 11 11 12 12 <?php if ( have_posts() ) : ?> 13 <?php while ( have_posts() ) : the_post(); ?> 13 <?php while ( have_posts() ) : 14 the_post(); ?> 14 15 15 16 <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 107 107 <div class="wc-single-past"> 108 108 109 <h3><?php echo $wordcamp_title; ?></h3> 109 <h3> 110 <?php echo esc_html( $wordcamp_title ); ?> 111 </h3> 112 110 113 <ul> 111 114 -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/single.php
r4038 r7861 7 7 8 8 <div id="container"> 9 <a href="<?php echo home_url( '/news/' ); ?>" class="wc-back-link"><span class="arrow">←</span> Back to WordCamp News</a> 9 <a href="<?php echo esc_url( home_url( '/news/' ) ); ?>" class="wc-back-link"> 10 <span class="arrow">←</span> 11 Back to WordCamp News 12 </a> 10 13 11 14 <div id="content" role="main"> 12 15 13 16 <?php if ( have_posts() ) : ?> 14 <?php while ( have_posts() ) : the_post(); ?> 17 <?php while ( have_posts() ) : 18 the_post(); ?> 15 19 16 20 <div class="entry-meta"> 17 21 <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 22 41 <?php if ( has_tag() ) : ?> 23 42 <li><strong>Tags</strong> <?php the_tags(' '); ?></li> 24 43 <?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> 27 53 28 54 </ul> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/tag.php
r4038 r7861 10 10 11 11 <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 ); 13 16 ?></h1> 14 17 … … 17 20 <?php get_template_part( 'navigation-above' ); ?> 18 21 19 <?php while ( have_posts() ) : the_post(); ?> 22 <?php while ( have_posts() ) : 23 the_post(); ?> 20 24 21 25 <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 17 17 if ( function_exists( 'wcpt_has_wordcamps' ) && 18 18 wcpt_has_wordcamps( array( 19 'post_status' => WordCamp_Loader::get_public_post_statuses(),19 'post_status' => WordCamp_Loader::get_public_post_statuses(), 20 20 'posts_per_page' => 5, 21 21 'meta_key' => 'Start Date (YYYY-mm-dd)', … … 32 32 33 33 <ul> 34 <?php while ( wcpt_wordcamps() ) : wcpt_the_wordcamp(); ?> 34 <?php while ( wcpt_wordcamps() ) : 35 wcpt_the_wordcamp(); ?> 35 36 36 37 <li> … … 42 43 <?php endwhile; // wcpt_wordcamps ?> 43 44 </ul> 44 <a href="<?php echo home_url( '/schedule/' ); ?>" class="more">More WordCamps →</a> 45 46 <a href="<?php echo esc_url( home_url( '/schedule/' ) ); ?>" class="more"> 47 More WordCamps → 48 </a> 45 49 46 50 <?php endif; // wcpt_has_wordcamps ?> … … 60 64 61 65 $news = new WP_Query( array( 62 'posts_per_page' => 1,66 'posts_per_page' => 1, 63 67 'ignore_sticky_posts' => 1, 64 'tax_query' => array(68 'tax_query' => array( 65 69 array( 66 'taxonomy' 67 'field' 68 'terms' 69 'operator' 70 ) 71 ) 70 'taxonomy' => 'post_format', 71 'field' => 'slug', 72 'terms' => $formats, 73 'operator' => 'NOT IN', 74 ), 75 ), 72 76 ) ); 73 77 ?> … … 76 80 <?php $news_class_last = 'last'; // (bool) ( ++$post_counter % 2 ) ? '' : 'last'; ?> 77 81 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 »</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 » 97 </a> 98 </div> 84 99 85 100 <?php endwhile; ?> 86 101 <?php endif; ?> 87 102 88 <a href="<?php echo home_url( '/news/' ); ?>" class="more">More News →</a> 89 103 <a href="<?php echo esc_url( home_url( '/news/' ) ); ?>" class="more"> 104 More News → 105 </a> 90 106 </div><!-- .wc-news --> 91 107 -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-past-wordcamps.php
r5530 r7861 1 1 <?php 2 2 /** 3 3 * Template Name: Past WordCamps 4 4 * 5 5 * A custom page template for the Past WordCamps list. 6 *7 6 */ 8 7 … … 12 11 <div id="content" role="main"> 13 12 14 <?php if ( have_posts() ) : the_post(); ?> 13 <?php if ( have_posts() ) : 14 the_post(); ?> 15 15 16 16 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 51 51 52 52 <ul class="wc-schedule-list"> 53 <?php foreach ( $posts as $post ) : setup_postdata( $post ); ?> 53 <?php foreach ( $posts as $post ) : 54 setup_postdata( $post ); ?> 54 55 55 56 <li> … … 74 75 <?php wp_reset_postdata(); endforeach; ?> 75 76 76 <a href="<?php echo home_url( '/schedule/' ); ?>" class="wc-schedule-more"><span class="arrow">←</span> Upcoming WordCamps</a> 77 <a href="<?php echo esc_url( home_url( '/schedule/' ) ); ?>" class="wc-schedule-more"> 78 <span class="arrow">←</span> 79 Upcoming WordCamps 80 </a> 77 81 78 82 <?php endif; // wcpt_has_wordcamps ?> -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-schedule.php
r5530 r7861 4 4 * 5 5 * A custom page template for the Upcoming WordCamp schedule. 6 *7 6 */ 8 7 … … 12 11 <div id="content" role="main"> 13 12 14 <?php if ( have_posts() ) : the_post(); ?> 13 <?php if ( have_posts() ) : 14 the_post(); ?> 15 15 16 16 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 26 26 if ( function_exists( 'wcpt_has_wordcamps' ) && 27 27 wcpt_has_wordcamps( array( 28 'post_status' => WordCamp_Loader::get_public_post_statuses(),28 'post_status' => WordCamp_Loader::get_public_post_statuses(), 29 29 'posts_per_page' => -1, 30 30 'meta_key' => 'Start Date (YYYY-mm-dd)', … … 46 46 47 47 <ul class="wc-schedule-list"> 48 <?php foreach ( $posts as $post ) : setup_postdata( $post ); ?> 48 <?php foreach ( $posts as $post ) : 49 setup_postdata( $post ); ?> 49 50 50 51 <li> … … 69 70 <?php wp_reset_postdata(); endforeach; ?> 70 71 71 <a href="<?php echo home_url( '/schedule/past-wordcamps/' ); ?>" class="wc-schedule-more">Past WordCamps →</a> 72 <a href="<?php echo esc_url( home_url( '/schedule/past-wordcamps/' ) ); ?>" class="wc-schedule-more"> 73 Past WordCamps → 74 </a> 72 75 73 76 <?php endif; // wcpt_has_wordcamps ?>
Note: See TracChangeset
for help on using the changeset viewer.