forked from WordPress/community-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poetry: add alternative header part (WordPress#174)
- Loading branch information
1 parent
dfce47d
commit f5092fd
Showing
6 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
/** | ||
* Poetry functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package WordPress | ||
* @subpackage Poetry | ||
* @since Poetry 1.0 | ||
*/ | ||
|
||
|
||
if ( ! function_exists( 'poetry_support' ) ) : | ||
|
||
/** | ||
* Sets up theme defaults and registers support for various WordPress features. | ||
* | ||
* @since Poetry 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function poetry_support() { | ||
|
||
// Enqueue editor styles. | ||
add_editor_style( 'style.css' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'after_setup_theme', 'poetry_support' ); | ||
|
||
if ( ! function_exists( 'poetry_styles' ) ) : | ||
|
||
/** | ||
* Enqueue styles. | ||
* | ||
* @since Poetry 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function poetry_styles() { | ||
// Register theme stylesheet. | ||
$theme_version = wp_get_theme()->get( 'Version' ); | ||
|
||
$version_string = is_string( $theme_version ) ? $theme_version : false; | ||
wp_register_style( | ||
'poetry-style', | ||
get_template_directory_uri() . '/style.css', | ||
array(), | ||
$version_string | ||
); | ||
|
||
// Enqueue theme stylesheet. | ||
wp_enqueue_style( 'poetry-style' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'wp_enqueue_scripts', 'poetry_styles' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"32px","bottom":"64px"}}},"className":"header-small","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group header-small" style="padding-top:32px;padding-bottom:64px"><!-- wp:group {"style":{"spacing":{"blockGap":"3rem"}},"className":"header-small__container","layout":{"type":"flex","flexWrap":"wrap","verticalAlignment":"top","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group header-small__container"><!-- wp:site-title {"level":0,"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"medium"} /--> | ||
|
||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0.25rem"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"><!-- wp:paragraph {"style":{"typography":{"lineHeight":"0.8","fontSize":"2rem"}},"fontFamily":"rozha-one"} --> | ||
<p class="has-rozha-one-font-family" style="font-size:2rem;line-height:0.8">Food for thoughts</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.5"}},"fontSize":"small"} --> | ||
<p class="has-small-font-size" style="line-height:1.5">A collection of valuable thoughts by a very egocentric person.</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:image {"width":"auto","height":"64px","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large is-resized"><img src="http://wp-community-day.local/wp-content/themes/poetry/assets/images/feather.png" alt="" style="width:auto;height:64px"/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:spacer {"height":"50px"} --> | ||
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters