Index: chalkboard/change-log.txt =================================================================== --- chalkboard/change-log.txt (revision 12363) +++ chalkboard/change-log.txt (revision 12466) @@ -1,32 +0,0 @@ -/*Classic Chalkboard Theme*/ -2.0 - Initial Release -12-27-2012 - 2.1 -*Fixed stray div tag issue with templates -*Added sidebar to posts -*Fixed mismatching heading tags in sidebar (h4>h5) -*Removed duplicate date line from templates - -12-30-2012 - 2.2 -*Fixed sticky post styling issue -*Fixed text domain issues/theme-slug -*Added HTML Reset -*Added style class for post/page titles -*Modified entry-meta styling -*Added permalink to content end for empty title posts - -1-11-2013 - 2.3 -*Fixed
 code wrap
-*Fixed namespacing/forward-facing text.
-*Fixed nested list styling.
-*Added blockquote styling.
-*Rounded comment form box.
-*Comments are closed removed.
-*Added search form to 404 template
-*Replaced bloginfo tags with modern tags
-*Added JS comment functionality.
-
-1-13-2013 - 2.4
-*Modified title tag
-*Fixed paragraph spacing issue.
-*Reduced site title font size from 300% to 250%.
-*Fixed page width/zoom issue.
\ No newline at end of file
Index: chalkboard/primary-sidebar-page.php
===================================================================
--- chalkboard/primary-sidebar-page.php	(revision 12363)
+++ chalkboard/primary-sidebar-page.php	(revision 12466)
@@ -1,34 +0,0 @@
-
-
-
-
- - -
> -

-

-
- -
- - '' ) ); ?> -
Separator
-
- - - -

-
-

- -
- -
-
- - \ No newline at end of file Index: chalkboard/tag.php =================================================================== --- chalkboard/tag.php (revision 12363) +++ chalkboard/tag.php (revision 12466) @@ -1,33 +0,0 @@ - -
-
- -

' . single_tag_title( '', false ) . '' ); ?>

- -
> -

-

- -
- - '' ) ); ?> -
-
Separator
-
- - - -

-
-

- -
- -
-
- \ No newline at end of file Index: chalkboard/category.php =================================================================== --- chalkboard/category.php (revision 12363) +++ chalkboard/category.php (revision 12466) @@ -1,32 +0,0 @@ - -
-
- -

' . single_cat_title( '', false ) . '' ); ?>

- -
> -

-

- -
- -
-
Separator
-
- - - -

-
-

- -
- -
-
- \ No newline at end of file Index: chalkboard/readme.txt =================================================================== --- chalkboard/readme.txt (revision 12363) +++ chalkboard/readme.txt (revision 12466) @@ -1,3 +0,0 @@ -== Chalkboard == - -Widgetized sidebar is also available on the page with sidebar template. To use the template for a page, select "Sidebar Template" on the page editing screen. The sidebar is automatic for posts, but not used for archives. Index: chalkboard/content-single.php =================================================================== --- chalkboard/content-single.php (revision 0) +++ chalkboard/content-single.php (revision 12466) @@ -0,0 +1,61 @@ + + +
> +
+ ', '' ); ?> +
+ +
+ + '' ) ); ?> +
+ +
+ + + + + + + permalink.', 'chalkboard' ); + } else { + $meta_text = __( 'Bookmark the permalink.', 'chalkboard' ); + } + + } else { + // But this blog has loads of categories so we should probably display them here + if ( '' != $tag_list ) { + $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'chalkboard' ); + } else { + $meta_text = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'chalkboard' ); + } + + } // end check for categories on this blog + + printf( + $meta_text, + $category_list, + $tag_list, + get_permalink(), + the_title_attribute( 'echo=0' ) + ); + ?> + + ', '' ); ?> +
+
Property changes on: chalkboard/content-single.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/searchform.php =================================================================== --- chalkboard/searchform.php (revision 0) +++ chalkboard/searchform.php (revision 12466) @@ -0,0 +1,13 @@ + + Property changes on: chalkboard/searchform.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/footer.php =================================================================== --- chalkboard/footer.php (revision 12363) +++ chalkboard/footer.php (revision 12466) @@ -2,13 +2,27 @@ /** * The template for displaying the footer. * + * Contains the closing of the id=main div and all content after + * + * @package Chalkboard + * @since Chalkboard 1.0 */ ?> - - + + + + + + + + \ No newline at end of file Index: chalkboard/style.css =================================================================== --- chalkboard/style.css (revision 12363) +++ chalkboard/style.css (revision 12466) @@ -1,769 +1,1166 @@ /* -Theme Name: Classic ChalkBoard -Theme URI: http://www.cardiganmedia.com/191/free-wordpress-theme-chalkboard/ +Theme Name: Chalkboard +Theme URI: http://theme.wordpress.com/themes/chalkboard Author: Edward R. Jenkins Author URI: http://www.edwardrjenkins.com Description: A whimsical theme emulating a classic school chalkboard, complete with a bottom-resting eraser and chalk. -Version: 2.4 +Version: 2.4-wpcom License: GNU General Public License License URI: license.txt -Tags: custom-menu, sticky-post, microformats, rtl-language-support, full-width-template, post-formats -Text Domain: classicchalkboard +Tags: blog, education, photography, photoblogging, school, scrapbooking, seasonal, tumblelog, dark, funny, playful, simple, textured, whimsical, hand-drawn, humorous, black, white, yellow, right-sidebar, one-column, two-columns, fixed-width, responsive-width, custom-menu, custom-background, custom-colors, custom-header, flexible-header, full-width-template, infinite-scroll, post-formats, rtl-language-support, sticky-post, translation-ready + +This theme, like WordPress, is licensed under the GPL. +Use it to make something cool, have fun, and share what you've learned with others. + +Resetting and rebuilding styles have been helped along thanks to the fine work of +Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html +along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ +and Blueprint http://www.blueprintcss.org/ */ -/* Google Fonts Import ---------------------------------------------- */ -@import url(http://fonts.googleapis.com/css?family=Gloria+Hallelujah); - /* =Reset - -------------------------------------------------------------- */ -html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { - +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + border: 0; + font-family: inherit; + font-size: 100%; + font-style: inherit; + font-weight: inherit; margin: 0; - + outline: 0; padding: 0; - - border: 0; - - font-size: 100%; - vertical-align: baseline; - } - -/* =Structure - --------------------------------------------------------------- */ - +html { + font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */ + overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */ + -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */ + -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ +} body { - - font-family: 'Gloria Hallelujah', Arial; - - color: #fff; - - font-size: 1.5em; - + background: #fff; } - -ul, menu, dir { - -list-style-type: none; - -} - -#page { - +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +nav, +section { display: block; - - margin: 0 auto; - - width: 960px; - - background: #000 url('images/chalk.png') repeat; - - padding: 5px 100px; - - border: 30px solid #855E42; - - border-radius: 5px; - - box-shadow: 15px 15px 15px #777; - } - -a { - - color: #fff; - +ol, ul { + list-style: none; } - -.entry-content p { - margin-bottom:20px; -}#primary { - - width: 100%; - +table { /* tables still need 'cellspacing="0"' in the markup */ + border-collapse: separate; + border-spacing: 0; } - -#primary-with-sidebar { - - width:70%; - - float:left; - +caption, th, td { + font-weight: normal; + text-align: left; } - -#secondary { - - margin-left:75%; - +blockquote:before, blockquote:after, +q:before, q:after { + content: ""; } +blockquote, q { + quotes: "" ""; +} +a:focus { + outline: thin dotted; +} +a:hover, +a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */ + outline: 0; +} +a img { + border: 0; +} -#content { - margin-top: 10px; +/* =Global +----------------------------------------------- */ +body, +button, +input, +select, +textarea { + font-family: 'Roboto', Arial, Helvetica, sans-serif; + font-size: 20px; + font-size: 2.0rem; + line-height: 1.6; } +body.sidebar-active { + font-size: 20px; + font-size: 2.0rem; +} +body { + background: #f1eedc; + color: #eee; +} -#colophon { - +/* Headings */ +h1,h2,h3,h4,h5,h6 { clear: both; + font-family: 'Gloria Hallelujah', Arial, Helvetica, sans-serif; + margin: 1.3em 0 .3em; +} +h1 { + font-size: 48px; + font-size: 4.8rem; + margin: 0 0 .3em; +} +h2 { + font-size: 42px; + font-size: 4.2rem; +} +h3 { + font-size: 36px; + font-size: 3.6rem; +} +h4 { + font-size: 24px; + font-size: 2.4rem; +} +h5 { + font-size: 20px; + font-size: 2.0rem; +} +h6 { + font-size: 18px; + font-size: 1.8rem; +} +hr { + background-color: #ccc; + border: 0; + height: 1px; + margin-bottom: 1.6em; +} - display: block; - +/* Text elements */ +p { + margin-bottom: 1.6em; +} +ul, ol { + margin: 0 0 1.6em 3em; +} +ul { + list-style: disc; +} +ol { + list-style: decimal; +} +ul ul, ol ol, ul ol, ol ul { + margin-bottom: 0; + margin-left: 1.6em; +} +dt { + font-weight: bold; +} +dd { + margin: 0 1.6em 1.6em; +} +b, strong { + font-weight: bold; +} +dfn, cite, em, i { + font-style: italic; +} +blockquote { + border-left: 5px solid #f5f5f5; + font-style: italic; + margin: 0 1.6em; + padding: 0 0 0 1.6em; +} +address { + font-style: italic; + margin: 0 0 1.6em; +} +pre { + background: rgba(255,255,255,.2); + font-family: "Courier 10 Pitch", Courier, monospace; + font-size: 18px; + font-size: 1.8rem; + line-height: 1.6; + margin-bottom: 1.6em; + padding: 1em 1.6em; + overflow: auto; + max-width: 100%; +} +code, kbd, tt, var { + font: 18px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +abbr, acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +mark, ins { + background: #fff9c0; + color: #333; + text-decoration: none; +} +sup, +sub { + font-size: 75%; + height: 0; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +small { + font-size: 75%; +} +big { + font-size: 125%; +} +figure { + margin: 0; +} +table { + margin: 0 0 1.6em; width: 100%; - - font-size: 80%; - - text-align:center; - } +td { + padding: 5px 7px; +} +tr.alternate { + background: rgba(255,255,255,.1); +} +th { + border-bottom: 5px solid #f5f5f5; + font-weight: bold; + padding: 5px 7px; +} +button, +input, +select, +textarea { + font-size: 100%; /* Corrects font size not being inherited in all browsers */ + margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ + vertical-align: baseline; /* Improves appearance and consistency in all browsers */ + *vertical-align: middle; /* Improves appearance and consistency in all browsers */ +} +button, +input { + line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */ + *overflow: visible; /* Corrects inner spacing displayed oddly in IE6/7 */ +} +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + border: 1px solid #ccc; + border-color: #ccc #ccc #bbb #ccc; + border-radius: 3px; + background: #e6e6e6; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05); + -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05); + box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05); + color: rgba(0,0,0,.8); + cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */ + -webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */ + font-size: 12px; + font-size: 1.4rem; + line-height: 1; + padding: .7em 1.6em .6em; + text-shadow: 0 1px 0 rgba(255,255,255,.8); +} +button:hover, +html input[type="button"]:hover, +input[type="reset"]:hover, +input[type="submit"]:hover { + border-color: #ccc #bbb #aaa #bbb; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02); + -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02); + box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02); +} +button:focus, +html input[type="button"]:focus, +input[type="reset"]:focus, +input[type="submit"]:focus, +button:active, +html input[type="button"]:active, +input[type="reset"]:active, +input[type="submit"]:active { + border-color: #aaa #bbb #bbb #bbb; + -webkit-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15); + -moz-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15); + box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15); +} +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */ + padding: 0; /* Addresses excess padding in IE8/9 */ +} +input[type="search"] { + -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */ + box-sizing: content-box; +} +input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ + -webkit-appearance: none; +} +button::-moz-focus-inner, +input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ + border: 0; + padding: 0; +} +input[type=text], +input[type=email], +input[type=password], +textarea { + color: #666; + border: 1px solid #ccc; + border-radius: 3px; +} +input[type=text]:focus, +input[type=email]:focus, +input[type=password]:focus, +textarea:focus { + color: #111; +} +input[type=text], +input[type=email], +input[type=password] { + padding: 5px; + position: relative; + top: 3px; +} +textarea { + overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */ + padding-left: 3px; + vertical-align: top; /* Improves readability and alignment in all browsers */ + width: 98%; +} -.bypostauthor { - +/* Links */ +a { + color: #fff; } +a:visited { + color: #fff; +} +a:hover, +a:focus, +a:active { + color: #fff; +} /* Alignment */ - .alignleft { - display: inline; - float: left; - + margin-right: 1.6em; + margin-top: .8em; + margin-bottom: .8em; } - .alignright { - display: inline; - float: right; - + margin-left: 1.6em; + margin-top: .8em; + margin-bottom: .8em; } - .aligncenter { - clear: both; - display: block; + margin: .8em auto; +} - margin-left: auto; +/* Text meant only for screen readers */ +.assistive-text { + clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ + clip: rect(1px, 1px, 1px, 1px); + position: absolute !important; +} - margin-right: auto; +/* =Layout +----------------------------------------------- */ + +#page { + background: #000 url('images/chalk2.jpg') repeat; + background-size: 360px auto; + border-radius: 10px; + display: block; + box-shadow: 5px 5px 20px rgba(0,0,0,.5) inset; + margin: 0 auto; + padding: 15px 100px 5px; + max-width: 960px; + z-index: 10; } +.wrapper { + background: #855e42 url('images/woodtexture.jpg'); + background-size: 225px auto; + border-radius: 10px; + box-shadow: 5px 2px 15px rgba(0,0,0,.4); + display: block; + margin: 40px auto; + max-width: 1170px; + padding: 40px; +} +#main:before, +#main:after { + content: ""; + display: table; +} +#main:after { + clear: both; +} +#primary { + float: none; + margin: 0; +} +.sidebar-active #primary { + float: left; + margin: 0 -25% 0 0; + width: 100%; +} +#content, +body.page-template-nosidebar-page-php #content, +body.single-attachment #content { + margin: 0; +} +.sidebar-active #content { + margin: 0 35% 0 0; +} +#secondary { /* Sidebar 1 */ + float: right; + overflow: hidden; + width: 25%; +} +#tertiary { /* Footer sidebars */ + clear: both; +} +.site-footer { + clear: both; + width: 100%; +} +#colophon { + background: url('images/boardbottom-new.png') no-repeat center bottom; + background-size: 100%; + clear: both; + display: block; + font-family: 'Gloria Hallelujah', Arial, Helvetica, sans-serif; + font-size: 16px; + font-size: 1.6rem; + margin: 50px auto -8px; + max-width: 800px; + text-align: center; + width: 100%; + min-height: 126px; +} + /* =Header +----------------------------------------------- */ --------------------------------------------------------------- */ - -#site-title { - +#masthead { + font-family: 'Gloria Hallelujah', Arial, Helvetica, sans-serif; + margin: 0 0 3.2em; +} +#masthead:before, +#masthead:after { + content: ""; + display: table; +} +#masthead:after { + clear: both; +} +#masthead img { + display: block; + margin: 15px auto; +} +.site-title { font-size: 250%; - font-weight: bold; - - margin: .67em 0; - + line-height: 1.25; + margin: .67em 0 5px; text-align: center; - text-decoration: none; - text-transform: uppercase; - - margin-bottom: 5px; - } - -#site-title a { - +.site-title a { + color: #fff; text-decoration: none; - } - -#site-description { - - font-size: 1em; - +.site-description { + font-size: 24px; + font-size: 2.4rem; font-weight: normal; + margin: 0 0 1.6em; + text-align: center; +} - margin: 0 0 1em; -} - /* =Menu +----------------------------------------------- */ --------------------------------------------------------------- */ - -#access { - - background: url('images/chalk.png'); - +.main-navigation { clear: both; - - margin: 0 auto 1em; - + display: block; + float: left; + text-align: center; width: 100%; - - text-align:center; - - display: inline-block; - - zoom:1; /* IE 7 Hack starts here*/ - - *display:inline; - } - -#access ul { - +.main-navigation ul { list-style: none; - margin: 0; - padding-left: 0; - } - -#access li { - +.main-navigation li { + display: inline; position: relative; - - text-align: center; - +} +.main-navigation a { display: inline-block; - - zoom:1; /* IE 7 Hack starts here*/ - - *display:inline; - -} - -#access a { - - display: block; - + font-size: 19px; + font-size: 1.9rem; line-height: 2em; - - padding: 0 1em; - + padding: 3px 1em; + text-align: center; text-decoration: none; - - font-size: 80%; - } - -#access ul ul { - - box-shadow: 0 3px 3px rgba(0,0,0,0.2); - +.main-navigation ul ul { + background: url('images/chalk.png'); + border: 5px solid #f5f5f5; + border-radius: 5px; -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2); - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2); - + box-shadow: 0 3px 3px rgba(0,0,0,0.2); display: none; - float: left; - position: absolute; - - left: 0; - + top: 1.6em; + left: 0; z-index: 99999; - } - -#access ul ul ul { - +.main-navigation ul ul ul { left: 100%; - - top: 0; - + top: -6px; } - -#access ul ul a { - - background: url('images/chalk.png'); - - line-height: 1em; - - padding: .5em .5em .5em 1em; - - height: auto; - +.main-navigation ul ul a { + line-height: 1.5; + text-align: left; + width: 170px; } - -#access li:hover > a, #access ul ul :hover > a { - - background: url('images/chalk.png'); - +.main-navigation ul ul li { } - -#access ul ul a:hover { - - background: url('images/chalk.png'); - +.main-navigation li:hover > a { + opacity: .8; } +.main-navigation ul ul :hover > a { +} +.main-navigation ul ul a:hover { +} +.main-navigation ul li:hover > ul { + display: block; +} +.main-navigation li.current_page_item a, +.main-navigation li.current-menu-item a { + text-decoration: underline; +} -#access ul li:hover > ul { - +/* Small menu */ +.menu-toggle { + border: 5px solid #fff; + border-radius: 10px; + cursor: pointer; display: block; - + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + font-size: 20px; + font-size: 2.0rem; + margin: 0 auto; + text-align: center; + width: 125px; } +.main-small-navigation .menu { + display: none; +} + /* =Content +----------------------------------------------- */ --------------------------------------------------------------- */ - -.sticky { - +.sticky.hentry { border: 1px solid #f5f5f5; - - border-radius:15px; - - -moz-border-radius: 15px; - - padding:30px; - + border-radius: 15px; + margin: 0 0 1.6em; + padding: 30px; } - -blockquote { - - padding-left: 60px; - - font-style: italic; - +.sticky.hentry:after, +.archive .hentry:last-of-type:after, +.search .hentry:last-of-type:after { + display: none; } - -span.permalink { - - font-size: 80%; - +.hentry { + margin: 0; } - +.hentry:after, +#tertiary:before { + background: url('images/postseparator2.png') no-repeat center bottom; + background-size: 335px auto; + clear: both; + content: ""; + display: block; + margin: 0 0 1.6em; + width: 100%; + height: 85px; +} .entry-title { - + font-size: 41px; + font-size: 4.1rem; text-align: center; - - font-size: 170%; - } - .entry-title a { - text-decoration: none; - } - +.entry-content { + font-family: "Roboto", Arial, Helvetica, sans-serif; + overflow: hidden; +} .entry-meta { - clear: both; - + color: rgba(255,255,255,.9); + font-family: 'Gloria Hallelujah', Arial, Helvetica, sans-serif; + font-size: 18px; + font-size: 1.8rem; + font-style: italic; + text-align: center; +} +.entry-meta a { + color: rgba(255,255,255,.9); +} +.byline { + display: none; +} +.single .byline, +.group-blog .byline { + display: inline; +} +.entry-content, +.entry-summary { + margin: 1.6em 0 0; +} +.page-links { + clear: both; + margin: 0 0 1.6em; +} +.page-title { + font-size: 24px; + font-size: 2.4rem; + margin: 0 0 1.6em; +} +.single-attachment .attachment img { display: block; - + margin: 0 auto; +} +.single-attachment .entry-caption { text-align: center; +} +.edit-link { + clear: both; + display: block; +} - font-size: 75%; - font-style: italic; +/* =Post Formats +----------------------------------------------- */ +.format-link .entry-title { + display: none; } -.single-author .entry-meta .byline { +/* =Media +----------------------------------------------- */ + +.site-header img, +.entry-content img, +.comment-content img, +.widget img { + max-width: 100%; /* Fluid images for posts, comments, and widgets */ } +.site-header img, +.entry-content img, +.comment-content img[height], +img[class*="align"], +img[class*="wp-image-"], +.widget img { + height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ +} +.site-header img, +.entry-content img, +img.size-full { + max-width: 100%; +} +.entry-content img.wp-smiley, +.comment-content img.wp-smiley { + border: none; + margin-bottom: 0; + margin-top: 0; + padding: 0; +} +.wp-caption { + border: 1px solid #ccc; + margin-bottom: 1.6em; + max-width: 100%; +} +.wp-caption img[class*="wp-image-"] { + display: block; + margin: 1.2% auto 0; + max-width: 97%; +} +.widget .wp-caption { + max-width: 99%; +} +.wp-caption-text { + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + font-size: 18px; + font-size: 1.8rem; + text-align: center; +} +.wp-caption .wp-caption-text { + margin: 0.8075em 0; +} +.site-content .gallery { + margin-bottom: 1.6em !important; +} +.gallery-caption { +} +.site-content .gallery a img { + border: none; + height: auto; + max-width: 90%; +} +.site-content .gallery dd { + margin: 0; +} +.site-content .gallery-columns-4 .gallery-item { +} +.site-content .gallery-columns-4 .gallery-item img { +} -#content nav { +/* Make sure embeds and iframes fit their containers */ +embed, +iframe, +object { + max-width: 100%; +} - display: block; - overflow: hidden; +/* =Navigation +----------------------------------------------- */ +#nav-above { + display: none; } - -#content nav .nav-previous { - +.site-content .site-navigation { + margin: 1.6em 0; + overflow: hidden; +} +.site-content .site-navigation a { + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + text-decoration: none; +} +.site-content .nav-previous { float: left; - width: 50%; - } - -#content nav .nav-next { - +.site-content .nav-next, +.next-image { float: right; - text-align: right; - width: 50%; - } -#content #nav-above { +/* =Comments +----------------------------------------------- */ - display: none; - +.comment-content { + font-size: 16px; + font-size: 1.6rem; } - -.paged #content #nav-above, - -.single #content #nav-above { - - display: block; - +.comment-content a { + word-wrap: break-word; } - -#nav-below { - - margin: 1em 0 0; - +.bypostauthor { } - -.page-links { - - clear: both; - - margin: 0 0 1em; - +.form-allowed-tags, +.form-allowed-tags code { + font-size: 14px; + font-size: 1.4rem; } - -.page .edit-link { - - clear: both; - - display: block; - +h2.comments-title { + font-size: 36px; + font-size: 3.6rem; } - -.post-end { - +#commentform .required { + display: inline-block; + margin-left: -5px; + color: #c4513f; + font-weight: bold; +} +h2.comments-title { + margin: .8em 0; + padding: 0 20px; text-align: center; - } - -.page-end { - - margin-bottom: -19px !important; - - text-align:center; - +h3#comments { + padding: 0 20px; } - -#content ul > li { - - margin-left: 30px; - +li.comment { + min-height: 100px; } - -#content ul { - - list-style-type: circle; - +li.comment, +li.pingback, +li.trackback { + padding: 15px 10px; + clear: both; } - -pre { - - margin:10px; - - white-space: pre-wrap; - +ol.commentlist, +ul.commentlist { + list-style: none; + margin: 0; + padding: 0; } - -code { - - margin:10px; - - white-space: pre-wrap; - +ol.commentlist li.alt, +ul.commentlist li.alt { + background-color: rgba(255,255,255,.1); } - -/* Notices */ - -.post .notice, .error404 #searchform { - - display: block; - - padding: 1em; - +ol.commentlist ul.children, +ul.commentlist ul.children { + list-style: none; + margin: 10px 0 0 0; } - -/* Image Attachments */ - -.image-attachment div.entry-meta { - +ol.commentlist ul.children li, +ul.commentlist ul.children li { + list-style: none; + border-bottom: 0 none; +} +ul.commentlist > li.comment > ul.children, +ol.commentlist > li.comment > ul.children { + padding-left: 100px; +} +ul.children { + padding: 0; +} +ul.children .comment-author { + float: none; + width: auto; + border-right: 0 none; + margin: 0; + min-height: 0; + clear: left; +} +ul.children .comment-author cite.fn { + font-weight: bold; + width: auto; + float: none; +} +ul.children .comment-content, +ul.children .comment-content .comment-meta, +ul.children .reply { + padding-left: 0; +} +.avatar { float: left; - + margin-right: 10px; } - -.image-attachment nav { - - float: right; - - margin: 0 0 1em 0; - +.comment-content, +.comment-content .comment-meta, +.reply { + padding-left: 220px; } - -.image-attachment .entry-content { - - clear: both; - +.comment-author { + width: 200px; + float: left; + margin-right: 20px; + min-height: 100px; } - -.image-attachment .entry-content .entry-attachment { - - background: #eee; - - margin: 0 0 1em; - - padding: 1em; - - text-align: center; - +.comment-author cite.fn { + display: block; + float: left; + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + font-weight: bold; + width: 140px; + word-wrap: break-word; } - -.image-attachment .entry-content .attachment { - +ul.children .comment-author cite.fn { + font-family: Arial, Helvetica, sans-serif; + font-size: 18px; + font-size: 1.8rem; + font-style: normal; +} +.comment-form-comment label { display: block; - - margin: 0 auto; - + width: 85px; + float: left; + font-weight: bold; +} +.commentmetadata a { + color: #aaa; + font-size: 14px; + font-size: 1.4rem; + margin-bottom: 5px; + text-decoration: none; + text-transform: uppercase; +} +.nocomments { + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + margin-bottom: 0; text-align: center; - } - -/* Aside Posts */ - -.format-aside .entry-header { - +.says { display: none; - } - -.single .format-aside .entry-header { - - display: block; - +#reply-title small { + float: right; } - -.format-aside .entry-content, .format-aside .entry-summary { - - padding-top: 1em; - +#reply-title a { + text-decoration: none; } - -.single .format-aside .entry-content, .single .format-aside .entry-summary { - - padding-top: 0; - +.comment-reply-link { + color: #aaa; + font-size: 14px; + font-size: 1.4rem; + text-decoration: none; } -/* Gallery Posts */ -.format-gallery .gallery-thumb { +/* =Widgets +----------------------------------------------- */ - float: left; - - margin: 0 1em 0 0; - +#tertiary:before, +#tertiary:after { + content: ""; + display: table; } - -/* Image Posts */ - -.format-image .entry-header { - - display: none; - +#tertiary:after { + clear: both; } - -.single .format-image .entry-header { - - display: block; - +.widget-left, +.widget-middle, +.widget-right { + float: left; + margin-right: 5%; + overflow: hidden; + width: 30%; } - -.format-image .entry-content, .format-image .entry-summary { - - padding-top: 1em; - +.widget-right { + margin-right: 0; } - -.single .format-image .entry-content, .single .format-image .entry-summary { - - padding-top: 0; - +.widget { + font-family: "Roboto", Arial, Helvetica, sans-serif; + font-size: 16px; + font-size: 1.6rem; + margin: 0 0 1.6em; } - -/* =Images - --------------------------------------------------------------- */ - -a img { - - border: none; - +.widget-title { + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + font-size: 24px; + font-size: 2.4rem; } -p img { - - margin-bottom: 0.5em; /* a small bottom margin prevents content floating under images */ - +/* Make sure select elements fit in widgets */ +.widget select { + max-width: 100%; } -/*Resize images to fit the main content area*/ - -img.size-auto, - -img.size-full, - -img.size-large, - -img.size-medium, - -.attachment img, - -.wp-caption { - - max-width: 100%; /* When images are too wide for containing element, force them to fit. */ - - height: auto; /* Override height to match resized width for correct aspect ratio. */ - +/* Search widget */ +#searchsubmit { + display: none; } -img.alignleft { - - margin-right: 1em; - +/* Calendar widget */ +#wp-calendar td, +#wp-calendar th, +#wp-calendar caption { + padding: 2px; + text-align: center; } - -img.alignright { - - margin-left: 1em; - +#wp-calendar caption { + font-weight: bold; } -.wp-caption { +/* WordPress.com Widgets */ - padding: .5em; - - text-align: center; - +/* Flickr */ +#flickr_badge_wrapper { + background: transparent !important; + border: 0 none !important; } - -.wp-caption img { - - margin: .25em; - +#flickr_badge_uber_wrapper, +#flickr_badge_uber_wrapper td, +#flickr_badge_uber_wrapper tr:hover td { + background: transparent; + margin: 0 auto; } - -.wp-caption .wp-caption-text { - - margin: .5em; - +#flickr_badge_uber_wrapper a:hover, +#flickr_badge_uber_wrapper a:link, +#flickr_badge_uber_wrapper a:active, +#flickr_badge_uber_wrapper a:visited { + color: #fff !important; } - -.gallery-caption { - +.widget_recent_comments td { + padding: .8em 5px 1em 5px; + vertical-align: top; } - -.wp-smiley { - +.widget_authors ul, +.widget_author_grid ul { + list-style: none; margin: 0; - + padding: 0; } - -/* =Forms - --------------------------------------------------------------- */ - -#searchform label { - - display: none; - +.widget_authors img { + vertical-align: middle; } - -#searchform input#s { - - width: 60%; - +.widget_authors li { + margin-bottom: .8em; } -input[type=text], input#s { +/* =Infinite Scroll +----------------------------------------------- */ - margin: 0 1em 0 0; - - width: 60%; - +/* Globally hidden elements when Infinite Scroll is supported and in use. */ +.infinite-scroll #nav-above, /* Older / Newer Posts Navigation (always hidden) */ +.infinite-scroll #nav-below, +.infinite-scroll.neverending #colophon { /* Theme Footer (when set to scrolling) */ + display: none; } - -textarea { - - width: 80%; - +.infinite-scroll #infinite-footer .container { + background: url('images/chalk2.jpg'); + color: #fff; } - -/* Class for labelling required form items */ - -.required { - - color: #cc0033; - +#infinite-footer .blog-info a, +#infinite-footer .blog-credits a { + color: #fff; } -/* =Comments - --------------------------------------------------------------- */ - -article.comment { - +/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ +.infinity-end.neverending #colophon { display: block; - } -#respond input[type=text] { - +#infinite-handle span { + border: 5px solid #fff; + border-radius: 10px; display: block; - - width: 60%; - + font-family: "Gloria Hallelujah", Arial, Helvetica, sans-serif; + font-size: 20px; + font-size: 2.0rem; + margin: 0 auto 5px; + text-align: center; + width: 125px; } - -#respond textarea { - - display: block; - - margin: 0 0 1em; - - width: 80%; - - -moz-border-radius: 15px; - - border-radius: 15px; - +.infinite-loader { + color: #fff; + margin: 10px auto 32px; + width: 28px; } -#respond .form-allowed-tags { - clear: both; +/* =Retina Media Queries +----------------------------------------------- */ - width: 80%; +@media only screen and (-webkit-min-device-pixel-ratio: 2), + only screen and (-moz-min-device-pixel-ratio: 2), + only screen and (-o-min-device-pixel-ratio: 2/1), + only screen and (min-device-pixel-ratio: 2) { + #colophon { + background: url('images/boardbottom-new-2x.png') no-repeat center bottom; + background-size: 100%; + } } -#respond .form-allowed-tags code { - display: block; +/* =Responsive Media Queries +----------------------------------------------- */ +@media only screen and ( max-width: 900px ) { + .widget-left, + .widget-middle, + .widget-right, + #secondary { + clear: both; + float: none; + margin: 0; + width: 100%; + } + .sidebar-active #content { + margin: 0; + } } - -/* =Footer - --------------------------------------------------------------- */ - -#colophon { - - padding: 1em 0 0; - -} \ No newline at end of file +@media only screen and ( max-width: 800px ) { + body { + font-size: 18px; + font-size: 1.8rem; + } + .wrapper { + padding: 20px; + } + #page { + padding: 30px 30px 0; + } + .entry-title { + font-size: 28px; + font-size: 2.8rem; + } + .site-title { + font-size: 36px; + font-size: 3.6rem; + } + #colophon, + .entry-meta, + .entry-content { + font-size: 14px; + font-size: 1.4rem; + } + #colophon { + max-width: 100%; + } + .comment-author { + width: auto; + clear: both; + float: none; + min-height: auto; + } + .comment-author cite.fn { + width: auto; + } + .comment-content, + .comment-content .comment-meta, + .reply { + padding-left: 0; + } + .commentmetadata { + clear: both; + width: auto; + } + ul.commentlist > li.comment > ul.children, + ol.commentlist > li.comment > ul.children { + padding-left: 50px; + } +} Index: chalkboard/rtl.css =================================================================== --- chalkboard/rtl.css (revision 0) +++ chalkboard/rtl.css (revision 12466) @@ -0,0 +1,188 @@ +/* =Reset +-------------------------------------------------------------- */ + +caption, th, td { + text-align: right; +} + +/* =Global +----------------------------------------------- */ + +/* Text elements */ + +ul, ol { + margin: 0 3em 1.6em 0; +} + +ul ul, ol ol, ul ol, ol ul { + margin-right: 1.6em; + margin-left: auto; +} + +blockquote { + border-right: 5px solid #f5f5f5; + padding: 0 1.6em 0 0; + border-left: none; +} + +textarea { + padding-right: 3px; + padding-left: 0; +} + +/* Alignment */ +.alignright { + float: right; + margin-left: 1.6em; + margin-right: auto; +} + +.alignleft { + float: left; + margin-right: 1.6em; + margin-left: auto; +} + +/* =Layout +----------------------------------------------- */ + +.sidebar-active #primary { + float: right; + margin: 0 0 0 -25%; +} + +.sidebar-active #content { + margin: 0 0 0 35%; +} + +#secondary { + float: left; +} + +/* =Menu +----------------------------------------------- */ + +.main-navigation { + float: right; +} + +.main-navigation ul { + padding-right: 0; + padding-left: 0; +} + +.main-navigation ul ul { + float: right; + right: 0; + left: auto; +} + +.main-navigation ul ul ul { + right: 100%; + left: auto; +} + +.main-navigation ul ul a { + text-align: right; +} + +/* =Navigation +----------------------------------------------- */ + +.site-content .nav-previous { + float: right; +} + +.site-content .nav-next, +.next-image { + float: left; + text-align: left; +} + +/* =Comments +----------------------------------------------- */ + +#commentform .required { + margin-right: -5px; + margin-left: auto; +} + +ul.commentlist > li.comment > ul.children, +ol.commentlist > li.comment > ul.children { + padding-right: 100px; + padding-left: 0; +} + +ul.children .comment-author { + border-left: 0 none; + clear: right; + border-right: none; +} + +ul.children .comment-content, +ul.children .comment-content .comment-meta, +ul.children .reply { + padding-right: 0; + padding-left: 0; +} + +.avatar { + float: right; + margin-left: 10px; + margin-right: auto; +} + +.comment-content, +.comment-content .comment-meta, +.reply { + padding-right: 220px; + padding-left: 0; +} + +.comment-author { + float: right; + margin-left: 20px; + margin-right: auto; +} + +.comment-author cite.fn { + float: right; +} + +.comment-form-comment label { + float: right; +} + +#reply-title small { + float: left; +} + +/* =Widgets +----------------------------------------------- */ + +.widget-right, +.widget-middle, +.widget-left { + float: right; + margin-left: 5%; + margin-right: auto; +} + +.widget-left { + margin-left: 0; + margin-right: auto; +} + +@media only screen and ( max-width: 800px ) { + .comment-content, + .comment-content .comment-meta, + .reply { + padding-right: 0; + padding-left: 0; + } + ul.commentlist > li.comment > ul.children, + ol.commentlist > li.comment > ul.children { + padding-right: 50px; + padding-left: 0; + } +} Property changes on: chalkboard/rtl.css ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/search.php =================================================================== --- chalkboard/search.php (revision 12363) +++ chalkboard/search.php (revision 12466) @@ -1,33 +1,41 @@ - -
-
- -

' . get_search_query() . '' ); ?>

- -
> -

-

- -
- - '' ) ); ?> -
-
Separator
-
- - - -

-
-

- -
- -
-
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file Index: chalkboard/index.php =================================================================== --- chalkboard/index.php (revision 12363) +++ chalkboard/index.php (revision 12466) @@ -1,33 +1,49 @@ - -
-
- - -
> -

-

- -
- - '' ) ); ?> -Permalink -
-
Separator
-
- - - -

-
-

- -
- -
-
+ + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file Index: chalkboard/404.php =================================================================== --- chalkboard/404.php (revision 12363) +++ chalkboard/404.php (revision 12466) @@ -1,10 +1,30 @@ - -
-
-

-

- -

Recent Posts

-
-
+ + +
+
+ +
+
+

+
+ +
+

+ + + +
+
+ +
+
+ \ No newline at end of file Index: chalkboard/functions.php =================================================================== --- chalkboard/functions.php (revision 12363) +++ chalkboard/functions.php (revision 12466) @@ -1,33 +1,271 @@ - __( 'Primary Menu', 'classicchalkboard' ), + 'f1eedc', + 'default-image' => get_template_directory_uri() . '/images/walltexture.png', + ); + + $args = apply_filters( 'chalkboard_custom_background_args', $args ); + + if ( function_exists( 'wp_get_theme' ) ) { //TODO: Remove this shiv after 3.6 + add_theme_support( 'custom-background', $args ); + } else { + define( 'BACKGROUND_COLOR', $args['default-color'] ); + define( 'BACKGROUND_IMAGE', $args['default-image'] ); + add_custom_background(); + } + + /** + * Make theme available for translation + * Translations can be filed in the /languages/ directory + * If you're building a theme based on Chalkboard, use a find and replace + * to change 'chalkboard' to the name of your theme in all the template files + */ + load_theme_textdomain( 'chalkboard', get_template_directory() . '/languages' ); + + /** + * Add default posts and comments RSS feed links to head + */ + add_theme_support( 'automatic-feed-links' ); + + /** + * Enable support for Post Thumbnails + */ + add_theme_support( 'post-thumbnails' ); + + /** + * This theme uses wp_nav_menu() in one location. + */ + register_nav_menus( array( + 'primary' => __( 'Primary Menu', 'chalkboard' ), ) ); -if ( ! isset( $content_width ) ) $content_width = 900; -add_theme_support( 'automatic-feed-links' ); -function classicchalkboard_widgets_init() { + + /** + * Enable support for Post Formats + */ + add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); +} +endif; // chalkboard_setup +add_action( 'after_setup_theme', 'chalkboard_setup' ); + +/** + * Setup the WordPress core custom background feature. + * + * Use add_theme_support to register support for WordPress 3.4+ + * as well as provide backward compatibility for WordPress 3.3 + * using feature detection of wp_get_theme() which was introduced + * in WordPress 3.4. + * + * @todo Remove the 3.3 support when WordPress 3.6 is released. + * + * Hooks into the after_setup_theme action. + */ +function chalkboard_register_custom_background() { + $args = array( + 'default-color' => 'ffffff', + 'default-image' => '', + ); + + $args = apply_filters( 'chalkboard_custom_background_args', $args ); + + if ( function_exists( 'wp_get_theme' ) ) { + add_theme_support( 'custom-background', $args ); + } else { + define( 'BACKGROUND_COLOR', $args['default-color'] ); + if ( ! empty( $args['default-image'] ) ) + define( 'BACKGROUND_IMAGE', $args['default-image'] ); + add_custom_background(); + } +} +add_action( 'after_setup_theme', 'chalkboard_register_custom_background' ); + +/** + * Register widgetized area and update sidebar with default widgets + * + * @since Chalkboard 1.0 + */ +function chalkboard_widgets_init() { register_sidebar( array( - 'name' => 'Page Sidebar', - 'id' => 'sidebar', - 'before_widget' => '
', - 'after_widget' => '
', - 'before_title' => '', + 'name' => __( 'Sidebar', 'chalkboard' ), + 'id' => 'sidebar-1', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', ) ); + register_sidebar( array( + 'name' => __( 'Footer Sidebar 1', 'chalkboard' ), + 'id' => 'footer-sidebar-1', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) ); + register_sidebar( array( + 'name' => __( 'Footer Sidebar 2', 'chalkboard' ), + 'id' => 'footer-sidebar-2', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) ); + register_sidebar( array( + 'name' => __( 'Footer Sidebar 3', 'chalkboard' ), + 'id' => 'footer-sidebar-3', + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) ); } -add_action( 'widgets_init', 'classicchalkboard_widgets_init' ); +add_action( 'widgets_init', 'chalkboard_widgets_init' ); -function classicchalkboard_wp_title( $title, $sep ) { - global $paged, $page; - if ( is_feed() ) - return $title; - // Add the site name. - $title .= get_bloginfo( 'name' ); - // Add the site description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - $title = "$title $sep $site_description"; - // Add a page number if necessary. - if ( $paged >= 2 || $page >= 2 ) - $title = "$title $sep " . sprintf( __( 'Page %s', 'classicchalkboard' ), max( $paged, $page ) ); - return $title; + +/** + * Enqueue Google Fonts + */ + +function chalkboard_fonts() { + + $protocol = is_ssl() ? 'https' : 'http'; + + /* translators: If there are characters in your language that are not supported + by Gloria Hallelujah, translate this to 'off'. Do not translate into your own language. */ + + if ( 'off' !== _x( 'on', 'Gloria Hallelujah font: on or off', 'chalkboard' ) ) { + + wp_register_style( 'chalkboard-gloria', "$protocol://fonts.googleapis.com/css?family=Gloria+Hallelujah" ); + + } + + /* translators: If there are characters in your language that are not supported + by Roberto Condensed, translate this to 'off'. Do not translate into your own language. */ + + if ( 'off' !== _x( 'on', 'Roberto Condensed font: on or off', 'minimalizine' ) ) { + + $roboto_subsets = 'latin,latin-ext'; + + /* translators: To add an additional Open Sans character subset specific to your language, translate + this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */ + $roboto_subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'minimalizine' ); + + if ( 'cyrillic' == $roboto_subset ) + $roboto_subsets .= ',cyrillic,cyrillic-ext'; + elseif ( 'greek' == $roboto_subset ) + $roboto_subsets .= ',greek,greek-ext'; + elseif ( 'vietnamese' == $roboto_subset ) + $roboto_subsets .= ',vietnamese'; + + $roboto_query_args = array( + 'family' => 'Roboto:400italic,700italic,400,700', + 'subset' => $roboto_subsets, + ); + wp_register_style( 'chalkboard-roboto', add_query_arg( $roboto_query_args, "$protocol://fonts.googleapis.com/css" ), array(), null ); + } + } -add_filter( 'wp_title', 'classicchalkboard_wp_title', 10, 2 ); \ No newline at end of file + +add_action( 'init', 'chalkboard_fonts' ); + +/** + * Enqueue scripts and styles + */ +function chalkboard_scripts() { + wp_enqueue_style( 'style', get_stylesheet_uri() ); + + wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', true ); + + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { + wp_enqueue_script( 'comment-reply' ); + } + + if ( is_singular() && wp_attachment_is_image() ) { + wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); + } + wp_enqueue_style( 'chalkboard-gloria' ); + wp_enqueue_style( 'chalkboard-roboto' ); +} +add_action( 'wp_enqueue_scripts', 'chalkboard_scripts' ); + +/** + * Enqueue font styles in custom header admin + */ + +function chalkboard_admin_fonts( $hook_suffix ) { + + if ( 'appearance_page_custom-header' != $hook_suffix ) + return; + + wp_enqueue_style( 'chalkboard-gloria' ); + +} +add_action( 'admin_enqueue_scripts', 'chalkboard_admin_fonts' ); + +/** + * Implement the Custom Header feature + */ +require( get_template_directory() . '/inc/custom-header.php' ); Index: chalkboard/sidebar.php =================================================================== --- chalkboard/sidebar.php (revision 12363) +++ chalkboard/sidebar.php (revision 12466) @@ -1,27 +1,34 @@ \ No newline at end of file + + + + + Index: chalkboard/license.txt =================================================================== --- chalkboard/license.txt (revision 0) +++ chalkboard/license.txt (revision 12466) @@ -0,0 +1,281 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110, USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + Property changes on: chalkboard/license.txt ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/content.php =================================================================== --- chalkboard/content.php (revision 0) +++ chalkboard/content.php (revision 12466) @@ -0,0 +1,60 @@ + + +
> +
+ ', '' ); ?> +
+ + +
+ +
+ +
+ →', 'chalkboard' ) ); ?> + '' ) ); ?> +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + ', '' ); ?> +
+
Property changes on: chalkboard/content.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/screenshot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Index: chalkboard/no-results.php =================================================================== --- chalkboard/no-results.php (revision 0) +++ chalkboard/no-results.php (revision 12466) @@ -0,0 +1,34 @@ + + +
+
+

+
+ +
+ + +

Get started here.', 'chalkboard' ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

+ + + +

+ + + + +

+ + + +
+
Property changes on: chalkboard/no-results.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/page.php =================================================================== --- chalkboard/page.php (revision 12363) +++ chalkboard/page.php (revision 12466) @@ -1,51 +1,31 @@ - -
-
- - -
> -

-

-
+ - - '' ) ); ?> -
Separator
-
- - - -

-
-

- -
- +get_header(); ?> +
+
+ + + + - +
+
- - -
- - - - - - - - - - - - - - - + \ No newline at end of file Index: chalkboard/images/boardbottom.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Index: chalkboard/images/postseparator.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Index: chalkboard/images/chalk2.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/jpeg Property changes on: chalkboard/images/chalk2.jpg ___________________________________________________________________ Added: svn:mime-type + image/jpeg Index: chalkboard/images/walltexture.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Property changes on: chalkboard/images/walltexture.png ___________________________________________________________________ Added: svn:mime-type + image/png Index: chalkboard/images/chalk.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Index: chalkboard/images/boardbottom-new.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Property changes on: chalkboard/images/boardbottom-new.png ___________________________________________________________________ Added: svn:mime-type + image/png Index: chalkboard/images/woodtexture.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/jpeg Property changes on: chalkboard/images/woodtexture.jpg ___________________________________________________________________ Added: svn:mime-type + image/jpeg Index: chalkboard/images/postseparator2.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Property changes on: chalkboard/images/postseparator2.png ___________________________________________________________________ Added: svn:mime-type + image/png Index: chalkboard/images/boardbottom-new-2x.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = image/png Property changes on: chalkboard/images/boardbottom-new-2x.png ___________________________________________________________________ Added: svn:mime-type + image/png Index: chalkboard/languages/readme.txt =================================================================== --- chalkboard/languages/readme.txt (revision 0) +++ chalkboard/languages/readme.txt (revision 12466) @@ -0,0 +1,6 @@ +Place your theme language files in this directory. + +Please visit the following links to learn more about translating WordPress themes: + +http://codex.wordpress.org/Translating_WordPress +http://codex.wordpress.org/Function_Reference/load_theme_textdomain Property changes on: chalkboard/languages/readme.txt ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/nosidebar-page.php =================================================================== --- chalkboard/nosidebar-page.php (revision 0) +++ chalkboard/nosidebar-page.php (revision 12466) @@ -0,0 +1,31 @@ + + +
+
+ + + + + + + + + +
+
+ + \ No newline at end of file Property changes on: chalkboard/nosidebar-page.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/archive.php =================================================================== --- chalkboard/archive.php (revision 0) +++ chalkboard/archive.php (revision 12466) @@ -0,0 +1,97 @@ + + +
+
+ + + +
' ); + + } elseif ( is_tag() ) { + // show an optional tag description + $tag_description = tag_description(); + if ( ! empty( $tag_description ) ) + echo apply_filters( 'tag_archive_meta', '
' . $tag_description . '
' ); + } + ?> + + + + + + + + + + + + + + + + + + + + +
+ + + \ No newline at end of file Property changes on: chalkboard/archive.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/single.php =================================================================== --- chalkboard/single.php (revision 12363) +++ chalkboard/single.php (revision 12466) @@ -1,35 +1,34 @@ - -
-
- - -
> -

-

-
- -
- - '' ) ); ?> -
Separator
-
- - '); ?> - -
-
- - - -

-
-

- -
- -
-
+ + +
+
+ + + + + + + + + + + + + +
+
+ \ No newline at end of file Index: chalkboard/image.php =================================================================== --- chalkboard/image.php (revision 0) +++ chalkboard/image.php (revision 12466) @@ -0,0 +1,119 @@ + + +
+
+ + + +
> +
+

+ + + + +
+ +
+ +
+
+ $post->post_parent, + 'post_status' => 'inherit', + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'order' => 'ASC', + 'orderby' => 'menu_order ID' + ) ) ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } + ?> + + ID, $attachment_size ); + ?> +
+ + post_excerpt ) ) : ?> +
+ +
+ +
+ + + '' ) ); ?> + +
+ +
+ + Post a comment or leave a trackback: Trackback URL.', 'chalkboard' ), get_trackback_url() ); ?> + + Trackback URL.', 'chalkboard' ), get_trackback_url() ); ?> + + post a comment.', 'chalkboard' ); ?> + + + + ', '' ); ?> +
+
+ + + + + +
+
+ + \ No newline at end of file Property changes on: chalkboard/image.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/inc/custom-header.php =================================================================== --- chalkboard/inc/custom-header.php (revision 0) +++ chalkboard/inc/custom-header.php (revision 12466) @@ -0,0 +1,196 @@ + '', + 'default-text-color' => 'fff', + 'width' => 960, + 'height' => 250, + 'flex-height' => true, + 'flex-width' => true, + 'wp-head-callback' => 'chalkboard_header_style', + 'admin-head-callback' => 'chalkboard_admin_header_style', + 'admin-preview-callback' => 'chalkboard_admin_header_image', + ); + + $args = apply_filters( 'chalkboard_custom_header_args', $args ); + + if ( function_exists( 'wp_get_theme' ) ) { + add_theme_support( 'custom-header', $args ); + } else { + // Compat: Versions of WordPress prior to 3.4. + define( 'HEADER_TEXTCOLOR', $args['default-text-color'] ); + define( 'HEADER_IMAGE', $args['default-image'] ); + define( 'HEADER_IMAGE_WIDTH', $args['width'] ); + define( 'HEADER_IMAGE_HEIGHT', $args['height'] ); + add_custom_image_header( $args['wp-head-callback'], $args['admin-head-callback'], $args['admin-preview-callback'] ); + } +} +add_action( 'after_setup_theme', 'chalkboard_custom_header_setup' ); + +/** + * Shiv for get_custom_header(). + * + * get_custom_header() was introduced to WordPress + * in version 3.4. To provide backward compatibility + * with previous versions, we will define our own version + * of this function. + * + * @todo Remove this function when WordPress 3.6 is released. + * @return stdClass All properties represent attributes of the curent header image. + * + * @package Chalkboard + * @since Chalkboard 1.1 + */ + +if ( ! function_exists( 'get_custom_header' ) ) { + function get_custom_header() { + return (object) array( + 'url' => get_header_image(), + 'thumbnail_url' => get_header_image(), + 'width' => HEADER_IMAGE_WIDTH, + 'height' => HEADER_IMAGE_HEIGHT, + ); + } +} + +if ( ! function_exists( 'chalkboard_header_style' ) ) : +/** + * Styles the header image and text displayed on the blog + * + * @see chalkboard_custom_header_setup(). + * + * @since Chalkboard 1.0 + */ +function chalkboard_header_style() { + + // If no custom options for text are set, let's bail + // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value + if ( HEADER_TEXTCOLOR == get_header_textcolor() ) + return; + // If we get this far, we have custom styles. Let's do this. + ?> + + Header admin panel. + * + * @see chalkboard_custom_header_setup(). + * + * @since Chalkboard 1.0 + */ +function chalkboard_admin_header_style() { +?> + + Header admin panel. + * + * @see chalkboard_custom_header_setup(). + * + * @since Chalkboard 1.0 + */ +function chalkboard_admin_header_image() { ?> +
+ + + + +

onclick="return false;" href="">

+
>
+
+ 'content', + 'footer_widgets' => 'infinite_scroll_has_footer_widgets', + 'footer' => 'page', + ) ); +} +add_action( 'after_setup_theme', 'chalkboard_infinite_scroll_setup' ); + + +function infinite_scroll_has_footer_widgets() { + + if ( is_active_sidebar( 'footer-sidebar-1' ) || is_active_sidebar( 'footer-sidebar-2' ) || is_active_sidebar( 'footer-sidebar-3' ) || jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar-1' ) ) + return true; + + return false; + +} \ No newline at end of file Property changes on: chalkboard/inc/jetpack.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/inc/customizer.php =================================================================== --- chalkboard/inc/customizer.php (revision 0) +++ chalkboard/inc/customizer.php (revision 12466) @@ -0,0 +1,30 @@ +get_setting( 'blogname' )->transport = 'postMessage'; + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; +} +add_action( 'customize_register', 'chalkboard_customize_register' ); + +/** + * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. + * + * @since Chalkboard 1.2 + */ +function chalkboard_customize_preview_js() { + wp_enqueue_script( 'chalkboard_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20120827', true ); +} +add_action( 'customize_preview_init', 'chalkboard_customize_preview_js' ); Property changes on: chalkboard/inc/customizer.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/inc/wpcom.php =================================================================== --- chalkboard/inc/wpcom.php (revision 0) +++ chalkboard/inc/wpcom.php (revision 12466) @@ -0,0 +1,46 @@ + '333333', + 'border' => 'ffffff', + 'text' => 'ffffff', + 'link' => 'ffffff', + 'url' => 'ffffff', +); + +/* + * De-queue Google fonts if custom fonts are being used instead + */ + +function chalkboard_dequeue_fonts() { + if ( class_exists( 'TypekitData' ) ) { + if ( TypekitData::get( 'upgraded' ) ) { + $customfonts = TypekitData::get( 'families' ); + if ( ! $customfonts ) + return; + + $site_title = $customfonts['site-title']; + $headings = $customfonts['headings']; + $body_text = $customfonts['body-text']; + + if ( $site_title['id'] && $headings['id'] && $body_text['id'] ) { + wp_dequeue_style( 'chalkboard-gloria' ); + wp_dequeue_style( 'chalkboard-roboto' ); + } + } + } +} Property changes on: chalkboard/inc/wpcom.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/inc/extras.php =================================================================== --- chalkboard/inc/extras.php (revision 0) +++ chalkboard/inc/extras.php (revision 12466) @@ -0,0 +1,81 @@ +post_parent ) && $image->post_parent != $id ) + $url .= '#main'; + + return $url; +} +add_filter( 'attachment_link', 'chalkboard_enhanced_image_navigation', 10, 2 ); + +/** + * Filters wp_title to print a neat tag based on what is being viewed. + * + * @since Chalkboard 1.1 + */ +function chalkboard_wp_title( $title, $sep ) { + global $page, $paged; + + if ( is_feed() ) + return $title; + + // Add the blog name + $title .= get_bloginfo( 'name' ); + + // Add the blog description for the home/front page. + $site_description = get_bloginfo( 'description', 'display' ); + if ( $site_description && ( is_home() || is_front_page() ) ) + $title .= " $sep $site_description"; + + // Add a page number if necessary: + if ( $paged >= 2 || $page >= 2 ) + $title .= " $sep " . sprintf( __( 'Page %s', 'chalkboard' ), max( $paged, $page ) ); + + return $title; +} +add_filter( 'wp_title', 'chalkboard_wp_title', 10, 2 ); \ No newline at end of file Property changes on: chalkboard/inc/extras.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/inc/template-tags.php =================================================================== --- chalkboard/inc/template-tags.php (revision 0) +++ chalkboard/inc/template-tags.php (revision 12466) @@ -0,0 +1,175 @@ +<?php +/** + * Custom template tags for this theme. + * + * Eventually, some of the functionality here could be replaced by core features + * + * @package Chalkboard + * @since Chalkboard 1.0 + */ + +if ( ! function_exists( 'chalkboard_content_nav' ) ) : +/** + * Display navigation to next/previous pages when applicable + * + * @since Chalkboard 1.0 + */ +function chalkboard_content_nav( $nav_id ) { + global $wp_query, $post; + + // Don't print empty markup on single pages if there's nowhere to navigate. + if ( is_single() ) { + $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); + $next = get_adjacent_post( false, '', false ); + + if ( ! $next && ! $previous ) + return; + } + + // Don't print empty markup in archives if there's only one page. + if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) + return; + + $nav_class = 'site-navigation paging-navigation'; + if ( is_single() ) + $nav_class = 'site-navigation post-navigation'; + + ?> + <nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>"> + <h1 class="assistive-text"><?php _e( 'Post navigation', 'chalkboard' ); ?></h1> + + <?php if ( is_single() ) : // navigation links for single posts ?> + + <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'chalkboard' ) . '</span> %title' ); ?> + <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'chalkboard' ) . '</span>' ); ?> + + <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> + + <?php if ( get_next_posts_link() ) : ?> + <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'chalkboard' ) ); ?></div> + <?php endif; ?> + + <?php if ( get_previous_posts_link() ) : ?> + <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'chalkboard' ) ); ?></div> + <?php endif; ?> + + <?php endif; ?> + + </nav><!-- #<?php echo esc_html( $nav_id ); ?> --> + <?php +} +endif; // chalkboard_content_nav + +if ( ! function_exists( 'chalkboard_comment' ) ) : +/** + * Template for comments and pingbacks. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Chalkboard 1.0 + */ +function chalkboard_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case 'pingback' : + case 'trackback' : + ?> + <li class="post pingback"> + <p><?php _e( 'Pingback:', 'chalkboard' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'chalkboard' ), ' ' ); ?></p> + <?php + break; + default : + ?> + <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> + <article id="comment-<?php comment_ID(); ?>" class="comment"> + <footer> + <div class="comment-author vcard"> + <?php echo get_avatar( $comment, 40 ); ?> + <?php printf( __( '%s <span class="says">says:</span>', 'chalkboard' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> + </div><!-- .comment-author .vcard --> + <?php if ( $comment->comment_approved == '0' ) : ?> + <em><?php _e( 'Your comment is awaiting moderation.', 'chalkboard' ); ?></em> + <br /> + <?php endif; ?> + + <div class="comment-meta commentmetadata"> + <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>"> + <?php + /* translators: 1: date, 2: time */ + printf( __( '%1$s at %2$s', 'chalkboard' ), get_comment_date(), get_comment_time() ); ?> + </time></a> + <?php edit_comment_link( __( '(Edit)', 'chalkboard' ), ' ' ); + ?> + </div><!-- .comment-meta .commentmetadata --> + </footer> + + <div class="comment-content"><?php comment_text(); ?></div> + + <div class="reply"> + <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> + </div><!-- .reply --> + </article><!-- #comment-## --> + + <?php + break; + endswitch; +} +endif; // ends check for chalkboard_comment() + +if ( ! function_exists( 'chalkboard_posted_on' ) ) : +/** + * Prints HTML with meta information for the current post-date/time and author. + * + * @since Chalkboard 1.0 + */ +function chalkboard_posted_on() { + printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'chalkboard' ), + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ), + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( sprintf( __( 'View all posts by %s', 'chalkboard' ), get_the_author() ) ), + get_the_author() + ); +} +endif; + +/** + * Returns true if a blog has more than 1 category + * + * @since Chalkboard 1.0 + */ +function chalkboard_categorized_blog() { + if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) { + // Create an array of all the categories that are attached to posts + $all_the_cool_cats = get_categories( array( + 'hide_empty' => 1, + ) ); + + // Count the number of categories that are attached to the posts + $all_the_cool_cats = count( $all_the_cool_cats ); + + set_transient( 'all_the_cool_cats', $all_the_cool_cats ); + } + + if ( '1' != $all_the_cool_cats ) { + // This blog has more than 1 category so chalkboard_categorized_blog should return true + return true; + } else { + // This blog has only 1 category so chalkboard_categorized_blog should return false + return false; + } +} + +/** + * Flush out the transients used in chalkboard_categorized_blog + * + * @since Chalkboard 1.0 + */ +function chalkboard_category_transient_flusher() { + // Like, beat it. Dig? + delete_transient( 'all_the_cool_cats' ); +} +add_action( 'edit_category', 'chalkboard_category_transient_flusher' ); +add_action( 'save_post', 'chalkboard_category_transient_flusher' ); \ No newline at end of file Property changes on: chalkboard/inc/template-tags.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/content-page.php =================================================================== --- chalkboard/content-page.php (revision 0) +++ chalkboard/content-page.php (revision 12466) @@ -0,0 +1,20 @@ +<?php +/** + * The template used for displaying page content in page.php + * + * @package Chalkboard + * @since Chalkboard 1.0 + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + <header class="entry-header"> + <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> + </header><!-- .entry-header --> + + <div class="entry-content"> + <?php the_content(); ?> + <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'chalkboard' ), 'after' => '</div>' ) ); ?> + <?php edit_post_link( __( 'Edit', 'chalkboard' ), '<span class="edit-link">', '</span>' ); ?> + </div><!-- .entry-content --> +</article><!-- #post-<?php the_ID(); ?> --> Property changes on: chalkboard/content-page.php ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/comments.php =================================================================== --- chalkboard/comments.php (revision 12363) +++ chalkboard/comments.php (revision 12466) @@ -1,27 +1,76 @@ -<?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?> - <?php die('You can not access this page directly!'); ?> -<?php endif; ?> -<?php if(!empty($post->post_password)) : ?> - <?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?> - <p>This post is password protected. Enter the password to view comments.</p> - <?php endif; ?> -<?php endif; ?> -<?php if ( have_comments() ) : ?> - <ol class="commentlist"> - <?php wp_list_comments(array('style' => 'div')); ?> - </ol> -<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> - <div class="navigation"> - <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments' , 'classicchalkboard' ) ); ?></div> - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>' , 'classicchalkboard' ) ); ?></div> - </div> <!-- .navigation --> -<?php endif; // check for comment navigation ?> <?php - /* If there are no comments and comments are closed, let's leave a note. - * But we only want the note on posts and pages that had comments in the first place. - */ - if ( ! comments_open() && get_comments_number() ) : ?> - <p class="nocomments"><?php _e( 'Comments are closed.' , 'classicchalkboard' ); ?></p> - <?php endif; ?> +/** + * The template for displaying Comments. + * + * The area of the page that contains both current comments + * and the comment form. The actual display of comments is + * handled by a callback to chalkboard_comment() which is + * located in the functions.php file. + * + * @package Chalkboard + * @since Chalkboard 1.0 + */ +?> + +<?php + /* + * If the current post is protected by a password and + * the visitor has not yet entered the password we will + * return early without loading the comments. + */ + if ( post_password_required() ) + return; +?> + + <div id="comments" class="comments-area"> + + <?php // You can start editing here -- including this comment! ?> + + <?php if ( have_comments() ) : ?> + <h2 class="comments-title"> + <?php + printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'chalkboard' ), + number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); + ?> + </h2> + + <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + <nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation"> + <h1 class="assistive-text"><?php _e( 'Comment navigation', 'chalkboard' ); ?></h1> + <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'chalkboard' ) ); ?></div> + <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'chalkboard' ) ); ?></div> + </nav><!-- #comment-nav-before .site-navigation .comment-navigation --> + <?php endif; // check for comment navigation ?> + + <ol class="commentlist"> + <?php + /* Loop through and list the comments. Tell wp_list_comments() + * to use chalkboard_comment() to format the comments. + * If you want to overload this in a child theme then you can + * define chalkboard_comment() and that will be used instead. + * See chalkboard_comment() in inc/template-tags.php for more. + */ + wp_list_comments( array( 'callback' => 'chalkboard_comment' ) ); + ?> + </ol><!-- .commentlist --> + + <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + <nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation"> + <h1 class="assistive-text"><?php _e( 'Comment navigation', 'chalkboard' ); ?></h1> + <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'chalkboard' ) ); ?></div> + <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'chalkboard' ) ); ?></div> + </nav><!-- #comment-nav-below .site-navigation .comment-navigation --> + <?php endif; // check for comment navigation ?> + <?php endif; // have_comments() ?> - <?php comment_form(); ?> \ No newline at end of file + + <?php + // If comments are closed and there are comments, let's leave a little note, shall we? + if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : + ?> + <p class="nocomments"><?php _e( 'Comments are closed.', 'chalkboard' ); ?></p> + <?php endif; ?> + + <?php comment_form(); ?> + +</div><!-- #comments .comments-area --> Index: chalkboard/js/customizer.js =================================================================== --- chalkboard/js/customizer.js (revision 0) +++ chalkboard/js/customizer.js (revision 12466) @@ -0,0 +1,19 @@ +/** + * Theme Customizer enhancements for a better user experience. + * + * Contains handlers to make Theme Customizer preview reload changes asynchronously. + */ + +( function( $ ) { + // Site title and description. + wp.customize( 'blogname', function( value ) { + value.bind( function( to ) { + $( '.site-title a' ).html( to ); + } ); + } ); + wp.customize( 'blogdescription', function( value ) { + value.bind( function( to ) { + $( '.site-description' ).html( to ); + } ); + } ); +} )( jQuery ); \ No newline at end of file Property changes on: chalkboard/js/customizer.js ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/js/html5.js =================================================================== --- chalkboard/js/html5.js (revision 0) +++ chalkboard/js/html5.js (revision 12466) @@ -0,0 +1,6 @@ +/*! HTML5 Shiv v3.6 stable | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ +(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); +a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>"; +c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a"); +var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a, +b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document); \ No newline at end of file Property changes on: chalkboard/js/html5.js ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/js/small-menu.js =================================================================== --- chalkboard/js/small-menu.js (revision 0) +++ chalkboard/js/small-menu.js (revision 12466) @@ -0,0 +1,39 @@ +/** + * Handles toggling the main navigation menu for small screens. + */ +jQuery( document ).ready( function( $ ) { + var $masthead = $( '#masthead' ), + timeout = false; + + $.fn.smallMenu = function() { + $masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' ); + $masthead.find( '.site-navigation h1' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' ); + + $( '.menu-toggle' ).unbind( 'click' ).click( function() { + $masthead.find( '.menu' ).toggle(); + $( this ).toggleClass( 'toggled-on' ); + } ); + }; + + // Check viewport width on first load. + if ( $( window ).width() < 600 ) + $.fn.smallMenu(); + + // Check viewport width when user resizes the browser window. + $( window ).resize( function() { + var browserWidth = $( window ).width(); + + if ( false !== timeout ) + clearTimeout( timeout ); + + timeout = setTimeout( function() { + if ( browserWidth < 600 ) { + $.fn.smallMenu(); + } else { + $masthead.find( '.site-navigation' ).removeClass( 'main-small-navigation' ).addClass( 'main-navigation' ); + $masthead.find( '.site-navigation h1' ).removeClass( 'menu-toggle' ).addClass( 'assistive-text' ); + $masthead.find( '.menu' ).removeAttr( 'style' ); + } + }, 200 ); + } ); +} ); \ No newline at end of file Property changes on: chalkboard/js/small-menu.js ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/js/keyboard-image-navigation.js =================================================================== --- chalkboard/js/keyboard-image-navigation.js (revision 0) +++ chalkboard/js/keyboard-image-navigation.js (revision 12466) @@ -0,0 +1,14 @@ +jQuery( document ).ready( function( $ ) { + $( document ).keydown( function( e ) { + var url = false; + if ( e.which == 37 ) { // Left arrow key code + url = $( '.previous-image a' ).attr( 'href' ); + } + else if ( e.which == 39 ) { // Right arrow key code + url = $( '.entry-attachment a' ).attr( 'href' ); + } + if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) { + window.location = url; + } + } ); +} ); \ No newline at end of file Property changes on: chalkboard/js/keyboard-image-navigation.js ___________________________________________________________________ Added: svn:eol-style + native Index: chalkboard/header.php =================================================================== --- chalkboard/header.php (revision 12363) +++ chalkboard/header.php (revision 12466) @@ -2,44 +2,48 @@ /** * The Header for our theme. * + * Displays all of the <head> section and everything up till <div id="main"> + * + * @package Chalkboard + * @since Chalkboard 1.0 */ ?><!DOCTYPE html> -<!--[if IE 6]> -<html id="ie6" <?php language_attributes(); ?>> -<![endif]--> -<!--[if IE 7]> -<html id="ie7" <?php language_attributes(); ?>> -<![endif]--> -<!--[if IE 8]> -<html id="ie8" <?php language_attributes(); ?>> -<![endif]--> -<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> -<!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> +<meta name="viewport" content="width=device-width" /> <title><?php wp_title( '|', true, 'right' ); ?> - - - - + > -
- - \ No newline at end of file +
+
+ + + +