Skip to content

Commit 0205ed5

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents 0050f7b + 3a9ebdb commit 0205ed5

27 files changed

+987
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ You can boot up the Playground with the selected theme by clicking one of the li
3535
- [Stacks](https://playground.wordpress.net/?storage=browser&ghexport-repo-url=https://github.com/WordPress/community-themes&ghexport-content-type=theme&ghexport-theme=stacks#%7B%22steps%22:%5B%7B%22step%22:%22login%22,%22username%22:%22admin%22,%22password%22:%22password%22%7D,%7B%22step%22:%22installTheme%22,%22themeZipFile%22:%7B%22resource%22:%22url%22,%22url%22:%22https://github-proxy.com/proxy.php?action=partial&repo=Wordpress/community-themes&directory=stacks&branch=trunk%22%7D%7D,%7B%22step%22:%22activateTheme%22,%22themeFolderName%22:%22stacks%22%7D%5D%7D)
3636
- [Term](https://playground.wordpress.net/?storage=browser&ghexport-repo-url=https://github.com/WordPress/community-themes&ghexport-content-type=theme&ghexport-theme=term#%7B%22steps%22:%5B%7B%22step%22:%22login%22,%22username%22:%22admin%22,%22password%22:%22password%22%7D,%7B%22step%22:%22installTheme%22,%22themeZipFile%22:%7B%22resource%22:%22url%22,%22url%22:%22https://github-proxy.com/proxy.php?action=partial&repo=Wordpress/community-themes&directory=term&branch=trunk%22%7D%7D,%7B%22step%22:%22activateTheme%22,%22themeFolderName%22:%22term%22%7D%5D%7D)
3737
- [TT1 Blocks](https://playground.wordpress.net/?storage=browser&ghexport-repo-url=https://github.com/WordPress/community-themes&ghexport-content-type=theme&ghexport-theme=tt1-blocks#%7B%22steps%22:%5B%7B%22step%22:%22login%22,%22username%22:%22admin%22,%22password%22:%22password%22%7D,%7B%22step%22:%22installTheme%22,%22themeZipFile%22:%7B%22resource%22:%22url%22,%22url%22:%22https://github-proxy.com/proxy.php?action=partial&repo=Wordpress/community-themes&directory=tt1-blocks&branch=trunk%22%7D%7D,%7B%22step%22:%22activateTheme%22,%22themeFolderName%22:%22tt1-blocks%22%7D%5D%7D)
38+
- [Darken](https://playground.wordpress.net/?storage=browser&ghexport-repo-url=https://github.com/WordPress/community-themes&ghexport-content-type=theme&ghexport-theme=darken#%7B%22steps%22:%5B%7B%22step%22:%22login%22,%22username%22:%22admin%22,%22password%22:%22password%22%7D,%7B%22step%22:%22installTheme%22,%22themeZipFile%22:%7B%22resource%22:%22url%22,%22url%22:%22https://github-proxy.com/proxy.php?action=partial&repo=Wordpress/community-themes&directory=darken&branch=trunk%22%7D%7D,%7B%22step%22:%22activateTheme%22,%22themeFolderName%22:%22darken%22%7D%5D%7D)
3839

3940
![CleanShot 2024-05-28 at 10 45 18](https://github.com/WordPress/community-themes/assets/8419292/1a53ce08-6435-4224-8c9b-9fcf551e965d)
4041

30.2 KB
Binary file not shown.
30 KB
Binary file not shown.
30.4 KB
Binary file not shown.
30.6 KB
Binary file not shown.
39 KB
Loading
88.6 KB
Loading
93.3 KB
Loading
89.3 KB
Loading

darken/functions.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* Enqueue style.css file.
4+
*/
5+
if ( ! function_exists( 'darken_styles' ) ) :
6+
7+
/**
8+
* Enqueue styles.
9+
*
10+
* @return void
11+
*/
12+
function darken_styles() {
13+
14+
// Register theme stylesheet.
15+
wp_register_style(
16+
'darken-style',
17+
get_template_directory_uri() . '/style.css',
18+
array(),
19+
wp_get_theme()->get( 'Version' )
20+
);
21+
22+
// Enqueue theme stylesheet.
23+
wp_enqueue_style( 'darken-style' );
24+
25+
}
26+
27+
endif;
28+
29+
add_action( 'wp_enqueue_scripts', 'darken_styles' );
30+
add_action( 'enqueue_block_editor_assets', 'darken_styles' );

0 commit comments

Comments
 (0)