Przeglądaj źródła

Rename theme to Pixl. (#6525)

Jeff Ong 2 lat temu
rodzic
commit
b9fc0271f4

+ 0 - 1
pixel/parts/footer.html

@@ -1 +0,0 @@
-<!-- wp:pattern {"slug":"pixel/footer"} /-->

+ 0 - 12
pixel/patterns/quote.php

@@ -1,12 +0,0 @@
-<?php
-/**
- * Title: A Pixel Quote
- * Slug: pixel/quote
- * Categories: featured, text
- */
-
-?>
-
-<!-- wp:pullquote {"style":{"border":{"width":"2px"},"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":"1.4","letterSpacing":"-0.02em","fontSize":"1.25rem"}},"borderColor":"primary","className":"pixel-shadow"} -->
-<figure class="wp-block-pullquote pixel-shadow has-border-color has-primary-border-color" style="border-width:2px;font-size:1.25rem;font-style:normal;font-weight:400;letter-spacing:-0.02em;line-height:1.4"><blockquote><p><?php echo esc_html__( '"The pain itself is love, the main storage system. Aenean dapibus nisi quis dolor scelerisque egestas. Members of the mass need to feel comfortable and easy. It is important that the lion should invest."', 'pixel' ) ?></p><cite><?php echo esc_html__( 'Unknown', 'pixel' ) ?></cite></blockquote></figure>
-<!-- /wp:pullquote -->

+ 0 - 0
pixel/assets/fonts/DMMono-Italic.ttf → pixl/assets/fonts/DMMono-Italic.ttf


+ 0 - 0
pixel/assets/fonts/DMMono-Light.ttf → pixl/assets/fonts/DMMono-Light.ttf


+ 0 - 0
pixel/assets/fonts/DMMono-LightItalic.ttf → pixl/assets/fonts/DMMono-LightItalic.ttf


+ 0 - 0
pixel/assets/fonts/DMMono-Medium.ttf → pixl/assets/fonts/DMMono-Medium.ttf


+ 0 - 0
pixel/assets/fonts/DMMono-MediumItalic.ttf → pixl/assets/fonts/DMMono-MediumItalic.ttf


+ 0 - 0
pixel/assets/fonts/DMMono-Regular.ttf → pixl/assets/fonts/DMMono-Regular.ttf


+ 0 - 0
pixel/assets/fonts/uni05_53.ttf → pixl/assets/fonts/uni05_53.ttf


+ 13 - 13
pixel/functions.php → pixl/functions.php

@@ -1,24 +1,24 @@
 <?php
 /**
- * Pixel functions and definitions
+ * Pixl functions and definitions
  *
  * @link https://developer.wordpress.org/themes/basics/theme-functions/
  *
- * @package Pixel
- * @since Pixel 1.0
+ * @package Pixl
+ * @since Pixl 1.0
  */
 
 
-if ( ! function_exists( 'pixel_support' ) ) :
+if ( ! function_exists( 'pixl_support' ) ) :
 
 	/**
 	 * Sets up theme defaults and registers support for various WordPress features.
 	 *
-	 * @since Pixel 1.0
+	 * @since Pixl 1.0
 	 *
 	 * @return void
 	 */
-	function pixel_support() {
+	function pixl_support() {
 
 		// Enqueue editor styles.
 		add_editor_style( 'style.css' );
@@ -27,32 +27,32 @@ if ( ! function_exists( 'pixel_support' ) ) :
 
 endif;
 
-add_action( 'after_setup_theme', 'pixel_support' );
+add_action( 'after_setup_theme', 'pixl_support' );
 
-if ( ! function_exists( 'pixel_styles' ) ) :
+if ( ! function_exists( 'pixl_styles' ) ) :
 
 	/**
 	 * Enqueue styles.
 	 *
-	 * @since Pixel 1.0
+	 * @since Pixl 1.0
 	 *
 	 * @return void
 	 */
-	function pixel_styles() {
+	function pixl_styles() {
 
 		// Register theme stylesheet.
 		wp_register_style(
-			'pixel-style',
+			'pixl-style',
 			get_template_directory_uri() . '/style.css',
 			array(),
 			wp_get_theme()->get( 'Version' )
 		);
 
 		// Enqueue theme stylesheet.
-		wp_enqueue_style( 'pixel-style' );
+		wp_enqueue_style( 'pixl-style' );
 
 	}
 
 endif;
 
-add_action( 'wp_enqueue_scripts', 'pixel_styles' );
+add_action( 'wp_enqueue_scripts', 'pixl_styles' );

+ 0 - 0
pixel/index.php → pixl/index.php


+ 1 - 0
pixl/parts/footer.html

@@ -0,0 +1 @@
+<!-- wp:pattern {"slug":"pixl/footer"} /-->

+ 3 - 3
pixel/parts/header.html → pixl/parts/header.html

@@ -1,9 +1,9 @@
 <!-- wp:group {"layout":{"inherit":"true","type":"constrained"},"style":{"spacing":{"blockGap":"0","padding":{"top":"0","right":"calc(2 * var(\u002d\u002dwp\u002d\u002dcustom\u002d\u002dspacing\u002d\u002douter))","bottom":"0","left":"calc(2 * var(\u002d\u002dwp\u002d\u002dcustom\u002d\u002dspacing\u002d\u002douter))"}}}} -->
 <div class="wp-block-group" style="padding-top:0;padding-right:calc(2 * var(--wp--custom--spacing--outer));padding-bottom:0;padding-left:calc(2 * var(--wp--custom--spacing--outer))"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left","verticalAlignment":"top"},"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} -->
-<div class="wp-block-group alignfull"><!-- wp:site-logo {"width":44,"className":"pixel-shadow","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}}} /-->
+<div class="wp-block-group alignfull"><!-- wp:site-logo {"width":44,"className":"pixl-shadow","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}}} /-->
 
-<!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"},"align":"full","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|30","top":"var:preset|spacing|30","right":"var:preset|spacing|30","left":"var:preset|spacing|30"},"blockGap":"0"},"border":{"width":"2px"}},"className":"pixel-shadow pixel-header"} -->
-<div class="wp-block-group alignfull pixel-shadow pixel-header" style="border-width:2px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)"><!-- wp:group {"layout":{"type":"flex"},"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","bottom":"0","left":"var:preset|spacing|20"}}}} -->
+<!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"},"align":"full","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|30","top":"var:preset|spacing|30","right":"var:preset|spacing|30","left":"var:preset|spacing|30"},"blockGap":"0"},"border":{"width":"2px"}},"className":"pixl-shadow pixl-header"} -->
+<div class="wp-block-group alignfull pixl-shadow pixl-header" style="border-width:2px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)"><!-- wp:group {"layout":{"type":"flex"},"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","bottom":"0","left":"var:preset|spacing|20"}}}} -->
 <div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)"><!-- wp:site-title /--></div>
 <!-- /wp:group -->
 

+ 0 - 0
pixel/parts/post-meta.html → pixl/parts/post-meta.html


+ 4 - 4
pixel/patterns/404.php → pixl/patterns/404.php

@@ -1,21 +1,21 @@
 <?php
 /**
  * Title: A 404 page
- * Slug: pixel/404
+ * Slug: pixl/404
  * Inserter: no
  */
 
 ?>
 
 <!-- wp:heading {"textAlign":"center","level":1} -->
-<h1 class="has-text-align-center"><?php echo esc_html__( 'Oh, nooooooooooooooooo!', 'pixel' ); ?></h1>
+<h1 class="has-text-align-center"><?php echo esc_html__( 'Oh, nooooooooooooooooo!', 'pixl' ); ?></h1>
 <!-- /wp:heading -->
 
 <!-- wp:paragraph -->
-<p><?php echo  esc_html__( 'The page you’re looking doesn’t seem to exist. Maybe try a search?', 'pixel' ); ?></p>
+<p><?php echo  esc_html__( 'The page you’re looking doesn’t seem to exist. Maybe try a search?', 'pixl' ); ?></p>
 <!-- /wp:paragraph -->
 
-<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_attr__( 'Type Something...', 'pixel' ); ?>"} /-->
+<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_attr__( 'Type Something...', 'pixl' ); ?>"} /-->
 
 <!-- wp:spacer {"height":60} -->
 <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>

+ 1 - 1
pixel/patterns/comments.php → pixl/patterns/comments.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Comments
- * slug: pixel/comments
+ * slug: pixl/comments
  * inserter: no
  */
 

+ 4 - 4
pixel/patterns/footer.php → pixl/patterns/footer.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Default footer
- * Slug: pixel/footer
+ * Slug: pixl/footer
  * Categories: footer
  * Block Types: core/template-part/footer
  */
@@ -16,11 +16,11 @@
 <p class="has-text-align-center has-small-font-size">
     <?php
         /* Translators: Theme name. */
-        $theme_name = '<strong>' . esc_html__( 'Pixel Theme', 'pixel' ) . '</strong>';
+        $theme_name = '<strong>' . esc_html__( 'Pixl Theme', 'pixl' ) . '</strong>';
         /* Translators: WordPress link. */
-        $wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'pixel' ) ) . '" rel="nofollow">WordPress</a>';
+        $wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'pixl' ) ) . '" rel="nofollow">WordPress</a>';
         echo sprintf(
-            esc_html__( '%s, Proudly Powered by %s', 'pixel' ),
+            esc_html__( '%s, Proudly Powered by %s', 'pixl' ),
             $theme_name,
             $wordpress_link
         );

+ 3 - 3
pixel/patterns/post-list.php → pixl/patterns/post-list.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Posts list
- * Slug: pixel/post-list
+ * Slug: pixl/post-list
  * Inserter: no
  */
 
@@ -9,8 +9,8 @@
 
 <!-- wp:query {"query":{"perPage":"3","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","displayLayout":{"type":"list"},"layout":{"type":"constrained"}} -->
 <main class="wp-block-query"><!-- wp:post-template -->
-<!-- wp:group {"layout":{"type":"constrained"},"style":{"border":{"width":"2px"},"spacing":{"padding":{"top":"var:preset|spacing|60","right":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60"}}},"borderColor":"primary","className":"pixel-shadow"} -->
-<div class="wp-block-group pixel-shadow has-border-color has-primary-border-color" style="border-width:2px;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)"><!-- wp:post-date {"style":{"typography":{"textTransform":"uppercase","fontSize":"12px"}}} /-->
+<!-- wp:group {"layout":{"type":"constrained"},"style":{"border":{"width":"2px"},"spacing":{"padding":{"top":"var:preset|spacing|60","right":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60"}}},"borderColor":"primary","className":"pixl-shadow"} -->
+<div class="wp-block-group pixl-shadow has-border-color has-primary-border-color" style="border-width:2px;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)"><!-- wp:post-date {"style":{"typography":{"textTransform":"uppercase","fontSize":"12px"}}} /-->
 
 <!-- wp:post-title {"isLink":true} /-->
 

+ 12 - 0
pixl/patterns/quote.php

@@ -0,0 +1,12 @@
+<?php
+/**
+ * Title: A Pixl Quote
+ * Slug: pixl/quote
+ * Categories: featured, text
+ */
+
+?>
+
+<!-- wp:pullquote {"style":{"border":{"width":"2px"},"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":"1.4","letterSpacing":"-0.02em","fontSize":"1.25rem"}},"borderColor":"primary","className":"pixl-shadow"} -->
+<figure class="wp-block-pullquote pixl-shadow has-border-color has-primary-border-color" style="border-width:2px;font-size:1.25rem;font-style:normal;font-weight:400;letter-spacing:-0.02em;line-height:1.4"><blockquote><p><?php echo esc_html__( '"The pain itself is love, the main storage system. Aenean dapibus nisi quis dolor scelerisque egestas. Members of the mass need to feel comfortable and easy. It is important that the lion should invest."', 'pixl' ) ?></p><cite><?php echo esc_html__( 'Unknown', 'pixl' ) ?></cite></blockquote></figure>
+<!-- /wp:pullquote -->

+ 6 - 6
pixel/style.css → pixl/style.css

@@ -1,9 +1,9 @@
 /*
-Theme Name: Pixel
-Theme URI: https://github.com/Automattic/themes/tree/trunk/pixel
+Theme Name: Pixl
+Theme URI: https://github.com/Automattic/themes/tree/trunk/pixl
 Author: Automattic
 Author URI: https://automattic.com/
-Description: Pixel is a Tumblr Inspired Theme
+Description: Pixl is a Tumblr Inspired Theme
 Requires at least: 5.8
 Tested up to: 5.9
 Requires PHP: 5.7
@@ -11,7 +11,7 @@ Version: 0.0.5
 License: GNU General Public License v2 or later
 License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
 Template:
-Text Domain: pixel
+Text Domain: pixl
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
 */
 
@@ -19,7 +19,7 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
  * Custom class to add shadow to blocks
  * Need this until box shadow support added to Gutenberg here: https://github.com/WordPress/gutenberg/pull/43184
  */
-.pixel-shadow {
+.pixl-shadow {
     box-shadow: var(--wp--custom--shadow);
 }
 
@@ -88,6 +88,6 @@ input[type="checkbox"]:checked::after	{
 }
 
 /* Necessary so the header containing the navigation fills the entire remaining horizontal space, since it is positioned in a flex group with the site logo. */
-.pixel-header {
+.pixl-header {
     flex-grow: 1;
 }

+ 1 - 1
pixel/templates/404.html → pixl/templates/404.html

@@ -3,7 +3,7 @@
 <!-- wp:group {"tagName":"main","layout":{"inherit":true}} -->
 <main class="wp-block-group">
 
-	<!-- wp:pattern {"slug":"pixel/404"} /-->
+	<!-- wp:pattern {"slug":"pixl/404"} /-->
 
 </main>
 <!-- /wp:group -->

+ 1 - 1
pixel/templates/archive.html → pixl/templates/archive.html

@@ -4,6 +4,6 @@
 <div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--60)"><!-- wp:query-title {"type":"archive"} /--></div>
 <!-- /wp:group -->
 
-<!-- wp:pattern {"slug":"pixel/post-list"} /-->
+<!-- wp:pattern {"slug":"pixl/post-list"} /-->
 	
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
pixel/templates/blank.html → pixl/templates/blank.html


+ 0 - 0
pixel/templates/footer-only.html → pixl/templates/footer-only.html


+ 0 - 0
pixel/templates/header-footer-only.html → pixl/templates/header-footer-only.html


+ 1 - 1
pixel/templates/index.html → pixl/templates/index.html

@@ -1,5 +1,5 @@
 <!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 
-<!-- wp:pattern {"slug":"pixel/post-list"} /-->
+<!-- wp:pattern {"slug":"pixl/post-list"} /-->
 	
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
pixel/templates/page.html → pixl/templates/page.html


+ 1 - 1
pixel/templates/search.html → pixl/templates/search.html

@@ -10,6 +10,6 @@
 </div>
 <!-- /wp:group -->
 
-<!-- wp:pattern {"slug":"pixel/post-list"} /-->
+<!-- wp:pattern {"slug":"pixl/post-list"} /-->
 
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 2 - 2
pixel/templates/single.html → pixl/templates/single.html

@@ -2,7 +2,7 @@
 
 <!-- wp:group {"tagName":"main","lock":{"move":false,"remove":true}} -->
 <main class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"}} -->
-<div class="wp-block-group"><!-- wp:post-featured-image {"style":{"border":{"width":"2px"}},"borderColor":"primary","className":"pixel-shadow"} /-->
+<div class="wp-block-group"><!-- wp:post-featured-image {"style":{"border":{"width":"2px"}},"borderColor":"primary","className":"pixl-shadow"} /-->
 <!-- wp:post-title /--></div><!-- /wp:group -->
 <!-- wp:post-content {"layout":{"type":"constrained"},"lock":{"move":false,"remove":true}} /-->
 <!-- wp:group {"layout":{"type":"constrained"}} --><div class="wp-block-group">
@@ -10,7 +10,7 @@
     <!-- wp:spacer {"height":"3rem"} -->
     <div style="height:3rem" aria-hidden="true" class="wp-block-spacer"></div>
     <!-- /wp:spacer -->
-    <!-- wp:pattern {"slug":"pixel/comments"} /--></div>
+    <!-- wp:pattern {"slug":"pixl/comments"} /--></div>
 <!-- /wp:group --></main>
 <!-- /wp:group -->
 

+ 0 - 0
pixel/theme.json → pixl/theme.json