Skip to content

Commit

Permalink
Replace PHP echo with shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Jun 28, 2023
1 parent 896f57f commit 4f5e9b7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions page-templates/page-full-width-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@

<?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>
<header class="entry-header featured-full-width-img height-75 bg-dark text-light mb-3" style="background-image: url('<?= $thumb['0']; ?>')">
<div class="<?php echo bootscore_container_class(); ?> entry-header h-100 d-flex align-items-end pb-3">
<div class="<?= bootscore_container_class(); ?> entry-header h-100 d-flex align-items-end pb-3">
<h1 class="entry-title"><?php the_title(); ?></h1>
</div>
</header>

<div class="<?php echo bootscore_container_class(); ?> pb-5">
<div class="<?= bootscore_container_class(); ?> pb-5">

<!-- Hook to add something nice -->
<?php bs_after_primary(); ?>

<div class="row">
<div class="<?php echo bootscore_main_col_class(); ?>">
<div class="<?= bootscore_main_col_class(); ?>">

<div class="entry-content">
<?php the_content(); ?>
Expand Down
8 changes: 4 additions & 4 deletions single-templates/single-full-width-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@

<?php the_post(); ?>
<?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>
<header class="entry-header featured-full-width-img height-75 bg-dark text-light mb-3" style="background-image: url('<?php echo $thumb['0']; ?>')">
<div class="<?php echo bootscore_container_class(); ?> entry-header h-100 d-flex align-items-end pb-3">
<header class="entry-header featured-full-width-img height-75 bg-dark text-light mb-3" style="background-image: url('<?= $thumb['0']; ?>')">
<div class="<?= bootscore_container_class(); ?> entry-header h-100 d-flex align-items-end pb-3">
<h1 class="entry-title"><?php the_title(); ?></h1>
</div>
</header>

<div class="<?php echo bootscore_container_class(); ?> pb-5">
<div class="<?= bootscore_container_class(); ?> pb-5">

<!-- Hook to add something nice -->
<?php bs_after_primary(); ?>

<?php the_breadcrumb(); ?>

<div class="row">
<div class="<?php echo bootscore_main_col_class(); ?>">
<div class="<?= bootscore_main_col_class(); ?>">

<div class="entry-content">
<?php bootscore_category_badge(); ?>
Expand Down
4 changes: 2 additions & 2 deletions single-templates/single-sidebar-left.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
get_header();
?>

<div id="content" class="site-content <?php echo bootscore_container_class(); ?> py-5 mt-4">
<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-4">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand All @@ -17,7 +17,7 @@

<div class="row">
<?php get_sidebar(); ?>
<div class="<?php echo bootscore_main_col_class(); ?> order-first order-md-last">
<div class="<?= bootscore_main_col_class(); ?> order-first order-md-last">

<main id="main" class="site-main">

Expand Down
2 changes: 1 addition & 1 deletion single-templates/single-sidebar-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
get_header();
?>

<div id="content" class="site-content <?php echo bootscore_container_class(); ?> py-5 mt-4">
<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-4">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down

0 comments on commit 4f5e9b7

Please sign in to comment.