compass-wordpress 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ $(document).ready(function() {
2
+
3
+ // Open external links in a new window/tab
4
+ hostname = window.location.hostname
5
+ $("a[href^=http]")
6
+ .not("a[href*='" + hostname + "']")
7
+ .addClass('link external')
8
+ .attr('target', '_blank');
9
+
10
+ });
@@ -0,0 +1,19 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ /*
8
+ Template Name: Links
9
+ */
10
+ ?>
11
+
12
+ <?php get_header(); ?>
13
+
14
+ <h2>Links:</h2>
15
+ <ul>
16
+ <?php wp_list_bookmarks(); ?>
17
+ </ul>
18
+
19
+ <?php get_footer(); ?>
@@ -0,0 +1,24 @@
1
+ file '404.php'
2
+ file 'archive.php'
3
+ file 'archives.php'
4
+ stylesheet '_base.sass'
5
+ file 'comments.php'
6
+ stylesheet 'extensions/_border_radius.sass'
7
+ file 'footer.php'
8
+ file 'functions.php'
9
+ file 'header.php'
10
+ file 'image.php'
11
+ file 'index.php'
12
+ file 'javascript/site.js'
13
+ file 'LICENSE.txt'
14
+ file 'links.php'
15
+ file 'page-custom.php'
16
+ file 'page.php'
17
+ stylesheet 'print.sass', :media => "print"
18
+ file 'README.txt'
19
+ stylesheet 'screen.sass', :media => "screen, projection"
20
+ file 'screenshot.png'
21
+ file 'search.php'
22
+ file 'sidebar.php'
23
+ file 'single.php'
24
+ file 'style.css'
@@ -0,0 +1,9 @@
1
+ <?php
2
+ /*
3
+ Template Name: Custom
4
+ */
5
+ ?>
6
+
7
+ <?php get_header(); ?>
8
+
9
+ <?php get_footer(); ?>
@@ -0,0 +1,19 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header(); ?>
8
+
9
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
10
+ <div class="post" id="post-<?php the_ID(); ?>">
11
+ <h2><?php the_title(); ?></h2>
12
+ <?php the_content('<p>Read the rest of this page &raquo;</p>'); ?>
13
+ <?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
14
+ </div>
15
+ <?php endwhile; endif; ?>
16
+ <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
17
+
18
+ <?php get_sidebar(); ?>
19
+ <?php get_footer(); ?>
File without changes
@@ -0,0 +1 @@
1
+ @import base.sass
@@ -0,0 +1,35 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header(); ?>
8
+
9
+ <?php if (have_posts()) : ?>
10
+
11
+ <h2>Search Results</h2>
12
+
13
+ <?php next_posts_link('&laquo; Older Entries') ?> | <?php previous_posts_link('Newer Entries &raquo;') ?>
14
+
15
+ <?php while (have_posts()) : the_post(); ?>
16
+
17
+ <div <?php post_class() ?>>
18
+ <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>
19
+ <p><?php the_time('l, F jS, Y') ?></p>
20
+ <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>
21
+ </div>
22
+
23
+ <?php endwhile; ?>
24
+
25
+ <?php next_posts_link('&laquo; Older Entries') ?> | <?php previous_posts_link('Newer Entries &raquo;') ?>
26
+
27
+ <?php else : ?>
28
+
29
+ <h2>No posts found. Try a different search?</h2>
30
+ <?php get_search_form(); ?>
31
+
32
+ <?php endif; ?>
33
+
34
+ <?php get_sidebar(); ?>
35
+ <?php get_footer(); ?>
@@ -0,0 +1,81 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+ ?>
7
+ <ul>
8
+ <?php /* Widgetized sidebar, if you have the plugin installed. */
9
+ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
10
+ <li>
11
+ <?php get_search_form(); ?>
12
+ </li>
13
+
14
+ <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
15
+ <li><h2>Author</h2>
16
+ <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
17
+ </li>
18
+ -->
19
+
20
+ <?php if ( is_404() || is_category() || is_day() || is_month() ||
21
+ is_year() || is_search() || is_paged() ) {
22
+ ?> <li>
23
+
24
+ <?php /* If this is a 404 page */ if (is_404()) { ?>
25
+ <?php /* If this is a category archive */ } elseif (is_category()) { ?>
26
+ <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
27
+
28
+ <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
29
+ <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
30
+ for the day <?php the_time('l, F jS, Y'); ?>.</p>
31
+
32
+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
33
+ <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
34
+ for <?php the_time('F, Y'); ?>.</p>
35
+
36
+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
37
+ <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
38
+ for the year <?php the_time('Y'); ?>.</p>
39
+
40
+ <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
41
+ <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
42
+ for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
43
+
44
+ <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
45
+ <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
46
+
47
+ <?php } ?>
48
+
49
+ </li>
50
+ <?php }?>
51
+ </ul>
52
+
53
+ <ul>
54
+ <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
55
+ <li><h2>Archives</h2>
56
+ <ul>
57
+ <?php wp_get_archives('type=monthly'); ?>
58
+ </ul>
59
+ </li>
60
+ <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
61
+ </ul>
62
+
63
+ <ul>
64
+ <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
65
+ <?php wp_list_bookmarks(); ?>
66
+
67
+ <li>
68
+ <h2>Meta</h2>
69
+ <ul>
70
+ <?php wp_register(); ?>
71
+ <li><?php wp_loginout(); ?></li>
72
+ <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
73
+ <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
74
+ <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
75
+ <?php wp_meta(); ?>
76
+ </ul>
77
+ </li>
78
+ <?php } ?>
79
+
80
+ <?php endif; ?>
81
+ </ul>
@@ -0,0 +1,61 @@
1
+ <?php
2
+ /**
3
+ * @package WordPress
4
+ * @subpackage Base
5
+ */
6
+
7
+ get_header();
8
+ ?>
9
+
10
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
11
+
12
+ <?php previous_post_link('&laquo; %link') ?> | <?php next_post_link('%link &raquo;') ?>
13
+
14
+ <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
15
+ <h2><?php the_title(); ?></h2>
16
+ <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
17
+ <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
18
+ <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
19
+
20
+ <p>
21
+
22
+ This entry was posted
23
+ <?php /* This is commented, because it requires a little adjusting sometimes.
24
+ You'll need to download this plugin, and follow the instructions:
25
+ http://binarybonsai.com/wordpress/time-since/ */
26
+ /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
27
+ on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
28
+ and is filed under <?php the_category(', ') ?>.
29
+ You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
30
+
31
+ <?php if ( comments_open() && pings_open() ) {
32
+ // Both Comments and Pings are open ?>
33
+ You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
34
+
35
+ <?php } elseif ( !comments_open() && pings_open() ) {
36
+ // Only Pings are Open ?>
37
+ Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
38
+
39
+ <?php } elseif ( comments_open() && !pings_open() ) {
40
+ // Comments are open, Pings are not ?>
41
+ You can skip to the end and leave a response. Pinging is currently not allowed.
42
+
43
+ <?php } elseif ( !comments_open() && !pings_open() ) {
44
+ // Neither Comments, nor Pings are open ?>
45
+ Both comments and pings are currently closed.
46
+
47
+ <?php } edit_post_link('Edit this entry','','.'); ?>
48
+
49
+ </p>
50
+
51
+ </div>
52
+
53
+ <?php comments_template(); ?>
54
+
55
+ <?php endwhile; else: ?>
56
+
57
+ <p>Sorry, no posts matched your criteria.</p>
58
+
59
+ <?php endif; ?>
60
+
61
+ <?php get_footer(); ?>
@@ -0,0 +1,11 @@
1
+ /*
2
+ Theme Name: Base
3
+ Theme URI: http://adamstacoviak.com
4
+ Description: A clean Wordpress theme w/ Sass, Compass and jQuery (Based on Starkers)
5
+ Version: 1.0
6
+ Author: Adam Stacoviak
7
+ Author URI: http://adamstacoviak.com
8
+ */
9
+
10
+ @import "css/screen.css";
11
+ @import "css/print.css";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-wordpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-30 00:00:00 -06:00
13
+ date: 2009-12-10 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -51,6 +51,31 @@ files:
51
51
  - sass/wordpress/thematic/styles/_images.sass
52
52
  - sass/wordpress/thematic/styles/_plugins.sass
53
53
  - sass/wordpress/thematic/styles/_typography.sass
54
+ - templates/base/404.php
55
+ - templates/base/LICENSE.txt
56
+ - templates/base/README.txt
57
+ - templates/base/_base.sass
58
+ - templates/base/archive.php
59
+ - templates/base/archives.php
60
+ - templates/base/comments.php
61
+ - templates/base/extensions/_border_radius.sass
62
+ - templates/base/footer.php
63
+ - templates/base/functions.php
64
+ - templates/base/header.php
65
+ - templates/base/image.php
66
+ - templates/base/index.php
67
+ - templates/base/javascript/site.js
68
+ - templates/base/links.php
69
+ - templates/base/manifest.rb
70
+ - templates/base/page-custom.php
71
+ - templates/base/page.php
72
+ - templates/base/print.sass
73
+ - templates/base/screen.sass
74
+ - templates/base/screenshot.png
75
+ - templates/base/search.php
76
+ - templates/base/sidebar.php
77
+ - templates/base/single.php
78
+ - templates/base/style.css
54
79
  - templates/project/manifest.rb
55
80
  - templates/project/print.sass
56
81
  - templates/project/readme.txt