├── themeisle.enc ├── images ├── neve.png └── default-thumbnail.jpg ├── screenshot.png ├── languages ├── pt_BR.mo ├── pt_BR.po └── zillah.pot ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff └── fontawesome-webfont.woff2 ├── grunt └── aliases.yaml ├── .gitignore ├── .distignore ├── .jshintrc ├── Gruntfile.js ├── themeisle-hash.json ├── searchform.php ├── composer.json ├── template-parts ├── content-search.php ├── content-page.php ├── content-none.php ├── content-alternative.php ├── content.php ├── content-single.php └── content-single-alternative.php ├── js ├── ajax-slider-posts.js ├── skip-link-focus-fix.js ├── zillah-customizer.js ├── customizer.js └── functions.js ├── package.json ├── sidebar.php ├── 404.php ├── inc ├── class │ ├── class-zillah-category-control.php │ ├── class-zillah-google-fonts-control.php │ └── class-zillah-palette.php ├── custom-header.php ├── jetpack.php ├── extras.php ├── widgets │ └── class-zillah-about-me.php ├── template-tags.php ├── tha-theme-hooks.php ├── zillah-hooks.php ├── customizer.php └── class-zillah-theme-plugin-enhancements.php ├── phpcs.xml ├── single.php ├── page.php ├── search.php ├── archive.php ├── .travis.yml ├── css ├── admin-style.css ├── bootstrap-theme.min.css.map └── bootstrap-theme.min.css ├── index.php ├── footer.php ├── comments.php ├── header.php ├── readme.txt ├── CHANGELOG.md ├── readme.md └── rtl.css /themeisle.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/themeisle.enc -------------------------------------------------------------------------------- /images/neve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/images/neve.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/screenshot.png -------------------------------------------------------------------------------- /languages/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/languages/pt_BR.mo -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /images/default-thumbnail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/images/default-thumbnail.jpg -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codeinwp/zillah/HEAD/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /grunt/aliases.yaml: -------------------------------------------------------------------------------- 1 | #Check code of the theme 2 | check: 3 | - 'phpcbf' 4 | - 'makepot' 5 | - 'travis' 6 | generate: 7 | description: 'Generic task.' 8 | tasks: [] -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # IntelliJ project files 2 | .idea 3 | *.iml 4 | out 5 | gen 6 | node_modules 7 | logs 8 | npm-debug.log 9 | dist 10 | artifact 11 | vendor 12 | bin 13 | composer.lock 14 | package-lock.json -------------------------------------------------------------------------------- /.distignore: -------------------------------------------------------------------------------- 1 | .git 2 | .distignore 3 | .gitignore 4 | .travis.yml 5 | .jshintrc 6 | Gruntfile.js 7 | grunt 8 | phpcs.xml 9 | node_modules 10 | logs 11 | package.json 12 | npm-debug.log 13 | dist 14 | artifact 15 | composer.json 16 | composer.lock 17 | themeisle.enc -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "boss": true, 3 | "curly": true, 4 | "eqeqeq": true, 5 | "eqnull": true, 6 | "expr": true, 7 | "immed": true, 8 | "noarg": true, 9 | "nonbsp": true, 10 | "onevar": true, 11 | "quotmark": "single", 12 | "trailing": true, 13 | "undef": true, 14 | "unused": true, 15 | "browser": true, 16 | "globals": { 17 | "_": false, 18 | "Backbone": false, 19 | "jQuery": false, 20 | "JSON": false, 21 | "wp": false 22 | } 23 | } -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | // jshint node:true 2 | 3 | module.exports = function( grunt ) { 4 | 'use strict'; 5 | 6 | var loader = require( 'load-project-config' ), 7 | config = require( 'grunt-theme-fleet' ); 8 | config = config(); 9 | config.files.php.push( '!inc/admin/**/*.php' ); 10 | config.files.js.push( '!inc/admin/**/*.js' ); 11 | config.files.js.push( '!js/bootstrap.js' ); 12 | config.files.js.push( '!js/bootstrap.min.js' ); 13 | config.files.js.push( '!js/skip-link-focus-fix.js' ); 14 | loader( grunt, config ).init(); 15 | }; 16 | -------------------------------------------------------------------------------- /themeisle-hash.json: -------------------------------------------------------------------------------- 1 | {"404.php":"f339cde214321fd0a7ade20329517111","archive.php":"bf337957682d0966bff3d3a8958f2335","comments.php":"94a15f1ab6dd58e924a29ff53d51b469","footer.php":"133c5c1596c47ae25ef1050dd7e32643","functions.php":"0d794bfa0927226bebc8e80923494b77","header.php":"198ef6ec53481e3e937098dbaf344106","index.php":"edfa0a14e7f460901c4b0ba84adb29b6","page.php":"a8df4edbe9087277287027499f427b27","search.php":"7223746b36a75922a57763c88dd242a5","searchform.php":"8f279cc408472f726d6cf8220c69a7b7","sidebar.php":"a441cab84c9eed0e24b95d3a7071019e","single.php":"4bb4bb0c51c579808d50278d123cad04","rtl.css":"963991ee3049a75df28df2ec165b487b","style.css":"7981570cc1cea50da016046f4e78b7c4"} -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 16 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codeinwp/zillah", 3 | "description": "Zillah by ThemeIsle.", 4 | "homepage": "https://themeisle.com/themes/zillah/", 5 | "license": "GPL-2.0+", 6 | "authors": [ 7 | { 8 | "name": "ThemeIsle Team", 9 | "email": "friends@themeisle.com.com", 10 | "homepage": "https://themeisle.com" 11 | } 12 | ], 13 | "minimum-stability": "dev", 14 | "prefer-stable": true, 15 | "support": { 16 | "issues": "https://github.com/Codeinwp/zillah/issues", 17 | "source": "https://github.com/Codeinwp/zillah" 18 | }, 19 | "type": "wordpress-theme", 20 | "require": { 21 | "codeinwp/themeisle-sdk": "master" 22 | }, 23 | "autoload": { 24 | "files": [ 25 | "vendor/codeinwp/themeisle-sdk/load.php" 26 | ] 27 | } 28 | } -------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | 15 |
16 |
17 | ', '' ); 20 | zillah_category(); 21 | ?> 22 |
23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |
31 | -------------------------------------------------------------------------------- /js/ajax-slider-posts.js: -------------------------------------------------------------------------------- 1 | /* global requestpost */ 2 | 3 | // Transform Slider Posts to Normal Posts on mobile. 4 | ( function($) { 5 | 6 | // Check if mobile by userAgent. 7 | if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent )) { 8 | 9 | var topCarousel = $( '#home-carousel' ); 10 | 11 | if ( ( topCarousel !== 'undefined' ) && ( topCarousel.length !== 0 ) ) { 12 | 13 | topCarousel.remove(); 14 | 15 | $.ajax( 16 | { 17 | url: requestpost.ajaxurl, 18 | type: 'post', 19 | data: { 20 | page: 'index', 21 | action: 'request_post', 22 | }, 23 | beforeSend: function () { 24 | $( '#main' ).prepend( '
' ); 25 | }, 26 | success: function (result) { 27 | $( '#post-request' ).html( result ); 28 | } 29 | } 30 | ); 31 | } 32 | } 33 | })( jQuery ); 34 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zillah", 3 | "nicename": "Zillah", 4 | "version": "1.1.9", 5 | "description": "Zillah theme", 6 | "category": "themes", 7 | "repository": { 8 | "type": "git", 9 | "url": "git+https://github.com/Codeinwp/zillah.git" 10 | }, 11 | "keywords": [ 12 | "wordpress-theme" 13 | ], 14 | "theme": { 15 | "textdomain": "zillah" 16 | }, 17 | "author": "ThemeIsle ", 18 | "license": "GPL-2.0+", 19 | "bugs": { 20 | "url": "https://github.com/Codeinwp/zillah/issues" 21 | }, 22 | "pot": { 23 | "reportmsgidbugsto": "https://github.com/Codeinwp/zillah/issues", 24 | "languageteam": "Themeisle Translate ", 25 | "lasttranslator": "Themeisle Translate Team " 26 | }, 27 | "devDependencies": { 28 | "grunt-theme-fleet": "codeinwp/grunt-theme-fleet", 29 | "load-project-config": "~0.2.0" 30 | }, 31 | "wraithSlug": [ 32 | "zillah" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /js/skip-link-focus-fix.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File skip-link-focus-fix.js. 3 | * 4 | * Helps with accessibility for keyboard only users. 5 | * 6 | * Learn more: https://git.io/vWdr2 7 | */ 8 | ( function() { 9 | var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 10 | isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 11 | isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 12 | 13 | if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) { 14 | window.addEventListener( 15 | 'hashchange', function() { 16 | var id = location.hash.substring( 1 ), 17 | element; 18 | 19 | if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 20 | return; 21 | } 22 | 23 | element = document.getElementById( id ); 24 | 25 | if ( element ) { 26 | if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 27 | element.tabIndex = -1; 28 | } 29 | 30 | element.focus(); 31 | } 32 | }, false 33 | ); 34 | } 35 | })(); 36 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 30 | 31 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
15 |
16 | 17 |
18 | 21 | 22 |
23 |

24 | 25 | 28 | 29 |
30 |
31 | 32 |
33 |
34 | 35 |
36 | 37 | '_customize-dropdown-categories-' . $this->id, 23 | 'echo' => 0, 24 | 'show_option_none' => __( '— Select —', 'zillah' ), 25 | 'option_none_value' => '0', 26 | 'selected' => $this->value(), 27 | ) 28 | ); 29 | // Hackily add in the data link parameter. 30 | $dropdown = str_replace( 'get_link(), $dropdown ); 31 | printf( 32 | '', 33 | $this->label, 34 | $dropdown 35 | ); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Themeisle rules for PHP_CodeSniffer 4 | 5 | . 6 | 7 | node_modules/* 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 0 26 | 27 | 28 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | * 13 | * @link https://developer.wordpress.org/themes/functionality/custom-headers/ 14 | * 15 | * @package zillah 16 | */ 17 | 18 | /** 19 | * Set up the WordPress core custom header feature. 20 | * 21 | * @uses zillah_header_style() 22 | */ 23 | function zillah_custom_header_setup() { 24 | add_theme_support( 25 | 'custom-header', 26 | apply_filters( 27 | 'zillah_custom_header_args', 28 | array( 29 | 'default-image' => '', 30 | 'width' => 1600, 31 | 'height' => 250, 32 | 'flex-height' => true, 33 | 'flex-width' => true, 34 | ) 35 | ) 36 | ); 37 | } 38 | add_action( 'after_setup_theme', 'zillah_custom_header_setup' ); 39 | 40 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | 15 | 16 |
17 | 18 | '', 25 | ) 26 | ); 27 | zillah_hook_entry_bottom(); 28 | ?> 29 |
30 | 31 |
32 | "', '"', false ) 38 | ), 39 | '', 40 | '' 41 | ); 42 | ?> 43 |
44 |
45 |
46 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 | 18 |
19 |
20 | 21 | _x( '%title', 'previous post', 'zillah' ), 31 | 'next_text' => _x( '%title', 'next post', 'zillah' ), 32 | ) 33 | ); 34 | 35 | // If comments are open or we have at least one comment, load up the comment template. 36 | if ( comments_open() || get_comments_number() ) : 37 | echo '
'; 38 | comments_template(); 39 | echo '
'; 40 | endif; 41 | 42 | endwhile; // End of the loop. 43 | ?> 44 | 45 |
46 |
47 | 48 |
49 | 50 | 'main', 22 | 'render' => 'zillah_infinite_scroll_render', 23 | 'footer' => 'page', 24 | ) 25 | ); 26 | 27 | // Add theme support for Responsive Videos. 28 | add_theme_support( 'jetpack-responsive-videos' ); 29 | 30 | add_theme_support( 'jetpack-related-posts' ); 31 | 32 | add_theme_support( 33 | 'social-links', 34 | array( 35 | 'facebook', 36 | 'twitter', 37 | 'linkedin', 38 | 'google_plus', 39 | 'tumblr', 40 | ) 41 | ); 42 | 43 | } 44 | add_action( 'after_setup_theme', 'zillah_jetpack_setup' ); 45 | 46 | /** 47 | * Custom render function for Infinite Scroll. 48 | */ 49 | function zillah_infinite_scroll_render() { 50 | while ( have_posts() ) { 51 | the_post(); 52 | if ( is_search() ) : 53 | get_template_part( 'template-parts/content', 'search' ); 54 | else : 55 | get_template_part( 'template-parts/content', get_post_format() ); 56 | endif; 57 | } 58 | } 59 | 60 | /** 61 | * Add theme support for Pirate Forms 62 | */ 63 | function zillah_theme_setup() { 64 | 65 | add_theme_support( 'pirate-forms' ); 66 | 67 | } 68 | add_action( 'after_setup_theme', 'zillah_theme_setup' ); 69 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 |
21 |
22 | ', '' ); ?> 23 |
24 |
25 | 26 |
27 | 28 |
29 | 30 |
31 |
32 | 33 | 34 | '; 43 | comments_template(); 44 | echo '
'; 45 | endif; 46 | 47 | endwhile; // End of the loop. 48 | ?> 49 | 50 | 51 |
52 | 53 |
54 | 55 | 56 | 11 | 12 |
13 |
14 | 15 |
16 |

17 |
18 | 19 | 56 | 57 |
58 |
59 | -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 26 | 27 |
28 | 29 |
30 | 31 |
32 |
33 | 34 | 37 | 38 | 60 | 61 | 62 |
63 | 64 | 65 |
66 | 67 | 68 | 14 | 15 |
> 17 |
18 | 19 | 20 |
21 |
22 | ', '' ); 36 | ?> 37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 | '', 51 | ) 52 | ); 53 | zillah_hook_entry_bottom(); 54 | ?> 55 |
56 |
57 | 58 | 59 |
60 |
61 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
> 15 | 16 | 17 |
18 |
19 | ', '' ); 22 | zillah_category(); 23 | ?> 24 |
25 |
26 | 27 | 28 | 39 | 40 | 41 |
42 |
43 | 44 | post_content, '' ); 50 | if ( $pos <= 0 ) { 51 | the_excerpt(); 52 | } else { 53 | the_content( false ); 54 | echo zillah_read_more_link(); 55 | } 56 | 57 | wp_link_pages( 58 | array( 59 | 'before' => '', 61 | ) 62 | ); 63 | } 64 | ?> 65 | 66 |
67 |
68 | 69 | 70 |
71 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
15 | 16 | 17 |
22 | 23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 | 31 | 32 | 35 | 36 | 58 | 59 | 60 |
61 |
62 | 63 | 68 | 69 |
70 | 71 | 72 | 6, 41 | 'cat' => $zillah_categ, 42 | 'post_type' => 'post', 43 | 'post_status' => 'publish', 44 | 'ignore_sticky_posts' => 1, 45 | ); 46 | 47 | $the_query = new WP_Query( $args ); 48 | 49 | if ( $the_query->have_posts() ) { ?> 50 | 51 | have_posts() ) { 54 | $the_query->the_post(); 55 | 56 | /* 57 | * Include the Post-Format-specific template for the content. 58 | * If you want to override this in a child theme, then include a file 59 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. 60 | */ 61 | get_template_part( 'template-parts/content', get_post_format() ); 62 | } 63 | the_posts_navigation(); 64 | } else { 65 | get_template_part( 'template-parts/content', 'none' ); 66 | } 67 | /* Restore original Post Data */ 68 | wp_reset_postdata(); 69 | } 70 | die(); 71 | } 72 | 73 | add_action( 'wp_ajax_nopriv_request_post', 'zillah_slider_to_posts' ); 74 | add_action( 'wp_ajax_request_post', 'zillah_slider_to_posts' ); 75 | -------------------------------------------------------------------------------- /inc/class/class-zillah-google-fonts-control.php: -------------------------------------------------------------------------------- 1 | options = $args; 39 | $this->control_id = $id; 40 | } 41 | 42 | /** 43 | * Create the control 44 | */ 45 | public function render_content() { 46 | $options = $this->options; 47 | $control_id = $this->control_id; 48 | 49 | $ti_google_fonts = ''; 50 | if ( ! empty( $options['ti_google_fonts'] ) ) { 51 | foreach ( $options['ti_google_fonts'] as $zilla_font ) { 52 | $ti_input_value = implode( '|', $zilla_font ); 53 | $ti_google_fonts .= ''; 54 | } 55 | 56 | // Hackily add in the data link parameter. 57 | $ti_google_fonts = str_replace( 'get_link(), $ti_google_fonts ); 58 | } 59 | printf( 60 | '
%s
%s
', 61 | $this->label, 62 | ( ! empty( $ti_google_fonts ) ? $ti_google_fonts : __( 'No fonts to show', 'zillah' ) ) 63 | ); 64 | 65 | } 66 | 67 | } 68 | }// End if(). 69 | 70 | -------------------------------------------------------------------------------- /js/zillah-customizer.js: -------------------------------------------------------------------------------- 1 | /******************************************** 2 | * ** Palette Control *** 3 | *********************************************/ 4 | /*global jQuery*/ 5 | jQuery( document ).ready( 6 | function () { 7 | 'use strict'; 8 | jQuery( '.zillah_dropdown' ).on( 9 | 'click', function () { 10 | jQuery( '.zillah_palette_picker' ).slideToggle( 'medium' ); 11 | } 12 | ); 13 | 14 | jQuery( '.zillah_palette_input' ).on( 15 | 'click', function () { 16 | jQuery( '.zillah_palette_picker' ).slideToggle( 'medium' ); 17 | } 18 | ); 19 | 20 | jQuery( '.zillah_palette_picker' ).on( 21 | 'click', 'li', function () { 22 | var th = jQuery( this ); 23 | var palette = jQuery( this ).html(); 24 | var palette_name = jQuery( this ).attr( 'class' ); 25 | 26 | if ( ! th.hasClass( 'zillah_pallete_default' )) { 27 | var values = {}; 28 | var it = 0; 29 | 30 | values.palette_name = palette_name; 31 | 32 | jQuery( '.zillah_palette_input' ).html( palette ); 33 | jQuery( '.zillah_palette_input span' ).each( 34 | function () { 35 | it++; 36 | values['color' + it] = jQuery( this ).css( 'background-color' ); 37 | } 38 | ); 39 | th.parent().parent().find( '.zillah_palette_colector' ).val( JSON.stringify( values ) ); 40 | th.parent().parent().find( '.zillah_palette_colector' ).trigger( 'change' ); 41 | } else { 42 | var zillah_pallete_default = th.text(); 43 | jQuery( '.zillah_palette_input' ).text( zillah_pallete_default ); 44 | th.parent().parent().find( '.zillah_palette_colector' ).val( '' ); 45 | th.parent().parent().find( '.zillah_palette_colector' ).trigger( 'change' ); 46 | } 47 | } 48 | ); 49 | } 50 | ); 51 | 52 | 53 | 54 | jQuery( document ).ready( 55 | function() { 56 | 'use strict'; 57 | jQuery( '.ti-google-fonts input:radio:checked' ).parent( 'label' ).addClass( 'ti-google-fonts-active' ); 58 | jQuery( '.ti-google-fonts input' ).click( 59 | function() { 60 | jQuery( this ).parent().parent().find( '.ti-google-fonts-active' ).removeClass( 'ti-google-fonts-active' ); 61 | jQuery( this ).parent().addClass( 'ti-google-fonts-active' ); 62 | } 63 | ); 64 | 65 | } 66 | ); 67 | -------------------------------------------------------------------------------- /css/admin-style.css: -------------------------------------------------------------------------------- 1 | .customize-control-title { 2 | margin-top: 15px; 3 | color: #689181; 4 | } 5 | 6 | 7 | /***********************************/ 8 | /***** Palette picker control ******/ 9 | /***********************************/ 10 | 11 | .zillah_palette_picker li span { 12 | width: 43px; 13 | height: 40px; 14 | display: inline-block; 15 | } 16 | 17 | .zillah_palette_input { 18 | border: 1px solid #cfcfcf; 19 | width: 209px; 20 | height: 40px; 21 | float: left; 22 | line-height: 40px; 23 | font-size: 16px; 24 | padding: 5px; 25 | cursor: pointer; 26 | background-color: #FFFFFF; 27 | } 28 | 29 | .zillah_palette_input span { 30 | display: block; 31 | height: 40px; 32 | float: left; 33 | width: 40px; 34 | } 35 | 36 | .zillah_dropdown { 37 | width: 20px; 38 | height: 50px; 39 | font-size: 20px; 40 | float: left; 41 | border: 1px solid #cfcfcf; 42 | text-align: center; 43 | border-left: 0px; 44 | cursor: pointer; 45 | line-height: 50px; 46 | background-color: #00a5f9; 47 | color: #FFFFFF; 48 | font-size: 12px; 49 | } 50 | 51 | .zillah_dropdown span { 52 | line-height: 50px; 53 | } 54 | 55 | .zillah_palette_picker { 56 | clear: both; 57 | text-align: center; 58 | padding-top: 6px; 59 | border: 1px solid #cfcfcf; 60 | border-top: 0px; 61 | display: none; 62 | width: 240px; 63 | background-color: #fff; 64 | } 65 | 66 | .zillah_palette_picker li span { 67 | cursor: pointer; 68 | } 69 | 70 | .zillah_pallete_default { 71 | line-height: 40px; 72 | cursor: pointer; 73 | } 74 | 75 | /***********************************/ 76 | /****** Google fonts Control *******/ 77 | /***********************************/ 78 | .ti-google-fonts-wrap { 79 | background: rgba(255, 255, 255, 0.75); 80 | padding: 10px; 81 | border: 1px solid #ddd; 82 | max-height: 140px; 83 | overflow-y: auto; 84 | overflow-x: auto; 85 | } 86 | 87 | .ti-google-fonts-wrap label { 88 | width: 100%; 89 | display: block; 90 | clear: left; 91 | font-size: 16px; 92 | line-height: 28px; 93 | overflow: hidden; 94 | position: relative; 95 | } 96 | 97 | .ti-google-fonts-wrap label input { 98 | position: absolute; 99 | left: -9999px; 100 | } 101 | 102 | .ti-google-fonts-wrap label:hover, 103 | .ti-google-fonts-wrap label.ti-google-fonts-active { 104 | color: #0073aa; 105 | } 106 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |
22 | 23 |
24 |
25 | 26 | 27 | 32 |
33 |

34 |
35 | 36 | 62 | 63 | 64 |
65 |
66 | 67 | 72 | 73 |
74 | 75 | 76 | value(); 19 | $json = json_decode( $values ); 20 | $zillah_pallete = array( 21 | array( 22 | 'palette_name' => 'p1', 23 | 'color1' => '#be624d', 24 | 'color2' => '#f5876e', 25 | 'color3' => '#be624d', 26 | 'color4' => '#f6f6f6', 27 | 'color5' => '#6f6e6b', 28 | ), 29 | array( 30 | 'palette_name' => 'p1', 31 | 'color1' => '#b0606d', 32 | 'color2' => '#f59f4c', 33 | 'color3' => '#ffc154', 34 | 'color4' => '#fafafa', 35 | 'color5' => '#6f6e6b', 36 | ), 37 | array( 38 | 'palette_name' => 'p1', 39 | 'color1' => '#333331', 40 | 'color2' => '#c2a26f', 41 | 'color3' => '#E2C9A1', 42 | 'color4' => '#f6f6f6', 43 | 'color5' => '#6f6e6b', 44 | ), 45 | ); 46 | 47 | if ( ! empty( $this->label ) ) { ?> 48 | 51 | 54 | 55 |
56 |
57 | $value ) { 60 | if ( $key !== 'palette_name' && $key !== 'color5' ) { 61 | echo ''; 62 | } 63 | } 64 | } else { 65 | esc_html_e( 'Default', 'zillah' ); 66 | } 67 | ?> 68 |
69 |
70 |
71 |
    72 |
  • 73 | 76 |
  • 77 | '; 80 | echo ''; 81 | echo ''; 82 | echo ''; 83 | echo ''; 84 | echo ''; 85 | echo ''; 86 | } 87 | ?> 88 |
89 | link(); ?> /> 90 | 93 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 55 | 56 | 57 | 58 |
59 | 84 |
85 | 86 | 87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /template-parts/content-single.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 | 14 |
15 |
16 | ', '' ); 19 | zillah_category(); 20 | ?> 21 |
22 |
23 | 24 | '; 27 | the_post_thumbnail(); 28 | echo ''; 29 | } 30 | ?> 31 | 32 | 33 |
34 |
35 | 36 | →', 'zillah' ), 43 | array( 44 | 'span' => array( 45 | 'class' => array(), 46 | ), 47 | ) 48 | ), 49 | the_title( '"', '"', false ) 50 | ) 51 | ); 52 | 53 | wp_link_pages( 54 | array( 55 | 'before' => '', 57 | ) 58 | ); 59 | 60 | ?> 61 | 62 |
63 |
64 | 65 | 66 |
67 |
68 | 69 |
70 |
71 | 72 |
73 | 74 | '; 82 | echo '
'; 83 | 84 | echo '
'; 85 | echo get_avatar( get_the_author_meta( 'user_email' ), '100' ); 86 | echo '
'; 87 | 88 | $author_name = ''; 89 | if ( ! empty( $author_first_name ) ) { 90 | $author_name .= sanitize_text_field( $author_first_name ) . ' '; 91 | } 92 | if ( ! empty( $author_last_name ) ) { 93 | $author_name .= sanitize_text_field( $author_last_name ); 94 | } 95 | 96 | echo ''; 101 | 102 | if ( ! empty( $author_description ) ) { 103 | echo '
' . $author_description . '
'; 104 | } 105 | 106 | echo '
'; 107 | echo ''; 108 | 109 | } 110 | ?> 111 | -------------------------------------------------------------------------------- /template-parts/content-single-alternative.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 | 14 |
15 |
16 | ', '' ); 19 | zillah_category(); 20 | zillah_comments_number(); 21 | ?> 22 |
23 |
24 | 25 | '; 28 | the_post_thumbnail(); 29 | echo ''; 30 | } 31 | ?> 32 | 33 | 34 |
35 |
36 | →', 'zillah' ), 44 | array( 45 | 'span' => array( 46 | 'class' => array(), 47 | ), 48 | ) 49 | ), 50 | the_title( '"', '"', false ) 51 | ) 52 | ); 53 | 54 | wp_link_pages( 55 | array( 56 | 'before' => '', 58 | ) 59 | ); 60 | 61 | zillah_hook_entry_bottom(); 62 | ?> 63 |
64 |
65 | 66 | 67 |
68 |
69 | 70 |
71 |
72 | 73 |
74 | 75 | '; 83 | echo '
'; 84 | 85 | echo '
'; 86 | echo get_avatar( get_the_author_meta( 'user_email' ), '100' ); 87 | echo '
'; 88 | 89 | $author_name = ''; 90 | if ( ! empty( $author_first_name ) ) { 91 | $author_name .= sanitize_text_field( $author_first_name ) . ' '; 92 | } 93 | if ( ! empty( $author_last_name ) ) { 94 | $author_name .= sanitize_text_field( $author_last_name ); 95 | } 96 | 97 | echo ''; 102 | 103 | if ( ! empty( $author_description ) ) { 104 | echo '
' . $author_description . '
'; 105 | } 106 | 107 | echo '
'; 108 | echo ''; 109 | 110 | } 111 | ?> 112 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 |
25 | 26 | 27 | 30 |

31 | ' . get_the_title() . '' ); 36 | } else { 37 | printf( 38 | /* translators: 1: number of comments, 2: post title */ 39 | _nx( 40 | '%1$s thought on “%2$s”', 41 | '%1$s thoughts on “%2$s”', 42 | $comments_number, 43 | 'comments title', 44 | 'zillah' 45 | ), 46 | number_format_i18n( $comments_number ), 47 | '' . get_the_title() . '' 48 | ); 49 | } 50 | ?> 51 |

52 | 53 | 1 && get_option( 'page_comments' ) ) : ?> 54 | 63 | 64 | 65 |
    66 | 'ol', 70 | 'short_ping' => true, 71 | 'avatar_size' => 105, 72 | ) 73 | ); 74 | ?> 75 |
76 | 77 | 1 && get_option( 'page_comments' ) ) : ?> 78 | 87 | 96 | 97 |

98 | 103 | 104 | 105 |
106 | 107 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package zillah 10 | */ 11 | 12 | ?> 13 | 14 | > 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | > 26 | 27 |
28 | 29 | 30 | 102 | 103 | 104 | 105 | 106 | 107 |
108 |
109 | 110 | -------------------------------------------------------------------------------- /inc/widgets/class-zillah-about-me.php: -------------------------------------------------------------------------------- 1 | 'Zillah_About_Me', 19 | 'description' => __( 'About me widget.', 'zillah' ), 20 | ); 21 | $control_ops = array( 22 | 'width' => 400, 23 | 'height' => 350, 24 | ); 25 | parent::__construct( 'Zillah_About_Me', __( 'Zillah: About me', 'zillah' ), $widget_ops, $control_ops ); 26 | } 27 | 28 | /** 29 | * Build the widget 30 | * 31 | * @param array $args Array of arguments. 32 | * @param array $instance The instance. 33 | */ 34 | public function widget( $args, $instance ) { 35 | 36 | $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 37 | $image_url = isset( $instance['image_url'] ) ? esc_url( $instance['image_url'] ) : ''; 38 | $text = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance ); 39 | echo $args['before_widget']; 40 | 41 | if ( ! empty( $title ) ) { 42 | echo $args['before_title'] . wp_kses_post( $title ) . $args['after_title']; 43 | } 44 | 45 | if ( ! empty( $image_url ) ) { ?> 46 |
47 | /> 48 |
49 | 54 |
55 | 56 |
57 | '', 93 | 'text' => '', 94 | 'image_url' => '', 95 | ) 96 | ); 97 | $title = strip_tags( $instance['title'] ); 98 | $text = esc_textarea( $instance['text'] ); 99 | $image_url = esc_url( $instance['image_url'] ); 100 | ?> 101 |

102 | 103 |

104 | 105 |

106 |

107 | 108 |

109 | 110 | Themes and click the Add New button. 21 | 2. Click Upload 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 | = License = 25 | Zillah WordPress theme, Copyright (C) 2015 Themeisle.com 26 | Zillah WordPress theme is licensed under the GPL3. 27 | 28 | Unless otherwise specified, all the theme files, scripts and images are licensed under GNU General Public License. 29 | The exceptions to this license are as follows: 30 | 31 | * Bootstrap v3.3.5 (http://getbootstrap.com) 32 | Copyright 2011-2015 Twitter, Inc. 33 | Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 34 | 35 | * Fontawesome 36 | Created by Dave Gandy 37 | -> Font License 38 | Licensed under SIL OFL 1.1 (http://scripts.sil.org/OFL) 39 | -> Code License 40 | Licensed under MIT License (http://opensource.org/licenses/mit-license.html) 41 | 42 | * Images 43 | 44 | License: 45 | All mystock.photos images are licensed under the terms of the Creative Commons Zero, http://creativecommons.org/publicdomain/zero/1.0/ 46 | 47 | Images from screenshot: 48 | 49 | * https://images.unsplash.com/photo-1440613905118-99b921706b5c?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=d46f4d7f29ff0d8d6c73c85d36605664 50 | * https://images.unsplash.com/photo-1460500063983-994d4c27756c?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=27c2758e7f3aa5b8b3a4a1d1f1812310 51 | 52 | == Frequently Asked Questions == 53 | 54 | = Does this theme support any plugins? = 55 | 56 | Zillah includes support for Infinite Scroll in Jetpack. 57 | 58 | == Changelog == 59 | = 1.1.9 - 2019-08-06 = 60 | 61 | * Updates for Travis 62 | * Prepare for retirement notice 63 | 64 | 65 | = 1.1.8 - 2018-11-27 = 66 | 67 | * Added missing generate task 68 | 69 | 70 | 71 | = 1.0 - May 12 2015 = 72 | * Initial release 73 | 74 | == Credits == 75 | 76 | * Based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 77 | * normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT) 78 | 79 | * Portuguese - BRAZIL translations - Caio Norder https://github.com/caionorder 80 | 81 | == Available hooks == 82 | 83 | * `zillah_html_before` 84 | * `zillah_head_top` 85 | * `zillah_head_bottom` 86 | * `zillah_body_top` 87 | * `zillah_body_bottom` 88 | * `zillah_header_before` 89 | * `zillah_header_after` 90 | * `zillah_header_top` 91 | * `zillah_header_bottom` 92 | * `zillah_content_before` 93 | * `zillah_content_after` 94 | * `zillah_content_top` 95 | * `zillah_content_bottom` 96 | * `zillah_entry_before` 97 | * `zillah_entry_after` 98 | * `zillah_entry_top` 99 | * `zillah_entry_bottom` 100 | * `zillah_page_before` 101 | * `zillah_page_after` 102 | * `zillah_page_top` 103 | * `zillah_page_bottom` 104 | * `zillah_index_before` 105 | * `zillah_index_after` 106 | * `zillah_index_top` 107 | * `zillah_index_bottom` 108 | * `zillah_archive_before` 109 | * `zillah_archive_after` 110 | * `zillah_archive_top` 111 | * `zillah_archive_bottom` 112 | * `zillah_search_before` 113 | * `zillah_search_after` 114 | * `zillah_search_top` 115 | * `zillah_search_bottom` 116 | * `zillah_comments_before` 117 | * `zillah_comments_after` 118 | * `zillah_comments_top` 119 | * `zillah_comments_bottom` 120 | * `zillah_sidebar_before` 121 | * `zillah_sidebar_after` 122 | * `zillah_sidebar_top` 123 | * `zillah_sidebar_bottom` 124 | * `zillah_404_content` 125 | * `zillah_footer_before` 126 | * `zillah_footer_after` 127 | * `zillah_footer_top` 128 | * `zillah_footer_bottom` 129 | 130 | * All Theme Hook Alliance hooks are included! -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ### v1.1.9 - 2019-08-06 3 | **Changes:** 4 | * Updates for Travis 5 | * Prepare for retirement notice 6 | 7 | ### v1.1.8 - 2018-11-27 8 | **Changes:** 9 | * Added missing generate task 10 | 11 | ### 1.1.6 - 24/05/2018 12 | **Changes:** 13 | - Fixed js error caused by priority issues 14 | 15 | ### 1.1.5 - 11/05/2018 16 | **Changes:** 17 | - Compatibility with the OrbitFox plugin 18 | - Fixed problem with whitespace on mobile devices when using the Alternative Layout option 19 | - Updated size for header default image 20 | 21 | ### 1.1.4 - 01/02/2018 22 | **Changes:** 23 | - Fixed non-dismissible notice for Pirate Forms installation 24 | - Upgraded grunt and fixed all the errors 25 | - Added a filter for the enqueued Google fonts 26 | 27 | ### 1.1.3 - 16/10/2017 28 | **Changes:** 29 | - Removed Posted date when updated setting is active 30 | - Fix notice: too few arguments to sprintf 31 | 32 | ### 1.1.2 - 30/03/2017 33 | **Changes:** 34 | - Added comparison mechanism for demo content to allow safer updates 35 | - NEW option for displaying the Updated date for posts 36 | 37 | ### 1.1.1 - 25/01/2017 38 | **Changes:** 39 | - Support for Jetpack's related post date 40 | 41 | ### 1.1.0 - 16/12/2016 42 | **Changes:** 43 | - Fixed layout issue on search results page 44 | - Improved customizer options for slider and sidebar 45 | 46 | ### 1.0.15 - 21/11/2016 47 | **Changes:** 48 | - NEW Blog and single layout 49 | - Display the sidebar on mobile, if the option to show the sidebar is selected 50 | - Added grunt + fixed all generated issues 51 | 52 | ### 1.0.14 - 05/10/2016 53 | **Changes:** 54 | - Improved code quality 55 | - Removed unused code 56 | - Improved sanitization function for palette colors options 57 | - Regenerate pot file 58 | - Update tags in readme.txt 59 | - Fixed escaping issues 60 | - Changed required plugins to recommended 61 | 62 | ### 1.0.13 - 04/10/2016 63 | **Changes:** 64 | - Fixed missing microdata author 65 | - Improve buttons layout 66 | - Added pt_BR translations files 67 | - Fixed issue with title not beeing responsive 68 | - Added the posts from the slider, in the main content, on mobile 69 | 70 | ### 1.0.12 - 02/08/2016 71 | **Changes:** 72 | - Fixed issue with html beeing outputed in author description 73 | 74 | ### 1.0.11 - 08/07/2016 75 | **Changes:** 76 | - Fixed responsive isseus with the menu 77 | - Limit text for next / prev buttons 78 | - Decreased search page title on mobile devices 79 | - Added hooks 80 | - Decreased header on mobile devices 81 | 82 | ### 1.0.10 - 01/07/2016 83 | **Changes:** 84 | - Update style.css 85 | 86 | ### 1.0.9 - 30/06/2016 87 | **Changes:** 88 | - Fixed Custom logo customizer issue 89 | 90 | ### 1.0.8 - 21/06/2016 91 | **Changes:** 92 | - Added missing sanitizations 93 | 94 | ### 1.0.7 - 21/06/2016 95 | **Changes:** 96 | - Fixed image padding issue in post content 97 | - Retina logo 98 | - Fixed issue with enqueued script for child themes 99 | - Add option for custom fonts family and size 100 | - Show author gravatar only if the name or description exists 101 | - Add support for post formats 102 | 103 | ### 1.0.6 - 14/06/2016 104 | **Changes:** 105 | - Fixed layout for related posts on mobile devices 106 | - Aligned the menu on the left side on tablets 107 | - Add option to show the first image in the content as featured image 108 | - Remove posts featured in the slider, from the posts list 109 | 110 | ### 1.0.5 - 13/06/2016 111 | **Changes:** 112 | - Fixed issues with mobile menu color schemes 113 | - New screenshot 114 | - Fixed issues with font sizes on mobile devices 115 | - Fixed issues with comments layout on mobile devices 116 | - Fixed the option to hide post tags 117 | - Fixed issue with scrolling header on Safari 118 | - Add unminified scripts for all the minified scripts used 119 | - Update scripts licenses 120 | 121 | ### 1.0.4 - 08/06/2016 122 | **Changes:** 123 | - Update style for related posts 124 | 125 | ### 1.0.2 - 07/06/2016 126 | **Changes:** 127 | - Fixed issue with Related Posts 128 | 129 | ### 1.0.1 - 07/06/2016 130 | **Changes:** 131 | - Add colors schemes options 132 | - Fixed sanitizations 133 | - Regenerate .pot file 134 | - Style Trackbacks and Pingbacks 135 | - Style Galleries 136 | 137 | ### 1.0.0 - 01/06/2016 138 | **Changes:** 139 | - New design 140 | 141 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Zillah # 2 | 3 | **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle), [codeinwp](https://profiles.wordpress.org/codeinwp) 4 | **Tags:** right-sidebar, one-column, custom-background, custom-colors, featured-image-header, featured-images, sticky-post, translation-ready, threaded-comments, rtl-language-support, theme-options 5 | 6 | **Requires at least:** 4.0 7 | **Tested up to:** 4.4.2 8 | **Stable tag:** 1.0.0 9 | **License:** GPLv2 or later 10 | **License URI:** http://www.gnu.org/licenses/gpl-2.0.html 11 | 12 | Zillah is a free blogging WordPress theme. 13 | 14 | ## Description ## 15 | 16 | Zillah is a free blogging WordPress theme. 17 | 18 | ## Installation ## 19 | 20 | 1. In your admin panel, go to Appearance > Themes and click the Add New button. 21 | 2. Click Upload 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 | ### License ### 25 | Zillah WordPress theme, Copyright (C) 2015 Themeisle.com 26 | Zillah WordPress theme is licensed under the GPL3. 27 | 28 | Unless otherwise specified, all the theme files, scripts and images are licensed under GNU General Public License. 29 | The exceptions to this license are as follows: 30 | 31 | * Bootstrap v3.3.5 (http://getbootstrap.com) 32 | Copyright 2011-2015 Twitter, Inc. 33 | Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 34 | 35 | * Fontawesome 36 | Created by Dave Gandy 37 | -> Font License 38 | Licensed under SIL OFL 1.1 (http://scripts.sil.org/OFL) 39 | -> Code License 40 | Licensed under MIT License (http://opensource.org/licenses/mit-license.html) 41 | 42 | * Images 43 | 44 | License: 45 | All mystock.photos images are licensed under the terms of the Creative Commons Zero, http://creativecommons.org/publicdomain/zero/1.0/ 46 | 47 | Images from screenshot: 48 | 49 | * https://images.unsplash.com/photo-1440613905118-99b921706b5c?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=d46f4d7f29ff0d8d6c73c85d36605664 50 | * https://images.unsplash.com/photo-1460500063983-994d4c27756c?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=27c2758e7f3aa5b8b3a4a1d1f1812310 51 | 52 | ## Frequently Asked Questions ## 53 | 54 | ### Does this theme support any plugins? ### 55 | 56 | Zillah includes support for Infinite Scroll in Jetpack. 57 | 58 | ## Changelog ## 59 | ### 1.1.9 - 2019-08-06 ### 60 | 61 | * Updates for Travis 62 | * Prepare for retirement notice 63 | 64 | 65 | ### 1.1.8 - 2018-11-27 ### 66 | 67 | * Added missing generate task 68 | 69 | 70 | 71 | ### 1.0 - May 12 2015 ### 72 | * Initial release 73 | 74 | ## Credits ## 75 | 76 | * Based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 77 | * normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT) 78 | 79 | * Portuguese - BRAZIL translations - Caio Norder https://github.com/caionorder 80 | 81 | ## Available hooks ## 82 | 83 | * `zillah_html_before` 84 | * `zillah_head_top` 85 | * `zillah_head_bottom` 86 | * `zillah_body_top` 87 | * `zillah_body_bottom` 88 | * `zillah_header_before` 89 | * `zillah_header_after` 90 | * `zillah_header_top` 91 | * `zillah_header_bottom` 92 | * `zillah_content_before` 93 | * `zillah_content_after` 94 | * `zillah_content_top` 95 | * `zillah_content_bottom` 96 | * `zillah_entry_before` 97 | * `zillah_entry_after` 98 | * `zillah_entry_top` 99 | * `zillah_entry_bottom` 100 | * `zillah_page_before` 101 | * `zillah_page_after` 102 | * `zillah_page_top` 103 | * `zillah_page_bottom` 104 | * `zillah_index_before` 105 | * `zillah_index_after` 106 | * `zillah_index_top` 107 | * `zillah_index_bottom` 108 | * `zillah_archive_before` 109 | * `zillah_archive_after` 110 | * `zillah_archive_top` 111 | * `zillah_archive_bottom` 112 | * `zillah_search_before` 113 | * `zillah_search_after` 114 | * `zillah_search_top` 115 | * `zillah_search_bottom` 116 | * `zillah_comments_before` 117 | * `zillah_comments_after` 118 | * `zillah_comments_top` 119 | * `zillah_comments_bottom` 120 | * `zillah_sidebar_before` 121 | * `zillah_sidebar_after` 122 | * `zillah_sidebar_top` 123 | * `zillah_sidebar_bottom` 124 | * `zillah_404_content` 125 | * `zillah_footer_before` 126 | * `zillah_footer_after` 127 | * `zillah_footer_top` 128 | * `zillah_footer_bottom` 129 | 130 | * All Theme Hook Alliance hooks are included! -------------------------------------------------------------------------------- /js/customizer.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File customizer.js. 3 | * 4 | * Theme Customizer enhancements for a better user experience. 5 | * 6 | * Contains handlers to make Theme Customizer preview reload changes asynchronously. 7 | */ 8 | 9 | ( function( $ ) { 10 | 11 | // Site title and description. 12 | wp.customize( 13 | 'blogname', function( value ) { 14 | value.bind( 15 | function( to ) { 16 | $( '.site-title a' ).text( to ); 17 | } 18 | ); 19 | } 20 | ); 21 | 22 | wp.customize( 23 | 'blogdescription', function( value ) { 24 | value.bind( 25 | function( to ) { 26 | $( '.site-description' ).text( to ); 27 | } 28 | ); 29 | } 30 | ); 31 | 32 | // Header text color. 33 | wp.customize( 34 | 'header_textcolor', function( value ) { 35 | value.bind( 36 | function( to ) { 37 | var color = ''; 38 | if ( '' !== to ) { 39 | color = to; 40 | 41 | } else { 42 | var palette = wp.customize._value.zillah_palette_picker(); 43 | if (typeof palette !== 'undefined' && palette !== '') { 44 | var obj = JSON.parse( palette ); 45 | if (typeof obj.color2 !== 'undefined') { 46 | color = obj.color2; 47 | } 48 | } else { 49 | color = '#6ca790'; 50 | } 51 | } 52 | 53 | if (color !== '') { 54 | $( '.site-title a' ).css( 55 | { 56 | 'color': color 57 | } 58 | ); 59 | } 60 | } 61 | ); 62 | } 63 | ); 64 | 65 | // Hide Site Title 66 | wp.customize( 67 | 'zillah_tagline_show', function( value ) { 68 | value.bind( 69 | function( to ) { 70 | if ( to !== false ) { 71 | $( '.header-title-wrap' ).addClass( 'zillah-only-customizer' ); 72 | } else { 73 | $( '.header-title-wrap' ).removeClass( 'zillah-only-customizer' ); 74 | } 75 | } 76 | ); 77 | } 78 | ); 79 | 80 | // Slider 81 | wp.customize( 82 | 'zillah_home_slider_show', function( value ) { 83 | value.bind( 84 | function( to ) { 85 | if ( to !== false ) { 86 | $( '#home-carousel' ).removeClass( 'zillah-only-customizer' ); 87 | } else { 88 | $( '#home-carousel' ).addClass( 'zillah-only-customizer' ); 89 | } 90 | } 91 | ); 92 | } 93 | ); 94 | 95 | // Slider 96 | wp.customize( 97 | 'zillah_tags_show', function( value ) { 98 | value.bind( 99 | function( to ) { 100 | if ( to !== false ) { 101 | $( '.tags-links' ).removeClass( 'zillah-only-customizer' ); 102 | } else { 103 | $( '.tags-links' ).addClass( 'zillah-only-customizer' ); 104 | } 105 | } 106 | ); 107 | } 108 | ); 109 | 110 | // Social repeater 111 | wp.customize( 112 | 'zillah_social_icons', function( value ) { 113 | value.bind( 114 | function( to ) { 115 | var obj = JSON.parse( to ); 116 | var result = ''; 117 | 118 | var lastIcon = $( '.social-media-icons li:last-child' ); 119 | 120 | obj.forEach( 121 | function(item) { 122 | result += '

  • '; 123 | } 124 | ); 125 | 126 | if ( ! lastIcon.hasClass( 'zillah-only-customizer' ) ) { 127 | result += '
  • '; 128 | } else { 129 | result += '
  • '; 130 | } 131 | $( '.social-media-icons' ).html( result ); 132 | } 133 | ); 134 | } 135 | ); 136 | 137 | // Page header image 138 | wp.customize( 139 | 'zillah_page_header', function( value ) { 140 | value.bind( 141 | function( to ) { 142 | $( '.page-main-header' ).css( 'background-image','url("' + to + '")' ); 143 | } 144 | ); 145 | } 146 | ); 147 | 148 | // Sidebar 149 | wp.customize( 150 | 'zillah_sidebar_show', function( value ) { 151 | value.bind( 152 | function( to ) { 153 | if ( ! $( 'body' ).hasClass( 'single-post' ) && ! $( 'body' ).hasClass( 'page' ) ) { 154 | if (to !== false) { 155 | $( '#secondary' ).removeClass( 'zillah-only-customizer' ); 156 | $( '.content-area' ).addClass( 'content-area-with-sidebar' ); 157 | } else { 158 | $( '#secondary' ).addClass( 'zillah-only-customizer' ); 159 | $( '.content-area' ).removeClass( 'content-area-with-sidebar' ); 160 | } 161 | } 162 | } 163 | ); 164 | } 165 | ); 166 | 167 | // Header Image 168 | wp.customize( 169 | 'header_image', function( value ) { 170 | value.bind( 171 | function( to ) { 172 | $( '.header-inner-site-branding' ).css( 'background-image', 'url(' + to + ')' ); 173 | } 174 | ); 175 | } 176 | ); 177 | 178 | } )( jQuery ); 179 | -------------------------------------------------------------------------------- /css/bootstrap-theme.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":";;;;AAmBA,YAAA,aAAA,UAAA,aAAA,aAAA,aAME,YAAA,EAAA,KAAA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A,qBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA"} -------------------------------------------------------------------------------- /rtl.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: zillah 3 | 4 | Adding support for language written in a Right To Left (RTL) direction is easy - 5 | it's just a matter of overwriting all the horizontal positioning attributes 6 | of your CSS stylesheet in a separate stylesheet file named rtl.css. 7 | 8 | https://codex.wordpress.org/Right_to_Left_Language_Support 9 | 10 | */ 11 | 12 | body { 13 | direction: rtl; 14 | unicode-bidi: embed; 15 | } 16 | 17 | body, 18 | button, 19 | input, 20 | select, 21 | textarea { 22 | text-align: right; 23 | } 24 | 25 | /* Header */ 26 | .dropdown-toggle { 27 | right: initial; 28 | left: 0; 29 | margin: 0 0 0 5px; 30 | } 31 | 32 | .main-navigation ul { 33 | padding-right: 0; 34 | } 35 | 36 | .main-navigation ul ul { 37 | float: right; 38 | padding-right: 30px; 39 | padding-left: 0; 40 | text-align: right; 41 | } 42 | 43 | .header-search form { 44 | float: left; 45 | } 46 | 47 | .header-search label:before { 48 | right: 0; 49 | left: initial; 50 | padding-right: 0; 51 | padding-left: 20px; 52 | content: "\f002"; 53 | } 54 | 55 | .header-search input { 56 | padding-left: 50px; 57 | } 58 | 59 | .header-search input[type="submit"] { 60 | right: 0; 61 | left: initial; 62 | } 63 | 64 | .header-search label { 65 | padding-right: 20px; 66 | padding-left: 0; 67 | } 68 | 69 | .menu-toggle-button-wrap { 70 | text-align: right; 71 | } 72 | 73 | .header-social-icons ul { 74 | float: left; 75 | } 76 | 77 | /* Footer */ 78 | .site-footer { 79 | text-align: right; 80 | } 81 | 82 | .quick-contact .fa { 83 | margin: 0 0 15px 20px; 84 | } 85 | 86 | /* Ribbon itnro [Homepage two] */ 87 | .homepage-two .site-main { 88 | padding-left: 0; 89 | } 90 | 91 | /* Recently posted [homepage two] */ 92 | .recently-item .entry-header { 93 | float: right; 94 | width: 100%; 95 | } 96 | 97 | .recently-item h2.entry-title a { 98 | float: none; 99 | } 100 | 101 | .recently-content-wrap .entry-content { 102 | width: 100%; 103 | } 104 | 105 | /* Page */ 106 | .taxonomy-description { 107 | padding-right: 0; 108 | padding-left: 315px; 109 | text-align: right; 110 | } 111 | 112 | blockquote { 113 | margin-right: 0; 114 | padding: 0 20px; 115 | border-right: 5px solid #7fcaad; 116 | border-left: none; 117 | } 118 | 119 | /* Single page */ 120 | .comment-navigation .nav-next, 121 | .posts-navigation .nav-next, 122 | .post-navigation .nav-next { 123 | float: left; 124 | margin-right: -1px; 125 | margin-left: 0; 126 | text-align: left; 127 | } 128 | 129 | .comment-body { 130 | padding: 30px 124px 30px 15px; 131 | } 132 | 133 | .comment-author { 134 | right: 0; 135 | left: initial; 136 | } 137 | 138 | .comment-list .children { 139 | padding: 0 30px 0 0; 140 | } 141 | 142 | .author-details-img-wrap { 143 | float: right; 144 | margin-right: 0; 145 | margin-left: 35px; 146 | } 147 | 148 | @media screen and (min-width: 480px) { 149 | } 150 | 151 | @media screen and (min-width: 600px) { 152 | /* Sidebar */ 153 | .widget_search input[type="submit"] { 154 | right: initial; 155 | left: 0; 156 | } 157 | 158 | .widget_search label:before { 159 | right: initial; 160 | left: 0; 161 | padding-right: 0; 162 | padding-left: 20px; 163 | content: "\f002"; 164 | } 165 | 166 | .widget_search input { 167 | padding-left: 50px; 168 | } 169 | 170 | /* Header */ 171 | .menu-toggle-button-wrap { 172 | text-align: center; 173 | } 174 | } 175 | 176 | @media screen and (min-width: 768px) { 177 | /* Header */ 178 | .main-navigation ul ul { 179 | padding: 0; 180 | } 181 | 182 | /* Footer */ 183 | .footer-content-bottom, 184 | .quick-contact { 185 | text-align: right; 186 | } 187 | 188 | .quick-contact, 189 | .footer-widget-wrap { 190 | float: right; 191 | } 192 | 193 | .footer-content-bottom-btn { 194 | padding-right: 25px; 195 | padding-left: 0; 196 | } 197 | 198 | /* About us */ 199 | .about-us-page .recently-posted-title { 200 | float: right; 201 | } 202 | 203 | .see-all-posts { 204 | float: left; 205 | } 206 | 207 | .recently-posted-wrap .recently-posted-about { 208 | float: right; 209 | } 210 | 211 | .recently-posted-wrap .recently-posted-about:nth-child(3n+1) { 212 | clear: right; 213 | padding-right: 0; 214 | padding-left: 16.6px; 215 | } 216 | 217 | .recently-posted-wrap .recently-posted-about:nth-child(3n+3) { 218 | padding-right: 16.6px; 219 | padding-left: 0; 220 | } 221 | } 222 | 223 | @media screen and (min-width: 992px) { 224 | .site-main { 225 | padding: 0 0 0 60px; 226 | } 227 | 228 | /* header */ 229 | .main-navigation ul ul li:hover > ul, 230 | .main-navigation ul ul li.focus > ul { 231 | right: 100%; 232 | left: initial; 233 | } 234 | 235 | .main-navigation li.menu-item-has-children { 236 | padding-right: 0; 237 | padding-left: 10px; 238 | } 239 | 240 | /* Footer */ 241 | .footer-video-wrap { 242 | margin-right: 0; 243 | margin-left: 60px; 244 | } 245 | 246 | /* Ribbon [Homepage One] */ 247 | .home-ribbon-text { 248 | margin-right: 0; 249 | margin-left: 20px; 250 | text-align: right; 251 | } 252 | 253 | /* Tree videos [Homepage Two] */ 254 | .home-three-videos-item { 255 | float: right; 256 | } 257 | 258 | /* Ribbon intro [Homepage Two] */ 259 | .home-ribbon-intro-inner { 260 | float: right; 261 | text-align: right; 262 | } 263 | 264 | /* Recently posted [homepage two] */ 265 | .recently-image-wrap { 266 | margin-right: 0; 267 | margin-left: 50px; 268 | } 269 | 270 | /* Contact */ 271 | .search-page .site-main, 272 | .contact-page .site-main { 273 | padding-left: 0; 274 | } 275 | 276 | .contact-block-item-wrap .contact-block-item { 277 | float: right; 278 | } 279 | 280 | .contact-block-content-wrap .contact-block-content:nth-child(even) { 281 | padding-right: 15px; 282 | padding-left: 0; 283 | } 284 | 285 | .contact-block-content-wrap .contact-block-content:nth-child(odd) { 286 | padding-right: 0; 287 | padding-left: 15px; 288 | } 289 | 290 | .contact-block { 291 | text-align: right; 292 | } 293 | 294 | .contact-link .fa { 295 | text-align: right; 296 | } 297 | 298 | /* About us */ 299 | .info-block { 300 | text-align: right; 301 | } 302 | } 303 | 304 | @media screen and (min-width: 1200px) { 305 | /* Recently posted */ 306 | .recently-posted-wrap .recently-posted-item:nth-child(2n+1) { 307 | clear: right; 308 | } 309 | 310 | .recently-posted-item { 311 | float: right; 312 | } 313 | 314 | .recently-posted-wrap .recently-posted-item:nth-child(odd) { 315 | padding-right: 0; 316 | padding-left: 10px; 317 | } 318 | .recently-posted-wrap .recently-posted-item:nth-child(even) { 319 | padding-right: 10px; 320 | padding-left: 0; 321 | } 322 | } 323 | -------------------------------------------------------------------------------- /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( 21 | $time_string, 22 | esc_attr( get_the_date( 'c' ) ), 23 | esc_html( get_the_date() ), 24 | esc_attr( get_the_modified_date( 'c' ) ), 25 | esc_html( get_the_modified_date() ) 26 | ); 27 | 28 | $posted_on = sprintf( 29 | /* translators: s: post date */ 30 | esc_html_x( 'Posted on %s', 'post date', 'zillah' ), 31 | '' . $time_string . '' 32 | ); 33 | 34 | $byline = sprintf( 35 | /* translators: s: post author */ 36 | esc_html_x( 'by %s', 'post author', 'zillah' ), 37 | '' . esc_html( get_the_author() ) . '' 38 | ); 39 | 40 | echo '' . $posted_on . ''; // WPCS: XSS OK. 41 | 42 | } 43 | endif; 44 | 45 | if ( ! function_exists( 'zillah_entry_footer' ) ) : 46 | /** 47 | * Prints HTML with meta information for the categories, tags and comments. 48 | */ 49 | function zillah_entry_footer() { 50 | // Hide category and tag text for pages. 51 | if ( 'post' === get_post_type() ) { 52 | 53 | $zillah_tags_show = get_theme_mod( 'zillah_tags_show', false ); 54 | 55 | if ( $zillah_tags_show === true || is_customize_preview() ) { 56 | /* translators: used between list items, there is a space after the comma */ 57 | $tags_list = get_the_tag_list( '', esc_html__( ', ', 'zillah' ) ); 58 | if ( $tags_list ) { 59 | /* translators: 1: tags */ 60 | printf( '' . esc_html__( 'Tagged %1$s', 'zillah' ) . '', $tags_list ); // WPCS: XSS OK. 61 | } 62 | } 63 | } 64 | 65 | edit_post_link( 66 | sprintf( 67 | /* translators: %s: Name of current post */ 68 | esc_html__( ' Edit %s', 'zillah' ), 69 | the_title( '"', '"', false ) 70 | ), 71 | '', 72 | '' 73 | ); 74 | } 75 | endif; 76 | 77 | /** 78 | * Returns true if a blog has more than 1 category. 79 | * 80 | * @return bool 81 | */ 82 | function zillah_categorized_blog() { 83 | $all_the_cool_cats = get_transient( 'zillah_categories' ); 84 | if ( false === $all_the_cool_cats ) { 85 | // Create an array of all the categories that are attached to posts. 86 | $all_the_cool_cats = get_categories( 87 | array( 88 | 'fields' => 'ids', 89 | 'hide_empty' => 1, 90 | // We only need to know if there is more than one category. 91 | 'number' => 2, 92 | ) 93 | ); 94 | 95 | // Count the number of categories that are attached to the posts. 96 | $all_the_cool_cats = count( $all_the_cool_cats ); 97 | 98 | set_transient( 'zillah_categories', $all_the_cool_cats ); 99 | } 100 | 101 | if ( $all_the_cool_cats > 1 ) { 102 | // This blog has more than 1 category so zillah_categorized_blog should return true. 103 | return true; 104 | } else { 105 | // This blog has only 1 category so zillah_categorized_blog should return false. 106 | return false; 107 | } 108 | } 109 | 110 | /** 111 | * Flush out the transients used in zillah_categorized_blog. 112 | */ 113 | function zillah_category_transient_flusher() { 114 | if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 115 | return; 116 | } 117 | // Like, beat it. Dig? 118 | delete_transient( 'zillah_categories' ); 119 | } 120 | add_action( 'edit_category', 'zillah_category_transient_flusher' ); 121 | add_action( 'save_post', 'zillah_category_transient_flusher' ); 122 | 123 | 124 | 125 | if ( ! function_exists( 'zillah_posted_date' ) ) : 126 | /** 127 | * Prints HTML with meta information for the current post-date. 128 | */ 129 | function zillah_posted_date() { 130 | $show_updated = get_theme_mod( 'zillah_show_updated', false ); 131 | $time_string = ''; 132 | 133 | if ( ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) ) { 134 | $time_string = ''; 135 | if ( (bool) $show_updated === true ) { 136 | $time_string = '%5$s '; 137 | } 138 | } 139 | 140 | $time_string = sprintf( 141 | $time_string, 142 | esc_attr( get_the_date( 'c' ) ), 143 | esc_html( get_the_date() ), 144 | esc_attr( get_the_modified_date( 'c' ) ), 145 | esc_html( get_the_modified_date() ), 146 | esc_html__( 'Last Updated:', 'zillah' ), 147 | esc_html__( 'Posted:', 'zillah' ) 148 | ); 149 | 150 | $posted_on = '' . $time_string . ''; 151 | 152 | echo '' . $posted_on . ''; // WPCS: XSS OK. 153 | 154 | } 155 | endif; 156 | 157 | 158 | 159 | if ( ! function_exists( 'zillah_category' ) ) : 160 | /** 161 | * Prints HTML with meta information for the category. 162 | */ 163 | function zillah_category() { 164 | 165 | $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'zillah' ) ); 166 | if ( $categories_list ) { 167 | printf( 168 | '%1$s %2$s', 169 | _x( 'Categories', 'Used before category names.', 'zillah' ), 170 | $categories_list 171 | ); 172 | } 173 | } 174 | endif; 175 | 176 | 177 | if ( ! function_exists( 'zillah_comments_number' ) ) : 178 | /** 179 | * Prints comments number. 180 | */ 181 | function zillah_comments_number() { 182 | 183 | echo ''; 184 | 185 | $comments_number = get_comments_number(); 186 | if ( 1 === $comments_number ) { 187 | /* translators: %s: post title */ 188 | printf( _x( '1 Comment', 'comments title', 'zillah' ) ); 189 | } else { 190 | printf( 191 | /* translators: 1: number of comments, 2: post title */ 192 | _nx( 193 | '%1$s Comment', 194 | '%1$s Comments', 195 | $comments_number, 196 | 'comments title', 197 | 'zillah' 198 | ), 199 | number_format_i18n( $comments_number ) 200 | ); 201 | } 202 | 203 | echo ''; 204 | } 205 | endif; 206 | -------------------------------------------------------------------------------- /inc/tha-theme-hooks.php: -------------------------------------------------------------------------------- 1 | 32 | * // Declare support for all hook types 33 | * add_theme_support( 'tha_hooks', array( 'all' ) ); 34 | * 35 | * // Declare support for certain hook types only 36 | * add_theme_support( 'tha_hooks', array( 'header', 'content', 'footer' ) ); 37 | * 38 | */ 39 | add_theme_support( 40 | 'tha_hooks', 41 | array( 42 | 43 | /** 44 | * As a Theme developer, use the 'all' parameter, to declare support for all 45 | * hook types. 46 | * Please make sure you then actually reference all the hooks in this file, 47 | * Plugin developers depend on it! 48 | */ 49 | 'all', 50 | 51 | /** 52 | * Themes can also choose to only support certain hook types. 53 | * Please make sure you then actually reference all the hooks in this type 54 | * family. 55 | * 56 | * When the 'all' parameter was set, specific hook types do not need to be 57 | * added explicitly. 58 | */ 59 | 'html', 60 | 'body', 61 | 'head', 62 | 'header', 63 | 'content', 64 | 'entry', 65 | 'comments', 66 | 'sidebars', 67 | 'sidebar', 68 | 'footer', 69 | 70 | /** 71 | * If/when WordPress Core implements similar methodology, Themes and Plugins 72 | * will be able to check whether the version of THA supplied by the theme 73 | * supports Core hooks. 74 | */ 75 | ) 76 | ); 77 | 78 | /** 79 | * Determines, whether the specific hook type is actually supported. 80 | * 81 | * Plugin developers should always check for the support of a specific 82 | * hook type before hooking a callback function to a hook of this type. 83 | * 84 | * Example: 85 | * 86 | * if ( current_theme_supports( 'tha_hooks', 'header' ) ) 87 | * add_action( 'tha_head_top', 'prefix_header_top' ); 88 | * 89 | * 90 | * @param bool $bool true. 91 | * @param array $args The hook type being checked. 92 | * @param array $registered All registered hook types. 93 | * 94 | * @return bool 95 | */ 96 | function tha_current_theme_supports( $bool, $args, $registered ) { 97 | return in_array( $args[0], $registered[0] ) || in_array( 'all', $registered[0] ); 98 | } 99 | add_filter( 'current_theme_supports-tha_hooks', 'tha_current_theme_supports', 10, 3 ); 100 | 101 | /** 102 | * HTML hook 103 | * Special case, useful for , etc. 104 | * $tha_supports[] = 'html; 105 | */ 106 | function tha_html_before() { 107 | do_action( 'tha_html_before' ); 108 | } 109 | /** 110 | * HTML hooks 111 | * $tha_supports[] = 'body'; 112 | */ 113 | function tha_body_top() { 114 | do_action( 'tha_body_top' ); 115 | } 116 | 117 | /** 118 | * HTML hooks 119 | * $tha_supports[] = 'body'; 120 | */ 121 | function tha_body_bottom() { 122 | do_action( 'tha_body_bottom' ); 123 | } 124 | 125 | /** 126 | * HTML hooks 127 | * 128 | * $tha_supports[] = 'head'; 129 | */ 130 | function tha_head_top() { 131 | do_action( 'tha_head_top' ); 132 | } 133 | 134 | /** 135 | * HTML hooks 136 | * 137 | * $tha_supports[] = 'head'; 138 | */ 139 | function tha_head_bottom() { 140 | do_action( 'tha_head_bottom' ); 141 | } 142 | 143 | /** 144 | * Semantic
    hooks 145 | * 146 | * $tha_supports[] = 'header'; 147 | */ 148 | function tha_header_before() { 149 | do_action( 'tha_header_before' ); 150 | } 151 | 152 | /** 153 | * Semantic
    hooks 154 | * 155 | * $tha_supports[] = 'header'; 156 | */ 157 | function tha_header_after() { 158 | do_action( 'tha_header_after' ); 159 | } 160 | 161 | /** 162 | * Semantic
    hooks 163 | * 164 | * $tha_supports[] = 'header'; 165 | */ 166 | function tha_header_top() { 167 | do_action( 'tha_header_top' ); 168 | } 169 | 170 | /** 171 | * Semantic
    hooks 172 | * 173 | * $tha_supports[] = 'header'; 174 | */ 175 | function tha_header_bottom() { 176 | do_action( 'tha_header_bottom' ); 177 | } 178 | 179 | /** 180 | * Semantic hooks 181 | * 182 | * $tha_supports[] = 'content'; 183 | */ 184 | function tha_content_before() { 185 | do_action( 'tha_content_before' ); 186 | } 187 | 188 | /** 189 | * Semantic hooks 190 | * 191 | * $tha_supports[] = 'content'; 192 | */ 193 | function tha_content_after() { 194 | do_action( 'tha_content_after' ); 195 | } 196 | 197 | /** 198 | * Semantic hooks 199 | * 200 | * $tha_supports[] = 'content'; 201 | */ 202 | function tha_content_top() { 203 | do_action( 'tha_content_top' ); 204 | } 205 | 206 | /** 207 | * Semantic hooks 208 | * 209 | * $tha_supports[] = 'content'; 210 | */ 211 | function tha_content_bottom() { 212 | do_action( 'tha_content_bottom' ); 213 | } 214 | 215 | /** 216 | * Semantic hooks 217 | * 218 | * $tha_supports[] = 'content'; 219 | */ 220 | function tha_content_while_before() { 221 | do_action( 'tha_content_while_before' ); 222 | } 223 | 224 | /** 225 | * Semantic hooks 226 | * 227 | * $tha_supports[] = 'content'; 228 | */ 229 | function tha_content_while_after() { 230 | do_action( 'tha_content_while_after' ); 231 | } 232 | 233 | /** 234 | * Semantic hooks 235 | * 236 | * $tha_supports[] = 'entry'; 237 | */ 238 | function tha_entry_before() { 239 | do_action( 'tha_entry_before' ); 240 | } 241 | 242 | /** 243 | * Semantic hooks 244 | * 245 | * $tha_supports[] = 'entry'; 246 | */ 247 | function tha_entry_after() { 248 | do_action( 'tha_entry_after' ); 249 | } 250 | 251 | /** 252 | * Semantic hooks 253 | * 254 | * $tha_supports[] = 'entry'; 255 | */ 256 | function tha_entry_content_before() { 257 | do_action( 'tha_entry_content_before' ); 258 | } 259 | 260 | /** 261 | * Semantic hooks 262 | * 263 | * $tha_supports[] = 'entry'; 264 | */ 265 | function tha_entry_content_after() { 266 | do_action( 'tha_entry_content_after' ); 267 | } 268 | 269 | /** 270 | * Semantic hooks 271 | * 272 | * $tha_supports[] = 'entry'; 273 | */ 274 | function tha_entry_top() { 275 | do_action( 'tha_entry_top' ); 276 | } 277 | 278 | /** 279 | * Semantic hooks 280 | * 281 | * $tha_supports[] = 'entry'; 282 | */ 283 | function tha_entry_bottom() { 284 | do_action( 'tha_entry_bottom' ); 285 | } 286 | 287 | /** 288 | * Comments block hooks 289 | * 290 | * $tha_supports[] = 'comments'; 291 | */ 292 | function tha_comments_before() { 293 | do_action( 'tha_comments_before' ); 294 | } 295 | 296 | /** 297 | * Comments block hooks 298 | * 299 | * $tha_supports[] = 'comments'; 300 | */ 301 | function tha_comments_after() { 302 | do_action( 'tha_comments_after' ); 303 | } 304 | 305 | /** 306 | * Semantic hooks 307 | * 308 | * $tha_supports[] = 'sidebar'; 309 | */ 310 | function tha_sidebars_before() { 311 | do_action( 'tha_sidebars_before' ); 312 | } 313 | 314 | /** 315 | * Semantic hooks 316 | * 317 | * $tha_supports[] = 'sidebar'; 318 | */ 319 | function tha_sidebars_after() { 320 | do_action( 'tha_sidebars_after' ); 321 | } 322 | 323 | /** 324 | * Semantic hooks 325 | * 326 | * $tha_supports[] = 'sidebar'; 327 | */ 328 | function tha_sidebar_top() { 329 | do_action( 'tha_sidebar_top' ); 330 | } 331 | 332 | /** 333 | * Semantic hooks 334 | * 335 | * $tha_supports[] = 'sidebar'; 336 | */ 337 | function tha_sidebar_bottom() { 338 | do_action( 'tha_sidebar_bottom' ); 339 | } 340 | 341 | /** 342 | * Semantic