args['id'] ); * get_post( $this->args['id'] ); * wp_prepare_attachment_for_js( $this->args['id'] ); * * @package ItalyStrap */ namespace ItalyStrap\Core; $output = ''; if (! empty($this->args['add_figure_container'])) { $attr = ['class' => 'widget-image-figure ' . esc_attr($this->args['container_css_class'])]; $output .= sprintf('
', get_attr('widget_image_figure', $attr)); } if (! empty($this->args['link'])) { $link_attr = ['href' => esc_url($this->args['link'])]; if (! empty($this->args['link_target_blank'])) { $link_attr['target'] = '_blank'; } $output .= sprintf('', get_attr('widget_image_href', $link_attr)); } /** * Get the image */ $output .= $this->get_attachment_image(); $output .= $this->get_the_icon(); if (! empty($this->args['link'])) { $output .= ''; } /** * Get the title */ $output .= $this->get_the_title(); if (! empty($this->args['add_figure_container'])) { $output .= $this->get_the_caption(); $output .= $this->get_the_description(); $output .= '
'; } else { /** * Get the description */ $output .= $this->get_the_description(); } echo $output;