Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Commit 72b1b07

Browse files
committed
Initial commit
0 parents  commit 72b1b07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+34516
-0
lines changed

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Numerous always-ignore extensions
2+
*.diff
3+
*.err
4+
*.orig
5+
*.log
6+
*.rej
7+
*.swo
8+
*.swp
9+
*.vi
10+
*~
11+
*.sass-cache
12+
13+
# OS or Editor folders
14+
.DS_Store
15+
._*
16+
.Spotlight-V100
17+
.Trashes
18+
Thumbs.db
19+
.cache
20+
.project
21+
.settings
22+
.tmproj
23+
*.esproj
24+
nbproject
25+
*.sublime-project
26+
*.sublime-workspace
27+
config.codekit
28+
29+
# Komodo
30+
*.komodoproject
31+
.komodotools
32+
33+
# Folders to ignore
34+
.hg
35+
.svn
36+
.CVS
37+
.idea
38+
node_modules/
39+
40+
Gruntfile.js

404.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (Not Found).
4+
*
5+
* @package Paperback
6+
*/
7+
8+
get_header(); ?>
9+
10+
<div id="primary" class="content-area">
11+
<main id="main" class="site-main" role="main">
12+
<header class="entry-header archive-header">
13+
<h1 class="entry-title"><?php esc_html_e( 'Page Not Found', 'paperback' ); ?></h1>
14+
15+
<div class="entry-content">
16+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Please use the search box or the sitemap to locate the content you were looking for.', 'paperback' ); ?></p>
17+
18+
<?php get_search_form(); ?>
19+
20+
<div class="archive-box">
21+
<h4><?php esc_html_e( 'Sitemap', 'paperback' ); ?></h4>
22+
<ul>
23+
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
24+
</ul>
25+
</div>
26+
</div><!-- .entry-content -->
27+
</header><!-- .entry-header -->
28+
</main><!-- #main -->
29+
</div><!-- #primary -->
30+
31+
<?php get_sidebar();
32+
33+
get_footer(); ?>

Gruntfile.js

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
module.exports = function(grunt) {
2+
3+
// Configure tasks
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
7+
watch: {
8+
css: {
9+
files: ['**/*.scss'],
10+
tasks: ['sass', 'autoprefixer', 'csscomb'],
11+
options: {
12+
spawn: false,
13+
livereload: true,
14+
}
15+
}
16+
},
17+
18+
sass: {
19+
dist: {
20+
options: {
21+
style: 'expanded'
22+
},
23+
files: {
24+
'style.css': 'inc/sass/style.scss'
25+
}
26+
}
27+
},
28+
29+
autoprefixer: {
30+
options: {
31+
browsers: ['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1', 'ie 9']
32+
},
33+
single_file: {
34+
src: 'style.css',
35+
dest: 'style.css'
36+
}
37+
},
38+
39+
csscomb: {
40+
options: {
41+
config: '.csscomb.json'
42+
},
43+
files: {
44+
'style.css': ['style.css'],
45+
}
46+
},
47+
48+
// Generate RTL stylesheet
49+
cssjanus: {
50+
theme: {
51+
options: {
52+
swapLtrRtlInUrl: false
53+
},
54+
files: [
55+
{
56+
src: 'style.css',
57+
dest: 'rtl.css'
58+
}
59+
]
60+
}
61+
},
62+
63+
// Generate POT
64+
makepot: {
65+
theme: {
66+
options: {
67+
type: 'wp-theme'
68+
}
69+
}
70+
},
71+
72+
// browserSync: {
73+
// dev: {
74+
// bsFiles: {
75+
// src: [
76+
// '*.css',
77+
// '**/*.php',
78+
// ],
79+
// },
80+
// options: {
81+
// watchTask: true,
82+
// debugInfo: true,
83+
// logConnections: true,
84+
// notify: true,
85+
// proxy: 'theme.dev:8888',
86+
// ghostMode: {
87+
// scroll: true,
88+
// links: true,
89+
// forms: true
90+
// }
91+
// }
92+
// }
93+
// },
94+
});
95+
96+
// Sass
97+
grunt.loadNpmTasks('grunt-contrib-sass');
98+
99+
// Watch
100+
grunt.loadNpmTasks('grunt-contrib-watch');
101+
102+
// CSSComb
103+
grunt.loadNpmTasks('grunt-csscomb');
104+
105+
// Autoprefixer
106+
grunt.loadNpmTasks('grunt-autoprefixer');
107+
108+
// Replace
109+
grunt.loadNpmTasks('grunt-string-replace');
110+
111+
// Shell
112+
grunt.loadNpmTasks('grunt-shell');
113+
114+
// Generate POT
115+
grunt.loadNpmTasks('grunt-wp-i18n');
116+
117+
// Generate RTL
118+
grunt.loadNpmTasks('grunt-cssjanus');
119+
120+
// Browsersync
121+
//grunt.loadNpmTasks('grunt-browser-sync');
122+
123+
// Register tasks
124+
grunt.registerTask('default', [
125+
'sass',
126+
'watch',
127+
'autoprefixer',
128+
'csscomb',
129+
'string-replace',
130+
'shell',
131+
//'wp-i18n',
132+
'cssjanus',
133+
//'browserSync'
134+
]);
135+
136+
// Build for Creative Market
137+
grunt.registerTask('creative', ['shell', 'string-replace' ]);
138+
139+
};

archive.php

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
/**
3+
* The template for displaying Archive pages.
4+
*
5+
* Learn more: http://codex.wordpress.org/Template_Hierarchy
6+
*
7+
* @package Paperback
8+
*/
9+
get_header();
10+
?>
11+
12+
<section id="primary" class="content-area">
13+
<main id="main" class="site-main blocks-page" role="main">
14+
<?php if ( have_posts() ) : ?>
15+
<header class="entry-header archive-header">
16+
<?php
17+
// Grab author profile box
18+
if ( is_author() ) {
19+
paperback_author_box();
20+
} else {
21+
the_archive_title( '<h1 class="entry-title">', '</h1>' );
22+
the_archive_description( '<div class="entry-content"><div class="taxonomy-description">', '</div></div>' );
23+
} ?>
24+
25+
</header><!-- .entry-header -->
26+
27+
<div id="post-wrapper">
28+
<div class="grid-wrapper">
29+
<?php
30+
// Get the post content
31+
while ( have_posts() ) : the_post();
32+
// Move Jetpack share links below author box
33+
if ( function_exists( 'sharing_display' ) && ! function_exists( 'dsq_comment' ) ) {
34+
remove_filter( 'the_content', 'sharing_display', 19 );
35+
remove_filter( 'the_excerpt', 'sharing_display', 19 );
36+
}
37+
38+
if ( 'one-column' === get_option( 'paperback_layout_style', 'one-column' ) ) {
39+
get_template_part( 'template-parts/content' );
40+
} else {
41+
get_template_part( 'template-parts/content-grid-item' );
42+
}
43+
44+
endwhile;
45+
?>
46+
</div><!-- .grid-wrapper -->
47+
48+
<?php paperback_page_navs(); ?>
49+
</div><!-- #post-wrapper -->
50+
51+
<?php else :
52+
53+
get_template_part( 'template-parts/content-none' );
54+
55+
endif; ?>
56+
</main><!-- #main -->
57+
</section><!-- #primary -->
58+
59+
<?php get_sidebar(); ?>
60+
61+
<?php get_footer(); ?>

comments.php

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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.
7+
*
8+
* @package Paperback
9+
*/
10+
11+
/*
12+
* If the current post is protected by a password and
13+
* the visitor has not yet entered the password we will
14+
* return early without loading the comments.
15+
*/
16+
17+
if ( comments_open() || '0' != get_comments_number() ) {
18+
19+
if ( post_password_required() ) {
20+
return;
21+
}
22+
23+
$comment_style = get_option( 'paperback_comment_style', 'click' );
24+
?>
25+
26+
<div id="comments" class="comments-area <?php echo esc_attr( $comment_style ); ?>">
27+
28+
<?php if ( have_comments() ) : ?>
29+
<h3 class="comments-title">
30+
<span><?php
31+
printf(
32+
esc_html( _nx( 'One Comment', '%1$s Comments', get_comments_number(), 'comments title', 'paperback' ) ),
33+
number_format_i18n( get_comments_number() ),
34+
'<span>' . get_the_title() . '</span>'
35+
);
36+
?></span>
37+
</h3>
38+
39+
<ol class="comment-list">
40+
<?php
41+
wp_list_comments( array(
42+
'style' => 'ol',
43+
'short_ping' => true,
44+
'avatar_size' => 50,
45+
'callback' => 'paperback_comment'
46+
) );
47+
?>
48+
</ol><!-- .comment-list -->
49+
50+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
51+
<nav id="comment-nav-above" class="comment-navigation" role="navigation">
52+
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'paperback' ); ?></h1>
53+
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'paperback' ) ); ?></div>
54+
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'paperback' ) ); ?></div>
55+
</nav><!-- #comment-nav-above -->
56+
<?php endif; // check for comment navigation ?>
57+
58+
<?php endif; // have_comments() ?>
59+
60+
<?php
61+
// If comments are closed and there are comments, let's leave a little note, shall we?
62+
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
63+
?>
64+
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'paperback' ); ?></p>
65+
<?php endif; ?>
66+
67+
<?php comment_form(); ?>
68+
69+
</div><!-- #comments -->
70+
71+
<?php } // If comments are open and we have comments ?>

0 commit comments

Comments
 (0)