/** * Image picker element. * @param string $name No use. * @param array $atts Attributes for custom html. * @return html Image Picker. */ public static function field_image_picker($name, $atts) { $html = Responsive_Markup::field_image('selected_image', array('lable' => 'Choose marker Image', 'src' => $atts['src'], 'width' => '32', 'class' => 'noclass selected_image col-md-1', 'height' => '37', 'required' => $atts['required'])); $html .= Responsive_Markup::field_anchor('choose_image', array('value' => __('Choose Marker Image', WPGMP_TEXT_DOMAIN), 'href' => 'javascript:void(0);', 'class' => 'btn btn-info choose_image col-md-3 ', 'data' => array('target' => $name))); $html .= Responsive_Markup::field_anchor('remove_image', array('value' => __('Remove Marker Image', WPGMP_TEXT_DOMAIN), 'before' => '<div class="col-md-3">', 'after' => '</div>', 'href' => 'javascript:void(0);', 'class' => 'btn btn-danger remove_image col-md-3 col-md-offset-1', 'data' => array('target' => $name))); $html .= Responsive_Markup::field_hidden('group_marker', array('value' => $atts['src'], 'id' => $name, 'name' => $name)); return $html; }