Change Rounding to Decimal Places
This commit is contained in:
@@ -43,7 +43,7 @@ class SP_Admin_CPT_Column extends SP_Admin_CPT {
|
|||||||
'title' => __( 'Label', 'sportspress' ),
|
'title' => __( 'Label', 'sportspress' ),
|
||||||
'sp_key' => __( 'Key', 'sportspress' ),
|
'sp_key' => __( 'Key', 'sportspress' ),
|
||||||
'sp_equation' => __( 'Equation', 'sportspress' ),
|
'sp_equation' => __( 'Equation', 'sportspress' ),
|
||||||
'sp_precision' => __( 'Rounding', 'sportspress' ),
|
'sp_precision' => __( 'Decimal Places', 'sportspress' ),
|
||||||
'sp_order' => __( 'Sort Order', 'sportspress' ),
|
'sp_order' => __( 'Sort Order', 'sportspress' ),
|
||||||
'sp_description' => __( 'Description', 'sportspress' ),
|
'sp_description' => __( 'Description', 'sportspress' ),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT {
|
|||||||
'title' => __( 'Label', 'sportspress' ),
|
'title' => __( 'Label', 'sportspress' ),
|
||||||
'sp_key' => __( 'Key', 'sportspress' ),
|
'sp_key' => __( 'Key', 'sportspress' ),
|
||||||
'sp_equation' => __( 'Equation', 'sportspress' ),
|
'sp_equation' => __( 'Equation', 'sportspress' ),
|
||||||
'sp_precision' => __( 'Rounding', 'sportspress' ),
|
'sp_precision' => __( 'Decimal Places', 'sportspress' ),
|
||||||
'sp_description' => __( 'Description', 'sportspress' ),
|
'sp_description' => __( 'Description', 'sportspress' ),
|
||||||
);
|
);
|
||||||
return apply_filters( 'sportspress_statistic_admin_columns', $columns );
|
return apply_filters( 'sportspress_statistic_admin_columns', $columns );
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class SP_Meta_Box_Column_Details extends SP_Meta_Box_Config {
|
|||||||
<input name="sp_default_key" type="hidden" id="sp_default_key" value="<?php echo $post->post_name; ?>">
|
<input name="sp_default_key" type="hidden" id="sp_default_key" value="<?php echo $post->post_name; ?>">
|
||||||
<input name="sp_key" type="text" id="sp_key" value="<?php echo $post->post_name; ?>">
|
<input name="sp_key" type="text" id="sp_key" value="<?php echo $post->post_name; ?>">
|
||||||
</p>
|
</p>
|
||||||
<p><strong><?php _e( 'Rounding', 'sportspress' ); ?></strong></p>
|
<p><strong><?php _e( 'Decimal Places', 'sportspress' ); ?></strong></p>
|
||||||
<p class="sp-precision-selector">
|
<p class="sp-precision-selector">
|
||||||
<input name="sp_precision" type="text" size="4" id="sp_precision" value="<?php echo $precision; ?>" placeholder="0">
|
<input name="sp_precision" type="text" size="4" id="sp_precision" value="<?php echo $precision; ?>" placeholder="0">
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class SP_Meta_Box_Statistic_Details extends SP_Meta_Box_Config {
|
|||||||
<input name="sp_default_key" type="hidden" id="sp_default_key" value="<?php echo $post->post_name; ?>">
|
<input name="sp_default_key" type="hidden" id="sp_default_key" value="<?php echo $post->post_name; ?>">
|
||||||
<input name="sp_key" type="text" id="sp_key" value="<?php echo $post->post_name; ?>">
|
<input name="sp_key" type="text" id="sp_key" value="<?php echo $post->post_name; ?>">
|
||||||
</p>
|
</p>
|
||||||
<p><strong><?php _e( 'Rounding', 'sportspress' ); ?></strong></p>
|
<p><strong><?php _e( 'Decimal Places', 'sportspress' ); ?></strong></p>
|
||||||
<p class="sp-precision-selector">
|
<p class="sp-precision-selector">
|
||||||
<input name="sp_precision" type="text" size="4" id="sp_precision" value="<?php echo $precision; ?>" placeholder="0">
|
<input name="sp_precision" type="text" size="4" id="sp_precision" value="<?php echo $precision; ?>" placeholder="0">
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user