/** * Get the current post's featured image URL. * * @param string $size The image size. * @param int $post_id The post ID. * @return string */ function ev_get_featured_image($size = 'full', $post_id = null) { if (!$post_id) { $post_id = get_the_ID(); } return ev_get_image(ev_get_featured_image_id($post_id), $size); }
?> <?php foreach ($id as $_id) { ?> <?php $image_url = ev_get_image($_id, $thumb_size); printf($placeholder_html, esc_attr($_id), esc_url($image_url), esc_attr($thumb_size), esc_html(__('Remove', 'ev_framework'))); ?> <?php } ?> <?php } else { ?> <?php $image_url = ev_get_image($id, $thumb_size); printf($placeholder_html, esc_attr($id), esc_url($image_url), esc_attr($thumb_size), esc_html(__('Remove', 'ev_framework'))); ?> <?php } ?> </div> <div class="ev-image-upload-action"> <a href="#" class="ev-edit-action"><?php esc_html_e('Edit', 'ev_framework'); ?> </a> <a href="#" class="ev-upload-action"><?php esc_html_e('Upload', 'ev_framework'); ?>