diff --git a/wp-content/themes/vf-wp/blocks/vfwp-links-list/template.php b/wp-content/themes/vf-wp/blocks/vfwp-links-list/template.php index 443a0a8c4..0af0119be 100644 --- a/wp-content/themes/vf-wp/blocks/vfwp-links-list/template.php +++ b/wp-content/themes/vf-wp/blocks/vfwp-links-list/template.php @@ -52,44 +52,49 @@ - if (!is_array($image)) { - $image = null; - } else { - $image = wp_get_attachment_image($image['ID'], 'thumbnail', false, [ - 'class' => 'vf-list__image', - 'loading' => 'lazy', - 'itemprop' => 'image', - ]); - } - ?> -
  • - - - '; - endif; - echo esc_html($text); - if ($type === 'easy'): ?> - arrow-button-down - - - - - - - - - -
  • - - diff --git a/wp-content/themes/vf-wp/blocks/vfwp-social-icons/widget.php b/wp-content/themes/vf-wp/blocks/vfwp-social-icons/widget.php index bc30547ae..8d463983f 100644 --- a/wp-content/themes/vf-wp/blocks/vfwp-social-icons/widget.php +++ b/wp-content/themes/vf-wp/blocks/vfwp-social-icons/widget.php @@ -22,7 +22,7 @@ public function widget($args, $instance) { // widget ID with prefix for use in ACF API functions $widget_id = 'widget_' . $args['widget_id']; - +$is_preview = isset($is_preview) && $is_preview; $heading = get_field('vf_social_heading', $widget_id); $color = get_field('vf_social_color', $widget_id); @@ -52,6 +52,22 @@ public function widget($args, $instance) { $dark_mode = 'dark-mode'; } +// Function to output a banner message in the Gutenberg editor only +$admin_banner = function($message, $modifier = 'info') use ($is_preview) { + if (! $is_preview) { + return; } +?> +
    +
    +

    + +

    +
    +
    + +