Compare commits
2 Commits
3581a0ab1f
...
d96ec299c1
Author | SHA1 | Date |
---|---|---|
Tony Air | d96ec299c1 | |
Tony Air | 1364e25171 |
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: tony
|
||||
* Date: 6/30/18
|
||||
* Time: 11:54 PM
|
||||
*/
|
||||
|
||||
namespace A2nt\ElementalBasics\Elements;
|
||||
|
||||
use DNADesign\Elemental\Models\BaseElement;
|
||||
|
||||
/**
|
||||
* Class \A2nt\ElementalBasics\Elements\MapElement
|
||||
*
|
||||
* @property int $MapZoom
|
||||
* @method \SilverStripe\ORM\ManyManyList|\A2nt\ElementalBasics\Models\MapPin[] Locations()
|
||||
* @mixin \A2nt\ElementalBasics\Extensions\MapExtension
|
||||
*/
|
||||
class SidebarElement extends BaseElement
|
||||
{
|
||||
private static $icon = 'font-icon-book-open';
|
||||
|
||||
private static $singular_name = 'Sidebar Element';
|
||||
|
||||
private static $plural_name = 'Sidebar Elements';
|
||||
|
||||
private static $description = 'Displays sidebar among page elements';
|
||||
|
||||
public function getType(): string
|
||||
{
|
||||
return self::$singular_name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<% with $Page %>
|
||||
<% if $SideBarContent || $SideBarView && $SideBarView.Widgets.Count %>
|
||||
$SideBarContent
|
||||
$SideBarView
|
||||
<% end_if %>
|
||||
<% end_with %>
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% if $SideBarContent || $SideBarView && $SideBarView.Widgets.Count %>
|
||||
<% if $ShowSidebar %>
|
||||
<div class="content-holder content-holder__sidebar">
|
||||
<div class="{$DefaultContainer}">
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in New Issue