compass-wp 0.0.0 → 0.1.0

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,98 @@
1
+ <?php
2
+ /**
3
+ * The template for displaying attachments.
4
+ *
5
+ * @package WordPress
6
+ * @subpackage Starkers
7
+ * @since Starkers 3.0
8
+ */
9
+
10
+ get_header(); ?>
11
+
12
+ <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
13
+
14
+ <p><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php
15
+ /* translators: %s - title of parent post */
16
+ printf( __( '<span>&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
17
+ ?></a></p>
18
+
19
+ <h2><?php the_title(); ?></h2>
20
+
21
+ <?php
22
+ printf(__('By %2$s', 'twentyten'),
23
+ 'meta-prep meta-prep-author',
24
+ sprintf( '<a class="url fn n" href="%1$s" title="%2$s">%3$s</a>',
25
+ get_author_posts_url( get_the_author_meta( 'ID' ) ),
26
+ sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
27
+ get_the_author()
28
+ )
29
+ );
30
+ ?>
31
+ <span>|</span>
32
+ <?php
33
+ printf( __('Published %2$s', 'twentyten'),
34
+ 'meta-prep meta-prep-entry-date',
35
+ sprintf( '<abbr title="%1$s">%2$s</abbr>',
36
+ esc_attr( get_the_time() ),
37
+ get_the_date()
38
+ )
39
+ );
40
+ if ( wp_attachment_is_image() ) {
41
+ echo ' | ';
42
+ $metadata = wp_get_attachment_metadata();
43
+ printf( __( 'Full size is %s pixels', 'twentyten'),
44
+ sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
45
+ wp_get_attachment_url(),
46
+ esc_attr( __('Link to full-size image', 'twentyten') ),
47
+ $metadata['width'],
48
+ $metadata['height']
49
+ )
50
+ );
51
+ }
52
+ ?>
53
+ <?php edit_post_link( __( 'Edit', 'twentyten' ), '', '' ); ?>
54
+ </div><!-- .entry-meta -->
55
+
56
+ <?php if ( wp_attachment_is_image() ) :
57
+ $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
58
+ foreach ( $attachments as $k => $attachment ) {
59
+ if ( $attachment->ID == $post->ID )
60
+ break;
61
+ }
62
+ $k++;
63
+ // If there is more than 1 image attachment in a gallery
64
+ if ( count( $attachments ) > 1 ) {
65
+ if ( isset( $attachments[ $k ] ) )
66
+ // get the URL of the next image attachment
67
+ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
68
+ else
69
+ // or get the URL of the first image attachment
70
+ $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
71
+ } else {
72
+ // or, if there's only 1 image attachment, get the URL of the image
73
+ $next_attachment_url = wp_get_attachment_url();
74
+ }
75
+ ?>
76
+ <p><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
77
+ $attachment_size = apply_filters( 'twentyten_attachment_size', 900 );
78
+ echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
79
+ ?></a></p>
80
+
81
+ <?php previous_image_link( false ); ?>
82
+ <?php next_image_link( false ); ?>
83
+ <?php else : ?>
84
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
85
+ <?php endif; ?>
86
+ <?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?>
87
+
88
+ <?php the_content( __( 'Continue reading &rarr;', 'twentyten' ) ); ?>
89
+ <?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'twentyten' ), 'after' => '' ) ); ?>
90
+
91
+ <?php twentyten_posted_in(); ?>
92
+ <?php edit_post_link( __( 'Edit', 'twentyten' ), ' ', '' ); ?>
93
+
94
+ <?php comments_template(); ?>
95
+
96
+ <?php endwhile; ?>
97
+
98
+ <?php get_footer(); ?>
@@ -0,0 +1,51 @@
1
+ <?php
2
+ /**
3
+ * The template for displaying Author Archive pages.
4
+ *
5
+ * @package WordPress
6
+ * @subpackage Starkers
7
+ * @since Starkers 3.0
8
+ */
9
+
10
+ get_header(); ?>
11
+
12
+ <?php
13
+ /* Queue the first post, that way we know who
14
+ * the author is when we try to get their name,
15
+ * URL, description, avatar, etc.
16
+ *
17
+ * We reset this later so we can run the loop
18
+ * properly with a call to rewind_posts().
19
+ */
20
+ if ( have_posts() )
21
+ the_post();
22
+ ?>
23
+
24
+ <h1><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h1>
25
+
26
+ <?php
27
+ // If a user has filled out their description, show a bio on their entries.
28
+ if ( get_the_author_meta( 'description' ) ) : ?>
29
+
30
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
31
+ <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
32
+ <?php the_author_meta( 'description' ); ?>
33
+
34
+ <?php endif; ?>
35
+
36
+ <?php
37
+ /* Since we called the_post() above, we need to
38
+ * rewind the loop back to the beginning that way
39
+ * we can run the loop properly, in full.
40
+ */
41
+ rewind_posts();
42
+
43
+ /* Run the loop for the author archive page to output the authors posts
44
+ * If you want to overload this in a child theme then include a file
45
+ * called loop-author.php and that will be used instead.
46
+ */
47
+ get_template_part( 'loop', 'author' );
48
+ ?>
49
+
50
+ <?php get_sidebar(); ?>
51
+ <?php get_footer(); ?>
@@ -0,0 +1,28 @@
1
+ <?php
2
+ /**
3
+ * The template for displaying Category Archive pages.
4
+ *
5
+ * @package WordPress
6
+ * @subpackage Starkers
7
+ * @since Starkers 3.0
8
+ */
9
+
10
+ get_header(); ?>
11
+
12
+ <h1><?php
13
+ printf( __( 'Category Archives: %s', 'twentyten' ), '' . single_cat_title( '', false ) . '' );
14
+ ?></h1>
15
+ <?php
16
+ $category_description = category_description();
17
+ if ( ! empty( $category_description ) )
18
+ echo '' . $category_description . '';
19
+
20
+ /* Run the loop for the category page to output the posts.
21
+ * If you want to overload this in a child theme then include a file
22
+ * called loop-category.php and that will be used instead.
23
+ */
24
+ get_template_part( 'loop', 'category' );
25
+ ?>
26
+
27
+ <?php get_sidebar(); ?>
28
+ <?php get_footer(); ?>
@@ -0,0 +1,72 @@
1
+ <?php
2
+ /**
3
+ * The template for displaying Comments.
4
+ *
5
+ * The area of the page that contains both current comments
6
+ * and the comment form. The actual display of comments is
7
+ * handled by a callback to twentyten_comment which is
8
+ * located in the functions.php file.
9
+ *
10
+ * @package WordPress
11
+ * @subpackage Starkers
12
+ * @since Starkers 3.0
13
+ */
14
+ ?>
15
+
16
+ <?php if ( post_password_required() ) : ?>
17
+ <p><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
18
+ <?php
19
+ /* Stop the rest of comments.php from being processed,
20
+ * but don't kill the script entirely -- we still have
21
+ * to fully load the template.
22
+ */
23
+ return;
24
+ endif;
25
+ ?>
26
+
27
+ <?php
28
+ // You can start editing here -- including this comment!
29
+ ?>
30
+
31
+ <?php if ( have_comments() ) : ?>
32
+ <!-- STARKERS NOTE: The following h3 id is left intact so that comments can be referenced on the page -->
33
+ <h3 id="comments-title"><?php
34
+ printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
35
+ number_format_i18n( get_comments_number() ), '' . get_the_title() . '' );
36
+ ?></h3>
37
+
38
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
39
+ <?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?>
40
+ <?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?>
41
+ <?php endif; // check for comment navigation ?>
42
+
43
+ <ol>
44
+ <?php
45
+ /* Loop through and list the comments. Tell wp_list_comments()
46
+ * to use twentyten_comment() to format the comments.
47
+ * If you want to overload this in a child theme then you can
48
+ * define twentyten_comment() and that will be used instead.
49
+ * See twentyten_comment() in twentyten/functions.php for more.
50
+ */
51
+ wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
52
+ ?>
53
+ </ol>
54
+
55
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
56
+ <?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?>
57
+ <?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?>
58
+ <?php endif; // check for comment navigation ?>
59
+
60
+ <?php else : // or, if we don't have comments:
61
+
62
+ /* If there are no comments and comments are closed,
63
+ * let's leave a little note, shall we?
64
+ */
65
+ if ( ! comments_open() ) :
66
+ ?>
67
+ <p><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
68
+ <?php endif; // end ! comments_open() ?>
69
+
70
+ <?php endif; // end have_comments() ?>
71
+
72
+ <?php comment_form(); ?>
@@ -0,0 +1,289 @@
1
+ /*
2
+ Theme Name: Starkers
3
+ */
4
+ /*
5
+ Used to style the TinyMCE editor.
6
+ */
7
+ html .mceContentBody {
8
+ max-width:640px;
9
+ }
10
+ * {
11
+ font-family: Georgia, "Bitstream Charter", serif;
12
+ color: #444;
13
+ line-height: 1.5;
14
+ }
15
+ p,
16
+ dl,
17
+ td,
18
+ th,
19
+ ul,
20
+ ol,
21
+ blockquote {
22
+ font-size: 16px;
23
+ }
24
+ tr th,
25
+ thead th,
26
+ label,
27
+ tr th,
28
+ thead th {
29
+ font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
30
+ }
31
+ pre {
32
+ font-family: "Courier 10 Pitch", Courier, monospace;
33
+ }
34
+ code, code var {
35
+ font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
36
+ }
37
+ body, input, textarea {
38
+ font-size: 12px;
39
+ line-height: 18px;
40
+ }
41
+ hr {
42
+ background-color: #E7E7E7;
43
+ border:0;
44
+ height: 1px;
45
+ margin-bottom: 18px;
46
+ clear:both;
47
+ }
48
+ /* Text elements */
49
+ p {
50
+ margin-bottom: 18px;
51
+ }
52
+ ul {
53
+ list-style: square;
54
+ margin: 0 0 18px 1.5em;
55
+ }
56
+ ol {
57
+ list-style: decimal;
58
+ margin: 0 0 18px 1.5em;
59
+ }
60
+ ol ol {
61
+ list-style:upper-alpha;
62
+ }
63
+ ol ol ol {
64
+ list-style:lower-roman;
65
+ }
66
+ ol ol ol ol {
67
+ list-style:lower-alpha;
68
+ }
69
+ ul ul,
70
+ ol ol,
71
+ ul ol,
72
+ ol ul {
73
+ margin-bottom:0;
74
+ }
75
+ dl {
76
+ margin:0 0 24px 0;
77
+ }
78
+ dt {
79
+ font-weight: bold;
80
+ }
81
+ dd {
82
+ margin-bottom: 18px;
83
+ }
84
+ strong {
85
+ font-weight: bold;
86
+ color: #000;
87
+ }
88
+ cite,
89
+ em,
90
+ i {
91
+ font-style: italic;
92
+ border: none;
93
+ }
94
+ big {
95
+ font-size: 131.25%;
96
+ }
97
+ ins {
98
+ background: #FFFFCC;
99
+ border: none;
100
+ color: #333;
101
+ }
102
+ del {
103
+ text-decoration: line-through;
104
+ color: #555;
105
+ }
106
+ blockquote {
107
+ font-style: italic;
108
+ padding: 0 3em;
109
+ }
110
+ blockquote cite,
111
+ blockquote em,
112
+ blockquote i {
113
+ font-style: normal;
114
+ }
115
+ pre {
116
+ background: #f7f7f7;
117
+ color: #222;
118
+ line-height: 18px;
119
+ margin-bottom: 18px;
120
+ padding: 1.5em;
121
+ }
122
+ abbr,
123
+ acronym {
124
+ border-bottom: 1px dotted #666;
125
+ cursor: help;
126
+ }
127
+ ins {
128
+ text-decoration: none;
129
+ }
130
+ sup,
131
+ sub {
132
+ height: 0;
133
+ line-height: 1;
134
+ vertical-align: baseline;
135
+ position: relative;
136
+ font-size: 10px;
137
+ }
138
+ sup {
139
+ bottom: 1ex;
140
+ }
141
+ sub {
142
+ top: .5ex;
143
+ }
144
+ a:link {
145
+ color:#0066CC;
146
+ }
147
+ a:visited {
148
+ color:#743399;
149
+ }
150
+ a:active,
151
+ a:hover {
152
+ color: #FF4B33;
153
+ }
154
+ p,
155
+ ul,
156
+ ol,
157
+ dd,
158
+ pre,
159
+ hr {
160
+ margin-bottom:24px;
161
+ }
162
+ ul ul,
163
+ ol ol,
164
+ ul ol,
165
+ ol ul {
166
+ margin-bottom:0;
167
+ }
168
+ pre,
169
+ kbd,
170
+ tt,
171
+ var {
172
+ font-size: 15px;
173
+ line-height: 21px;
174
+ }
175
+ code {
176
+ font-size: 13px;
177
+ }
178
+ strong,
179
+ b,
180
+ dt,
181
+ th {
182
+ color: #000;
183
+ }
184
+ h1,
185
+ h2,
186
+ h3,
187
+ h4,
188
+ h5,
189
+ h6 {
190
+ color: #000;
191
+ margin: 0 0 20px 0;
192
+ line-height: 1.5em;
193
+ font-weight: normal;
194
+ }
195
+ h1 {
196
+ font-size: 2.4em;
197
+ }
198
+ h2 {
199
+ font-size: 1.8em;
200
+ }
201
+ h3 {
202
+ font-size: 1.4em;
203
+ }
204
+ h4 {
205
+ font-size: 1.2em;
206
+ }
207
+ h5 {
208
+ font-size: 1em;
209
+ }
210
+ h6 {
211
+ font-size: 0.9em;
212
+ }
213
+ table {
214
+ border: 1px solid #e7e7e7 !important;
215
+ text-align: left;
216
+ margin: 0 -1px 24px 0;
217
+ width: 100%;
218
+ border-collapse: collapse;
219
+ border-spacing: 0;
220
+ }
221
+ tr th,
222
+ thead th {
223
+ border: none !important;
224
+ color: #888;
225
+ font-size: 12px;
226
+ font-weight: bold;
227
+ line-height: 18px;
228
+ padding: 9px 24px;
229
+ }
230
+ tr td {
231
+ border: none !important;
232
+ border-top: 1px solid #e7e7e7 !important;
233
+ padding: 6px 24px;
234
+ }
235
+
236
+
237
+ img {
238
+ margin: 0;
239
+ max-width: 640px;
240
+ }
241
+ .alignleft,
242
+ img.alignleft {
243
+ display: inline;
244
+ float: left;
245
+ margin-right: 24px;
246
+ margin-top: 4px;
247
+ }
248
+ .alignright,
249
+ img.alignright {
250
+ display: inline;
251
+ float: right;
252
+ margin-left: 24px;
253
+ margin-top: 4px;
254
+ }
255
+ .aligncenter,
256
+ img.aligncenter {
257
+ clear: both;
258
+ display: block;
259
+ margin-left: auto;
260
+ margin-right: auto;
261
+ }
262
+ img.alignleft,
263
+ img.alignright,
264
+ img.aligncenter {
265
+ margin-bottom: 12px;
266
+ }
267
+ .wp-caption {
268
+ border: none;
269
+ background: #f1f1f1;
270
+ color: #888;
271
+ font-size: 12px;
272
+ line-height: 18px;
273
+ text-align: center;
274
+ margin-bottom: 20px;
275
+ padding: 4px;
276
+ -moz-border-radius: 0;
277
+ -khtml-border-radius: 0;
278
+ -webkit-border-radius: 0;
279
+ border-radius: 0;
280
+ }
281
+ .wp-caption img {
282
+ margin: 5px;
283
+ }
284
+ .wp-caption p.wp-caption-text {
285
+ margin: 0 0 4px;
286
+ }
287
+ .wp-smiley {
288
+ margin:0;
289
+ }