Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TT1 Blocks: Clean up for Theme Repo #149

Merged
merged 22 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tt1-blocks/block-templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!-- wp:template-part {"slug":"header","theme":"tt1-blocks","align":"full", "tagName":"header","className":"site-header"} /-->

<!-- wp:query {"queryId":1,"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} -->
<!-- wp:query {"queryId":1,"query":{"perPage":"10","pages":"","offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":true}} -->

<!-- wp:query-loop -->
carolinan marked this conversation as resolved.
Show resolved Hide resolved

<!-- wp:query-loop -->
<!-- wp:post-title {"isLink":true} /-->

Expand Down
23 changes: 13 additions & 10 deletions tt1-blocks/functions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
/**
* Functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package WordPress
* @subpackage TT1_Blocks
* @since 0.1
*/

if ( ! function_exists( 'tt1_blocks_setup' ) ) {
/**
Expand All @@ -8,7 +17,7 @@
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* @since 1.0.0
* @since 0.1
*
* @return void
*/
Expand Down Expand Up @@ -204,7 +213,7 @@ function tt1_blocks_setup() {
'slug' => 'purple-to-red',
),
array(
'name' => esc_html__( 'Red to Purple', 'tt1_blocks_block_editor_script' ),
'name' => esc_html__( 'Red to Purple', 'tt1-blocks' ),
'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $purple . ')',
'slug' => 'red-to-purple',
),
Expand All @@ -214,15 +223,9 @@ function tt1_blocks_setup() {
// Add support for responsive embedded content.
add_theme_support( 'responsive-embeds' );

// Add support for custom line height controls.
add_theme_support( 'custom-line-height' );

// Add support for experimental link color control.
add_theme_support( 'experimental-link-color' );

// Add support for experimental cover block spacing.
add_theme_support( 'custom-spacing' );

// Add support for custom units.
add_theme_support( 'custom-units' );
}
Expand All @@ -232,7 +235,7 @@ function tt1_blocks_setup() {
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
* @since 0.1
*
* @return void
*/
Expand All @@ -244,7 +247,7 @@ function tt1_blocks_scripts() {
/**
* Enqueue block editor script.
*
* @since 1.0.0
* @since 0.1
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion tt1-blocks/inc/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package WordPress
* @subpackage TT1_Blocks
* @since 1.0.0
* @since 0.1
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions tt1-blocks/inc/block-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* @link https://developer.wordpress.org/reference/functions/register_block_style/
*
* @package WordPress
* @subpackage Twenty_Twenty_One
* @since 1.0.0
* @subpackage TT1_Blocks
* @since 0.1
*/

if ( function_exists( 'register_block_style' ) ) {
/**
* Register block styles.
*
* @since 1.0.0
* @since 0.1
*
* @return void
*/
Expand Down
59 changes: 59 additions & 0 deletions tt1-blocks/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
=== TT1 Blocks ===
Contributors: wordpressdotorg
Requires at least: 5.6
Tested up to: 5.6
kjellr marked this conversation as resolved.
Show resolved Hide resolved
Requires PHP: 5.6
Stable tag: 0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==

TT1 Blocks is a fully block-based version the <a href="https://wordpress.org/themes/twentytwentyone/">Twenty Twenty-One</a> theme. It is built to leverage the full-site editing functionality that is being built in the <a href="https://wordpress.org/plugins/gutenberg/">Gutenberg plugin</a>. This work is ongoing, and updates are available on the <a href="https://make.wordpress.org/core/?s=gutenberg">Make WordPress Core blog</a>.

This theme is beta software, and is not meant for use on a production site. Bug reports, fixes, and other and contributions are welcome <a href="https://github.com/WordPress/theme-experiments/issues">in the theme's GitHub repository</a>.

== Installation ==

1. If you do not already have <a href="https://wordpress.org/plugins/gutenberg/">the Gutenberg plugin</a> installed and activated, go to Appearance -> Themes in your admin panel and search for 'Gutenberg'. Install and activate the plugin.
2. Then, in your admin panel, go to Appearance -> Themes and click the 'Add New' button.
3. Type in 'TT1 Blocks' in the search form and press the 'Enter' key on your keyboard.
4. Click on the 'Activate' button to use your new theme right away.
5. From your admin panel, visit the Site Editor to customize your site.

== Changelog ==

= 0.1 =
* Released: December 18, 2020

Initial release

== Copyright ==

TT1 Blocks WordPress Theme, 2020 WordPress.org
TT1 Blocks is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.


TT1 Blocks is derived from Twenty Twenty-One, (C) 2020 WordPress.org. License: GPL v2 or later.

Images
Art by Berthe Morisot 1841-1895. Public domain.
https://www.wikiart.org/en/berthe-morisot/playing-in-the-sand
https://www.wikiart.org/en/berthe-morisot/roses-tremieres-hollyhocks-1884
https://www.wikiart.org/en/berthe-morisot/young-woman-in-mauve
https://www.wikiart.org/en/berthe-morisot/in-the-bois-de-boulogne
https://www.wikiart.org/en/berthe-morisot/daffodils
https://www.wikiart.org/en/berthe-morisot/self-portrait-1885
https://www.wikiart.org/en/berthe-morisot/the-garden-at-bougival-1884
https://www.wikiart.org/en/berthe-morisot/villa-with-orange-trees-nice
https://www.wikiart.org/en/berthe-morisot/reading
Binary file modified tt1-blocks/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tt1-blocks/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Theme URI: https://github.com/WordPress/theme-experiments/tt1-blocks
Author: the WordPress team
Author URI: https://wordpress.org/
Description: TT1 Blocks is a block-based version of the default Twenty Twenty-One theme. It's just like Twenty Twenty-One, but it works with the experimental Full-Site Editing & Global Styles features of WordPress.
Requires at least: 5.3
Tested up to: 5.5
Requires at least: 5.6
Tested up to: 5.6
Requires PHP: 5.6
Version: 1.0.0
Version: 0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tt1-blocks
Expand Down