wp_back/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Parser/Link/SlideEvent.php

18 lines
359 B
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<?php
namespace Nextend\SmartSlider3\Parser\Link;
use Nextend\Framework\Parser\Link\ParserInterface;
class SlideEvent implements ParserInterface {
public function parse($argument, &$attributes) {
$attributes['role'] = 'button';
$attributes['onclick'] = "n2ss.trigger(this, '" . $argument . "', event);";
return '#';
}
}