-
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.
- Adds announcement location to MP sidebar - Adds 'donation' location to MP sidebar - Adds 'Browse content' green box to draw attention to sidebar. Co-authored-by: Lucas <[email protected]>
- Loading branch information
1 parent
f90a3d0
commit 95eeb3d
Showing
8 changed files
with
131 additions
and
43 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
17 changes: 17 additions & 0 deletions
17
www/includes/easyparliament/templates/html/mp/_donation.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,17 @@ | ||
|
||
|
||
<?php $featured_item = $announcement_manager->get_random_valid_item("donation"); ?> | ||
|
||
<?php if ( $featured_item ) { ?> | ||
|
||
<div class="sidebar__unit__featured_side"> | ||
<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 }; ?> |
19 changes: 19 additions & 0 deletions
19
www/includes/easyparliament/templates/html/mp/_featured_content.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,19 @@ | ||
|
||
<?php $featured_item = $announcement_manager->get_random_valid_item("sidebar"); ?> | ||
|
||
<?php if ( $featured_item ) { ?> | ||
|
||
<div class="sidebar__unit__featured_side"> | ||
<div class="featured_side__mysociety"> | ||
<img src="/style/img/logo-mysociety.png" alt="mySociety logo" width="150"> | ||
</div> | ||
<img class="featured_side__image" src="<?= $featured_item->thumbnail_image_url ?>" alt="<?= $featured_item->thumbnail_image_alt_text ?>"> | ||
<div class="featured_side__content"> | ||
<a href="<?= $featured_item->url ?>"><h3 class="content__title"><?= $featured_item->title ?></h3></a> | ||
<?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
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