compass-wordpress 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,73 @@
1
+
2
+ STARKERS
3
+
4
+ - - - - - - - - - - - - - - - - - - - - - - -
5
+
6
+ Starkers is a bare-bones WordPress theme created
7
+ to act as a starting point for the theme designer.
8
+ markup, Starkers is the perfect 'blank slate' for
9
+ your WordPress projects, as it's a stripped-back
10
+ version of the 'default' theme.
11
+ so you can use it for whatever you like — even
12
+ your commercial projects.
13
+
14
+ For full details, and for instructions, please see:
15
+ http://elliotjaystocks.com/starkers/
16
+
17
+ - - - - - - - - - - - - - - - - - - - - - - -
18
+
19
+ Version 2.8.5, updated 11.11.2009
20
+
21
+ Changed brand-wide typeface to FS Clerkenwell
22
+
23
+ - - - - - - - - - - - - - - - - - - - - - - -
24
+
25
+ Version 2.8.2, revision 1, updated 23.07.2009
26
+
27
+ Corrected: closing </div> tag in comments.php on line 87
28
+
29
+ - - - - - - - - - - - - - - - - - - - - - - -
30
+
31
+ Version 2.8.2 for WP2.8.2, updated 21.07.2009
32
+
33
+ Removed: Extra '>' in comments.php on line 50
34
+ Changed: Commented out 'div, ul, li { position:relative }' in layout.css
35
+ Added: GPL License included as '_LICENSE.txt'
36
+ Renamed: 'READ_ME.txt' becomes '_READ_ME.txt'
37
+
38
+ - - - - - - - - - - - - - - - - - - - - - - -
39
+
40
+ Version 2.8.1 for WP2.8.1, updated 12.07.2009
41
+
42
+ Re-written from scratch, using the 'Default'
43
+ theme included with WordPress 2.8 as a basis.
44
+
45
+ - - - - - - - - - - - - - - - - - - - - - - -
46
+
47
+ Versions 2.3 - 2.7
48
+
49
+ Non-existant. Starkers is now named according to
50
+ the version of WordPress with which it is compatible.
51
+
52
+ - - - - - - - - - - - - - - - - - - - - - - -
53
+
54
+ Version 2.2 for WP2.6.2, updated 02.11.2008
55
+
56
+ Fixed: prev / next links typo in archive.php & index.php
57
+ Fixed: closing </p> tag in comments.php
58
+
59
+ - - - - - - - - - - - - - - - - - - - - - - -
60
+
61
+ Version 2.1 for WP2.6.2, updated 29.09.2008
62
+
63
+ Added: WP image-alignment and caption CSS
64
+ Added: Page listing
65
+ Removed: _comments-popup.php
66
+ Fixed: prev / next links typo
67
+ Fixed: duplicate 'h5' typo in reset.css
68
+
69
+ - - - - - - - - - - - - - - - - - - - - - - -
70
+
71
+ Enjoy!
72
+
73
+ ~ Elliot Jay Stocks
@@ -0,0 +1,3 @@
1
+ @import blueprint/reset.sass
2
+ @import compass/utilities.sass
3
+ @import extensions/border_radius.sass
@@ -0,0 +1,63 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header();
8
+ ?>
9
+
10
+ <?php if (have_posts()) : ?>
11
+
12
+ <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
13
+ <?php /* If this is a category archive */ if (is_category()) { ?>
14
+ <h2>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
15
+ <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
16
+ <h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
17
+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
18
+ <h2>Archive for <?php the_time('F jS, Y'); ?></h2>
19
+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
20
+ <h2>Archive for <?php the_time('F, Y'); ?></h2>
21
+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
22
+ <h2>Archive for <?php the_time('Y'); ?></h2>
23
+ <?php /* If this is an author archive */ } elseif (is_author()) { ?>
24
+ <h2>Author Archive</h2>
25
+ <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
26
+ <h2>Blog Archives</h2>
27
+ <?php } ?>
28
+
29
+
30
+ <?php next_posts_link('&laquo; Older Entries') ?> | <?php previous_posts_link('Newer Entries &raquo;') ?>
31
+
32
+ <?php while (have_posts()) : the_post(); ?>
33
+
34
+ <div <?php post_class() ?>>
35
+ <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
36
+ <p><?php the_time('l, F jS, Y') ?></p>
37
+ <?php the_content() ?>
38
+ <p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
39
+ </div>
40
+
41
+ <?php endwhile; ?>
42
+
43
+ <?php next_posts_link('&laquo; Older Entries') ?> | <?php previous_posts_link('Newer Entries &raquo;') ?>
44
+
45
+ <?php else :
46
+
47
+ if ( is_category() ) { // If this is a category archive
48
+ printf("<h2>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
49
+ } else if ( is_date() ) { // If this is a date archive
50
+ echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
51
+ } else if ( is_author() ) { // If this is a category archive
52
+ $userdata = get_userdatabylogin(get_query_var('author_name'));
53
+ printf("<h2>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
54
+ } else {
55
+ echo("<h2>No posts found.</h2>");
56
+ }
57
+ get_search_form();
58
+
59
+ endif;
60
+ ?>
61
+
62
+ <?php get_sidebar(); ?>
63
+ <?php get_footer(); ?>
@@ -0,0 +1,24 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+ /*
7
+ Template Name: Archives
8
+ */
9
+ ?>
10
+
11
+ <?php get_header(); ?>
12
+ <?php get_search_form(); ?>
13
+
14
+ <h2>Archives by Month:</h2>
15
+ <ul>
16
+ <?php wp_get_archives('type=monthly'); ?>
17
+ </ul>
18
+
19
+ <h2>Archives by Subject:</h2>
20
+ <ul>
21
+ <?php wp_list_categories(); ?>
22
+ </ul>
23
+
24
+ <?php get_footer(); ?>
@@ -0,0 +1,89 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ // Do not delete these lines
8
+ if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
9
+ die ('Please do not load this page directly. Thanks!');
10
+
11
+ if ( post_password_required() ) { ?>
12
+ <p class="alert">This post is password protected. Enter the password to view comments.</p>
13
+ <?php
14
+ return;
15
+ }
16
+ ?>
17
+
18
+ <!-- You can start editing here. -->
19
+
20
+ <?php if ( have_comments() ) : ?>
21
+ <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
22
+
23
+ <?php previous_comments_link() ?> | <?php next_comments_link() ?>
24
+
25
+ <ol class="commentlist">
26
+ <?php wp_list_comments(); ?>
27
+ </ol>
28
+
29
+ <?php previous_comments_link() ?> | <?php next_comments_link() ?>
30
+
31
+ <?php else : // this is displayed if there are no comments so far ?>
32
+
33
+ <?php if ( comments_open() ) : ?>
34
+ <!-- If comments are open, but there are no comments. -->
35
+
36
+ <?php else : // comments are closed ?>
37
+ <!-- If comments are closed. -->
38
+ <p class="nocomments">Comments are closed.</p>
39
+
40
+ <?php endif; ?>
41
+ <?php endif; ?>
42
+
43
+
44
+ <?php if ( comments_open() ) : ?>
45
+
46
+ <div id="respond">
47
+
48
+ <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
49
+
50
+ <p class="cancel-comment-reply"><?php cancel_comment_reply_link(); ?></p>
51
+
52
+ <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
53
+ <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
54
+ <?php else : ?>
55
+
56
+ <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
57
+
58
+ <?php if ( is_user_logged_in() ) : ?>
59
+
60
+ <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
61
+
62
+ <?php else : ?>
63
+
64
+ <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
65
+ <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
66
+
67
+ <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
68
+ <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
69
+
70
+ <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
71
+ <label for="url"><small>Website</small></label></p>
72
+
73
+ <?php endif; ?>
74
+
75
+ <!--<p><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>-->
76
+
77
+ <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
78
+
79
+ <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
80
+ <?php comment_id_fields(); ?>
81
+ <?php do_action('comment_form', $post->ID); ?>
82
+
83
+ </form>
84
+
85
+ <?php endif; // If registration required and not logged in ?>
86
+
87
+ </div>
88
+
89
+ <?php endif; // if you delete this the sky will fall on your head ?>
@@ -0,0 +1,47 @@
1
+ !default_border_radius ||= 5px
2
+
3
+ // Round all borders by amount
4
+ =border-radius(!radius = !default_border_radius)
5
+ border-radius= !radius
6
+ -moz-border-radius= !radius
7
+ -webkit-border-radius= !radius
8
+
9
+ // Round radius at position by amount.
10
+ // values for !vert: "top", "bottom"
11
+ // values for !horz: "left", "right
12
+ =border-corner-radius(!vert, !horz, !radius = !default_border_radius)
13
+ border-#{!vert}-#{!horz}-radius= !radius
14
+ -moz-border-radius-#{!vert}#{!horz}= !radius
15
+ -webkit-border-#{!vert}-#{!horz}-radius= !radius
16
+
17
+ =border-top-left-radius(!radius = !default_border_radius)
18
+ +border-corner-radius("top", "left", !radius)
19
+
20
+ =border-top-right-radius(!radius = !default_border_radius)
21
+ +border-corner-radius("top", "right", !radius)
22
+
23
+ =border-bottom-left-radius(!radius = !default_border_radius)
24
+ +border-corner-radius("bottom", "left", !radius)
25
+
26
+ =border-bottom-right-radius(!radius = !default_border_radius)
27
+ +border-corner-radius("bottom", "right", !radius)
28
+
29
+ // Round top corners by amount
30
+ =border-top-radius(!radius = !default_border_radius)
31
+ +border-top-left-radius(!radius)
32
+ +border-top-right-radius(!radius)
33
+
34
+ // Round right corners by amount
35
+ =border-right-radius(!radius = !default_border_radius)
36
+ +border-top-right-radius(!radius)
37
+ +border-bottom-right-radius(!radius)
38
+
39
+ // Round bottom corners by amount
40
+ =border-bottom-radius(!radius = !default_border_radius)
41
+ +border-bottom-left-radius(!radius)
42
+ +border-bottom-right-radius(!radius)
43
+
44
+ // Round left corners by amount
45
+ =border-left-radius(!radius = !default_border_radius)
46
+ +border-top-left-radius(!radius)
47
+ +border-bottom-left-radius(!radius)
@@ -0,0 +1,15 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+ ?>
7
+
8
+ <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
9
+ <p><?php bloginfo('name'); ?> is proudly powered by <a href="http://wordpress.org/">WordPress <?php bloginfo('version'); ?></a> <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --></p>
10
+
11
+ <?php wp_footer(); ?>
12
+
13
+ </body>
14
+
15
+ </html>
@@ -0,0 +1,34 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ automatic_feed_links();
8
+ remove_action('wp_head', 'rsd_link');
9
+ remove_action('wp_head', 'wlwmanifest_link');
10
+ remove_action('wp_head', 'wp_generator');
11
+
12
+ function my_head() { ?>
13
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
14
+ <script src="<?php bloginfo("template_url") ?>/javascript/site.js" type="text/javascript"></script>
15
+ <?php }
16
+ add_action('wp_head', 'my_head');
17
+
18
+ if ( function_exists('register_sidebar') )
19
+ register_sidebar(array(
20
+ 'name' => 'primary_aside',
21
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
22
+ 'after_widget' => '</div>',
23
+ 'before_title' => '<h4 class="widget_title">',
24
+ 'after_title' => '</h4>',
25
+ ));
26
+ register_sidebar(array(
27
+ 'name' => 'secondary_aside',
28
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
29
+ 'after_widget' => '</div>',
30
+ 'before_title' => '<h4 class="widget_title">',
31
+ 'after_title' => '</h4>',
32
+ ));
33
+
34
+ ?>
@@ -0,0 +1,24 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+ ?>
7
+
8
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9
+ <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
10
+
11
+ <head profile="http://gmpg.org/xfn/11">
12
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
13
+ <title><?php wp_title('-', true, 'right'); ?> <?php bloginfo('name'); ?></title>
14
+ <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
15
+ <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
16
+ <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
17
+ <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
18
+ <?php wp_head(); ?>
19
+ </head>
20
+
21
+ <body <?php body_class(); ?>>
22
+
23
+ <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
24
+ <p><?php bloginfo('description'); ?></p>
@@ -0,0 +1,54 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header();
8
+ ?>
9
+
10
+
11
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
12
+ <div class="post" id="post-<?php the_ID(); ?>">
13
+ <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
14
+ <p><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
15
+ <?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?>
16
+ <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
17
+ <?php previous_image_link() ?> | <?php next_image_link() ?>
18
+
19
+ <p>
20
+ This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
21
+ and is filed under <?php the_category(', ') ?>.
22
+ <?php the_taxonomies(); ?>
23
+ You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
24
+
25
+ <?php if ( comments_open() && pings_open() ) {
26
+ // Both Comments and Pings are open ?>
27
+ You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
28
+
29
+ <?php } elseif ( !comments_open() && pings_open() ) {
30
+ // Only Pings are Open ?>
31
+ Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
32
+
33
+ <?php } elseif ( comments_open() && !pings_open() ) {
34
+ // Comments are open, Pings are not ?>
35
+ You can skip to the end and leave a response. Pinging is currently not allowed.
36
+
37
+ <?php } elseif ( !comments_open() && !pings_open() ) {
38
+ // Neither Comments, nor Pings are open ?>
39
+ Both comments and pings are currently closed.
40
+
41
+ <?php } edit_post_link('Edit this entry.','',''); ?>
42
+ </p>
43
+
44
+ </div>
45
+
46
+ <?php comments_template(); ?>
47
+
48
+ <?php endwhile; else: ?>
49
+
50
+ <p>Sorry, no attachments matched your criteria.</p>
51
+
52
+ <?php endif; ?>
53
+
54
+ <?php get_footer(); ?>
@@ -0,0 +1,33 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header(); ?>
8
+
9
+ <?php if (have_posts()) : ?>
10
+
11
+ <?php while (have_posts()) : the_post(); ?>
12
+
13
+ <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
14
+ <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
15
+ <p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
16
+ <?php the_content('Read the rest of this entry &raquo;'); ?>
17
+ <p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
18
+ </div>
19
+
20
+ <?php endwhile; ?>
21
+
22
+ <?php next_posts_link('&laquo; Older Entries') ?> | <?php previous_posts_link('Newer Entries &raquo;') ?>
23
+
24
+ <?php else : ?>
25
+
26
+ <h2>Not Found</h2>
27
+ <p>Sorry, but you are looking for something that isn't here.</p>
28
+ <?php get_search_form(); ?>
29
+
30
+ <?php endif; ?>
31
+
32
+ <?php get_sidebar(); ?>
33
+ <?php get_footer(); ?>