-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24e608e
commit 44f1f69
Showing
7 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,7 @@ | |
|
||
.rss-feed { | ||
font-size: 0.8em; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.calendar { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.sidebar__unit__featured_side--right { | ||
padding: 2rem 1.5rem; | ||
border-top: 1px solid #f3f1eb; | ||
border-bottom: 1px solid #f3f1eb; | ||
margin: -1px -1.5rem; // 1px Allows the horizontal borders at the top and bottom to collapse with each other when two boxes stack with each other . | ||
& *:last-child { | ||
margin-bottom: 0; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
www/includes/easyparliament/templates/html/announcements/_sidebar_right_announcements.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
|
||
<?php $featured_item = $announcement_manager->get_random_valid_item("sidebar_right_donation"); ?> | ||
|
||
<?php if ( $featured_item ) { ?> | ||
|
||
<div class="sidebar__unit__featured_side sidebar__unit__featured_side--right"> | ||
<div class="featured_side__content"> | ||
<a href="<?= $featured_item->url ?>"><h3 class="content__title"><?= $featured_item->title ?></h3></a> | ||
<p class="content__description"><?= $featured_item->content ?></p> | ||
<?php if (isset($featured_item->button_text)) { ?> | ||
<a class="button content__button <?= $featured_item->button_class ?>" href="<?= $featured_item->url ?>"><?= (isset($featured_item->button_text) ? $featured_item->button_text : "Read more") ?></a> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
|
||
<?php }; ?> | ||
|
||
<?php $featured_item = $announcement_manager->get_random_valid_item("sidebar_right_subscribe"); ?> | ||
|
||
<?php if ( $featured_item ) { ?> | ||
|
||
<div class="sidebar__unit__featured_side sidebar__unit__featured_side--right"> | ||
<div class="featured_side__content"> | ||
<a href="<?= $featured_item->url ?>"><h3 class="content__title"><?= $featured_item->title ?></h3></a> | ||
<p class="content__description"><?= $featured_item->content ?></p> | ||
<?php if (isset($featured_item->button_text)) { ?> | ||
<a class="button content__button <?= $featured_item->button_class ?>" href="<?= $featured_item->url ?>"><?= (isset($featured_item->button_text) ? $featured_item->button_text : "Read more") ?></a> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
|
||
<?php }; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters