diff --git a/framework/elements/image/image.php b/framework/elements/image/image.php index 5c900751..21f9be31 100644 --- a/framework/elements/image/image.php +++ b/framework/elements/image/image.php @@ -15,6 +15,7 @@ extract($displayData); $title = $params->get('title', ''); $image = $params->get('image', ''); +$image_dark = $params->get('image_dark', ''); $use_link = $params->get('use_link', 0); $link = $params->get('link', ''); $target = $params->get('target', ''); @@ -39,9 +40,16 @@ if ($use_link) { echo ''; } - echo '
'; + echo '
'; echo ''.$title.''; echo '
'; + if (!empty($image_dark)) { + echo '
'; + echo ''.$title.''; + echo '
'; + $element->style_dark->child('.as-image')->addCss('display', 'none !important'); + $element->style_dark->child('.as-image-dark')->addCss('display', 'inline-block !important'); + } if ($use_link) { echo '
'; } diff --git a/framework/elements/image/image.xml b/framework/elements/image/image.xml index ffed2e11..68bad41b 100644 --- a/framework/elements/image/image.xml +++ b/framework/elements/image/image.xml @@ -9,7 +9,12 @@
- + + + + + +