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

Commit

Permalink
Minor updates to class definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Nov 2, 2015
1 parent 0258a06 commit 3698a48
Show file tree
Hide file tree
Showing 4 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 **1.1.6**_
_The current release is **1.1.7**_

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
2 changes: 1 addition & 1 deletion code/pages/MediaHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getCMSFields() {
* @return data list
*/

public function getCheckMediaHolder() {
public function getMediaHolderChildren() {

return $this->AllChildren()->where("ClassName = 'MediaHolder'");
}
Expand Down
2 changes: 1 addition & 1 deletion code/pages/MediaPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getCMSFields() {
// Display a notification that the parent holder contains mixed children.

$parent = $this->getParent();
if($parent && $parent->getCheckMediaHolder()->exists()) {
if($parent && $parent->getMediaHolderChildren()->exists()) {
Requirements::css(MEDIAWESOME_PATH . '/css/mediawesome.css');
$fields->addFieldToTab('Root.Main', LiteralField::create(
'MediaNotification',
Expand Down
4 changes: 2 additions & 2 deletions templates/Layout/MediaHolder.ss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div class='media-holder-content'>{$Content}</div>
<% if $AllChildren %>
<div class='media-holder-children'>
<% if $CheckMediaHolder %>
<% loop $CheckMediaHolder %>
<% if $MediaHolderChildren %>
<% loop $MediaHolderChildren %>
<div class='media-holder'>
<h4><a href='{$Link}'><strong>{$Title}</strong></a></h4>
<div>{$Content.Summary}</div>
Expand Down

0 comments on commit 3698a48

Please sign in to comment.