fix single-post.css
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
define('ABSPATH', __DIR__ . '/');
|
||||
function wp_parse_args($args, $defaults) { return array_merge($defaults, (array)$args); }
|
||||
function esc_attr($s) { return htmlspecialchars((string)$s, ENT_QUOTES); }
|
||||
function esc_url($s) { return $s; }
|
||||
function sanitize_text_field($s) { return $s; }
|
||||
function sanitize_hex_color($s) { return $s; }
|
||||
function aksrt_get_lazy_attr($ctx, $url, $class, $thumb) {
|
||||
return ' class="lazyload ' . $class . '" src="ph.png" data-src="' . $url . '"';
|
||||
}
|
||||
function aksrt_get_lazy_thumb($size) { return ''; }
|
||||
require __DIR__ . '/../inc/helpers/aksrt-slider.php';
|
||||
echo aksrt_render_slider([
|
||||
'slides' => [
|
||||
['image' => 'https://example.com/a.jpg', 'alt' => 'a'],
|
||||
['image' => 'https://example.com/b.jpg', 'alt' => 'b'],
|
||||
],
|
||||
'scale_height' => true,
|
||||
'scale_ratio' => 0.35,
|
||||
'scale_extra' => '50px',
|
||||
'wrapper_class' => 'mb20 single-cover-slide imgbox-container',
|
||||
'slider_class' => 'single-cover single-cover--slide',
|
||||
'show_nav' => true,
|
||||
'show_pagination' => true,
|
||||
'loop' => true,
|
||||
'autoplay' => true,
|
||||
'overlay_html' => '<div class="abs-center left-bottom single-cover-con">TITLE</div>',
|
||||
]), "\n";
|
||||
Reference in New Issue
Block a user