Skip to content

Commit

Permalink
Luxus: Add theme (#8028)
Browse files Browse the repository at this point in the history
* Luxus: Add theme

* Luxus: Remove .gitignore and adding style variations

* Luxus: Update the index and archive templates.

* Luxus: Use variable font

* Luxus: Create custom separator, remove custom CSS

* Update screenshot.png

* Update readme.txt

* Luxus: Update patterns.
  • Loading branch information
alaczek authored Sep 4, 2024
1 parent 390c461 commit 28593af
Show file tree
Hide file tree
Showing 48 changed files with 1,754 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added luxus/assets/images/nail-salon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions luxus/assets/images/rays.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions luxus/assets/images/wave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions luxus/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?php
/**
* Luxus functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Luxus
* @since Luxus 1.0
*/

declare( strict_types = 1 );

if ( ! function_exists( 'luxus_unregister_patterns' ) ) :
/**
* Unregister Jetpack patterns and core patterns bundled in WordPress.
*/
function luxus_unregister_patterns() {
$pattern_names = array(
// Jetpack form patterns.
'contact-form',
'newsletter-form',
'rsvp-form',
'registration-form',
'appointment-form',
'feedback-form',
// Patterns bundled in WordPress core.
// These would be removed by remove_theme_support( 'core-block-patterns' )
// if it's called on the init action with priority 9 from a plugin, not from a theme.
'core/query-standard-posts',
'core/query-medium-posts',
'core/query-small-posts',
'core/query-grid-posts',
'core/query-large-title-posts',
'core/query-offset-posts',
'core/social-links-shared-background-color',
);
foreach ( $pattern_names as $pattern_name ) {
$pattern = \WP_Block_Patterns_Registry::get_instance()->get_registered( $pattern_name );
if ( $pattern ) {
unregister_block_pattern( $pattern_name );
}
}
}

endif;

if ( ! function_exists( 'luxus_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Luxus 1.0
*
* @return void
*/
function luxus_setup() {

// Enqueue editor styles.
add_editor_style( 'style.css' );
// Unregister Jetpack form patterns and core patterns bundled in WordPress.
// Simple sites
luxus_unregister_patterns();
add_filter( 'wp_loaded', function () {
// Atomic sites
luxus_unregister_patterns();
} );
// Remove theme support for the core and featured patterns coming from the Dotorg pattern directory.
remove_theme_support( 'core-block-patterns' );
}

endif;

add_action( 'after_setup_theme', 'luxus_setup' );

if ( ! function_exists( 'luxus_styles' ) ) :
/**
* Enqueue styles.
*
* @since Luxus 1.0
*
* @return void
*/
function luxus_styles() {

// Register theme stylesheet.
wp_register_style(
'luxus-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'luxus-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'luxus_styles' );
1 change: 1 addition & 0 deletions luxus/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"luxus/footer"} /-->
25 changes: 25 additions & 0 deletions luxus/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- wp:group {"metadata":{"name":"Header Container"},"align":"full","style":{"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}},"border":{"bottom":{"color":"var:preset|color|theme-4","width":"1px"}},"position":{"type":""}},"backgroundColor":"theme-1","className":"border-bottom-double","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull border-bottom-double has-theme-1-background-color has-background" style="border-bottom-color:var(--wp--preset--color--theme-4);border-bottom-width:1px;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0"><!-- wp:spacer {"height":"var:preset|spacing|20","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
<div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"tagName":"header","metadata":{"name":"Contents"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}},"position":{"type":""}},"layout":{"type":"constrained"}} -->
<header class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"grid","columnCount":"2","minimumColumnWidth":null}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:navigation {"ref":4,"overlayMenu":"always","overlayBackgroundColor":"theme-1","overlayTextColor":"theme-4","className":"order-1 md:order-0","layout":{"type":"flex","justifyContent":"left","flexWrap":"wrap"},"fontSize":"medium"} /-->

<!-- wp:site-title {"fontSize":"medium"} /--></div>
<!-- /wp:group -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right"}} -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="#">Book now — (123) 456 - 789</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></header>
<!-- /wp:group -->

<!-- wp:spacer {"height":"var:preset|spacing|20","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
<div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->
76 changes: 76 additions & 0 deletions luxus/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/**
* Title: Default Footer
* Slug: luxus/footer
* Categories: footer
* Block Types: core/template-part/footer
* Inserter: yes
*/
declare( strict_types = 1 );
?>

<!-- wp:group {"metadata":{"name":"Footer Container"},"align":"full","style":{"spacing":{"padding":{"top":"0","bottom":"0"},"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-top:0;padding-bottom:0">

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"0"}},"border":{"left":{"color":"var:preset|color|theme-4","width":"1px"},"top":{},"right":{"color":"var:preset|color|theme-4","width":"1px"},"bottom":{}}},"className":"border-top-double"} -->
<div class="wp-block-columns border-top-double" style="border-right-color:var(--wp--preset--color--theme-4);border-right-width:1px;border-left-color:var(--wp--preset--color--theme-4);border-left-width:1px"><!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}},"border":{"right":{"color":"var:preset|color|theme-4","width":"1px"},"top":[],"bottom":[],"left":[]}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="border-right-color:var(--wp--preset--color--theme-4);border-right-width:1px;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);flex-basis:50%"><!-- wp:heading {"textAlign":"center","level":3} -->
<h3 class="wp-block-heading has-text-align-center"><?php echo esc_html__( 'Location', 'luxus' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">123 Albert Street,
<br>2060 North Sydney, NSW</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:heading {"textAlign":"center","level":3} -->
<h3 class="wp-block-heading has-text-align-center"><?php echo esc_html__( 'Open Hours', 'luxus' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php echo esc_html__( 'Monday - Saturday', 'luxus' ); ?><br>
9:30am - 16:00pm</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:columns {"verticalAlignment":"center","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"0","bottom":"0"},"blockGap":{"left":"0"}}},"borderColor":"theme-4"} -->
<div class="wp-block-columns are-vertically-aligned-center has-border-color has-theme-4-border-color" style="border-width:1px;padding-top:0;padding-bottom:0"><!-- wp:column {"verticalAlignment":"center","style":{"border":{"right":{"color":"var:preset|color|theme-4","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="border-right-color:var(--wp--preset--color--theme-4);border-right-width:1px;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)"><!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><strong>(123) 456-7890</strong></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","style":{"border":{"right":{"color":"var:preset|color|theme-4","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="border-right-color:var(--wp--preset--color--theme-4);border-right-width:1px;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)"><!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><a href="mailto:[email protected]"><strong>[email protected]</strong></a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)"><!-- wp:social-links {"iconColor":"theme-4","iconColorValue":"#62938b","style":{"spacing":{"blockGap":{"top":"0"}}},"className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"center"}} -->
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"whatsapp"} /-->

<!-- wp:social-link {"url":"#","service":"instagram"} /-->

<!-- wp:social-link {"url":"#","service":"facebook"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}},"border":{"top":{"width":"0px","style":"none"},"right":{"color":"var:preset|color|theme-4","width":"1px"},"bottom":{"color":"var:preset|color|theme-4","width":"1px"},"left":{"color":"var:preset|color|theme-4","width":"1px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="border-top-style:none;border-top-width:0px;border-right-color:var(--wp--preset--color--theme-4);border-right-width:1px;border-bottom-color:var(--wp--preset--color--theme-4);border-bottom-width:1px;border-left-color:var(--wp--preset--color--theme-4);border-left-width:1px;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"14px"}}} -->
<p class="has-text-align-center" style="font-size:14px"><?php
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'luxus' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
/* Translators: WordPress link. */
esc_html__( 'Designed with %1$s', 'luxus' ),
$wordpress_link
);?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
Loading

0 comments on commit 28593af

Please sign in to comment.