示例#1
0
 echo "</div><div class='col-md-6'>";
 echo Responsive_Markup::field_select('shape_stroke_opacity', array('current' => (isset($data['shape_stroke_opacity']) and !empty($data['route_stroke_opacity'])) ? sanitize_text_field(wp_unslash($data['route_stroke_opacity'])) : '', 'desc' => __('Stroke Opacity', WPGMP_TEXT_DOMAIN), 'options' => $stroke_opacity, 'class' => 'form-control-select'));
 echo "</div></div><div class='row hiderow'><div class='col-md-6'>";
 echo Responsive_Markup::field_select('shape_fill_opacity', array('current' => (isset($data['shape_fill_opacity']) and !empty($data['shape_fill_opacity'])) ? sanitize_text_field(wp_unslash($data['route_stroke_opacity'])) : '', 'desc' => __('Fill Opacity', WPGMP_TEXT_DOMAIN), 'options' => $stroke_opacity, 'class' => 'form-control-select'));
 echo "</div><div class='col-md-6'>";
 echo Responsive_Markup::field_text('shape_radius', array('value' => '', 'desc' => __('Radius (Meters)', WPGMP_TEXT_DOMAIN), 'class' => 'form-control'));
 echo "</div></div><div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_text('shape_center', array('value' => '', 'desc' => __('Center Cordinates', WPGMP_TEXT_DOMAIN), 'class' => 'form-control'));
 echo "</div></div><div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_text('shape_northeast', array('value' => '', 'desc' => __('NorthEast Corner', WPGMP_TEXT_DOMAIN), 'class' => 'form-control'));
 echo "</div></div><div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_text('shape_southwest', array('value' => '', 'desc' => __('SouthWest Corner', WPGMP_TEXT_DOMAIN), 'class' => 'form-control'));
 echo "</div></div><div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_textarea('shape_path', array('value' => '', 'class' => 'form-control', 'id' => 'shape_path', 'desc' => __('Cordinates', WPGMP_TEXT_DOMAIN), 'placeholder' => __('Cordinates', WPGMP_TEXT_DOMAIN)));
 echo '</div></div>';
 echo Responsive_Markup::field_message('shape_message', array('value' => __('Draw or click on a shape to apply properties.', WPGMP_TEXT_DOMAIN), 'class' => 'alert alert-default'));
 echo '';
 echo '<h4 class="alert alert-info">' . __('Shape onclick Event', WPGMP_TEXT_DOMAIN) . '</h4>';
 $shape_events = array('click' => 'click', 'dblclick' => 'dblclick', 'mouseover' => 'mouseover', 'mouseout' => 'mouseout');
 echo "<div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_text('shape_click_url', array('value' => '', 'class' => 'form-control', 'id' => 'shape_click_url', 'desc' => __('Redirect URL', WPGMP_TEXT_DOMAIN), 'placeholder' => __('Redirect url on click.', WPGMP_TEXT_DOMAIN)));
 echo "</div></div><div class='row hiderow'><div class='col-md-12'>";
 echo Responsive_Markup::field_textarea('shape_click_message', array('value' => '', 'class' => 'form-control', 'id' => 'shape_click_message', 'desc' => __('Message on click.', WPGMP_TEXT_DOMAIN), 'placeholder' => __('Message to display on click.', WPGMP_TEXT_DOMAIN)));
 echo '</div></div>';
 echo Responsive_Markup::field_submit('wpgmp_save_drawing', array('value' => __('Save Drawing', WPGMP_TEXT_DOMAIN)));
 echo '</div></div>';
 echo Responsive_Markup::field_hidden('shapes_values', array('value' => ''));
 echo Responsive_Markup::field_hidden('map_id', array('value' => $_GET['map_id']));
 echo Responsive_Markup::field_hidden('operation', array('value' => 'save'));
 echo $form->get_form_footer();
 echo $form->get_footer();