Skip to content

Commit

Permalink
Re-arrange templates and remote some legacy templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Nov 27, 2024
1 parent 9235ab7 commit 3fc9ad4
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<% if $Children %>
<div class="row content">
<% loop $Children.Limit(4) %>
<% include ilateral\\SilverStripe\\ChildHubPage\\ChildHubGridItem_homepage %>
<% include DFT\\SilverStripe\\ChildHubPage\\ChildHubGridItem_homepage %>
<% end_loop %>
</div>
<% end_if %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
<% end_if %>

<div class="content-container col-sm<% if $ShowSideBar && $Menu(2) %> unit size3of4 lastUnit<% end_if %>">
<article>
<div class="content">$Content</div>
<article class="content mb-4">
$Content
</article>

<% if $PaginatedChildren.exists %>
<div class="child-list">
<% if $ShowChildrenAs == "Grid" %>
<div class="line row units-row child-list">
<% loop $PaginatedChildren %>
<% include ilateral\\SilverStripe\\ChildHubPage\\ChildHubGridItem %>
<% include DFT\\SilverStripe\\ChildHubPage\\Includes\\ChildHubGridItem %>
<% end_loop %>
</div>
<% else %>
<% loop $PaginatedChildren %>
<% include ilateral\\SilverStripe\\ChildHubPage\\ChildHubListItem %>
<% include DFT\\SilverStripe\\ChildHubPage\\Includes\\ChildHubListItem %>
<% end_loop %>
<% end_if %>
</div>
<% with $PaginatedChildren %>
<% include ilateral\\SilverStripe\\ChildHubPage\\Pagination %>
<% include Pagination %>
<% end_with %>
<% end_if %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% require css("i-lateral/silverstripe-gallery: client/dist/css/gallery.min.css") %>
<% require css("dft/silverstripe-gallery: client/dist/css/gallery.min.css") %>

<% if $ShowSideBar && $Menu(2).exists %>
<% include SideBar %>
Expand Down
18 changes: 18 additions & 0 deletions templates/DFT/SilverStripe/Gallery/Model/Layout/GalleryPage.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<% require css("dft/silverstripe-gallery: node_modules/tingle.js/dist/tingle.min.css") %>
<% require css("dft/silverstripe-gallery: client/dist/css/gallery.min.css") %>
<% require javascript("dft/silverstripe-gallery: node_modules/tingle.js/dist/tingle.min.js") %>
<% require javascript("dft/silverstripe-gallery: client/dist/javascript/gallery.min.js") %>

<% if $ShowSideBar && $Menu(2).exists %>
<% include SideBar %>
<% end_if %>

<div class="content-container col-sm">
<article class="gallery-page">
<div class="content">$Content</div>
$Gallery
</article>

$Form
$PageComments
</div>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 3fc9ad4

Please sign in to comment.