Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/smart-sl.../Nextend/SmartSli.../Widget/Group
File: Arrow.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\SmartSlider3\Widget\Group;
[2] Fix | Delete
[3] Fix | Delete
use Nextend\Framework\Form\Container\ContainerTab;
[4] Fix | Delete
use Nextend\Framework\Form\Container\ContainerTable;
[5] Fix | Delete
use Nextend\Framework\Form\Element\OnOff;
[6] Fix | Delete
use Nextend\Framework\Form\Element\Text;
[7] Fix | Delete
use Nextend\Framework\Pattern\PluggableTrait;
[8] Fix | Delete
use Nextend\SmartSlider3\Form\Element\ControlTypePicker;
[9] Fix | Delete
use Nextend\SmartSlider3\Widget\Arrow\ArrowImage\ArrowImage;
[10] Fix | Delete
[11] Fix | Delete
class Arrow extends AbstractWidgetGroup {
[12] Fix | Delete
[13] Fix | Delete
use PluggableTrait;
[14] Fix | Delete
[15] Fix | Delete
public $ordering = 1;
[16] Fix | Delete
[17] Fix | Delete
public function __construct() {
[18] Fix | Delete
parent::__construct();
[19] Fix | Delete
[20] Fix | Delete
new ArrowImage($this, 'imageSmallRectangle', array(
[21] Fix | Delete
'widget-arrow-desktop-image-width' => 26,
[22] Fix | Delete
'widget-arrow-tablet-image-width' => 26,
[23] Fix | Delete
'widget-arrow-previous' => '$ss$/plugins/widgetarrow/image/image/previous/full.svg',
[24] Fix | Delete
'widget-arrow-next' => '$ss$/plugins/widgetarrow/image/image/next/full.svg',
[25] Fix | Delete
'widget-arrow-style' => '{"data":[{"backgroundcolor":"000000ab","padding":"2|*|2|*|2|*|2|*|px","boxshadow":"0|*|0|*|0|*|0|*|000000ff","border":"0|*|solid|*|000000ff","borderradius":"3","extra":""},{"backgroundcolor":"FF9139FF"}]}'
[26] Fix | Delete
));
[27] Fix | Delete
[28] Fix | Delete
new ArrowImage($this, 'imageEmpty', array(
[29] Fix | Delete
'widget-arrow-previous' => '$ss$/plugins/widgetarrow/image/image/previous/thin-horizontal.svg',
[30] Fix | Delete
'widget-arrow-next' => '$ss$/plugins/widgetarrow/image/image/next/thin-horizontal.svg',
[31] Fix | Delete
'widget-arrow-style' => ''
[32] Fix | Delete
));
[33] Fix | Delete
[34] Fix | Delete
$this->makePluggable('SliderWidgetArrow');
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
public function getName() {
[38] Fix | Delete
return 'arrow';
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
public function getLabel() {
[42] Fix | Delete
return n2_('Arrows');
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* @param ContainerTab $container
[47] Fix | Delete
*/
[48] Fix | Delete
public function renderFields($container) {
[49] Fix | Delete
[50] Fix | Delete
$form = $container->getForm();
[51] Fix | Delete
[52] Fix | Delete
$this->compatibility($form);
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* Used for field removal: /controls/widget-arrow
[56] Fix | Delete
*/
[57] Fix | Delete
$table = new ContainerTable($container, 'widget-arrow', n2_('Arrow'));
[58] Fix | Delete
[59] Fix | Delete
new OnOff($table->getFieldsetLabel(), 'widget-arrow-enabled', false, 0, array(
[60] Fix | Delete
'relatedFieldsOn' => array(
[61] Fix | Delete
'table-rows-widget-arrow'
[62] Fix | Delete
)
[63] Fix | Delete
));
[64] Fix | Delete
[65] Fix | Delete
$row1 = $table->createRow('widget-arrow-1');
[66] Fix | Delete
[67] Fix | Delete
$ajaxUrl = $form->createAjaxUrl(array("slider/renderwidgetarrow"));
[68] Fix | Delete
new ControlTypePicker($row1, 'widgetarrow', $table, $ajaxUrl, $this, 'imageEmpty');
[69] Fix | Delete
[70] Fix | Delete
[71] Fix | Delete
$row2 = $table->createRow('widget-arrow-2');
[72] Fix | Delete
[73] Fix | Delete
new OnOff($row2, 'widget-arrow-display-hover', n2_('Shows on hover'), 0);
[74] Fix | Delete
[75] Fix | Delete
$this->addHideOnFeature('widget-arrow-display-', $row2);
[76] Fix | Delete
[77] Fix | Delete
}
[78] Fix | Delete
}
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function