Skip to content

Commit b0082a4

Browse files
committed
Add comments section to single license template part
1 parent a24aadb commit b0082a4

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

themes/osi/assets/css/editor-style.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/scss/_5_objects.layout.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@
103103
max-width: none !important;
104104
}
105105
}
106+
107+
.license-comments {
108+
background: #f0E68C;
109+
padding: 2rem;
110+
111+
.wp-block-heading {
112+
margin-top: 0;
113+
}
114+
}
106115
}
107116
}
108117

themes/osi/style.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/template-parts/content-license.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<div class="entry-content post--content license-content">
1515
<div>
1616
<?php the_content(); ?>
17+
18+
<hr />
19+
<div class="license-comments">
20+
<?php
21+
if ( osi_field_check( 'comments' ) ) :
22+
echo wp_kses_post( '<h2 class="wp-block-heading" id="license-comments">' . __( 'Comments', 'osi' ) . '</h2>' );
23+
osi_the_valid_field( 'comments' );
24+
endif;
25+
?>
26+
</div>
1727
</div>
1828

1929
<aside class="sidebar content--sidebar license-sidebar <?php echo esc_attr( osi_sidebar_class() ); ?>" role="complementary">

0 commit comments

Comments
 (0)