first
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Nextend\SmartSlider3\Slider\Base;
|
||||
|
||||
|
||||
class PlatformSliderBase {
|
||||
|
||||
public function addCMSFunctions($text) {
|
||||
|
||||
return $text;
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Nextend\SmartSlider3\Slider\Base;
|
||||
|
||||
use Nextend\SmartSlider3\Slider;
|
||||
|
||||
trait PlatformSliderTrait {
|
||||
|
||||
/**
|
||||
* @var PlatformSliderBase
|
||||
*/
|
||||
private $platformSlider;
|
||||
|
||||
public function initPlatformSlider() {
|
||||
$this->platformSlider = new Slider\WordPress\PlatformSlider();
|
||||
}
|
||||
|
||||
public function addCMSFunctions($text) {
|
||||
|
||||
return $this->platformSlider->addCMSFunctions($text);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user