fones 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +28 -0
- data/Gemfile.lock +108 -0
- data/LICENSE +20 -0
- data/README.md +61 -0
- data/Rakefile +54 -0
- data/VERSION +1 -0
- data/bin/fones +12 -0
- data/features/step_definitions/fones_steps.rb +38 -0
- data/features/support/env.rb +17 -0
- data/fones.gemspec +187 -0
- data/layouts/config/config.tt +19 -0
- data/layouts/default/css/_1030up.scss.erb +8 -0
- data/layouts/default/css/_1240up.scss.erb +8 -0
- data/layouts/default/css/_2x.scss.erb +40 -0
- data/layouts/default/css/_481up.scss.erb +109 -0
- data/layouts/default/css/_768up.scss.erb +280 -0
- data/layouts/default/css/_base.scss.erb +836 -0
- data/layouts/default/css/_grid.scss.erb +48 -0
- data/layouts/default/css/_header.scss.erb +18 -0
- data/layouts/default/css/_mixins.scss.erb +248 -0
- data/layouts/default/css/_normalize.scss.erb +536 -0
- data/layouts/default/css/_print.scss.erb +80 -0
- data/layouts/default/css/ie.scss.erb +52 -0
- data/layouts/default/css/login.scss.erb +65 -0
- data/layouts/default/css/style.css.scss.erb +111 -0
- data/layouts/default/functions/functions.php.erb +166 -0
- data/layouts/default/functions/library/admin.php.erb +131 -0
- data/layouts/default/functions/library/bones.php.erb +397 -0
- data/layouts/default/functions/library/custom-post-type.php.erb +122 -0
- data/layouts/default/functions/library/translation/README +18 -0
- data/layouts/default/functions/library/translation/da_DK.po +374 -0
- data/layouts/default/functions/library/translation/de_DE.po +385 -0
- data/layouts/default/functions/library/translation/default.po +372 -0
- data/layouts/default/functions/library/translation/es_ES.po +380 -0
- data/layouts/default/functions/library/translation/fr_FR.po +579 -0
- data/layouts/default/functions/library/translation/he_IL.po +382 -0
- data/layouts/default/functions/library/translation/hr.po +548 -0
- data/layouts/default/functions/library/translation/it_IT.po +376 -0
- data/layouts/default/functions/library/translation/ja.po +492 -0
- data/layouts/default/functions/library/translation/nb_NO.po +380 -0
- data/layouts/default/functions/library/translation/nl_NL.po +376 -0
- data/layouts/default/functions/library/translation/pl_PL.po +371 -0
- data/layouts/default/functions/library/translation/pt_PT.po +376 -0
- data/layouts/default/functions/library/translation/ru_RU.po +358 -0
- data/layouts/default/functions/library/translation/sv_SE.po +380 -0
- data/layouts/default/functions/library/translation/translation.php.erb +18 -0
- data/layouts/default/functions/library/translation/zh_CN.po +382 -0
- data/layouts/default/img/apple-icon-touch.png +0 -0
- data/layouts/default/img/custom-post-icon.png +0 -0
- data/layouts/default/img/favicon.ico +0 -0
- data/layouts/default/img/favicon.png +0 -0
- data/layouts/default/img/login-logo.png +0 -0
- data/layouts/default/img/nothing.gif +0 -0
- data/layouts/default/img/nothumb.gif +0 -0
- data/layouts/default/img/screenshot.png +0 -0
- data/layouts/default/img/win8-tile-icon.png +0 -0
- data/layouts/default/js/admin.js +1 -0
- data/layouts/default/js/libs/modernizr.custom.min.js +4 -0
- data/layouts/default/js/scripts.js +108 -0
- data/layouts/default/js/theme.js +2 -0
- data/layouts/default/templates/404.php.erb +43 -0
- data/layouts/default/templates/archive-custom_type.php.erb +73 -0
- data/layouts/default/templates/archive.php.erb +108 -0
- data/layouts/default/templates/attachment.php.erb +32 -0
- data/layouts/default/templates/comments.php.erb +121 -0
- data/layouts/default/templates/footer.php.erb +22 -0
- data/layouts/default/templates/header.php.erb +63 -0
- data/layouts/default/templates/index.php.erb +72 -0
- data/layouts/default/templates/page-custom.php.erb +66 -0
- data/layouts/default/templates/page.php.erb +60 -0
- data/layouts/default/templates/search.php.erb +71 -0
- data/layouts/default/templates/sidebar.php.erb +17 -0
- data/layouts/default/templates/single-custom_type.php.erb +78 -0
- data/layouts/default/templates/single.php.erb +61 -0
- data/layouts/default/templates/taxonomy-custom_cat.php.erb +87 -0
- data/lib/fones.rb +11 -0
- data/lib/forge/builder.rb +269 -0
- data/lib/forge/cli.rb +86 -0
- data/lib/forge/config.rb +61 -0
- data/lib/forge/engines.rb +12 -0
- data/lib/forge/error.rb +8 -0
- data/lib/forge/generator.rb +144 -0
- data/lib/forge/guard.rb +65 -0
- data/lib/forge/project.rb +162 -0
- data/lib/forge/version.rb +3 -0
- data/lib/guard/forge/assets.rb +31 -0
- data/lib/guard/forge/config.rb +34 -0
- data/lib/guard/forge/functions.rb +33 -0
- data/lib/guard/forge/templates.rb +28 -0
- data/pkg/fones-0.1.0.gem +0 -0
- data/spec/lib/forge/config_spec.rb +79 -0
- data/spec/lib/forge/project_spec.rb +34 -0
- data/spec/spec_helper.rb +13 -0
- metadata +437 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
<?php get_header(); ?>
|
2
|
+
|
3
|
+
<div id="content">
|
4
|
+
|
5
|
+
<div id="inner-content" class="wrap clearfix">
|
6
|
+
|
7
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
8
|
+
|
9
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
10
|
+
|
11
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
|
12
|
+
|
13
|
+
<header class="article-header">
|
14
|
+
|
15
|
+
<h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
|
16
|
+
<p class="byline vcard"><?php
|
17
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), <%= theme_id %>_get_the_author_posts_link(), get_the_category_list(', '));
|
18
|
+
?></p>
|
19
|
+
|
20
|
+
</header> <!-- end article header -->
|
21
|
+
|
22
|
+
<section class="entry-content clearfix">
|
23
|
+
<?php the_content(); ?>
|
24
|
+
</section> <!-- end article section -->
|
25
|
+
|
26
|
+
<footer class="article-footer">
|
27
|
+
<p class="tags"><?php the_tags('<span class="tags-title">' . __('Tags:', '<%= theme_id %>theme') . '</span> ', ', ', ''); ?></p>
|
28
|
+
|
29
|
+
</footer> <!-- end article footer -->
|
30
|
+
|
31
|
+
<?php // comments_template(); // uncomment if you want to use them ?>
|
32
|
+
|
33
|
+
</article> <!-- end article -->
|
34
|
+
|
35
|
+
<?php endwhile; ?>
|
36
|
+
|
37
|
+
<?php if (function_exists('<%= theme_id %>_page_navi')) { ?>
|
38
|
+
<?php <%= theme_id %>_page_navi(); ?>
|
39
|
+
<?php } else { ?>
|
40
|
+
<nav class="wp-prev-next">
|
41
|
+
<ul class="clearfix">
|
42
|
+
<li class="prev-link"><?php next_posts_link(__('« Older Entries', "<%= theme_id %>theme")) ?></li>
|
43
|
+
<li class="next-link"><?php previous_posts_link(__('Newer Entries »', "<%= theme_id %>theme")) ?></li>
|
44
|
+
</ul>
|
45
|
+
</nav>
|
46
|
+
<?php } ?>
|
47
|
+
|
48
|
+
<?php else : ?>
|
49
|
+
|
50
|
+
<article id="post-not-found" class="hentry clearfix">
|
51
|
+
<header class="article-header">
|
52
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
53
|
+
</header>
|
54
|
+
<section class="entry-content">
|
55
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
56
|
+
</section>
|
57
|
+
<footer class="article-footer">
|
58
|
+
<p><?php _e("This is the error message in the index.php template.", "<%= theme_id %>theme"); ?></p>
|
59
|
+
</footer>
|
60
|
+
</article>
|
61
|
+
|
62
|
+
<?php endif; ?>
|
63
|
+
|
64
|
+
</div> <!-- end #main -->
|
65
|
+
|
66
|
+
<?php get_sidebar(); ?>
|
67
|
+
|
68
|
+
</div> <!-- end #inner-content -->
|
69
|
+
|
70
|
+
</div> <!-- end #content -->
|
71
|
+
|
72
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<?php
|
2
|
+
/*
|
3
|
+
Template Name: Custom Page Example
|
4
|
+
*/
|
5
|
+
?>
|
6
|
+
|
7
|
+
<?php get_header(); ?>
|
8
|
+
|
9
|
+
<div id="content">
|
10
|
+
|
11
|
+
<div id="inner-content" class="wrap clearfix">
|
12
|
+
|
13
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
14
|
+
|
15
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
16
|
+
|
17
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
|
18
|
+
|
19
|
+
<header class="article-header">
|
20
|
+
|
21
|
+
<h1 class="page-title"><?php the_title(); ?></h1>
|
22
|
+
<p class="byline vcard"><?php
|
23
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', '<%= theme_id %>theme')), <%= theme_id %>_get_the_author_posts_link());
|
24
|
+
?></p>
|
25
|
+
|
26
|
+
|
27
|
+
</header> <!-- end article header -->
|
28
|
+
|
29
|
+
<section class="entry-content clearfix" itemprop="articleBody">
|
30
|
+
<?php the_content(); ?>
|
31
|
+
</section> <!-- end article section -->
|
32
|
+
|
33
|
+
<footer class="article-footer">
|
34
|
+
<p class="clearfix"><?php the_tags('<span class="tags">' . __('Tags:', '<%= theme_id %>theme') . '</span> ', ', ', ''); ?></p>
|
35
|
+
|
36
|
+
</footer> <!-- end article footer -->
|
37
|
+
|
38
|
+
<?php comments_template(); ?>
|
39
|
+
|
40
|
+
</article> <!-- end article -->
|
41
|
+
|
42
|
+
<?php endwhile; else : ?>
|
43
|
+
|
44
|
+
<article id="post-not-found" class="hentry clearfix">
|
45
|
+
<header class="article-header">
|
46
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
47
|
+
</header>
|
48
|
+
<section class="entry-content">
|
49
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
50
|
+
</section>
|
51
|
+
<footer class="article-footer">
|
52
|
+
<p><?php _e("This is the error message in the page-custom.php template.", "<%= theme_id %>theme"); ?></p>
|
53
|
+
</footer>
|
54
|
+
</article>
|
55
|
+
|
56
|
+
<?php endif; ?>
|
57
|
+
|
58
|
+
</div> <!-- end #main -->
|
59
|
+
|
60
|
+
<?php get_sidebar(); ?>
|
61
|
+
|
62
|
+
</div> <!-- end #inner-content -->
|
63
|
+
|
64
|
+
</div> <!-- end #content -->
|
65
|
+
|
66
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?php get_header(); ?>
|
2
|
+
|
3
|
+
<div id="content">
|
4
|
+
|
5
|
+
<div id="inner-content" class="wrap clearfix">
|
6
|
+
|
7
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
8
|
+
|
9
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
10
|
+
|
11
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
|
12
|
+
|
13
|
+
<header class="article-header">
|
14
|
+
|
15
|
+
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
|
16
|
+
<p class="byline vcard"><?php
|
17
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', '<%= theme_id %>theme')), <%= theme_id %>_get_the_author_posts_link());
|
18
|
+
?></p>
|
19
|
+
|
20
|
+
|
21
|
+
</header> <!-- end article header -->
|
22
|
+
|
23
|
+
<section class="entry-content clearfix" itemprop="articleBody">
|
24
|
+
<?php the_content(); ?>
|
25
|
+
</section> <!-- end article section -->
|
26
|
+
|
27
|
+
<footer class="article-footer">
|
28
|
+
<?php the_tags('<span class="tags">' . __('Tags:', '<%= theme_id %>theme') . '</span> ', ', ', ''); ?>
|
29
|
+
|
30
|
+
</footer> <!-- end article footer -->
|
31
|
+
|
32
|
+
<?php comments_template(); ?>
|
33
|
+
|
34
|
+
</article> <!-- end article -->
|
35
|
+
|
36
|
+
<?php endwhile; else : ?>
|
37
|
+
|
38
|
+
<article id="post-not-found" class="hentry clearfix">
|
39
|
+
<header class="article-header">
|
40
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
41
|
+
</header>
|
42
|
+
<section class="entry-content">
|
43
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
44
|
+
</section>
|
45
|
+
<footer class="article-footer">
|
46
|
+
<p><?php _e("This is the error message in the page.php template.", "<%= theme_id %>theme"); ?></p>
|
47
|
+
</footer>
|
48
|
+
</article>
|
49
|
+
|
50
|
+
<?php endif; ?>
|
51
|
+
|
52
|
+
</div> <!-- end #main -->
|
53
|
+
|
54
|
+
<?php get_sidebar(); ?>
|
55
|
+
|
56
|
+
</div> <!-- end #inner-content -->
|
57
|
+
|
58
|
+
</div> <!-- end #content -->
|
59
|
+
|
60
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<?php get_header(); ?>
|
2
|
+
|
3
|
+
<div id="content">
|
4
|
+
|
5
|
+
<div id="inner-content" class="wrap clearfix">
|
6
|
+
|
7
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
8
|
+
<h1 class="archive-title"><span><?php _e('Search Results for:', '<%= theme_id %>theme'); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
|
9
|
+
|
10
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
11
|
+
|
12
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
|
13
|
+
|
14
|
+
<header class="article-header">
|
15
|
+
|
16
|
+
<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
|
17
|
+
<p class="byline vcard"><?php
|
18
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', '<%= theme_id %>theme')), <%= theme_id %>_get_the_author_posts_link(), get_the_category_list(', '));
|
19
|
+
?></p>
|
20
|
+
|
21
|
+
</header> <!-- end article header -->
|
22
|
+
|
23
|
+
<section class="entry-content">
|
24
|
+
<?php the_excerpt('<span class="read-more">' . __('Read more »', '<%= theme_id %>theme') . '</span>'); ?>
|
25
|
+
|
26
|
+
</section> <!-- end article section -->
|
27
|
+
|
28
|
+
<footer class="article-footer">
|
29
|
+
|
30
|
+
</footer> <!-- end article footer -->
|
31
|
+
|
32
|
+
</article> <!-- end article -->
|
33
|
+
|
34
|
+
<?php endwhile; ?>
|
35
|
+
|
36
|
+
<?php if (function_exists('<%= theme_id %>_page_navi')) { ?>
|
37
|
+
<?php <%= theme_id %>_page_navi(); ?>
|
38
|
+
<?php } else { ?>
|
39
|
+
<nav class="wp-prev-next">
|
40
|
+
<ul class="clearfix">
|
41
|
+
<li class="prev-link"><?php next_posts_link(__('« Older Entries', "<%= theme_id %>theme")) ?></li>
|
42
|
+
<li class="next-link"><?php previous_posts_link(__('Newer Entries »', "<%= theme_id %>theme")) ?></li>
|
43
|
+
</ul>
|
44
|
+
</nav>
|
45
|
+
<?php } ?>
|
46
|
+
|
47
|
+
<?php else : ?>
|
48
|
+
|
49
|
+
<article id="post-not-found" class="hentry clearfix">
|
50
|
+
<header class="article-header">
|
51
|
+
<h1><?php _e("Sorry, No Results.", "<%= theme_id %>theme"); ?></h1>
|
52
|
+
</header>
|
53
|
+
<section class="entry-content">
|
54
|
+
<p><?php _e("Try your search again.", "<%= theme_id %>theme"); ?></p>
|
55
|
+
</section>
|
56
|
+
<footer class="article-footer">
|
57
|
+
<p><?php _e("This is the error message in the search.php template.", "<%= theme_id %>theme"); ?></p>
|
58
|
+
</footer>
|
59
|
+
</article>
|
60
|
+
|
61
|
+
<?php endif; ?>
|
62
|
+
|
63
|
+
</div> <!-- end #main -->
|
64
|
+
|
65
|
+
<?php get_sidebar(); ?>
|
66
|
+
|
67
|
+
</div> <!-- end #inner-content -->
|
68
|
+
|
69
|
+
</div> <!-- end #content -->
|
70
|
+
|
71
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div id="sidebar1" class="sidebar fourcol last clearfix" role="complementary">
|
2
|
+
|
3
|
+
<?php if ( is_active_sidebar( 'sidebar1' ) ) : ?>
|
4
|
+
|
5
|
+
<?php dynamic_sidebar( 'sidebar1' ); ?>
|
6
|
+
|
7
|
+
<?php else : ?>
|
8
|
+
|
9
|
+
<!-- This content shows up if there are no widgets defined in the backend. -->
|
10
|
+
|
11
|
+
<div class="alert alert-help">
|
12
|
+
<p><?php _e("Please activate some Widgets.", "<%= theme_id %>theme"); ?></p>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<?php endif; ?>
|
16
|
+
|
17
|
+
</div>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<?php
|
2
|
+
/*
|
3
|
+
This is the custom post type post template.
|
4
|
+
If you edit the post type name, you've got
|
5
|
+
to change the name of this template to
|
6
|
+
reflect that name change.
|
7
|
+
|
8
|
+
i.e. if your custom post type is called
|
9
|
+
register_post_type( 'bookmarks',
|
10
|
+
then your single template should be
|
11
|
+
single-bookmarks.php
|
12
|
+
|
13
|
+
*/
|
14
|
+
?>
|
15
|
+
|
16
|
+
<?php get_header(); ?>
|
17
|
+
|
18
|
+
<div id="content">
|
19
|
+
|
20
|
+
<div id="inner-content" class="wrap clearfix">
|
21
|
+
|
22
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
23
|
+
|
24
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
25
|
+
|
26
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
|
27
|
+
|
28
|
+
<header class="article-header">
|
29
|
+
|
30
|
+
<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
|
31
|
+
<p class="byline vcard"><?php
|
32
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', '<%= theme_id %>theme')), <%= theme_id %>_get_the_author_posts_link(), get_the_term_list( $post->ID, 'custom_cat', ' ', ', ', '' ));
|
33
|
+
?></p>
|
34
|
+
|
35
|
+
</header> <!-- end article header -->
|
36
|
+
|
37
|
+
<section class="entry-content clearfix">
|
38
|
+
|
39
|
+
<?php the_content(); ?>
|
40
|
+
|
41
|
+
</section> <!-- end article section -->
|
42
|
+
|
43
|
+
<footer class="article-header">
|
44
|
+
<p class="tags"><?php echo get_the_term_list( get_the_ID(), 'custom_tag', '<span class="tags-title">' . __('Custom Tags:', '<%= theme_id %>theme') . '</span> ', ', ' ) ?></p>
|
45
|
+
|
46
|
+
</footer> <!-- end article footer -->
|
47
|
+
|
48
|
+
<?php comments_template(); ?>
|
49
|
+
|
50
|
+
</article> <!-- end article -->
|
51
|
+
|
52
|
+
<?php endwhile; ?>
|
53
|
+
|
54
|
+
<?php else : ?>
|
55
|
+
|
56
|
+
<article id="post-not-found" class="hentry clearfix">
|
57
|
+
<header class="article-header">
|
58
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
59
|
+
</header>
|
60
|
+
<section class="entry-content">
|
61
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
62
|
+
</section>
|
63
|
+
<footer class="article-footer">
|
64
|
+
<p><?php _e("This is the error message in the single-custom_type.php template.", "<%= theme_id %>theme"); ?></p>
|
65
|
+
</footer>
|
66
|
+
</article>
|
67
|
+
|
68
|
+
<?php endif; ?>
|
69
|
+
|
70
|
+
</div> <!-- end #main -->
|
71
|
+
|
72
|
+
<?php get_sidebar(); ?>
|
73
|
+
|
74
|
+
</div> <!-- end #inner-content -->
|
75
|
+
|
76
|
+
</div> <!-- end #content -->
|
77
|
+
|
78
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<?php get_header(); ?>
|
2
|
+
|
3
|
+
<div id="content">
|
4
|
+
|
5
|
+
<div id="inner-content" class="wrap clearfix">
|
6
|
+
|
7
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
8
|
+
|
9
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
10
|
+
|
11
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
|
12
|
+
|
13
|
+
<header class="article-header">
|
14
|
+
|
15
|
+
<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
|
16
|
+
<p class="byline vcard"><?php
|
17
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), <%= theme_id %>_get_the_author_posts_link(), get_the_category_list(', '));
|
18
|
+
?></p>
|
19
|
+
|
20
|
+
</header> <!-- end article header -->
|
21
|
+
|
22
|
+
<section class="entry-content clearfix" itemprop="articleBody">
|
23
|
+
<?php the_content(); ?>
|
24
|
+
</section> <!-- end article section -->
|
25
|
+
|
26
|
+
<footer class="article-footer">
|
27
|
+
<?php the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', '<%= theme_id %>theme') . '</span> ', ', ', '</p>'); ?>
|
28
|
+
|
29
|
+
</footer> <!-- end article footer -->
|
30
|
+
|
31
|
+
<?php comments_template(); ?>
|
32
|
+
|
33
|
+
</article> <!-- end article -->
|
34
|
+
|
35
|
+
<?php endwhile; ?>
|
36
|
+
|
37
|
+
<?php else : ?>
|
38
|
+
|
39
|
+
<article id="post-not-found" class="hentry clearfix">
|
40
|
+
<header class="article-header">
|
41
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
42
|
+
</header>
|
43
|
+
<section class="entry-content">
|
44
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
45
|
+
</section>
|
46
|
+
<footer class="article-footer">
|
47
|
+
<p><?php _e("This is the error message in the single.php template.", "<%= theme_id %>theme"); ?></p>
|
48
|
+
</footer>
|
49
|
+
</article>
|
50
|
+
|
51
|
+
<?php endif; ?>
|
52
|
+
|
53
|
+
</div> <!-- end #main -->
|
54
|
+
|
55
|
+
<?php get_sidebar(); ?>
|
56
|
+
|
57
|
+
</div> <!-- end #inner-content -->
|
58
|
+
|
59
|
+
</div> <!-- end #content -->
|
60
|
+
|
61
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<?php
|
2
|
+
/*
|
3
|
+
This is the custom post type taxonomy template.
|
4
|
+
If you edit the custom taxonomy name, you've got
|
5
|
+
to change the name of this template to
|
6
|
+
reflect that name change.
|
7
|
+
|
8
|
+
i.e. if your custom taxonomy is called
|
9
|
+
register_taxonomy( 'shoes',
|
10
|
+
then your single template should be
|
11
|
+
taxonomy-shoes.php
|
12
|
+
|
13
|
+
*/
|
14
|
+
?>
|
15
|
+
|
16
|
+
<?php get_header(); ?>
|
17
|
+
|
18
|
+
<div id="content">
|
19
|
+
|
20
|
+
<div id="inner-content" class="wrap clearfix">
|
21
|
+
|
22
|
+
<div id="main" class="eightcol first clearfix" role="main">
|
23
|
+
|
24
|
+
<h1 class="archive-title h2"><span><?php _e("Posts Categorized:", "<%= theme_id %>theme"); ?></span> <?php single_cat_title(); ?></h1>
|
25
|
+
|
26
|
+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
27
|
+
|
28
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
|
29
|
+
|
30
|
+
<header class="article-header">
|
31
|
+
|
32
|
+
<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
|
33
|
+
<p class="byline vcard"><?php
|
34
|
+
printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', '<%= theme_id %>theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', '<%= theme_id %>theme')), <%= theme_id %>_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "" ));
|
35
|
+
?></p>
|
36
|
+
|
37
|
+
</header> <!-- end article header -->
|
38
|
+
|
39
|
+
<section class="entry-content">
|
40
|
+
<?php the_excerpt('<span class="read-more">' . __('Read More »', '<%= theme_id %>theme') . '</span>'); ?>
|
41
|
+
|
42
|
+
</section> <!-- end article section -->
|
43
|
+
|
44
|
+
<footer class="article-footer">
|
45
|
+
|
46
|
+
</footer> <!-- end article footer -->
|
47
|
+
|
48
|
+
</article> <!-- end article -->
|
49
|
+
|
50
|
+
<?php endwhile; ?>
|
51
|
+
|
52
|
+
<?php if (function_exists('<%= theme_id %>_page_navi')) { ?>
|
53
|
+
<?php <%= theme_id %>_page_navi(); ?>
|
54
|
+
<?php } else { ?>
|
55
|
+
<nav class="wp-prev-next">
|
56
|
+
<ul class="clearfix">
|
57
|
+
<li class="prev-link"><?php next_posts_link(__('« Older Entries', "<%= theme_id %>theme")) ?></li>
|
58
|
+
<li class="next-link"><?php previous_posts_link(__('Newer Entries »', "<%= theme_id %>theme")) ?></li>
|
59
|
+
</ul>
|
60
|
+
</nav>
|
61
|
+
<?php } ?>
|
62
|
+
|
63
|
+
<?php else : ?>
|
64
|
+
|
65
|
+
<article id="post-not-found" class="hentry clearfix">
|
66
|
+
<header class="article-header">
|
67
|
+
<h1><?php _e("Oops, Post Not Found!", "<%= theme_id %>theme"); ?></h1>
|
68
|
+
</header>
|
69
|
+
<section class="entry-content">
|
70
|
+
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "<%= theme_id %>theme"); ?></p>
|
71
|
+
</section>
|
72
|
+
<footer class="article-footer">
|
73
|
+
<p><?php _e("This is the error message in the taxonomy-custom_cat.php template.", "<%= theme_id %>theme"); ?></p>
|
74
|
+
</footer>
|
75
|
+
</article>
|
76
|
+
|
77
|
+
<?php endif; ?>
|
78
|
+
|
79
|
+
</div> <!-- end #main -->
|
80
|
+
|
81
|
+
<?php get_sidebar(); ?>
|
82
|
+
|
83
|
+
</div> <!-- end #inner-content -->
|
84
|
+
|
85
|
+
</div> <!-- end #content -->
|
86
|
+
|
87
|
+
<?php get_footer(); ?>
|