Skip to content

Commit 077eedb

Browse files
committed
Updated plugins.jquery.com theme to track some template changes in plugins.jquery.com repo
1 parent 7644ae9 commit 077eedb

File tree

6 files changed

+140
-49
lines changed

6 files changed

+140
-49
lines changed

themes/jquery/searchform.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
<input type="text" id="search" name="s">
1212
<label for="search" class="text">Search <?php bloginfo( 'name' ); ?></label>
1313
<a href="#" class="icon icon-search" title="Submit Search">Submit Search</a>
14-
<input type="hidden" name="searchblogs" value="1,2,3,4,5,6,7,8,9,10,11,12">
1514
</form>

themes/plugins-jquery-com/content-single.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -9,57 +9,10 @@
99
?>
1010

1111
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12-
<header class="entry-header">
13-
<h1 class="entry-title"><?php the_title(); ?></h1>
14-
</header><!-- .entry-header -->
1512

1613
<div class="entry-content">
1714
<?php the_content(); ?>
1815
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
1916
</div><!-- .entry-content -->
2017

21-
<footer class="entry-meta">
22-
<?php
23-
/* translators: used between list items, there is a space after the comma */
24-
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
25-
26-
/* translators: used between list items, there is a space after the comma */
27-
$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
28-
if ( '' != $tag_list ) {
29-
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
30-
} elseif ( '' != $categories_list ) {
31-
$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
32-
} else {
33-
$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
34-
}
35-
36-
printf(
37-
$utility_text,
38-
$categories_list,
39-
$tag_list,
40-
esc_url( get_permalink() ),
41-
the_title_attribute( 'echo=0' ),
42-
get_the_author(),
43-
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
44-
);
45-
?>
46-
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
47-
48-
<?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
49-
<div id="author-info">
50-
<div id="author-avatar">
51-
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?>
52-
</div><!-- #author-avatar -->
53-
<div id="author-description">
54-
<h2><?php printf( esc_attr__( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
55-
<?php the_author_meta( 'description' ); ?>
56-
<div id="author-link">
57-
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
58-
<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
59-
</a>
60-
</div><!-- #author-link -->
61-
</div><!-- #author-description -->
62-
</div><!-- #entry-author-info -->
63-
<?php endif; ?>
64-
</footer><!-- .entry-meta -->
6518
</article><!-- #post-<?php the_ID(); ?> -->

themes/plugins-jquery-com/content.php

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php
2+
/**
3+
* The default template for displaying content
4+
*
5+
* @package WordPress
6+
* @subpackage Twenty_Eleven
7+
* @since Twenty Eleven 1.0
8+
*/
9+
?>
10+
11+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12+
<header class="entry-header">
13+
<?php if ( is_sticky() ) : ?>
14+
<hgroup>
15+
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
16+
<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
17+
</hgroup>
18+
<?php else : ?>
19+
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
20+
<?php endif; ?>
21+
22+
</header><!-- .entry-header -->
23+
24+
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
25+
<div class="entry-summary">
26+
<?php the_excerpt(); ?>
27+
</div><!-- .entry-summary -->
28+
<?php else : ?>
29+
<div class="entry-content">
30+
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
31+
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
32+
</div><!-- .entry-content -->
33+
<?php endif; ?>
34+
35+
<footer class="entry-meta">
36+
<?php $show_sep = false; ?>
37+
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
38+
<?php
39+
/* translators: used between list items, there is a space after the comma */
40+
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
41+
if ( $categories_list ):
42+
?>
43+
<span class="cat-links">
44+
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
45+
$show_sep = true; ?>
46+
</span>
47+
<?php endif; // End if categories ?>
48+
<?php
49+
/* translators: used between list items, there is a space after the comma */
50+
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
51+
if ( $tags_list ):
52+
if ( $show_sep ) : ?>
53+
<span class="sep"> | </span>
54+
<?php endif; // End if $show_sep ?>
55+
<span class="tag-links">
56+
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
57+
$show_sep = true; ?>
58+
</span>
59+
<?php endif; // End if $tags_list ?>
60+
<?php endif; // End if 'post' == get_post_type() ?>
61+
62+
<?php if ( comments_open() ) : ?>
63+
<?php if ( $show_sep ) : ?>
64+
<span class="sep"> | </span>
65+
<?php endif; // End if $show_sep ?>
66+
<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
67+
<?php endif; // End if comments_open() ?>
68+
69+
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
70+
</footer><!-- #entry-meta -->
71+
</article><!-- #post-<?php the_ID(); ?> -->

themes/plugins-jquery-com/search.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
/**
3+
* The template for displaying Search Results pages.
4+
*
5+
* @package WordPress
6+
* @subpackage Twenty_Eleven
7+
* @since Twenty Eleven 1.0
8+
*/
9+
10+
get_header(); ?>
11+
12+
<section id="body" class="clearfix">
13+
<div class="inner" role="main">
14+
15+
<?php if ( have_posts() ) : ?>
16+
17+
<header class="page-header">
18+
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
19+
</header>
20+
21+
<?php /* Start the Loop */ ?>
22+
<?php while ( have_posts() ) : the_post(); ?>
23+
24+
<?php switch_to_blog($post->blog_id); ?>
25+
<?php
26+
/* Include the Post-Format-specific template for the content.
27+
* If you want to overload this in a child theme then include a file
28+
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
29+
*/
30+
get_template_part( 'content', get_post_format() );
31+
?>
32+
33+
<?php endwhile; ?>
34+
35+
<?php twentyeleven_content_nav( 'nav-below' ); ?>
36+
37+
<?php else : ?>
38+
39+
<article id="post-0" class="post no-results not-found">
40+
<header class="entry-header">
41+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
42+
</header><!-- .entry-header -->
43+
44+
<div class="entry-content">
45+
<p><?php _e( 'Sorry, but nothing matched your search criteria.', 'twentyeleven' ); ?></p>
46+
</div><!-- .entry-content -->
47+
</article><!-- #post-0 -->
48+
49+
<?php endif; ?>
50+
51+
</div><!-- .inner -->
52+
</section><!-- #body -->
53+
54+
<?php get_footer(); ?>

themes/plugins-jquery-com/single.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
get_header(); ?>
1111

12-
<div id="body" class="clearfix">
12+
<div id="body" class="clearfix sidebar-left">
1313
<div class="inner" role="main">
1414

1515
<?php while ( have_posts() ) : the_post(); ?>
@@ -19,6 +19,9 @@
1919
<?php endwhile; // end of the loop. ?>
2020

2121
</div><!-- .inner -->
22+
23+
<div id="sidebar" class="widget-area" role="complementary">
24+
</div><!-- #sidebar -->
2225
</div><!-- #body -->
2326

2427
<?php get_footer(); ?>

themes/plugins-jquery-com/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@
22
Theme Name: plugins-jquery-com
33
Template: jquery
44
*/
5+
6+
.single h1 { font-size: 200%; margin-bottom: 0.5em; }
7+
.single hr { margin: 0; margin-bottom: 0.5em; }
8+
9+
.single .block { border-top: 1px solid #CCC; padding-top: 0.5em; font-size: 1.2em; margin-top: 4px; }
10+
.single .block h2 { font-size: 90%; font-weight: normal; color: #999; margin-bottom: 8px; }
11+
.single .right { text-align: right; }
12+
13+
.single .block ul, .single .block li { list-style-type: none; margin: 0; padding: 0; }
14+
.single .block ul { font-size: 110%; margin-bottom: 1em; }
15+
.single .block li { margin: 0.6em 0; }

0 commit comments

Comments
 (0)