mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
General: Reformat inline if () statements inside HTML tags.
This pattern occurs a handful of times across the codebase:
`<div class="foo<?php if ( $bar ) { echo ' baz'; } ?>">`
Unfortunately, it doesn't really play nicely with `phpcbf`, so all instances need to be removed in preperation for auto code formatting.
See #41057.
git-svn-id: https://develop.svn.wordpress.org/trunk@42217 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -119,8 +119,12 @@
|
||||
<?php
|
||||
// Has the text been hidden?
|
||||
if ( 'blank' == get_header_textcolor() ) :
|
||||
$header_image_class = '';
|
||||
if ( $header_image ) {
|
||||
$header_image_class = ' with-image';
|
||||
}
|
||||
?>
|
||||
<div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">
|
||||
<div class="only-search<?php echo $header_image_class; ?>">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -398,8 +398,13 @@ function twentyseventeen_colors_css_wrap() {
|
||||
|
||||
require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) );
|
||||
$hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );
|
||||
|
||||
$customize_preview_data_hue = '';
|
||||
if ( is_customize_preview() ) {
|
||||
$customize_preview_data_hue = 'data-hue="' . $hue . '"';
|
||||
}
|
||||
?>
|
||||
<style type="text/css" id="custom-theme-colors" <?php if ( is_customize_preview() ) { echo 'data-hue="' . $hue . '"'; } ?>>
|
||||
<style type="text/css" id="custom-theme-colors" <?php echo $customize_preview_data_hue; ?>>
|
||||
<?php echo twentyseventeen_custom_colors_css(); ?>
|
||||
</style>
|
||||
<?php }
|
||||
|
||||
Reference in New Issue
Block a user