first
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Nextend\SmartSlider3\Renderable\Item\Missing;
|
||||
|
||||
use Nextend\SmartSlider3\Renderable\Item\AbstractItem;
|
||||
|
||||
class ItemMissing extends AbstractItem {
|
||||
|
||||
public function createFrontend($id, $itemData, $layer) {
|
||||
return new ItemMissingFrontend($this, $id, $itemData, $layer);
|
||||
}
|
||||
|
||||
public function getTitle() {
|
||||
return n2_x('Missing', 'Layer');
|
||||
}
|
||||
|
||||
public function getIcon() {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getType() {
|
||||
return 'missing';
|
||||
}
|
||||
|
||||
public function renderFields($container) {
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Nextend\SmartSlider3\Renderable\Item\Missing;
|
||||
|
||||
use Nextend\SmartSlider3\Renderable\Item\AbstractItemFrontend;
|
||||
|
||||
class ItemMissingFrontend extends AbstractItemFrontend {
|
||||
|
||||
public function render() {
|
||||
return '';
|
||||
}
|
||||
|
||||
protected function renderAdminTemplate() {
|
||||
return '<div>' . sprintf(n2_('Missing layer type: %s'), $this->data->get('type')) . '</div>';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user