-
Notifications
You must be signed in to change notification settings - Fork 14
Add sidebar to fallback frontpage. #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/homepage-fallback
Are you sure you want to change the base?
Changes from 1 commit
ea82db8
cce2a82
c6c8610
04105ae
70fc566
67cdc8f
3e4de21
62e4482
3701131
1cb526a
09a358c
2eff093
16c4b20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| .frontpage-fallback-minutes { | ||
| max-width: 100%; | ||
| width: 800px; | ||
|
|
||
| @include media(config('media', 'breakpoints', 'default') + config('media', 'breakpoints', 'default') * .5) { | ||
| transform: translateX(50%); | ||
| margin-left: -25%; | ||
|
|
||
| &-sidebar { | ||
| border: 1px solid #dae1e7; | ||
| border-radius: .25rem; | ||
| padding: 15px; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace this with a call to |
||
| margin-top: 15px; | ||
|
|
||
| h4 { | ||
| margin-top: 0; | ||
| } | ||
|
|
||
| p { | ||
| margin-bottom: .5em; | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,16 +24,29 @@ | |
|
|
||
| while ($minutes->have_posts()) : | ||
| ?> | ||
| <div class="frontpage-fallback-minutes"> | ||
| <?php | ||
| $minutes->the_post(); | ||
| <div class="main-inner"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| <div class="frontpage-fallback-minutes-main"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have a wrapper with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or replace |
||
| <?php | ||
| $minutes->the_post(); | ||
|
|
||
| $meta = array_map(function (array $values) { | ||
| return maybe_unserialize($values[0]); | ||
| }, get_post_meta(get_the_ID())); | ||
| $meta = array_map(function (array $values) { | ||
| return maybe_unserialize($values[0]); | ||
| }, get_post_meta(get_the_ID())); | ||
|
|
||
| include locate_template(['partials/meeting-minutes/index.php']); | ||
| ?> | ||
| include locate_template(['partials/meeting-minutes/index.php']); | ||
| ?> | ||
| </div> | ||
| <aside class="frontpage-fallback-minutes-sidebar"> | ||
| <h4><?= __('Meeting Minutes', 'wp-berlin'); ?></h4> | ||
| <p> | ||
| <?= | ||
| sprintf( | ||
| __('Missed a meetup? Check out our notes, links and code snippets from previous meetups in our other <a href="%s">meeting minutes</a>.', 'wp-berlin'), | ||
| '/meeting-minutes' | ||
| ); | ||
| ?> | ||
| </p> | ||
| </aside> | ||
| </div> | ||
| <?php | ||
| endwhile; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this with a call to
config($spacing, 'default')(for 20px padding).