/** * Add Image field * * @access public * @param string $field_name * @param array $field_options * @return string text field */ public function __add_image($field_name, $options, $value) { ob_start(); ?> <?php if (!isset($options['col_span'])) { ?> <div class="clear"><!-- ~ --></div><?php } ?> <label<?php if (isset($options['col_span'])) { ?> class="<?php echo $options['col_span']; ?> "<?php } ?> ><span><?php echo $options['label']; ?> :</span> <div class="bshaper_metro_photo_holder"> <input type="hidden" name="<?php echo $field_name; ?> " class="widefat bshaper_module_image mvb_module_<?php echo $field_name; ?> mvb_module_field<?php if (isset($options['class'])) { ?> <?php echo $options['class']; } ?> " value="<?php echo $value; ?> " /> <div class="bshaper_metro_item_actions"> <a href="#" class="bshaper_metro_upload_file"><?php _e('Upload file', 'mvb'); ?> </a> <a href="#" class="bshaper_metro_delete_btn"<?php if ($value == '') { ?> style="display: none;"<?php } ?> ><?php _e('Delete file', 'mvb'); ?> </a> </div> <div class="bshaper_metro_image_holder"> <?php if ($value != '') { ?> <img src="<?php echo mvb_aq_resize($value, 150); ?> " width="150" /> <?php } ?> <div class="clear"><!-- ~ --></div> </div> </div> <?php if (isset($options['help'])) { ?> <span class="bshaper_helper_info"><?php echo $options['help']; ?> </span><?php } ?> </label> <?php return ob_get_clean(); }
$_link = $panel['link_url']; } elseif (is_numeric($panel['page_id']) and $panel['page_id'] > 0) { $_link = get_page_link($panel['page_id']); } ?> <div class="<?php echo $column_number; ?> columns feature-block-image <?php echo $cr_effect; ?> "> <?php $img = mvb_aq_resize($panel['image'], 352); $style = 'color: #' . $panel['color'] . ' '; ?> <div class="picture" style=" <?php echo $style; ?> "> <?php if ($panel['image']) { echo '<div class="picture-mask">'; echo '<img src="' . $img . '" alt="' . $panel['main_title'] . '" class="blurImage" >'; echo '</div>'; } ?>
<div class="bshaper_module bshaper_<?php echo $settings['color']; ?> "> <div class="bshaper_module_icon bshaper_to_be_deleted"> <?php if (isset($image) and $image != '') { ?> <img src="<?php echo mvb_aq_resize($image, 48, 48); ?> " width="48" /> <?php } else { ?> <img src="<?php echo $app_url; ?> assets/images/icons/<?php echo $settings['icon']; ?> " width="48" /> <?php } ?> </div> <div class="bshaper_meta bshaper_to_be_deleted"> <h4><?php echo $settings['title']; ?>