Skip to content

Commit

Permalink
Improvement Save Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrshaddarzi committed Aug 24, 2019
1 parent b85ca29 commit 87773c3
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 222 deletions.
8 changes: 4 additions & 4 deletions admin/class-wp-parsaspace-admin-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public function meta_box_static_media_cluod()
$number_all = $helper->get_count_attachment();
$in_parsaspace = $helper->get_count_attachment('parsaspace');
$in_host = $number_all - $in_parsaspace;
$parspace_percentege = round(($in_parsaspace / $number_all) * 100 );
$inhost_percentege = round(100 - $parspace_percentege );
$parspace_percentege = @round(($in_parsaspace / $number_all) * 100 );
$inhost_percentege = @round(100 - $parspace_percentege );

?>
<canvas id="myChart_doughnut" height="100vh" width="90vw"></canvas>
Expand Down Expand Up @@ -189,8 +189,8 @@ public function meta_box_review()
<tr>
<th><label for="token_api">API Token</label></th>
<td><input type="text" name="token_api" id="token_api" value="'.$opt['api_token'].'" autocomplete="off" class="regular-text text-left ltr" readonly>
<span><i class="fa fa-pencil i-pen" id="change_token"></i></span>
<td><input type="text" name="token_api" id="token_api" value="'.$opt['api_token'].'" autocomplete="off" class="regular-text text-left ltr" '.( isset($_GET['change_inf']) ===true ? '' : 'readonly').'>
<!--<span><i class="fa fa-pencil i-pen" id="change_token"></i></span>-->
</td>
</tr>
Expand Down
Loading

0 comments on commit 87773c3

Please sign in to comment.