Skip to content

Commit a0a0eb4

Browse files
committed
Added jqueryui.com styles.
1 parent 8e8cd9b commit a0a0eb4

File tree

9 files changed

+341
-0
lines changed

9 files changed

+341
-0
lines changed

jqueryui.com/category.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php get_header(); ?>
2+
<div class="content-right twelve columns">
3+
<div id="content">
4+
5+
<?php if ( have_posts() ) : ?>
6+
7+
<header class="page-header">
8+
<h1 class="page-title"><?php
9+
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
10+
?></h1>
11+
12+
<?php
13+
$category_description = category_description();
14+
if ( ! empty( $category_description ) )
15+
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
16+
?>
17+
18+
<hr class="dots">
19+
</header>
20+
21+
<?php
22+
while ( have_posts() ) : the_post();
23+
get_template_part( 'content' );
24+
endwhile;
25+
?>
26+
27+
<?php twentyeleven_content_nav( 'nav-below' ); ?>
28+
29+
<?php else : ?>
30+
31+
<article id="post-0" class="post no-results not-found">
32+
<header class="entry-header">
33+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
34+
</header><!-- .entry-header -->
35+
36+
<div class="entry-content">
37+
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
38+
</div><!-- .entry-content -->
39+
</article><!-- #post-0 -->
40+
41+
<?php endif; ?>
42+
43+
</div>
44+
45+
<?php get_sidebar(); ?>
46+
47+
</div>
48+
49+
<?php get_footer(); ?>

jqueryui.com/content.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
/**
3+
* The default template for displaying content
4+
*/
5+
?>
6+
7+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
8+
<header class="entry-header">
9+
<div class="entry-meta">
10+
<?php
11+
// Hide category and tag text for pages on Search
12+
if ( 'post' == get_post_type() ) :
13+
echo jq_categories_and_parents();
14+
endif;
15+
?>
16+
</div>
17+
<?php if ( is_sticky() ) : ?>
18+
<hgroup>
19+
<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>
20+
<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
21+
</hgroup>
22+
<?php else : ?>
23+
<h1 class="entry-title">
24+
<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>
25+
</h1>
26+
<?php endif; ?>
27+
28+
<?php if ( 'post' == get_post_type() ) : ?>
29+
<div class="entry-posted">
30+
<?php twentyeleven_posted_on(); ?>
31+
</div>
32+
<?php endif; ?>
33+
</header>
34+
35+
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
36+
<div class="entry-summary">
37+
<?php the_excerpt(); ?>
38+
</div>
39+
<?php else : ?>
40+
<div class="entry-content">
41+
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
42+
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
43+
</div>
44+
<?php endif; ?>
45+
</article>

jqueryui.com/footer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php get_template_part( 'footer', 'ui' ); ?>

jqueryui.com/functions.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
if ( !defined( 'JQUERY_LIVE_SITE' ) ) {
4+
define( 'JQUERY_LIVE_SITE', 'blog.jqueryui.com' );
5+
}
6+
7+
// Add body classes found in postmeta.
8+
add_filter( 'body_class', function( $classes ) {
9+
$classes = array( 'jquery-ui' );
10+
11+
if ( is_page() )
12+
$classes[] = 'page-slug-' . sanitize_html_class( strtolower( get_queried_object()->post_name ) );
13+
if ( is_singular() && $post_classes = get_post_meta( get_queried_object_id(), 'body_class', true ) )
14+
$classes = array_merge( $classes, explode( ' ', $post_classes ) );
15+
16+
if ( is_archive() || is_search() ) {
17+
$classes[] = 'listing';
18+
}
19+
20+
return $classes;
21+
});

jqueryui.com/i/favicon.ico

1.12 KB
Binary file not shown.

jqueryui.com/index.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php get_header(); ?>
2+
3+
<div class="content-right twelve columns listing">
4+
<div id="content">
5+
<?php if ( have_posts() ) :
6+
while ( have_posts() ) : the_post();
7+
get_template_part( 'content', get_post_format() );
8+
endwhile;
9+
10+
twentyeleven_content_nav( 'nav-below' );
11+
else : ?>
12+
<article id="post-0" class="post no-results not-found">
13+
<header class="entry-header">
14+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
15+
</header>
16+
17+
<div class="entry-content">
18+
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
19+
<?php get_search_form(); ?>
20+
</div>
21+
</article>
22+
<?php endif; ?>
23+
</div>
24+
<?php get_sidebar(); ?>
25+
</div>
26+
27+
<?php get_footer(); ?>

jqueryui.com/sidebar.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div id="sidebar" class="widget-area" role="complementary">
2+
<aside class="widget">
3+
<h3 class="widget-title">Categories</h3>
4+
<ul>
5+
<?php wp_list_categories(array(
6+
'depth' => 1,
7+
'title_li' => ''
8+
)); ?>
9+
</ul>
10+
</aside>
11+
<aside class="widget">
12+
<h3 class="widget-title">Recent Posts</h3>
13+
<ul>
14+
<?php
15+
$recent_posts = wp_get_recent_posts();
16+
foreach( $recent_posts as $recent ){
17+
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a></li>';
18+
}
19+
?>
20+
</ul>
21+
</aside>
22+
<aside class="widget">
23+
<h3 class="widget-title">Archives</h3>
24+
<ul>
25+
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
26+
</ul>
27+
</aside>
28+
</div>

jqueryui.com/single.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php get_header(); ?>
2+
3+
<?php the_post(); ?>
4+
5+
<div class="content-right twelve columns">
6+
<div id="content">
7+
<h1 class="entry-title"><?php the_title(); ?></h1>
8+
<?php if ( 'post' == get_post_type() ) : ?>
9+
<div class="entry-posted">
10+
<?php twentyeleven_posted_on(); ?>
11+
</div>
12+
<?php endif; ?>
13+
<hr>
14+
15+
<?php get_template_part( 'content', 'page' ); ?>
16+
<?php comments_template( '', true ); ?>
17+
</div>
18+
<?php get_sidebar(); ?>
19+
</div>
20+
21+
<?php get_footer(); ?>

jqueryui.com/style.css

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
/*
2+
Theme Name: jqueryui-com
3+
Template: jquery
4+
*/
5+
6+
a,
7+
.title {
8+
color: #B24926;
9+
}
10+
11+
#content a:hover {
12+
color: #333;
13+
}
14+
15+
#banner-secondary p.intro {
16+
padding: 0;
17+
float: left;
18+
width: 50%;
19+
}
20+
21+
#banner-secondary .download-box {
22+
border: 1px solid #aaa;
23+
background: #333;
24+
background: -moz-linear-gradient(left, #333 0%, #444 100%);
25+
background: -webkit-linear-gradient(left, #333 0%, #444 100%);
26+
background: -o-linear-gradient(left, #333 0%, #444 100%);
27+
background: linear-gradient(to right, #333 0%, #444 100%);
28+
float: right;
29+
width: 40%;
30+
text-align: center;
31+
font-size: 20px;
32+
padding: 10px;
33+
border-radius: 5px;
34+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
35+
}
36+
37+
#banner-secondary .download-box h2 {
38+
color: #71D1FF;
39+
}
40+
41+
#banner-secondary .download-box .button {
42+
float: none;
43+
display: block;
44+
margin-top: 15px;
45+
}
46+
47+
#banner-secondary .download-box p {
48+
margin: 15px 0 5px;
49+
}
50+
51+
#banner-secondary .download-option {
52+
width: 45%;
53+
float: left;
54+
font-size: 16px;
55+
}
56+
57+
#banner-secondary .download-legacy {
58+
float: right;
59+
}
60+
61+
#banner-secondary .download-option span {
62+
display: block;
63+
font-size: 14px;
64+
color: #71D1FF;
65+
}
66+
67+
#content .dev-links {
68+
float: right;
69+
width: 30%;
70+
margin: -15px -25px .5em 1em;
71+
padding: 1em;
72+
border: 1px solid #666;
73+
border-width: 0 0 1px 1px;
74+
border-radius: 0 0 0 5px;
75+
box-shadow: -2px 2px 10px -2px #666;
76+
}
77+
78+
#content .dev-links ul {
79+
margin: 0;
80+
}
81+
82+
#content .dev-links li {
83+
padding: 0;
84+
margin: .25em 0 .25em 1em;
85+
background-image: none;
86+
}
87+
88+
.demo-list {
89+
float: right;
90+
width: 25%;
91+
}
92+
93+
.demo-list h2 {
94+
font-weight: normal;
95+
margin-bottom: 0;
96+
}
97+
98+
#content .demo-list ul {
99+
width: 100%;
100+
border-top: 1px solid #ccc;
101+
margin: 0;
102+
}
103+
104+
#content .demo-list li {
105+
border-bottom: 1px solid #ccc;
106+
margin: 0;
107+
padding: 0;
108+
background: #eee;
109+
}
110+
111+
#content .demo-list .active {
112+
background: #fff;
113+
}
114+
115+
#content .demo-list a {
116+
text-decoration: none;
117+
display: block;
118+
font-weight: bold;
119+
font-size: 13px;
120+
color: #3f3f3f;
121+
text-shadow: 1px 1px #fff;
122+
padding: 2% 4%;
123+
}
124+
125+
.demo-frame {
126+
width: 70%;
127+
height: 350px;
128+
}
129+
130+
.view-source a {
131+
cursor: pointer;
132+
}
133+
134+
.view-source > div {
135+
overflow: hidden;
136+
display: none;
137+
}
138+
139+
@media all and (max-width: 600px) {
140+
#banner-secondary p.intro,
141+
#banner-secondary .download-box {
142+
float: none;
143+
width: auto;
144+
}
145+
146+
#banner-secondary .download-box {
147+
overflow: auto;
148+
}
149+
}

0 commit comments

Comments
 (0)