wordpress-starter 0.1
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.
- data/CHANGELOG.md +1 -0
- data/LICENSE +20 -0
- data/README.md +34 -0
- data/lib/wordpress-starter.rb +29 -0
- data/stylesheets/_wordpress.scss +9 -0
- data/stylesheets/wordpress/_base.scss +74 -0
- data/stylesheets/wordpress/_defaults.scss +28 -0
- data/stylesheets/wordpress/_layout.scss +56 -0
- data/stylesheets/wordpress/_mixins.scss +57 -0
- data/stylesheets/wordpress/_page.scss +364 -0
- data/stylesheets/wordpress/_responsive.scss +231 -0
- data/stylesheets/wordpress/_theme.scss +83 -0
- data/stylesheets/wordpress/_typography.scss +135 -0
- data/stylesheets/wordpress/_utils.scss +64 -0
- data/templates/project/ie.scss +1 -0
- data/templates/project/manifest.rb +21 -0
- data/templates/project/print.css +4 -0
- data/templates/project/print.scss +104 -0
- data/templates/project/readme.txt +1 -0
- data/templates/project/screen.scss +1 -0
- data/templates/project/style.css +13 -0
- data/templates/starter/404.php +24 -0
- data/templates/starter/admin/README.txt +25 -0
- data/templates/starter/admin/assets/css/admin-style.css +838 -0
- data/templates/starter/admin/assets/css/colorpicker.css +177 -0
- data/templates/starter/admin/assets/images/1col.png +0 -0
- data/templates/starter/admin/assets/images/2-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/2cl.png +0 -0
- data/templates/starter/admin/assets/images/2cr.png +0 -0
- data/templates/starter/admin/assets/images/3-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/3cm.png +0 -0
- data/templates/starter/admin/assets/images/3cr.png +0 -0
- data/templates/starter/admin/assets/images/4-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/accept.png +0 -0
- data/templates/starter/admin/assets/images/button_check.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/blank.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/select.png +0 -0
- data/templates/starter/admin/assets/images/dropdown-arrow.png +0 -0
- data/templates/starter/admin/assets/images/favicon.ico +0 -0
- data/templates/starter/admin/assets/images/icon-add.png +0 -0
- data/templates/starter/admin/assets/images/icon-backup.png +0 -0
- data/templates/starter/admin/assets/images/icon-delete.png +0 -0
- data/templates/starter/admin/assets/images/icon-docs.png +0 -0
- data/templates/starter/admin/assets/images/icon-edit.png +0 -0
- data/templates/starter/admin/assets/images/icon-home.png +0 -0
- data/templates/starter/admin/assets/images/icon-info.png +0 -0
- data/templates/starter/admin/assets/images/icon-notice.png +0 -0
- data/templates/starter/admin/assets/images/icon-paint.png +0 -0
- data/templates/starter/admin/assets/images/icon-settings.png +0 -0
- data/templates/starter/admin/assets/images/icon-slider.png +0 -0
- data/templates/starter/admin/assets/images/icon-warn.png +0 -0
- data/templates/starter/admin/assets/images/icon_option.png +0 -0
- data/templates/starter/admin/assets/images/loading-bottom.gif +0 -0
- data/templates/starter/admin/assets/images/select.png +0 -0
- data/templates/starter/admin/assets/images/sign_warning.png +0 -0
- data/templates/starter/admin/assets/images/stop.png +0 -0
- data/templates/starter/admin/assets/images/toggle_tabs.png +0 -0
- data/templates/starter/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/starter/admin/assets/images/warning.png +0 -0
- data/templates/starter/admin/assets/images/wrench.png +0 -0
- data/templates/starter/admin/assets/images/wrench16.png +0 -0
- data/templates/starter/admin/assets/js/ajaxupload.js +606 -0
- data/templates/starter/admin/assets/js/colorpicker.js +455 -0
- data/templates/starter/admin/assets/js/cookie.js +1 -0
- data/templates/starter/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
- data/templates/starter/admin/assets/js/jquery.tipsy.js +241 -0
- data/templates/starter/admin/assets/js/of-medialibrary-uploader.js +168 -0
- data/templates/starter/admin/assets/js/smof.js +623 -0
- data/templates/starter/admin/classes/class.options-machine.php +627 -0
- data/templates/starter/admin/front-end/options.php +77 -0
- data/templates/starter/admin/functions/functions.admin.php +76 -0
- data/templates/starter/admin/functions/functions.interface.php +232 -0
- data/templates/starter/admin/functions/functions.load.php +14 -0
- data/templates/starter/admin/functions/functions.mediauploader.php +194 -0
- data/templates/starter/admin/functions/functions.options.php +507 -0
- data/templates/starter/admin/functions/functions.php +0 -0
- data/templates/starter/admin/index.php +86 -0
- data/templates/starter/admin/layouts/default.css +0 -0
- data/templates/starter/admin/layouts/placebo.css +0 -0
- data/templates/starter/app.js +97 -0
- data/templates/starter/archive.php +57 -0
- data/templates/starter/category.php +40 -0
- data/templates/starter/comments.php +65 -0
- data/templates/starter/content-aside.php +26 -0
- data/templates/starter/content-image.php +29 -0
- data/templates/starter/content-link.php +27 -0
- data/templates/starter/content-none.php +21 -0
- data/templates/starter/content-page.php +24 -0
- data/templates/starter/content-quote.php +26 -0
- data/templates/starter/content-status.php +33 -0
- data/templates/starter/content.php +67 -0
- data/templates/starter/editor-style.scss +359 -0
- data/templates/starter/footer.php +29 -0
- data/templates/starter/functions.php +1211 -0
- data/templates/starter/header.php +63 -0
- data/templates/starter/ie.scss +1 -0
- data/templates/starter/images/bg/bg0.png +0 -0
- data/templates/starter/images/bg/bg1.png +0 -0
- data/templates/starter/images/bg/bg10.png +0 -0
- data/templates/starter/images/bg/bg11.png +0 -0
- data/templates/starter/images/bg/bg2.png +0 -0
- data/templates/starter/images/bg/bg3.png +0 -0
- data/templates/starter/images/bg/bg4.png +0 -0
- data/templates/starter/images/bg/bg5.png +0 -0
- data/templates/starter/images/bg/bg6.jpg +0 -0
- data/templates/starter/images/bg/bg7.jpg +0 -0
- data/templates/starter/images/bg/bg8.png +0 -0
- data/templates/starter/images/bg/bg9.png +0 -0
- data/templates/starter/index.php +19 -0
- data/templates/starter/loop.php +30 -0
- data/templates/starter/manifest.rb +149 -0
- data/templates/starter/moderninzr.min.js +4 -0
- data/templates/starter/options.php +407 -0
- data/templates/starter/page.php +29 -0
- data/templates/starter/print.scss +104 -0
- data/templates/starter/readme.txt +1 -0
- data/templates/starter/screen.scss +1 -0
- data/templates/starter/search.php +31 -0
- data/templates/starter/search.png +0 -0
- data/templates/starter/searchform.php +14 -0
- data/templates/starter/sidebar.php +15 -0
- data/templates/starter/single.php +31 -0
- data/templates/starter/style.css +13 -0
- data/templates/starter/tag.php +41 -0
- metadata +230 -0
|
File without changes
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/*
|
|
3
|
+
Title : SMOF
|
|
4
|
+
Description : Slightly Modified Options Framework
|
|
5
|
+
Version : 1.4.0
|
|
6
|
+
Author : Syamil MJ
|
|
7
|
+
Author URI : http://aquagraphite.com
|
|
8
|
+
License : WTFPL - http://sam.zoy.org/wtfpl/
|
|
9
|
+
Credits : Thematic Options Panel - http://wptheming.com/2010/11/thematic-options-panel-v2/
|
|
10
|
+
KIA Thematic Options Panel - https://github.com/helgatheviking/thematic-options-KIA
|
|
11
|
+
Woo Themes - http://woothemes.com/
|
|
12
|
+
Option Tree - http://wordpress.org/extend/plugins/option-tree/
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Definitions
|
|
17
|
+
*
|
|
18
|
+
* @since 1.4.0
|
|
19
|
+
*/
|
|
20
|
+
$theme_version = '';
|
|
21
|
+
|
|
22
|
+
if ( function_exists( 'wp_get_theme' ) ) {
|
|
23
|
+
if ( is_child_theme() ) {
|
|
24
|
+
$temp_obj = wp_get_theme();
|
|
25
|
+
$theme_obj = wp_get_theme( $temp_obj->get( 'Template' ) );
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
$theme_obj = wp_get_theme();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
$theme_version = $theme_obj->get( 'Version' );
|
|
32
|
+
$theme_name = $theme_obj->get( 'Name' );
|
|
33
|
+
$theme_uri = $theme_obj->get( 'ThemeURI' );
|
|
34
|
+
$author_uri = $theme_obj->get( 'AuthorURI' );
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
$theme_data = get_theme_data( TEMPLATEPATH.'/style.css' );
|
|
38
|
+
$theme_version = $theme_data['Version'];
|
|
39
|
+
$theme_name = $theme_data['Name'];
|
|
40
|
+
$theme_uri = $theme_data['ThemeURI'];
|
|
41
|
+
$author_uri = $theme_data['AuthorURI'];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
define( 'SMOF_VERSION', '1.4.0' );
|
|
46
|
+
define( 'ADMIN_PATH', TEMPLATEPATH . '/admin/' );
|
|
47
|
+
define( 'ADMIN_DIR', get_template_directory_uri() . '/admin/' );
|
|
48
|
+
define( 'LAYOUT_PATH', ADMIN_PATH . '/layouts/' );
|
|
49
|
+
define( 'THEMENAME', $theme_name );
|
|
50
|
+
/* Theme version, uri, and the author uri are not completely necessary, but may be helpful in adding functionality */
|
|
51
|
+
define( 'THEMEVERSION', $theme_version );
|
|
52
|
+
define( 'THEMEURI', $theme_uri );
|
|
53
|
+
define( 'THEMEAUTHORURI', $author_uri );
|
|
54
|
+
|
|
55
|
+
define( 'OPTIONS', $theme_name.'_options' );
|
|
56
|
+
define( 'BACKUPS', $theme_name.'_backups' );
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Required action filters
|
|
60
|
+
*
|
|
61
|
+
* @uses add_action()
|
|
62
|
+
*
|
|
63
|
+
* @since 1.0.0
|
|
64
|
+
*/
|
|
65
|
+
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' )
|
|
66
|
+
add_action( 'admin_head', 'of_option_setup' );
|
|
67
|
+
|
|
68
|
+
add_action( 'admin_head', 'optionsframework_admin_message' );
|
|
69
|
+
add_action( 'admin_init', 'optionsframework_admin_init' );
|
|
70
|
+
add_action( 'admin_menu', 'optionsframework_add_admin' );
|
|
71
|
+
add_action( 'init', 'optionsframework_mlu_init' );
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Required Files
|
|
75
|
+
*
|
|
76
|
+
* @since 1.0.0
|
|
77
|
+
*/
|
|
78
|
+
require_once ADMIN_PATH . 'functions/functions.load.php';
|
|
79
|
+
require_once ADMIN_PATH . 'classes/class.options-machine.php';
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* AJAX Saving Options
|
|
83
|
+
*
|
|
84
|
+
* @since 1.0.0
|
|
85
|
+
*/
|
|
86
|
+
add_action( 'wp_ajax_of_ajax_post_action', 'of_ajax_callback' );
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
(function($, window, undefined) {
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var $doc = $(document),
|
|
5
|
+
Modernizr = window.Modernizr;
|
|
6
|
+
|
|
7
|
+
$(function() {
|
|
8
|
+
$(window).responsinav({ breakpoint: 960 });
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
})(jQuery, this);
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
*
|
|
15
|
+
* ResponsiNav Plugin
|
|
16
|
+
* @author - Kent Safranski - http://www.fluidbyte.net
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
(function( $ ){
|
|
21
|
+
$.fn.responsinav = function(o){
|
|
22
|
+
|
|
23
|
+
var o = jQuery.extend({ breakpoint : 480 },o);
|
|
24
|
+
|
|
25
|
+
// 0 = Full, 1 = Mobile
|
|
26
|
+
rn_mode = undefined; sub_nav_bind=false /* init */
|
|
27
|
+
|
|
28
|
+
// Bind to load and resize
|
|
29
|
+
$(window).bind('load resize', function(){
|
|
30
|
+
// Run mode by width
|
|
31
|
+
if($(window).width()<=o.breakpoint){
|
|
32
|
+
if(rn_mode==0 || rn_mode==undefined){ nav.reset(); nav.mobile(); }
|
|
33
|
+
}else{
|
|
34
|
+
if(rn_mode==1 || rn_mode==undefined){ nav.reset(); nav.full(); }
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
nav = {
|
|
39
|
+
|
|
40
|
+
reset : function(){
|
|
41
|
+
$('nav>ul li').unbind('mouseenter mouseleave click');
|
|
42
|
+
$('nav .sub_nav').unbind('click').remove();
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
full : function(){
|
|
46
|
+
// Set mode
|
|
47
|
+
rn_mode = 0;
|
|
48
|
+
// Ensure nav is visible, hide sub
|
|
49
|
+
$('nav>ul').show(); $('nav ul ul').hide();
|
|
50
|
+
// Behavior
|
|
51
|
+
$("nav>ul li").hover(function() {
|
|
52
|
+
var timeout = $(this).data("timeout");
|
|
53
|
+
if(timeout) clearTimeout(timeout);
|
|
54
|
+
$(this).children("ul").slideDown(300);
|
|
55
|
+
}, function() {
|
|
56
|
+
$(this).data("timeout", setTimeout($.proxy(function() {
|
|
57
|
+
$(this).find("ul").slideUp(300);
|
|
58
|
+
}, this), 300));
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
mobile : function(){
|
|
63
|
+
|
|
64
|
+
// Set mode
|
|
65
|
+
rn_mode = 1;
|
|
66
|
+
// Start nav hidden
|
|
67
|
+
$('nav>ul').hide();
|
|
68
|
+
// Create mobile handle
|
|
69
|
+
if($('nav>a.mobile_handle').length==0){ $('<a class="mobile_handle">Navigation</a>').appendTo('nav'); }
|
|
70
|
+
|
|
71
|
+
// Mobile handle toggle
|
|
72
|
+
$('nav>a.mobile_handle').unbind('click');
|
|
73
|
+
$('nav>a.mobile_handle').click(function(){ $('nav>ul').slideToggle(300); });
|
|
74
|
+
|
|
75
|
+
// Arrows
|
|
76
|
+
if($('.sub_nav').length==0){
|
|
77
|
+
$('nav ul li').each(function(){
|
|
78
|
+
if($(this).children('ul').length>0){ $('<a class="sub_nav"><div class="arrow_down"></div></a>').appendTo(this); }
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Sub-Nav
|
|
83
|
+
if(sub_nav_bind==false){
|
|
84
|
+
$('nav>ul').delegate('.sub_nav', 'click', function(e) {
|
|
85
|
+
$(this).siblings('ul').slideToggle(300);
|
|
86
|
+
if ($(this).children('div').hasClass('arrow_down')){
|
|
87
|
+
$(this).children('div').attr('class', 'arrow_up');
|
|
88
|
+
}else{
|
|
89
|
+
$(this).children('div').attr('class', 'arrow_down');
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
sub_nav_bind = true;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
})( jQuery );
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying Archive pages.
|
|
4
|
+
*
|
|
5
|
+
* Used to display archive-type pages if nothing more specific matches a query.
|
|
6
|
+
* For example, puts together date-based pages if no date.php file exists.
|
|
7
|
+
*
|
|
8
|
+
* If you'd like to further customize these archive views, you may create a
|
|
9
|
+
* new template file for each specific one. For example, Twenty Twelve already
|
|
10
|
+
* has tag.php for Tag archives, category.php for Category archives, and
|
|
11
|
+
* author.php for Author archives.
|
|
12
|
+
*
|
|
13
|
+
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
|
14
|
+
*
|
|
15
|
+
* @category Theme
|
|
16
|
+
* @package [starter]
|
|
17
|
+
* @author [Your Name]
|
|
18
|
+
* @copyright 2012 [Your Name]
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
get_header();
|
|
22
|
+
|
|
23
|
+
if ( have_posts() ):
|
|
24
|
+
?>
|
|
25
|
+
<header class="archive-header">
|
|
26
|
+
<h1 class="archive-title">
|
|
27
|
+
<?php
|
|
28
|
+
if ( is_day() ) :
|
|
29
|
+
printf( __( 'Daily Archives: %s', 'starter' ), '<span>' . get_the_date() . '</span>' );
|
|
30
|
+
elseif ( is_month() ) :
|
|
31
|
+
printf( __( 'Monthly Archives: %s', 'starter' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'starter' ) ) . '</span>' );
|
|
32
|
+
elseif ( is_year() ) :
|
|
33
|
+
printf( __( 'Yearly Archives: %s', 'starter' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'starter' ) ) . '</span>' );
|
|
34
|
+
else :
|
|
35
|
+
_e( 'Archives', 'starter' );
|
|
36
|
+
endif;
|
|
37
|
+
?>
|
|
38
|
+
</h1>
|
|
39
|
+
</header>
|
|
40
|
+
<?php
|
|
41
|
+
/* Start the Loop */
|
|
42
|
+
while ( have_posts() ):
|
|
43
|
+
the_post();
|
|
44
|
+
|
|
45
|
+
/* Include the post format-specific template for the content. If you want to
|
|
46
|
+
* this in a child theme then include a file called called content-___.php
|
|
47
|
+
* (where ___ is the post format) and that will be used instead.
|
|
48
|
+
*/
|
|
49
|
+
get_template_part( 'content', get_post_format() );
|
|
50
|
+
endwhile;
|
|
51
|
+
|
|
52
|
+
do_action( 'pagination' );
|
|
53
|
+
else:
|
|
54
|
+
get_template_part( 'content', 'none' );
|
|
55
|
+
endif;
|
|
56
|
+
|
|
57
|
+
get_footer();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying Category pages.
|
|
4
|
+
*
|
|
5
|
+
* Used to display archive-type pages for posts in a category.
|
|
6
|
+
*
|
|
7
|
+
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
|
8
|
+
*
|
|
9
|
+
* @category Theme
|
|
10
|
+
* @package [starter]
|
|
11
|
+
* @author [Your Name]
|
|
12
|
+
* @copyright 2012 [Your Name]
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
get_header();
|
|
16
|
+
|
|
17
|
+
if ( have_posts() ):
|
|
18
|
+
?>
|
|
19
|
+
<header class="archive-header">
|
|
20
|
+
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'starter' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
|
|
21
|
+
<?php
|
|
22
|
+
if ( category_description() ):
|
|
23
|
+
// Show an optional category description ?>
|
|
24
|
+
<div class="archive-meta"><?php echo category_description(); ?></div>
|
|
25
|
+
<?php endif; ?>
|
|
26
|
+
</header>
|
|
27
|
+
<?php
|
|
28
|
+
/* Start the Loop */
|
|
29
|
+
while ( have_posts() ):
|
|
30
|
+
the_post();
|
|
31
|
+
|
|
32
|
+
get_template_part( 'content', get_post_format() );
|
|
33
|
+
endwhile;
|
|
34
|
+
|
|
35
|
+
do_action( 'pagination' );
|
|
36
|
+
|
|
37
|
+
else:
|
|
38
|
+
get_template_part( 'content', 'none' );
|
|
39
|
+
endif;
|
|
40
|
+
get_footer();
|
|
@@ -0,0 +1,65 @@
|
|
|
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 starter_comment() which is
|
|
8
|
+
* located in the functions.php file.
|
|
9
|
+
*
|
|
10
|
+
* @category Theme
|
|
11
|
+
* @package [starter]
|
|
12
|
+
* @author [Your Name]
|
|
13
|
+
* @copyright 2012 [Your Name]
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* If the current post is protected by a password and
|
|
18
|
+
* the visitor has not yet entered the password we will
|
|
19
|
+
* return early without loading the comments.
|
|
20
|
+
*/
|
|
21
|
+
if ( post_password_required() )
|
|
22
|
+
return;
|
|
23
|
+
?>
|
|
24
|
+
|
|
25
|
+
<div id="comments" class="comments-area">
|
|
26
|
+
|
|
27
|
+
<?php // You can start editing here -- including this comment! ?>
|
|
28
|
+
|
|
29
|
+
<?php if ( have_comments() ) : ?>
|
|
30
|
+
<h2 class="comments-title">
|
|
31
|
+
<?php
|
|
32
|
+
printf(
|
|
33
|
+
_n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'starter' ),
|
|
34
|
+
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'
|
|
35
|
+
);
|
|
36
|
+
?>
|
|
37
|
+
</h2>
|
|
38
|
+
|
|
39
|
+
<ol class="commentlist">
|
|
40
|
+
<?php wp_list_comments( array( 'callback' => 'starter_comment', 'style' => 'ol' ) ); ?>
|
|
41
|
+
</ol>
|
|
42
|
+
|
|
43
|
+
<?php
|
|
44
|
+
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ):
|
|
45
|
+
// are there comments to navigate through ?>
|
|
46
|
+
<nav id="comment-nav-below" class="navigation" role="navigation">
|
|
47
|
+
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'starter' ); ?></h1>
|
|
48
|
+
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'starter' ) ); ?></div>
|
|
49
|
+
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'starter' ) ); ?></div>
|
|
50
|
+
</nav>
|
|
51
|
+
<?php endif; // check for comment navigation ?>
|
|
52
|
+
|
|
53
|
+
<?php
|
|
54
|
+
/* If there are no comments and comments are closed, let's leave a note.
|
|
55
|
+
* But we only want the note on posts and pages that had comments in the first place.
|
|
56
|
+
*/
|
|
57
|
+
if ( ! comments_open() && get_comments_number() ) : ?>
|
|
58
|
+
<p class="nocomments"><?php _e( 'Comments are closed.' , 'starter' ); ?></p>
|
|
59
|
+
<?php endif; ?>
|
|
60
|
+
|
|
61
|
+
<?php endif; // have_comments() ?>
|
|
62
|
+
|
|
63
|
+
<?php comment_form(); ?>
|
|
64
|
+
|
|
65
|
+
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying posts in the Aside post format
|
|
4
|
+
*
|
|
5
|
+
* @category Theme
|
|
6
|
+
* @package [starter]
|
|
7
|
+
* @author [Your Name]
|
|
8
|
+
* @copyright 2012 [Your Name]
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
|
|
12
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
13
|
+
<div class="entry-content">
|
|
14
|
+
<?php the_content( __( 'Continue reading', 'starter' ) ); ?>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<footer class="entry-meta">
|
|
18
|
+
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'starter' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
|
19
|
+
<?php if ( comments_open() ) : ?>
|
|
20
|
+
<div class="comments-link">
|
|
21
|
+
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'starter' ) . '</span>', __( '1 Reply', 'starter' ), __( '% Replies', 'starter' ) ); ?>
|
|
22
|
+
</div>
|
|
23
|
+
<?php endif; // comments_open() ?>
|
|
24
|
+
<?php edit_post_link( __( 'Edit', 'starter' ), '<span class="edit-link">', '</span>' ); ?>
|
|
25
|
+
</footer>
|
|
26
|
+
</article>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying posts in the Image post format
|
|
4
|
+
*
|
|
5
|
+
* @category Theme
|
|
6
|
+
* @package [starter]
|
|
7
|
+
* @author [Your Name]
|
|
8
|
+
* @copyright 2012 [Your Name]
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
|
|
12
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
13
|
+
<div class="entry-content">
|
|
14
|
+
<?php the_content( __( 'Continue reading', 'starter' ) ); ?>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<footer class="entry-meta">
|
|
18
|
+
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'starter' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
|
|
19
|
+
<h5><?php the_title(); ?></h5>
|
|
20
|
+
<h6><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h6>
|
|
21
|
+
</a>
|
|
22
|
+
<?php if ( comments_open() ) : ?>
|
|
23
|
+
<div class="comments-link">
|
|
24
|
+
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'starter' ) . '</span>', __( '1 Reply', 'starter' ), __( '% Replies', 'starter' ) ); ?>
|
|
25
|
+
</div>
|
|
26
|
+
<?php endif; // comments_open() ?>
|
|
27
|
+
<?php edit_post_link( __( 'Edit', 'starter' ), '<span class="edit-link">', '</span>' ); ?>
|
|
28
|
+
</footer>
|
|
29
|
+
</article>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying posts in the Link post format
|
|
4
|
+
*
|
|
5
|
+
* @category Theme
|
|
6
|
+
* @package [starter]
|
|
7
|
+
* @author [Your Name]
|
|
8
|
+
* @copyright 2012 [Your Name]
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
|
|
12
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
13
|
+
<header><?php _e( 'Link', 'starter' ); ?></header>
|
|
14
|
+
<div class="entry-content">
|
|
15
|
+
<?php the_content( __( 'Continue reading', 'starter' ) ); ?>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<footer class="entry-meta">
|
|
19
|
+
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'starter' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
|
20
|
+
<?php if ( comments_open() ) : ?>
|
|
21
|
+
<div class="comments-link">
|
|
22
|
+
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'starter' ) . '</span>', __( '1 Reply', 'starter' ), __( '% Replies', 'starter' ) ); ?>
|
|
23
|
+
</div>
|
|
24
|
+
<?php endif; // comments_open() ?>
|
|
25
|
+
<?php edit_post_link( __( 'Edit', 'starter' ), '<span class="edit-link">', '</span>' ); ?>
|
|
26
|
+
</footer>
|
|
27
|
+
</article>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The template for displaying a "No posts found" message.
|
|
4
|
+
*
|
|
5
|
+
* @category Theme
|
|
6
|
+
* @package [starter]
|
|
7
|
+
* @author [Your Name]
|
|
8
|
+
* @copyright 2012 [Your Name]
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
|
|
12
|
+
<article id="post-0" class="post no-results not-found">
|
|
13
|
+
<header class="entry-header">
|
|
14
|
+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'starter' ); ?></h1>
|
|
15
|
+
</header>
|
|
16
|
+
|
|
17
|
+
<div class="entry-content">
|
|
18
|
+
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'starter' ); ?></p>
|
|
19
|
+
<?php get_search_form(); ?>
|
|
20
|
+
</div>
|
|
21
|
+
</article>
|