├── .gitignore ├── screenshot.png ├── images └── eco-chat.svg ├── languages ├── readme.txt └── susty-wp.pot ├── composer.json ├── menu.php ├── rtl.css ├── README.md ├── single.php ├── footer.php ├── template-parts ├── content-search.php ├── content-page.php ├── content-none.php └── content.php ├── page.php ├── inc ├── template-functions.php ├── jetpack.php ├── customizer.php ├── custom-header.php └── template-tags.php ├── index.php ├── archive.php ├── readme.txt ├── search.php ├── 404.php ├── comments.php ├── header.php ├── composer.lock ├── phpcs.xml.dist ├── functions.php ├── LICENSE └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | tags 2 | vendor/ 3 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacklenox/susty/HEAD/screenshot.png -------------------------------------------------------------------------------- /images/eco-chat.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /languages/readme.txt: -------------------------------------------------------------------------------- 1 | Place your theme language files in this directory. 2 | 3 | Please visit the following links to learn more about translating WordPress themes: 4 | 5 | https://make.wordpress.org/polyglots/teams/ 6 | https://developer.wordpress.org/themes/functionality/localization/ 7 | https://developer.wordpress.org/reference/functions/load_theme_textdomain/ 8 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jacklenox/susty", 3 | "type": "wordpress-theme", 4 | "license": "GPL-2.0-or-later", 5 | "description": "WordPress starter theme with a modern development workflow", 6 | "homepage": "https://sustywp.com/", 7 | "keywords": ["wordpress"], 8 | "require": { 9 | "composer/installers": "~1.0" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /menu.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | 15 | 12 | 13 |
14 |
15 | 16 | 31 | 32 |
33 |
34 | 35 | 10 | 11 | 12 | 13 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', esc_url( get_permalink() ) ), '' ); ?> 15 | 16 | 17 | 23 | 24 |
25 | 26 | 27 | 28 |
29 | 30 |
31 | 32 | 35 |
36 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 |
20 | 21 | 34 | 35 |
36 |
37 | 38 | '; 35 | } 36 | } 37 | add_action( 'wp_head', 'susty_wp_pingback_header' ); 38 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 |
15 | 16 | 21 |
22 |

23 |
24 | 48 | 49 |
50 |
51 | 52 | 12 | 13 |
14 |
15 | 16 | 17 | 18 |
19 | ', '' ); 21 | the_archive_description( '
', '
' ); 22 | ?> 23 |
24 | 25 | 47 | 48 |
49 |
50 | 51 | Themes and click the Add New button. 21 | 2. Click Upload Theme and Choose File, then select the theme's .zip file. Click Install Now. 22 | 3. Click Activate to use your new theme right away. 23 | 24 | == Frequently Asked Questions == 25 | 26 | = Does this theme support any plugins? = 27 | 28 | Susty WP includes support for Infinite Scroll in Jetpack. 29 | 30 | == Changelog == 31 | 32 | = 1.0 - May 12 2015 = 33 | * Initial release 34 | 35 | == Credits == 36 | 37 | * Based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 38 | * normalize.css https://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](https://opensource.org/licenses/MIT) 39 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); ?> 15 |
16 | 17 | 18 | 19 |
20 | '', 26 | ) ); 27 | ?> 28 |
29 | 30 | 31 | 51 | 52 |
53 | -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 |
15 | 16 | 17 | 18 |
19 |

20 | ' . get_search_query() . '' ); 23 | ?> 24 |

25 |
26 | 27 | 49 | 50 |
51 |
52 | 53 | 11 | 12 |
13 |
14 |

15 |
16 | 17 |
18 | ' . wp_kses( 23 | /* translators: 1: link to WP admin new post page. */ 24 | __( 'Ready to publish your first post? Get started here.', 'susty' ), 25 | array( 26 | 'a' => array( 27 | 'href' => array(), 28 | ), 29 | ) 30 | ) . '

', 31 | esc_url( admin_url( 'post-new.php' ) ) 32 | ); 33 | 34 | elseif ( is_search() ) : 35 | ?> 36 | 37 |

38 | 43 | 44 |

45 | 50 |
51 |
52 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); 17 | else : 18 | the_title( '

', '

' ); 19 | endif; 20 | 21 | if ( 'post' === get_post_type() ) : 22 | ?> 23 | 29 | 30 |
31 | 32 | 33 | 34 |
35 | "%s"', 'susty' ), 40 | array( 41 | 'span' => array( 42 | 'class' => array(), 43 | ), 44 | ) 45 | ), 46 | get_the_title() 47 | ) ); 48 | 49 | wp_link_pages( array( 50 | 'before' => '', 52 | ) ); 53 | ?> 54 |
55 | 56 | 59 |
60 | -------------------------------------------------------------------------------- /inc/jetpack.php: -------------------------------------------------------------------------------- 1 | 'main', 21 | 'render' => 'susty_wp_infinite_scroll_render', 22 | 'footer' => 'page', 23 | ) ); 24 | 25 | // Add theme support for Responsive Videos. 26 | add_theme_support( 'jetpack-responsive-videos' ); 27 | 28 | // Add theme support for Content Options. 29 | add_theme_support( 'jetpack-content-options', array( 30 | 'post-details' => array( 31 | 'stylesheet' => 'susty-style', 32 | 'date' => '.posted-on', 33 | 'categories' => '.cat-links', 34 | 'tags' => '.tags-links', 35 | 'author' => '.byline', 36 | 'comment' => '.comments-link', 37 | ), 38 | 'featured-images' => array( 39 | 'archive' => true, 40 | 'post' => true, 41 | 'page' => true, 42 | ), 43 | ) ); 44 | } 45 | add_action( 'after_setup_theme', 'susty_wp_jetpack_setup' ); 46 | 47 | /** 48 | * Custom render function for Infinite Scroll. 49 | */ 50 | function susty_wp_infinite_scroll_render() { 51 | while ( have_posts() ) { 52 | the_post(); 53 | if ( is_search() ) : 54 | get_template_part( 'template-parts/content', 'search' ); 55 | else : 56 | get_template_part( 'template-parts/content', get_post_type() ); 57 | endif; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |

19 |
20 | 21 |
22 |

23 | 24 | 29 | 30 |
31 |

32 |
    33 | 'count', 36 | 'order' => 'DESC', 37 | 'show_count' => 1, 38 | 'title_li' => '', 39 | 'number' => 10, 40 | ) ); 41 | ?> 42 |
43 |
44 | 45 | ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'susty' ), convert_smilies( ':)' ) ) . '

'; 48 | the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$susty_wp_archive_content" ); 49 | 50 | the_widget( 'WP_Widget_Tag_Cloud' ); 51 | ?> 52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 | get_setting( 'blogname' )->transport = 'postMessage'; 15 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 16 | $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 17 | 18 | if ( isset( $wp_customize->selective_refresh ) ) { 19 | $wp_customize->selective_refresh->add_partial( 'blogname', array( 20 | 'selector' => '.site-title a', 21 | 'render_callback' => 'susty_wp_customize_partial_blogname', 22 | ) ); 23 | $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 24 | 'selector' => '.site-description', 25 | 'render_callback' => 'susty_wp_customize_partial_blogdescription', 26 | ) ); 27 | } 28 | } 29 | add_action( 'customize_register', 'susty_wp_customize_register' ); 30 | 31 | /** 32 | * Render the site title for the selective refresh partial. 33 | * 34 | * @return void 35 | */ 36 | function susty_wp_customize_partial_blogname() { 37 | bloginfo( 'name' ); 38 | } 39 | 40 | /** 41 | * Render the site tagline for the selective refresh partial. 42 | * 43 | * @return void 44 | */ 45 | function susty_wp_customize_partial_blogdescription() { 46 | bloginfo( 'description' ); 47 | } 48 | 49 | /** 50 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 51 | */ 52 | function susty_wp_customize_preview_js() { 53 | wp_enqueue_script( 'susty-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); 54 | } 55 | add_action( 'customize_preview_init', 'susty_wp_customize_preview_js' ); 56 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 | 25 | 29 |

30 | ' . get_the_title() . '' 37 | ); 38 | } else { 39 | printf( // WPCS: XSS OK. 40 | /* translators: 1: comment count number, 2: title. */ 41 | esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $susty_wp_comment_count, 'comments title', 'susty' ) ), 42 | number_format_i18n( $susty_wp_comment_count ), 43 | '' . get_the_title() . '' 44 | ); 45 | } 46 | ?> 47 |

48 | 49 | 50 | 51 |
    52 | 'ol', 55 | 'short_ping' => true, 56 | ) ); 57 | ?> 58 |
59 | 60 | 66 |

67 | 74 | 75 |
76 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | 8 | * 9 | * @link https://developer.wordpress.org/themes/functionality/custom-headers/ 10 | * 11 | * @package Susty 12 | */ 13 | 14 | /** 15 | * Set up the WordPress core custom header feature. 16 | * 17 | * @uses susty_wp_header_style() 18 | */ 19 | function susty_wp_custom_header_setup() { 20 | add_theme_support( 'custom-header', apply_filters( 'susty_wp_custom_header_args', array( 21 | 'default-image' => '', 22 | 'default-text-color' => '000000', 23 | 'width' => 1000, 24 | 'height' => 250, 25 | 'flex-height' => true, 26 | 'wp-head-callback' => 'susty_wp_header_style', 27 | ) ) ); 28 | } 29 | add_action( 'after_setup_theme', 'susty_wp_custom_header_setup' ); 30 | 31 | if ( ! function_exists( 'susty_wp_header_style' ) ) : 32 | /** 33 | * Styles the header image and text displayed on the blog. 34 | * 35 | * @see susty_wp_custom_header_setup(). 36 | */ 37 | function susty_wp_header_style() { 38 | $header_text_color = get_header_textcolor(); 39 | 40 | /* 41 | * If no custom options for text are set, let's bail. 42 | * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). 43 | */ 44 | if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { 45 | return; 46 | } 47 | 48 | // If we get this far, we have custom styles. Let's do this. 49 | ?> 50 | 70 | 10 | 11 | > 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | > 21 | 22 |
23 | 24 | 25 |
26 | 37 | 38 | 41 |

42 | 45 |

46 | 53 | 54 | 60 | 63 | 64 | 69 |
70 | 71 |
72 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "ae317cef41371f23db18a640d4e61184", 8 | "packages": [ 9 | { 10 | "name": "composer/installers", 11 | "version": "v1.5.0", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/composer/installers.git", 15 | "reference": "049797d727261bf27f2690430d935067710049c2" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/composer/installers/zipball/049797d727261bf27f2690430d935067710049c2", 20 | "reference": "049797d727261bf27f2690430d935067710049c2", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "composer-plugin-api": "^1.0" 25 | }, 26 | "replace": { 27 | "roundcube/plugin-installer": "*", 28 | "shama/baton": "*" 29 | }, 30 | "require-dev": { 31 | "composer/composer": "1.0.*@dev", 32 | "phpunit/phpunit": "^4.8.36" 33 | }, 34 | "type": "composer-plugin", 35 | "extra": { 36 | "class": "Composer\\Installers\\Plugin", 37 | "branch-alias": { 38 | "dev-master": "1.0-dev" 39 | } 40 | }, 41 | "autoload": { 42 | "psr-4": { 43 | "Composer\\Installers\\": "src/Composer/Installers" 44 | } 45 | }, 46 | "notification-url": "https://packagist.org/downloads/", 47 | "license": [ 48 | "MIT" 49 | ], 50 | "authors": [ 51 | { 52 | "name": "Kyle Robinson Young", 53 | "email": "kyle@dontkry.com", 54 | "homepage": "https://github.com/shama" 55 | } 56 | ], 57 | "description": "A multi-framework Composer library installer", 58 | "homepage": "https://composer.github.io/installers/", 59 | "keywords": [ 60 | "Craft", 61 | "Dolibarr", 62 | "Eliasis", 63 | "Hurad", 64 | "ImageCMS", 65 | "Kanboard", 66 | "Lan Management System", 67 | "MODX Evo", 68 | "Mautic", 69 | "Maya", 70 | "OXID", 71 | "Plentymarkets", 72 | "Porto", 73 | "RadPHP", 74 | "SMF", 75 | "Thelia", 76 | "WolfCMS", 77 | "agl", 78 | "aimeos", 79 | "annotatecms", 80 | "attogram", 81 | "bitrix", 82 | "cakephp", 83 | "chef", 84 | "cockpit", 85 | "codeigniter", 86 | "concrete5", 87 | "croogo", 88 | "dokuwiki", 89 | "drupal", 90 | "eZ Platform", 91 | "elgg", 92 | "expressionengine", 93 | "fuelphp", 94 | "grav", 95 | "installer", 96 | "itop", 97 | "joomla", 98 | "kohana", 99 | "laravel", 100 | "lavalite", 101 | "lithium", 102 | "magento", 103 | "majima", 104 | "mako", 105 | "mediawiki", 106 | "modulework", 107 | "modx", 108 | "moodle", 109 | "osclass", 110 | "phpbb", 111 | "piwik", 112 | "ppi", 113 | "puppet", 114 | "pxcms", 115 | "reindex", 116 | "roundcube", 117 | "shopware", 118 | "silverstripe", 119 | "sydes", 120 | "symfony", 121 | "typo3", 122 | "wordpress", 123 | "yawik", 124 | "zend", 125 | "zikula" 126 | ], 127 | "time": "2017-12-29T09:13:20+00:00" 128 | } 129 | ], 130 | "packages-dev": [], 131 | "aliases": [], 132 | "minimum-stability": "stable", 133 | "stability-flags": [], 134 | "prefer-stable": false, 135 | "prefer-lowest": false, 136 | "platform": [], 137 | "platform-dev": [] 138 | } 139 | -------------------------------------------------------------------------------- /inc/template-tags.php: -------------------------------------------------------------------------------- 1 | %2$s'; 16 | if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { 17 | $time_string = ''; 18 | } 19 | 20 | $time_string = sprintf( $time_string, 21 | esc_attr( get_the_date( DATE_W3C ) ), 22 | esc_html( get_the_date() ), 23 | esc_attr( get_the_modified_date( DATE_W3C ) ), 24 | esc_html( get_the_modified_date() ) 25 | ); 26 | 27 | $posted_on = sprintf( 28 | /* translators: %s: post date. */ 29 | esc_html_x( 'Posted on %s', 'post date', 'susty' ), 30 | '' . $time_string . '' 31 | ); 32 | 33 | echo '' . $posted_on . ''; // WPCS: XSS OK. 34 | 35 | } 36 | endif; 37 | 38 | if ( ! function_exists( 'susty_wp_posted_by' ) ) : 39 | /** 40 | * Prints HTML with meta information for the current author. 41 | */ 42 | function susty_wp_posted_by() { 43 | $byline = sprintf( 44 | /* translators: %s: post author. */ 45 | esc_html_x( 'by %s', 'post author', 'susty' ), 46 | '' . esc_html( get_the_author() ) . '' 47 | ); 48 | 49 | echo ''; // WPCS: XSS OK. 50 | 51 | } 52 | endif; 53 | 54 | if ( ! function_exists( 'susty_wp_entry_footer' ) ) : 55 | /** 56 | * Prints HTML with meta information for the categories, tags and comments. 57 | */ 58 | function susty_wp_entry_footer() { 59 | // Hide category and tag text for pages. 60 | if ( 'post' === get_post_type() ) { 61 | /* translators: used between list items, there is a space after the comma */ 62 | $categories_list = get_the_category_list( esc_html__( ', ', 'susty' ) ); 63 | if ( $categories_list ) { 64 | /* translators: 1: list of categories. */ 65 | printf( '' . esc_html__( 'Posted in %1$s', 'susty' ) . '', $categories_list ); // WPCS: XSS OK. 66 | } 67 | 68 | /* translators: used between list items, there is a space after the comma */ 69 | $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'susty' ) ); 70 | if ( $tags_list ) { 71 | /* translators: 1: list of tags. */ 72 | printf( '' . esc_html__( 'Tagged %1$s', 'susty' ) . '', $tags_list ); // WPCS: XSS OK. 73 | } 74 | } 75 | 76 | if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 77 | echo ''; 78 | comments_popup_link( 79 | sprintf( 80 | wp_kses( 81 | /* translators: %s: post title */ 82 | __( 'Leave a Comment on %s', 'susty' ), 83 | array( 84 | 'span' => array( 85 | 'class' => array(), 86 | ), 87 | ) 88 | ), 89 | get_the_title() 90 | ) 91 | ); 92 | echo ''; 93 | } 94 | 95 | edit_post_link( 96 | sprintf( 97 | wp_kses( 98 | /* translators: %s: Name of current post. Only visible to screen readers */ 99 | __( 'Edit %s', 'susty' ), 100 | array( 101 | 'span' => array( 102 | 'class' => array(), 103 | ), 104 | ) 105 | ), 106 | get_the_title() 107 | ), 108 | '', 109 | '' 110 | ); 111 | } 112 | endif; 113 | 114 | if ( ! function_exists( 'susty_wp_post_thumbnail' ) ) : 115 | /** 116 | * Displays an optional post thumbnail. 117 | * 118 | * Wraps the post thumbnail in an anchor element on index views, or a div 119 | * element when on single views. 120 | */ 121 | function susty_wp_post_thumbnail() { 122 | if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { 123 | return; 124 | } 125 | 126 | if ( is_singular() ) : 127 | ?> 128 | 129 |
130 | 131 |
132 | 133 | 134 | 135 | 144 | 145 | \n" 14 | "X-Generator: grunt-wp-i18n 0.5.4\n" 15 | 16 | #: 404.php:17 17 | msgid "Oops! That page can’t be found." 18 | msgstr "" 19 | 20 | #: 404.php:21 21 | msgid "" 22 | "It looks like nothing was found at this location. Maybe try one of the " 23 | "links below or a search?" 24 | msgstr "" 25 | 26 | #: 404.php:30 27 | msgid "Most Used Categories" 28 | msgstr "" 29 | 30 | #: 404.php:47 31 | #. translators: %1$s: smiley 32 | msgid "Try looking in the monthly archives. %1$s" 33 | msgstr "" 34 | 35 | #: comments.php:34 36 | #. translators: 1: title. 37 | msgid "One thought on “%1$s”" 38 | msgstr "" 39 | 40 | #: comments.php:67 41 | msgid "Comments are closed." 42 | msgstr "" 43 | 44 | #: footer.php:18 45 | msgid "https://wordpress.org/" 46 | msgstr "" 47 | 48 | #: footer.php:20 49 | #. translators: %s: CMS name, i.e. WordPress. 50 | msgid "Proudly powered by %s" 51 | msgstr "" 52 | 53 | #: footer.php:25 54 | #. translators: 1: Theme name, 2: Theme author. 55 | msgid "Theme: %1$s by %2$s." 56 | msgstr "" 57 | 58 | #: functions.php:47 59 | msgid "Primary" 60 | msgstr "" 61 | 62 | #: functions.php:105 63 | msgid "Sidebar" 64 | msgstr "" 65 | 66 | #: functions.php:107 67 | msgid "Add widgets here." 68 | msgstr "" 69 | 70 | #: header.php:24 71 | msgid "Skip to content" 72 | msgstr "" 73 | 74 | #: header.php:45 75 | msgid "Primary Menu" 76 | msgstr "" 77 | 78 | #: inc/template-tags.php:52 79 | #. translators: used between list items, there is a space after the comma 80 | msgid ", " 81 | msgstr "" 82 | 83 | #: inc/template-tags.php:55 84 | #. translators: 1: list of categories. 85 | msgid "Posted in %1$s" 86 | msgstr "" 87 | 88 | #: inc/template-tags.php:62 89 | #. translators: 1: list of tags. 90 | msgid "Tagged %1$s" 91 | msgstr "" 92 | 93 | #: inc/template-tags.php:72 94 | #. translators: %s: post title 95 | msgid "Leave a Comment on %s" 96 | msgstr "" 97 | 98 | #: inc/template-tags.php:89 template-parts/content-page.php:35 99 | #. translators: %s: Name of current post. Only visible to screen readers 100 | msgid "Edit %s" 101 | msgstr "" 102 | 103 | #: search.php:21 104 | #. translators: %s: search query. 105 | msgid "Search Results for: %s" 106 | msgstr "" 107 | 108 | #: template-parts/content-none.php:14 109 | msgid "Nothing Found" 110 | msgstr "" 111 | 112 | #: template-parts/content-none.php:25 113 | #. translators: 1: link to WP admin new post page. 114 | msgid "Ready to publish your first post? Get started here." 115 | msgstr "" 116 | 117 | #: template-parts/content-none.php:38 118 | msgid "" 119 | "Sorry, but nothing matched your search terms. Please try again with some " 120 | "different keywords." 121 | msgstr "" 122 | 123 | #: template-parts/content-none.php:44 124 | msgid "" 125 | "It seems we can’t find what you’re looking for. Perhaps " 126 | "searching can help." 127 | msgstr "" 128 | 129 | #: template-parts/content-page.php:22 template-parts/content.php:45 130 | msgid "Pages:" 131 | msgstr "" 132 | 133 | #: template-parts/content.php:34 134 | #. translators: %s: Name of current post. Only visible to screen readers 135 | msgid "Continue reading \"%s\"" 136 | msgstr "" 137 | 138 | #. Theme Name of the plugin/theme 139 | msgid "_s" 140 | msgstr "" 141 | 142 | #. Theme URI of the plugin/theme 143 | msgid "https://underscores.me/" 144 | msgstr "" 145 | 146 | #. Description of the plugin/theme 147 | msgid "" 148 | "Hi. I'm a starter theme called _s, or underscores, if " 149 | "you like. I'm a theme meant for hacking so don't use me as a Parent " 150 | "Theme. Instead try turning me into the next, most awesome, WordPress " 151 | "theme out there. That's what I'm here for." 152 | msgstr "" 153 | 154 | #. Author of the plugin/theme 155 | msgid "Automattic" 156 | msgstr "" 157 | 158 | #. Author URI of the plugin/theme 159 | msgid "https://automattic.com/" 160 | msgstr "" 161 | 162 | #: comments.php:40 163 | #. translators: 1: comment count number, 2: title. 164 | msgctxt "comments title" 165 | msgid "%1$s thought on “%2$s”" 166 | msgid_plural "%1$s thoughts on “%2$s”" 167 | msgstr[0] "" 168 | msgstr[1] "" 169 | 170 | #: inc/template-tags.php:29 171 | #. translators: %s: post date. 172 | msgctxt "post date" 173 | msgid "Posted on %s" 174 | msgstr "" 175 | 176 | #: inc/template-tags.php:35 177 | #. translators: %s: post author. 178 | msgctxt "post author" 179 | msgid "by %s" 180 | msgstr "" 181 | 182 | #: inc/template-tags.php:59 183 | #. translators: used between list items, there is a space after the comma 184 | msgctxt "list item separator" 185 | msgid ", " 186 | msgstr "" 187 | -------------------------------------------------------------------------------- /phpcs.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A custom set of code standard rules to check for WordPress themes. 10 | 11 | 12 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | . 36 | 37 | 38 | 43 | 44 | 45 | 46 | 47 | 52 | 53 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 99 | 100 | 101 | 102 | 103 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | tag in the document head, and expect WordPress to 34 | * provide it for us. 35 | */ 36 | add_theme_support( 'title-tag' ); 37 | 38 | /* 39 | * Enable support for Post Thumbnails on posts and pages. 40 | * 41 | * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ 42 | */ 43 | add_theme_support( 'post-thumbnails' ); 44 | 45 | // This theme uses wp_nav_menu() in one location. 46 | register_nav_menus( array( 47 | 'menu-1' => esc_html__( 'Primary', 'susty' ), 48 | ) ); 49 | 50 | /* 51 | * Switch default core markup for search form, comment form, and comments 52 | * to output valid HTML5. 53 | */ 54 | add_theme_support( 'html5', array( 55 | 'search-form', 56 | 'comment-form', 57 | 'comment-list', 58 | 'gallery', 59 | 'caption', 60 | ) ); 61 | 62 | // Set up the WordPress core custom background feature. 63 | add_theme_support( 'custom-background', apply_filters( 'susty_custom_background_args', array( 64 | 'default-color' => 'fffefc', 65 | 'default-image' => '', 66 | ) ) ); 67 | 68 | // Add theme support for selective refresh for widgets. 69 | add_theme_support( 'customize-selective-refresh-widgets' ); 70 | 71 | /** 72 | * Add support for core custom logo. 73 | * 74 | * @link https://codex.wordpress.org/Theme_Logo 75 | */ 76 | add_theme_support( 'custom-logo', array( 77 | 'height' => 250, 78 | 'width' => 250, 79 | 'flex-width' => true, 80 | 'flex-height' => true, 81 | ) ); 82 | } 83 | endif; 84 | add_action( 'after_setup_theme', 'susty_setup' ); 85 | 86 | /** 87 | * Set the content width in pixels, based on the theme's design and stylesheet. 88 | * 89 | * Priority 0 to make it available to lower priority callbacks. 90 | * 91 | * @global int $content_width 92 | */ 93 | function susty_content_width() { 94 | // This variable is intended to be overruled from themes. 95 | // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}. 96 | // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound 97 | $GLOBALS['content_width'] = apply_filters( 'susty_content_width', 640 ); 98 | } 99 | add_action( 'after_setup_theme', 'susty_content_width', 0 ); 100 | 101 | /** 102 | * Enqueue scripts and styles. 103 | */ 104 | function susty_scripts() { 105 | wp_enqueue_style( 'susty-style', get_stylesheet_uri() ); 106 | 107 | wp_deregister_script( 'wp-embed' ); 108 | 109 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 110 | wp_enqueue_script( 'comment-reply' ); 111 | } 112 | } 113 | add_action( 'wp_enqueue_scripts', 'susty_scripts' ); 114 | 115 | /** 116 | * Custom template tags for this theme. 117 | */ 118 | require get_template_directory() . '/inc/template-tags.php'; 119 | 120 | /** 121 | * Functions which enhance the theme by hooking into WordPress. 122 | */ 123 | require get_template_directory() . '/inc/template-functions.php'; 124 | 125 | /** 126 | * Customizer additions. 127 | */ 128 | require get_template_directory() . '/inc/customizer.php'; 129 | 130 | /** 131 | * Load Jetpack compatibility file. 132 | */ 133 | if ( defined( 'JETPACK__VERSION' ) ) { 134 | require get_template_directory() . '/inc/jetpack.php'; 135 | } 136 | 137 | remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 138 | remove_action( 'wp_print_styles', 'print_emoji_styles' ); 139 | 140 | function susty_nav_rewrite_rule() { 141 | add_rewrite_rule( 'menu', 'index.php?menu=true', 'top' ); 142 | } 143 | 144 | add_action( 'init', 'susty_nav_rewrite_rule' ); 145 | 146 | function susty_register_query_var( $vars ) { 147 | $vars[] = 'menu'; 148 | 149 | return $vars; 150 | } 151 | 152 | add_filter( 'query_vars', 'susty_register_query_var' ); 153 | 154 | add_filter( 'template_include', function( $path ) { 155 | if ( get_query_var( 'menu' ) ) { 156 | return get_template_directory() . '/menu.php'; 157 | } 158 | return $path; 159 | }); 160 | 161 | // Remove dashicons in frontend for unauthenticated users 162 | add_action( 'wp_enqueue_scripts', 'susty_dequeue_dashicons' ); 163 | function susty_dequeue_dashicons() { 164 | if ( ! is_user_logged_in() ) { 165 | wp_deregister_style( 'dashicons' ); 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /*! 2 | Theme Name: Susty 3 | Theme URI: https://sustywp.com 4 | Author: Jack Lenox 5 | Author URI: https://blog.jacklenox.com 6 | Description: A theme for WordPress focused on performance and sustainability. 7 | Version: 1.0.0 8 | License: GNU General Public License v2 or later 9 | License URI: LICENSE 10 | Text Domain: susty 11 | Tags: 12 | 13 | This theme, like WordPress, is licensed under the GPL. 14 | Use it to make something cool, have fun, and share what you've learned with others. 15 | 16 | Susty is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc. 17 | Underscores is distributed under the terms of the GNU GPL v2 or later. 18 | 19 | Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ 20 | */ 21 | /*-------------------------------------------------------------- 22 | >>> TABLE OF CONTENTS: 23 | ---------------------------------------------------------------- 24 | # Normalize 25 | # Typography 26 | # Elements 27 | # Forms 28 | # Links 29 | # Accessibility 30 | # Alignments 31 | # Clearings 32 | # Content 33 | ## Posts and pages 34 | ## Comments 35 | # Media 36 | ## Captions 37 | ## Galleries 38 | # Site 39 | ## Header 40 | ## Content 41 | --------------------------------------------------------------*/ 42 | /*-------------------------------------------------------------- 43 | # Normalize 44 | --------------------------------------------------------------*/ 45 | /* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ 46 | 47 | /* Document 48 | ========================================================================== */ 49 | 50 | /** 51 | * 1. Correct the line height in all browsers. 52 | * 2. Prevent adjustments of font size after orientation changes in iOS. 53 | */ 54 | 55 | html { 56 | line-height: 1.15; /* 1 */ 57 | -webkit-text-size-adjust: 100%; /* 2 */ 58 | } 59 | 60 | /* Sections 61 | ========================================================================== */ 62 | 63 | /** 64 | * Remove the margin in all browsers. 65 | */ 66 | 67 | body { 68 | margin: 0; 69 | } 70 | 71 | /** 72 | * Correct the font size and margin on `h1` elements with `section` and 73 | * `article` contexts in Chrome, Firefox, and Safari. 74 | */ 75 | 76 | h1 { 77 | font-size: 2em; 78 | margin: 0.67em 0; 79 | } 80 | 81 | /* Grouping content 82 | ========================================================================== */ 83 | 84 | /** 85 | * 1. Add the correct box sizing in Firefox. 86 | * 2. Show the overflow in Edge and IE. 87 | */ 88 | 89 | hr { 90 | box-sizing: content-box; /* 1 */ 91 | height: 0; /* 1 */ 92 | overflow: visible; /* 2 */ 93 | } 94 | 95 | /** 96 | * 1. Correct the inheritance and scaling of font size in all browsers. 97 | * 2. Correct the odd `em` font sizing in all browsers. 98 | */ 99 | 100 | pre { 101 | font-family: monospace, monospace; /* 1 */ 102 | font-size: 1em; /* 2 */ 103 | } 104 | 105 | /* Text-level semantics 106 | ========================================================================== */ 107 | 108 | /** 109 | * Remove the gray background on active links in IE 10. 110 | */ 111 | 112 | a { 113 | background-color: transparent; 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Add the correct font weight in Chrome, Edge, and Safari. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: bolder; 134 | } 135 | 136 | /** 137 | * 1. Correct the inheritance and scaling of font size in all browsers. 138 | * 2. Correct the odd `em` font sizing in all browsers. 139 | */ 140 | 141 | code, 142 | kbd, 143 | samp { 144 | font-family: monospace, monospace; /* 1 */ 145 | font-size: 1em; /* 2 */ 146 | } 147 | 148 | /** 149 | * Add the correct font size in all browsers. 150 | */ 151 | 152 | small { 153 | font-size: 80%; 154 | } 155 | 156 | /** 157 | * Prevent `sub` and `sup` elements from affecting the line height in 158 | * all browsers. 159 | */ 160 | 161 | sub, 162 | sup { 163 | font-size: 75%; 164 | line-height: 0; 165 | position: relative; 166 | vertical-align: baseline; 167 | } 168 | 169 | sub { 170 | bottom: -0.25em; 171 | } 172 | 173 | sup { 174 | top: -0.5em; 175 | } 176 | 177 | /* Embedded content 178 | ========================================================================== */ 179 | 180 | /** 181 | * Remove the border on images inside links in IE 10. 182 | */ 183 | 184 | img { 185 | border-style: none; 186 | } 187 | 188 | /* Forms 189 | ========================================================================== */ 190 | 191 | /** 192 | * 1. Change the font styles in all browsers. 193 | * 2. Remove the margin in Firefox and Safari. 194 | */ 195 | 196 | button, 197 | input, 198 | optgroup, 199 | select, 200 | textarea { 201 | font-family: inherit; /* 1 */ 202 | font-size: 100%; /* 1 */ 203 | line-height: 1.15; /* 1 */ 204 | margin: 0; /* 2 */ 205 | } 206 | 207 | /** 208 | * Show the overflow in IE. 209 | * 1. Show the overflow in Edge. 210 | */ 211 | 212 | button, 213 | input { /* 1 */ 214 | overflow: visible; 215 | } 216 | 217 | /** 218 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 219 | * 1. Remove the inheritance of text transform in Firefox. 220 | */ 221 | 222 | button, 223 | select { /* 1 */ 224 | text-transform: none; 225 | } 226 | 227 | /** 228 | * Correct the inability to style clickable types in iOS and Safari. 229 | */ 230 | 231 | button, 232 | [type="button"], 233 | [type="reset"], 234 | [type="submit"] { 235 | -webkit-appearance: button; 236 | } 237 | 238 | /** 239 | * Remove the inner border and padding in Firefox. 240 | */ 241 | 242 | button::-moz-focus-inner, 243 | [type="button"]::-moz-focus-inner, 244 | [type="reset"]::-moz-focus-inner, 245 | [type="submit"]::-moz-focus-inner { 246 | border-style: none; 247 | padding: 0; 248 | } 249 | 250 | /** 251 | * Restore the focus styles unset by the previous rule. 252 | */ 253 | 254 | button:-moz-focusring, 255 | [type="button"]:-moz-focusring, 256 | [type="reset"]:-moz-focusring, 257 | [type="submit"]:-moz-focusring { 258 | outline: 1px dotted ButtonText; 259 | } 260 | 261 | /** 262 | * Correct the padding in Firefox. 263 | */ 264 | 265 | fieldset { 266 | padding: 0.35em 0.75em 0.625em; 267 | } 268 | 269 | /** 270 | * 1. Correct the text wrapping in Edge and IE. 271 | * 2. Correct the color inheritance from `fieldset` elements in IE. 272 | * 3. Remove the padding so developers are not caught out when they zero out 273 | * `fieldset` elements in all browsers. 274 | */ 275 | 276 | legend { 277 | box-sizing: border-box; /* 1 */ 278 | color: inherit; /* 2 */ 279 | display: table; /* 1 */ 280 | max-width: 100%; /* 1 */ 281 | padding: 0; /* 3 */ 282 | white-space: normal; /* 1 */ 283 | } 284 | 285 | /** 286 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 287 | */ 288 | 289 | progress { 290 | vertical-align: baseline; 291 | } 292 | 293 | /** 294 | * Remove the default vertical scrollbar in IE 10+. 295 | */ 296 | 297 | textarea { 298 | overflow: auto; 299 | } 300 | 301 | /** 302 | * 1. Add the correct box sizing in IE 10. 303 | * 2. Remove the padding in IE 10. 304 | */ 305 | 306 | [type="checkbox"], 307 | [type="radio"] { 308 | box-sizing: border-box; /* 1 */ 309 | padding: 0; /* 2 */ 310 | } 311 | 312 | /** 313 | * Correct the cursor style of increment and decrement buttons in Chrome. 314 | */ 315 | 316 | [type="number"]::-webkit-inner-spin-button, 317 | [type="number"]::-webkit-outer-spin-button { 318 | height: auto; 319 | } 320 | 321 | /** 322 | * 1. Correct the odd appearance in Chrome and Safari. 323 | * 2. Correct the outline style in Safari. 324 | */ 325 | 326 | [type="search"] { 327 | -webkit-appearance: textfield; /* 1 */ 328 | outline-offset: -2px; /* 2 */ 329 | } 330 | 331 | /** 332 | * Remove the inner padding in Chrome and Safari on macOS. 333 | */ 334 | 335 | [type="search"]::-webkit-search-decoration { 336 | -webkit-appearance: none; 337 | } 338 | 339 | /** 340 | * 1. Correct the inability to style clickable types in iOS and Safari. 341 | * 2. Change font properties to `inherit` in Safari. 342 | */ 343 | 344 | ::-webkit-file-upload-button { 345 | -webkit-appearance: button; /* 1 */ 346 | font: inherit; /* 2 */ 347 | } 348 | 349 | /* Interactive 350 | ========================================================================== */ 351 | 352 | /* 353 | * Add the correct display in Edge, IE 10+, and Firefox. 354 | */ 355 | 356 | details { 357 | display: block; 358 | } 359 | 360 | /* 361 | * Add the correct display in all browsers. 362 | */ 363 | 364 | summary { 365 | display: list-item; 366 | } 367 | 368 | /* Misc 369 | ========================================================================== */ 370 | 371 | /** 372 | * Add the correct display in IE 10+. 373 | */ 374 | 375 | template { 376 | display: none; 377 | } 378 | 379 | /** 380 | * Add the correct display in IE 10. 381 | */ 382 | 383 | [hidden] { 384 | display: none; 385 | } 386 | 387 | /*-------------------------------------------------------------- 388 | # Typography 389 | --------------------------------------------------------------*/ 390 | body, 391 | button, 392 | input, 393 | select, 394 | optgroup, 395 | textarea { 396 | color: rgb(4, 4, 2); 397 | font-family: "Helvetica Neue", Helvetica, Arial, Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "Nimbus Sans L", "Liberation Sans", Tahoma, Geneva, sans-serif;; 398 | font-size: calc( 15px + 4 * (100vw / 1500)); 399 | line-height: 1.5; 400 | } 401 | 402 | h1, h2, h3, h4, h5, h6 { 403 | clear: both; 404 | } 405 | 406 | p { 407 | margin-bottom: 1.5em; 408 | } 409 | 410 | dfn, cite, em, i { 411 | font-style: italic; 412 | } 413 | 414 | blockquote { 415 | margin: 0 1.5em; 416 | } 417 | 418 | address { 419 | margin: 0 0 1.5em; 420 | } 421 | 422 | pre { 423 | background: #eee; 424 | font-family: "Courier 10 Pitch", Courier, monospace; 425 | font-size: 15px; 426 | font-size: 0.9375rem; 427 | line-height: 1.6; 428 | margin-bottom: 1.6em; 429 | max-width: 100%; 430 | overflow: auto; 431 | padding: 1.6em; 432 | } 433 | 434 | code, kbd, tt, var { 435 | font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; 436 | font-size: 15px; 437 | font-size: 0.9375rem; 438 | } 439 | 440 | abbr, acronym { 441 | border-bottom: 1px dotted #666; 442 | cursor: help; 443 | } 444 | 445 | mark, ins { 446 | background: #fff9c0; 447 | text-decoration: none; 448 | } 449 | 450 | big { 451 | font-size: 125%; 452 | } 453 | 454 | /*-------------------------------------------------------------- 455 | # Elements 456 | --------------------------------------------------------------*/ 457 | 458 | html { 459 | box-sizing: border-box; 460 | } 461 | 462 | *, 463 | *:before, 464 | *:after { 465 | box-sizing: inherit; 466 | } 467 | 468 | body { 469 | background-color: #fffefc; 470 | border-top: 0.4rem solid; 471 | } 472 | 473 | hr { 474 | background-color: #ccc; 475 | border: 0; 476 | height: 1px; 477 | } 478 | 479 | ul { 480 | list-style: disc; 481 | } 482 | 483 | ol { 484 | list-style: decimal; 485 | } 486 | 487 | li > ul, 488 | li > ol { 489 | margin-bottom: 0; 490 | } 491 | 492 | dt { 493 | font-weight: bold; 494 | } 495 | 496 | dd { 497 | margin: 0 1.5em 1.5em; 498 | } 499 | 500 | img { 501 | height: auto; 502 | max-width: 100%; 503 | } 504 | 505 | figure { 506 | margin: 1em 0; 507 | } 508 | 509 | table { 510 | margin: 0 0 1.5em; 511 | width: 100%; 512 | } 513 | 514 | /*-------------------------------------------------------------- 515 | # Forms 516 | --------------------------------------------------------------*/ 517 | button, 518 | input[type="button"], 519 | input[type="reset"], 520 | input[type="submit"] { 521 | border: 1px solid; 522 | border-color: #ccc #ccc #bbb; 523 | border-radius: 3px; 524 | background: #e6e6e6; 525 | color: rgba(0, 0, 0, 0.8); 526 | font-size: 12px; 527 | font-size: 0.75rem; 528 | line-height: 1; 529 | padding: .6em 1em .4em; 530 | } 531 | 532 | button:hover, 533 | input[type="button"]:hover, 534 | input[type="reset"]:hover, 535 | input[type="submit"]:hover { 536 | border-color: #ccc #bbb #aaa; 537 | } 538 | 539 | button:active, button:focus, 540 | input[type="button"]:active, 541 | input[type="button"]:focus, 542 | input[type="reset"]:active, 543 | input[type="reset"]:focus, 544 | input[type="submit"]:active, 545 | input[type="submit"]:focus { 546 | border-color: #aaa #bbb #bbb; 547 | } 548 | 549 | input[type="text"], 550 | input[type="email"], 551 | input[type="url"], 552 | input[type="password"], 553 | input[type="search"], 554 | input[type="number"], 555 | input[type="tel"], 556 | input[type="range"], 557 | input[type="date"], 558 | input[type="month"], 559 | input[type="week"], 560 | input[type="time"], 561 | input[type="datetime"], 562 | input[type="datetime-local"], 563 | input[type="color"], 564 | textarea { 565 | color: #666; 566 | border: 1px solid #ccc; 567 | border-radius: 3px; 568 | padding: 3px; 569 | } 570 | 571 | input[type="text"]:focus, 572 | input[type="email"]:focus, 573 | input[type="url"]:focus, 574 | input[type="password"]:focus, 575 | input[type="search"]:focus, 576 | input[type="number"]:focus, 577 | input[type="tel"]:focus, 578 | input[type="range"]:focus, 579 | input[type="date"]:focus, 580 | input[type="month"]:focus, 581 | input[type="week"]:focus, 582 | input[type="time"]:focus, 583 | input[type="datetime"]:focus, 584 | input[type="datetime-local"]:focus, 585 | input[type="color"]:focus, 586 | textarea:focus { 587 | color: #111; 588 | } 589 | 590 | select { 591 | border: 1px solid #ccc; 592 | } 593 | 594 | textarea { 595 | width: 100%; 596 | } 597 | 598 | /*-------------------------------------------------------------- 599 | # Links 600 | --------------------------------------------------------------*/ 601 | a { 602 | color: rgb(4, 4, 2); 603 | text-decoration: none; 604 | border-bottom: 0.2em solid transparent; 605 | } 606 | 607 | a#susty-back-link { 608 | padding: .3em .6em; 609 | } 610 | 611 | a:visited { 612 | color: rgb(4, 4, 2); 613 | } 614 | 615 | a:hover, a:focus, a:active { 616 | /*color: midnightblue;*/ 617 | border-bottom-style: solid; 618 | border-bottom-color: inherit; 619 | } 620 | 621 | a:focus { 622 | outline: thin dotted; 623 | } 624 | 625 | a:hover, a:active { 626 | outline: 0; 627 | } 628 | 629 | /*-------------------------------------------------------------- 630 | # Accessibility 631 | --------------------------------------------------------------*/ 632 | /* Text meant only for screen readers. */ 633 | .screen-reader-text { 634 | border: 0; 635 | clip: rect(1px, 1px, 1px, 1px); 636 | clip-path: inset(50%); 637 | height: 1px; 638 | margin: -1px; 639 | overflow: hidden; 640 | padding: 0; 641 | position: absolute !important; 642 | width: 1px; 643 | word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ 644 | } 645 | 646 | .screen-reader-text:focus { 647 | background-color: #f1f1f1; 648 | border-radius: 3px; 649 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 650 | clip: auto !important; 651 | clip-path: none; 652 | color: #21759b; 653 | display: block; 654 | font-size: 14px; 655 | font-size: 0.875rem; 656 | font-weight: bold; 657 | height: auto; 658 | left: 5px; 659 | line-height: normal; 660 | padding: 15px 23px 14px; 661 | text-decoration: none; 662 | top: 5px; 663 | width: auto; 664 | z-index: 100000; 665 | /* Above WP toolbar. */ 666 | } 667 | 668 | /* Do not show the outline on the skip link target. */ 669 | #content[tabindex="-1"]:focus { 670 | outline: 0; 671 | } 672 | 673 | /*-------------------------------------------------------------- 674 | # Alignments 675 | --------------------------------------------------------------*/ 676 | .alignleft { 677 | display: inline; 678 | float: left; 679 | margin-right: 1.5em; 680 | } 681 | 682 | .alignright { 683 | display: inline; 684 | float: right; 685 | margin-left: 1.5em; 686 | } 687 | 688 | .aligncenter { 689 | clear: both; 690 | display: block; 691 | margin-left: auto; 692 | margin-right: auto; 693 | } 694 | 695 | /*-------------------------------------------------------------- 696 | # Clearings 697 | --------------------------------------------------------------*/ 698 | .clear:before, 699 | .clear:after, 700 | .entry-content:before, 701 | .entry-content:after, 702 | .comment-content:before, 703 | .comment-content:after, 704 | .site-header:before, 705 | .site-header:after, 706 | .site-content:before, 707 | .site-content:after, 708 | .site-footer:before, 709 | .site-footer:after { 710 | content: ""; 711 | display: table; 712 | table-layout: fixed; 713 | } 714 | 715 | .clear:after, 716 | .entry-content:after, 717 | .comment-content:after, 718 | .site-header:after, 719 | .site-content:after, 720 | .site-footer:after { 721 | clear: both; 722 | } 723 | 724 | /*-------------------------------------------------------------- 725 | # Content 726 | --------------------------------------------------------------*/ 727 | /*-------------------------------------------------------------- 728 | ## Posts and pages 729 | --------------------------------------------------------------*/ 730 | .sticky { 731 | display: block; 732 | } 733 | 734 | .hentry { 735 | margin: 0 0 1.5em; 736 | } 737 | 738 | .updated:not(.published) { 739 | display: none; 740 | } 741 | 742 | /*-------------------------------------------------------------- 743 | ## Comments 744 | --------------------------------------------------------------*/ 745 | .comment-content a { 746 | word-wrap: break-word; 747 | } 748 | 749 | .bypostauthor { 750 | display: block; 751 | } 752 | 753 | /*-------------------------------------------------------------- 754 | # Media 755 | --------------------------------------------------------------*/ 756 | /* Make sure embeds and iframes fit their containers. */ 757 | embed, 758 | iframe, 759 | object { 760 | max-width: 100%; 761 | } 762 | 763 | /* Make sure logo link wraps around logo image. */ 764 | .custom-logo-link { 765 | display: inline-block; 766 | } 767 | 768 | /*-------------------------------------------------------------- 769 | ## Captions 770 | --------------------------------------------------------------*/ 771 | .wp-caption { 772 | margin-bottom: 1.5em; 773 | max-width: 100%; 774 | } 775 | 776 | .wp-caption img[class*="wp-image-"] { 777 | display: block; 778 | margin-left: auto; 779 | margin-right: auto; 780 | } 781 | 782 | .wp-caption .wp-caption-text { 783 | margin: 0.8075em 0; 784 | } 785 | 786 | .wp-caption-text { 787 | text-align: center; 788 | } 789 | 790 | /*-------------------------------------------------------------- 791 | ## Galleries 792 | --------------------------------------------------------------*/ 793 | .gallery { 794 | margin-bottom: 1.5em; 795 | } 796 | 797 | .gallery-item { 798 | display: inline-block; 799 | text-align: center; 800 | vertical-align: top; 801 | width: 100%; 802 | } 803 | 804 | .gallery-columns-2 .gallery-item { 805 | max-width: 50%; 806 | } 807 | 808 | .gallery-columns-3 .gallery-item { 809 | max-width: 33.33%; 810 | } 811 | 812 | .gallery-columns-4 .gallery-item { 813 | max-width: 25%; 814 | } 815 | 816 | .gallery-columns-5 .gallery-item { 817 | max-width: 20%; 818 | } 819 | 820 | .gallery-columns-6 .gallery-item { 821 | max-width: 16.66%; 822 | } 823 | 824 | .gallery-columns-7 .gallery-item { 825 | max-width: 14.28%; 826 | } 827 | 828 | .gallery-columns-8 .gallery-item { 829 | max-width: 12.5%; 830 | } 831 | 832 | .gallery-columns-9 .gallery-item { 833 | max-width: 11.11%; 834 | } 835 | 836 | .gallery-caption { 837 | display: block; 838 | } 839 | 840 | /*-------------------------------------------------------------- 841 | # Site 842 | --------------------------------------------------------------*/ 843 | /*-------------------------------------------------------------- 844 | ## Header 845 | --------------------------------------------------------------*/ 846 | header#masthead { 847 | display: flex; 848 | align-items: center; 849 | max-width: 69em; 850 | margin: 2em auto; 851 | padding: 0 1em; 852 | } 853 | 854 | header#masthead h1, header#masthead p { 855 | font-size: 1em; 856 | line-height: 1em; 857 | font-weight: bold; 858 | flex: 1; 859 | margin: 0; 860 | } 861 | 862 | header#masthead a { 863 | border-bottom: unset; 864 | } 865 | 866 | header#masthead > a { 867 | font-weight: bold; 868 | } 869 | 870 | header#masthead > a > svg { 871 | width: 1.8em; 872 | height: 1.8em; 873 | } 874 | 875 | .logo { 876 | flex: 0 0 2.4em; 877 | text-align: center; 878 | line-height: 0; 879 | margin-right: .5em; 880 | } 881 | 882 | .logo svg { 883 | width: 2.4em; 884 | height: 2.4em; 885 | } 886 | 887 | svg * { 888 | width: 100%; 889 | height: 100%; 890 | } 891 | 892 | /*-------------------------------------------------------------- 893 | ## Content 894 | --------------------------------------------------------------*/ 895 | #content { 896 | max-width: 33em; 897 | margin: 0 auto; 898 | padding: 0 1em; 899 | } 900 | 901 | article a, nav a { 902 | background: rgb(252, 248, 243) none repeat scroll 0% 0%; 903 | border-bottom: 0.1em dotted; 904 | line-height: 1.6em; 905 | } 906 | 907 | article > header > h1, article > header > h2 { 908 | font-size: 2.4em; 909 | line-height: 1em; 910 | margin: 0 0 .4em 0; 911 | } 912 | 913 | .entry-meta { 914 | color: rgb(179, 179, 179); 915 | } 916 | 917 | .entry-meta a { 918 | color: rgb(179, 179, 179); 919 | } 920 | 921 | .cat-links { 922 | display: flex; 923 | align-items: center; 924 | } 925 | 926 | .cat-links a:first-of-type { 927 | margin-left: .5em; 928 | } 929 | 930 | .cat-links a, .comments-link a, .edit-link a { 931 | padding: 0 .5em; 932 | margin: 0 .5em 0 0; 933 | } 934 | 935 | footer#colophon { 936 | max-width: 69em; 937 | margin: 3em auto; 938 | text-align: center; 939 | padding: 0 1em; 940 | font-size: .75em; 941 | } 942 | --------------------------------------------------------------------------------