%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyeleven' ),
'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
diff --git a/wp-content/themes/twentyeleven/content-link.php b/wp-content/themes/twentyeleven/content-link.php
index d66b73c01..9eda54181 100644
--- a/wp-content/themes/twentyeleven/content-link.php
+++ b/wp-content/themes/twentyeleven/content-link.php
@@ -11,7 +11,7 @@
post_type ) : ?>
-
+
-
+
-
+
-
+
'posts_per_page' => 1,
'post__in' => $sticky,
);
-
+
$featured = new WP_Query();
$featured->query( $featured_args );
-
+
// Let's roll.
if ( $sticky ) :
-
+
$featured->the_post();
-
+
// We're going to add a class to our featured post for featured images
// by default it'll have no class though
$feature_class = '';
@@ -54,7 +54,7 @@ get_header(); ?>
}
}
?>
-
+
@@ -69,15 +69,15 @@ get_header(); ?>
+ }
+ ?>
-
+
-
+
$recent = new WP_Query();
$recent->query( $recent_args );
$counter = 0;
-
+
while ( $recent->have_posts() ) : $recent->the_post();
// set $more to 0 in order to only get the first part of the post
global $more;
- $more = 0;
+ $more = 0;
$counter++;
-
+
if ( 1 == $counter ) :
get_template_part( 'content', get_post_format() );
echo '
-
+
diff --git a/wp-content/themes/twentyeleven/sidebar.php b/wp-content/themes/twentyeleven/sidebar.php
index 88f421b7d..3356a53cb 100644
--- a/wp-content/themes/twentyeleven/sidebar.php
+++ b/wp-content/themes/twentyeleven/sidebar.php
@@ -25,4 +25,3 @@
-
\ No newline at end of file
diff --git a/wp-content/themes/twentyeleven/widgets.php b/wp-content/themes/twentyeleven/widgets.php
index c25e8c0d3..0cb5aaefc 100644
--- a/wp-content/themes/twentyeleven/widgets.php
+++ b/wp-content/themes/twentyeleven/widgets.php
@@ -5,7 +5,7 @@
* @see http://codex.wordpress.org/Widgets_API#Developing_Widgets
*/
class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
-
+
/**
* Constructor
*
@@ -15,18 +15,18 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
$widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside and Link posts', 'twentyeleven' ) );
$this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops );
$this->alt_option_name = 'widget_twentyeleven_ephemera';
-
+
add_action( 'save_post', array(&$this, 'flush_widget_cache' ) );
add_action( 'deleted_post', array(&$this, 'flush_widget_cache' ) );
add_action( 'switch_theme', array(&$this, 'flush_widget_cache' ) );
-
+
}
/**
* Outputs the HTML for this widget.
*
- * @param array An array of standard parameters for widgets in this theme
- * @param array An array of settings for this widget instance
+ * @param array An array of standard parameters for widgets in this theme
+ * @param array An array of settings for this widget instance
* @return void Echoes it's output
**/
function widget( $args, $instance ) {
@@ -43,14 +43,14 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
return;
}
- ob_start();
+ ob_start();
extract( $args, EXTR_SKIP );
-
+
$title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Ephemera' ) : $instance['title'], $instance, $this->id_base);
-
+
if ( ! isset( $instance['number'] ) )
$instance['number'] = '10';
-
+
if ( ! $number = absint( $instance['number'] ) )
$number = 10;
@@ -73,33 +73,33 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
$ephemera->query( $ephemera_args );
if ( $ephemera->have_posts() ) :
-
+
echo $before_widget;
echo $before_title;
echo $title; // Can set this with a widget option, or omit altogether
echo $after_title;
global $post;
-
+
?>
-
have_posts() ) : $ephemera->the_post(); ?>
-
+
ID ) ) : ?>
-
+
- comments →', 'twentyeleven' ), __( '1 comment →', 'twentyeleven' ), __( '% comments →', 'twentyeleven' ) ); ?> - + ID ) ) : ?>
- @@ -108,15 +108,15 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { comments →', 'twentyeleven' ), __( '1 comment →', 'twentyeleven' ), __( '% comments →', 'twentyeleven' ) ); ?> - + - +