Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Merge branch 'trunk' into add/post-formats
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Sep 25, 2024
2 parents c0c516c + 9b06cfd commit 7e13a5b
Show file tree
Hide file tree
Showing 125 changed files with 5,801 additions and 946 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Preview Theme Changes

on:
pull_request_target:
types: [opened, synchronize]
permissions:
pull-requests: write


jobs:
preview-theme-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Preview Theme Changes
uses: vcanales/action-wp-playground-pr-preview@trunk
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
base-branch: trunk
single-theme: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ You can then use the following commands to test the code:
- **`npm run lint:css:fix`**: Lints and attempts to autofix any issues in the CSS files.
- **`npm run lint:php`**: Checks PHP files for syntax and standards errors according to [WordPress coding standards](https://developer.wordpress.org/coding-standards/).
- **`npm run lint:php:fix`**: Attempts to automatically fix PHP errors.
- **`lint:theme`**: Checks the theme.json and style.css metadata for issues.
- **`lint:patterns:fix`**: Attempts to automatically wrap text in patterns for translation. Please check the updated files after running for adding additional context that may be needed or text that the tool wasn't able to automatically wrap.


## Resources

Expand Down
Binary file added assets/images/avatar.webp
Binary file not shown.
Binary file added assets/images/book-image-landing.webp
Binary file not shown.
Binary file added assets/images/book-image.webp
Binary file not shown.
Binary file added assets/images/image-from-rawpixel-id-8799471.webp
Binary file not shown.
Binary file added assets/images/image-from-rawpixel-id-8799918.webp
Binary file not shown.
Binary file added assets/images/image-from-rawpixel-id-8802845.webp
Binary file not shown.
Binary file added assets/images/team-photo-1.webp
Binary file not shown.
Binary file added assets/images/team-photo-2.webp
Binary file not shown.
Binary file added assets/images/team-photo-3.webp
Binary file not shown.
Binary file added assets/images/team-photo-4.webp
Binary file not shown.
Binary file removed assets/images/team_photo_1.webp
Binary file not shown.
Binary file removed assets/images/team_photo_2.webp
Binary file not shown.
Binary file removed assets/images/team_photo_3.webp
Binary file not shown.
Binary file removed assets/images/team_photo_4.webp
Binary file not shown.
47 changes: 46 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function twentytwentyfive_enqueue_styles() {
'twentytwentyfive-style',
get_parent_theme_file_uri( 'style.css' ),
array(),
wp_get_theme()->get( 'Version' ),
wp_get_theme()->get( 'Version' )
);
}
endif;
Expand Down Expand Up @@ -144,3 +144,48 @@ function twentytwentyfive_pattern_categories() {
endif;

add_action( 'init', 'twentytwentyfive_pattern_categories' );

/**
* Register block binding sources.
*/
if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) :
/**
* Register the copyright block binding source.
*
* @since Twenty Twenty-Five 1.0
* @return void
*/
function twentytwentyfive_register_block_bindings() {
register_block_bindings_source(
'twentytwentyfive/copyright',
array(
'label' => _x( '© YEAR', 'Label for the copyright placeholder in the editor', 'twentytwentyfive' ),
'get_value_callback' => 'twentytwentyfive_copyright_binding',
)
);
}
endif;

/**
* Register block binding callback function for the copyright.
*/
if ( ! function_exists( 'twentytwentyfive_copyright_binding' ) ) :
/**
* Callback function for the copyright block binding source.
*
* @since Twenty Twenty-Five 1.0
* @return string Copyright text.
*/
function twentytwentyfive_copyright_binding() {
$copyright_text = sprintf(
/* translators: 1: Copyright symbol or word, 2: Year */
esc_html__( '%1$s %2$s', 'twentytwentyfive' ),
'©',
wp_date( 'Y' )
);

return $copyright_text;
}
endif;

add_action( 'init', 'twentytwentyfive_register_block_bindings' );
Loading

0 comments on commit 7e13a5b

Please sign in to comment.