forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically generate images for use in Year in Review
- Loading branch information
Showing
6 changed files
with
179 additions
and
90 deletions.
There are no files selected for viewing
21 changes: 5 additions & 16 deletions
21
code/web/interface/themes/responsive/YearInReview/slide.tpl
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 |
---|---|---|
@@ -1,20 +1,9 @@ | ||
{strip} | ||
<div style="display: block"> | ||
<div style="object-fit: contain"> | ||
<img class="img-responsive" src="/year_in_review/images/{$slideInfo->background_lg}" alt="Year in review background"/> | ||
</div> | ||
{foreach from=$slideInfo->overlay_text item=textInfo} | ||
<div style="display: block; | ||
position: absolute; | ||
top:{$textInfo->top}; | ||
left:{$textInfo->left}; | ||
width:{$textInfo->width}; | ||
height:{$textInfo->height}; | ||
color:{$textInfo->color}; | ||
font-size:{$textInfo->font_size}; | ||
text-align:{$textInfo->align}"> | ||
{$textInfo->text} | ||
</div> | ||
{/foreach} | ||
{if empty($slideInfo->overlay_text)} | ||
<img class="img-responsive" src="/year_in_review/images/{$slideInfo->background}" alt="Year in review background"/> | ||
{else} | ||
<img class="img-responsive" src="/MyAccount/AJAX?method=getYearInReviewSlideImage&slide={$slideNumber}" alt="Year in review background"/> | ||
{/if} | ||
</div> | ||
{/strip} |
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
Oops, something went wrong.