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/Framewor.../Style
File: ModelStyle.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\Framework\Style;
[2] Fix | Delete
[3] Fix | Delete
use Nextend\Framework\Form\Container\ContainerTable;
[4] Fix | Delete
use Nextend\Framework\Form\Element\Button;
[5] Fix | Delete
use Nextend\Framework\Form\Element\MarginPadding;
[6] Fix | Delete
use Nextend\Framework\Form\Element\MixedField;
[7] Fix | Delete
use Nextend\Framework\Form\Element\Tab;
[8] Fix | Delete
use Nextend\Framework\Form\Element\Text\Color;
[9] Fix | Delete
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
[10] Fix | Delete
use Nextend\Framework\Form\Element\Textarea;
[11] Fix | Delete
use Nextend\Framework\Form\Element\Unit;
[12] Fix | Delete
use Nextend\Framework\Form\Form;
[13] Fix | Delete
use Nextend\Framework\Visual\ModelVisual;
[14] Fix | Delete
[15] Fix | Delete
class ModelStyle extends ModelVisual {
[16] Fix | Delete
[17] Fix | Delete
protected $type = 'style';
[18] Fix | Delete
[19] Fix | Delete
public function renderForm() {
[20] Fix | Delete
[21] Fix | Delete
$form = new Form($this, 'n2-style-editor');
[22] Fix | Delete
[23] Fix | Delete
$table = new ContainerTable($form->getContainer(), 'style', n2_('Style settings'));
[24] Fix | Delete
[25] Fix | Delete
$table->setFieldsetPositionEnd();
[26] Fix | Delete
[27] Fix | Delete
new Button($table->getFieldsetLabel(), 'style-clear-tab', false, n2_('Clear tab'));
[28] Fix | Delete
[29] Fix | Delete
new Tab($table->getFieldsetLabel(), 'style-state');
[30] Fix | Delete
[31] Fix | Delete
$row1 = $table->createRow('style-row-1');
[32] Fix | Delete
[33] Fix | Delete
new Color($row1, 'backgroundcolor', n2_('Background color'), '000000FF', array(
[34] Fix | Delete
'alpha' => true
[35] Fix | Delete
));
[36] Fix | Delete
[37] Fix | Delete
new NumberAutoComplete($row1, 'opacity', n2_('Opacity'), '100', array(
[38] Fix | Delete
'values' => array(
[39] Fix | Delete
0,
[40] Fix | Delete
50,
[41] Fix | Delete
90,
[42] Fix | Delete
100
[43] Fix | Delete
),
[44] Fix | Delete
'unit' => '%',
[45] Fix | Delete
'wide' => 3
[46] Fix | Delete
));
[47] Fix | Delete
[48] Fix | Delete
$padding = new MarginPadding($row1, 'padding', n2_('Padding'), '0|*|0|*|0|*|0|*|px');
[49] Fix | Delete
for ($i = 1; $i < 5; $i++) {
[50] Fix | Delete
new NumberAutoComplete($padding, 'padding-' . $i, false, '', array(
[51] Fix | Delete
'values' => array(
[52] Fix | Delete
0,
[53] Fix | Delete
5,
[54] Fix | Delete
10,
[55] Fix | Delete
20,
[56] Fix | Delete
30
[57] Fix | Delete
),
[58] Fix | Delete
'wide' => 3
[59] Fix | Delete
));
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
new Unit($padding, 'padding-5', '', '', array(
[63] Fix | Delete
'units' => array(
[64] Fix | Delete
'px',
[65] Fix | Delete
'em',
[66] Fix | Delete
'%'
[67] Fix | Delete
)
[68] Fix | Delete
));
[69] Fix | Delete
[70] Fix | Delete
new MixedField\Border($row1, 'border', n2_('Border'), '0|*|solid|*|000000ff');
[71] Fix | Delete
[72] Fix | Delete
new NumberAutoComplete($row1, 'borderradius', n2_('Border radius'), '0', array(
[73] Fix | Delete
'values' => array(
[74] Fix | Delete
0,
[75] Fix | Delete
3,
[76] Fix | Delete
5,
[77] Fix | Delete
10,
[78] Fix | Delete
99
[79] Fix | Delete
),
[80] Fix | Delete
'unit' => 'px',
[81] Fix | Delete
'wide' => 3
[82] Fix | Delete
));
[83] Fix | Delete
[84] Fix | Delete
[85] Fix | Delete
new MixedField\BoxShadow($row1, 'boxshadow', n2_('Box shadow'), '0|*|0|*|0|*|0|*|000000ff');
[86] Fix | Delete
[87] Fix | Delete
new Textarea($row1, 'extracss', 'CSS', '', array(
[88] Fix | Delete
'width' => 200,
[89] Fix | Delete
'height' => 26
[90] Fix | Delete
));
[91] Fix | Delete
[92] Fix | Delete
$previewTable = new ContainerTable($form->getContainer(), 'style-preview', n2_('Preview'));
[93] Fix | Delete
[94] Fix | Delete
$previewTable->setFieldsetPositionEnd();
[95] Fix | Delete
[96] Fix | Delete
new Color($previewTable->getFieldsetLabel(), 'preview-background', false, 'ced3d5');
[97] Fix | Delete
[98] Fix | Delete
$form->render();
[99] Fix | Delete
}
[100] Fix | Delete
}
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function