Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
FIX, improving the base template accessibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Mar 28, 2017
1 parent b89b1c9 commit f7294bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [mediawesome](https://packagist.org/packages/nglasl/silverstripe-mediawesome)

_The current release is **2.0.3**_
_The current release is **2.0.4**_

> A module for SilverStripe which will allow creation of dynamic media holders/pages with CMS customisable types and attributes (blogs, events, news, publications).
Expand Down
4 changes: 2 additions & 2 deletions templates/Layout/MediaHolder.ss
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<% if $MediaHolderChildren %>
<% loop $MediaHolderChildren %>
<div class='media-holder'>
<h4><a href='{$Link}'><strong>{$Title}</strong></a></h4>
<h2><a href='{$Link}'><strong>{$Title}</strong></a></h2>
<div>{$Content.Summary}</div>
<br>
</div>
<% end_loop %>
<% else %>
<% loop $PaginatedChildren %>
<div class='media-page'>
<h4><a href='<% if $ExternalLink %>{$ExternalLink}<% else_if not $Content && $Attachments.count == 1 %>$Attachments.first.Link<% else %>{$Link}<% end_if %>'<% if $ExternalLink %> target='_blank'<% end_if %>><strong>{$Title}</strong></a></h4>
<h2><a href='<% if $ExternalLink %>{$ExternalLink}<% else_if not $Content && $Attachments.count == 1 %>$Attachments.first.Link<% else %>{$Link}<% end_if %>'<% if $ExternalLink %> target='_blank'<% end_if %>><strong>{$Title}</strong></a></h2>
<p class='media-date'><em>{$Date.Format('M j, Y')}</em></p>
<% if $Abstract %>
<div class='media-abstract'>{$Abstract}</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/Layout/MediaPage.ss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
</p>
<% end_if %>
<% if $Categories %>
<h3 class='media-page-categories'>
<h2 class='media-page-categories'>
<% loop $Categories %>
<span><a href='{$Up.getParent.Link}?category={$Title.URLATT}'>{$Title}</a></span>
<% end_loop %>
</h3>
</h2>
<% end_if %>
<div class='media-page-date'><em>{$Date}</em></div>
<div class='media-page-attributes'>
Expand Down

0 comments on commit f7294bd

Please sign in to comment.