Skip to content

Commit

Permalink
Merge c38f422 into f0227eb
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Jul 2, 2024
2 parents f0227eb + c38f422 commit 6e4077c
Show file tree
Hide file tree
Showing 35 changed files with 273 additions and 263 deletions.
2 changes: 1 addition & 1 deletion assets/dist/block-editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-data', 'wp-dom-ready', 'wp-element', 'wp-plugins'), 'version' => '166c384f313c8f5d9914');
<?php return array('dependencies' => array('wp-data', 'wp-dom-ready', 'wp-element', 'wp-plugins'), 'version' => '84a1d122a78a50ec2ab4');
2 changes: 1 addition & 1 deletion assets/dist/block-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/customizer.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '42a74b551d83e1b85238');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'd65749464108d6bdd25b');
6 changes: 3 additions & 3 deletions assets/dist/customizer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/dashboard.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'dbc22cbe57941af36094');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '08d46d7f19ed3bf6e3b9');
2 changes: 1 addition & 1 deletion assets/dist/dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/modal.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'b4d4871691423abff87b');
<?php return array('dependencies' => array(), 'version' => '8b4cabf5d14f1f64f94a');
2 changes: 1 addition & 1 deletion assets/dist/modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/dist/style-dashboard.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions footer-min.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* The template for displaying the footer.
*
* @package GeneratePress
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

/**
* generate_after_footer hook.
*
* @since 2.1
*/
do_action( 'generate_minimal_footer' );

wp_footer();
?>

</body>
</html>
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

// Set our theme version.
define( 'GENERATE_VERSION', '3.4.0' );
define( 'GENERATE_VERSION', '3.5.0-alpha.1' );

if ( ! function_exists( 'generate_setup' ) ) {
add_action( 'after_setup_theme', 'generate_setup' );
Expand Down
28 changes: 28 additions & 0 deletions header-min.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* The template for displaying the header.
*
* @package GeneratePress
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php
/**
* wp_body_open hook.
*
* @since 2.3
*/
do_action( 'wp_body_open' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- core WP hook.

do_action( 'generate_minimal_header' );
12 changes: 6 additions & 6 deletions inc/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,23 +264,23 @@ function generate_do_inline_block_editor_css( $for = 'block-content' ) {

if ( 'never' !== $underline_links ) {
if ( 'always' === $underline_links ) {
$css->set_selector( '.wp-block a' );
$css->set_selector( ':where(.wp-block a)' );
$css->add_property( 'text-decoration', 'underline' );
}

if ( 'hover' === $underline_links ) {
$css->set_selector( '.wp-block a' );
$css->set_selector( ':where(.wp-block a)' );
$css->add_property( 'text-decoration', 'none' );

$css->set_selector( '.wp-block a:hover, .wp-block a:focus' );
$css->set_selector( ':where(.wp-block a:hover), :where(.wp-block a:focus)' );
$css->add_property( 'text-decoration', 'underline' );
}

if ( 'not-hover' === $underline_links ) {
$css->set_selector( '.wp-block a' );
$css->set_selector( ':where(.wp-block a)' );
$css->add_property( 'text-decoration', 'underline' );

$css->set_selector( '.wp-block a:hover, .wp-block a:focus' );
$css->set_selector( ':where(.wp-block a:hover), :where(.wp-block a:focus)' );
$css->add_property( 'text-decoration', 'none' );
}

Expand Down Expand Up @@ -501,7 +501,7 @@ function generate_do_inline_block_editor_css( $for = 'block-content' ) {
}
}

$css->set_selector( 'a, a:visited' );
$css->set_selector( 'a' );

if ( $color_settings['content_link_color'] ) {
$css->add_property( 'color', $color_settings['content_link_color'] );
Expand Down
5 changes: 3 additions & 2 deletions inc/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ public static function navigation() {
<?php
foreach ( $tabs as $tab ) {
printf(
'<a href="%1$s" class="%2$s"%4$s>%3$s</a>',
'<a href="%1$s" class="%2$s"%4$s%5$s>%3$s</a>',
esc_url( $tab['url'] ),
esc_attr( $tab['class'] ),
esc_html( $tab['name'] ),
! empty( $tab['external'] ) ? 'target="_blank" rel="noreferrer noopener"' : ''
! empty( $tab['external'] ) ? 'target="_blank" rel="noreferrer noopener"' : '',
esc_attr( ! empty( $tab['id'] ) ? 'id=' . $tab['id'] : '' )
);
}
?>
Expand Down
2 changes: 1 addition & 1 deletion inc/customizer/class-customize-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function add_wrapper( $id, $control_args = array() ) {
$control_args['type'] = 'generate-wrapper-control';

$wp_customize->add_control(
new GeneratePress_Customize_React_Control(
new GeneratePress_Customize_Wrapper_Control(
$wp_customize,
$id,
$control_args
Expand Down
Loading

0 comments on commit 6e4077c

Please sign in to comment.