PHP code proposal
-
Hi
1.- In the file
smart-slider-3/Nextend/SmartSlider3/Slider/SliderType/Simple/SliderTypeSimpleFrontend.phplines 64 and 72 are this code
64 <div class="n2-ss-slider-1 n2_ss__touch_element n2-ow" style="<?php echo Sanitize::esc_attr($sliderCSS); ?>">
72 <div class="n2-ss-slider-3 n2-ow" style="<?php echo $slideCSS; ?>">But when
$slideCSSis empty the output contais astyle=>
So changinstyle="<?php echo Sanitize::esc_attr($sliderCSS); ?>">` with some like
<?php if (!empty($sliderCSS)) echo 'style="' . Sanitize::esc_attr($sliderCSS);
the output don´t contain an empty attribute.2.- When this svg is created in the same file as 1 in line 85
<svg viewBox="0 0 1400 600" data-related-device="desktopPortrait" class="n2-ow n2-ss-preserve-size n2-ss-preserve-size--slider n2-ss-slide-limiter"></svg>
Some html parsers throw error of unmatched</svg>label.
Putting a space then between th>and the</svg>the report pases.
The topic ‘PHP code proposal’ is closed to new replies.