Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion acf-json/group_6305b2812bcc2.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_63200cb8f872a",
"label": "Footer Copyright Text",
"name": "footer_copyright_text",
"type": "textarea",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": "wpautop"
}
],
"location": [
Expand All @@ -40,5 +59,5 @@
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1661317966
"modified": 1663050175
}
31 changes: 17 additions & 14 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,30 @@
}
?>
</div>
<?php if ( have_posts() ) { ?>
<?php if ( have_posts() ) {
$base_theme_medium_block = '';
if ( ! empty( $base_theme_category_image ) ) {
$base_theme_medium_block = 'medium-8';
}
?>
<header class="page-header">
<div class="grid-x grid-margin-x">
<div class="cell small-12 medium-8">
<div class="cell small-12 <?php echo esc_attr( $base_theme_medium_block ); ?> ">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</div>
<div class="cell small-12 medium-4">
<?php
if ( ! empty( $base_theme_category_image ) ) {

echo wp_get_attachment_image( $base_theme_category_image, 'full' );

} else {

base_theme_placeholder_image();
}
?>
</div>

<?php
if ( ! empty( $base_theme_category_image ) ) { ?>
<div class="cell small-12 medium-4">
<?php
echo wp_get_attachment_image( $base_theme_category_image, 'full' );

?>
</div>
<?php } ?>
</div>
</header><!-- .page-header -->

Expand Down
5 changes: 3 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @package Base-Theme
*/

$base_theme_container_class = 'grid-container';
$base_theme_container_class = 'grid-container';
$base_theme_footer_copyright = get_field( 'footer_copyright_text', 'option' );

if ( is_page_template( 'page-templates/fluid-width-template.php' ) ) {
$base_theme_container_class = 'grid-container fluid';
Expand Down Expand Up @@ -49,7 +50,7 @@
</div>

<div class="cell" style="margin-bottom: 50px;">
<div class="site-info text-center"><?php base_theme_copyright_text(); ?></div><!-- .site-info -->
<div class="site-info text-center"><?php echo wp_kses_post( $base_theme_footer_copyright ); ?></div><!-- .site-info -->
</div>
</div>
</div>
Expand Down