Skip to content

Commit 59eb76e

Browse files
authored
Merge pull request #44 from ahanzek/master
#43 Fixing stats rows not showing data
2 parents 7dfd50b + f8974cb commit 59eb76e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

functions/admin-page.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,28 +116,28 @@ function codeable_transcactions_stats_cb() {
116116

117117
<div class="box user-info">
118118
<div class="avatar">
119-
<img class="round" src="<?php echo $account_details['avatar']['large_url']; ?>"/>
120-
<div class="rating" data-score="<?php echo $account_details['stats']['avg_rating']; ?>"></div>
119+
<img class="round" src="<?php echo $account_details['user']['avatar']['large_url']; ?>"/>
120+
<div class="rating" data-score="<?php echo $account_details['user']['stats']['avg_rating']; ?>"></div>
121121
</div>
122122
<div class="details">
123123
<div class="codeable-logo">
124124
<?php echo '<img src="' . esc_url( plugins_url( 'assets/images/codeable-full.png', dirname( __FILE__ ) ) ) . '" > '; ?>
125125
</div>
126-
<span class="name"><?php echo $account_details['first_name'] . ' ' . $account_details['last_name']; ?></span>
127-
<span class="label role"><?php echo $account_details['role']; ?></span>
128-
<span class="user-id"><?php echo __( 'ID', 'wpcable' ) . ': <a href="https://app.codeable.io/tasks/new?preferredContractor=' . $account_details['id'] . '" target="_blank" title="' . __( 'Direct hire link', 'wpcable' ) . '">' . $account_details['id']; ?></a></span>
126+
<span class="name"><?php echo $account_details['user']['first_name'] . ' ' . $account_details['user']['last_name']; ?></span>
127+
<span class="label role"><?php echo $account_details['user']['role']; ?></span>
128+
<span class="user-id"><?php echo __( 'ID', 'wpcable' ) . ': <a href="https://app.codeable.io/tasks/new?preferredContractor=' . $account_details['user']['id'] . '" target="_blank" title="' . __( 'Direct hire link', 'wpcable' ) . '">' . $account_details['user']['id']; ?></a></span>
129129
</div>
130130
</div>
131131

132132
<div class="box completed-tasks">
133133
<div class="column_inner">
134134
<div class="maindata">
135135
<div class="label"><?php echo __( 'Completed Tasks', 'wpcable' ); ?></div>
136-
<div class="value"><?php echo $account_details['completed_tasks_count']; ?></div>
136+
<div class="value"><?php echo $account_details['user']['completed_tasks_count']; ?></div>
137137
</div>
138138
<div class="footerdata">
139139
<span class="label"><?php echo __( 'Tasks', 'wpcable' ); ?></span>: <span
140-
class="value"><?php echo $account_details['tasks_count']; ?></span><br/>
140+
class="value"><?php echo $account_details['user']['tasks_count']; ?></span><br/>
141141
<span class="label"><?php echo __( 'Refunded', 'wpcable' ); ?></span>: <span
142142
class="value"><?php echo $clients_data['totals']['refunds']; ?></span>
143143
</div>
@@ -184,7 +184,7 @@ class="value"><?php echo $get_first_task['dateadded']; ?></span>
184184
<span class="label"><?php echo __( 'Month conversion', 'wpcable' ); ?></span>
185185
</td>
186186
<td>
187-
<span class="value"><?php echo $account_details['stats']['estimated_completed_conversion_1_month'] * 100; ?>
187+
<span class="value"><?php echo $account_details['user']['stats']['estimated_completed_conversion_1_month'] * 100; ?>
188188
%</span>
189189
</td>
190190
</tr>
@@ -193,7 +193,7 @@ class="value"><?php echo $get_first_task['dateadded']; ?></span>
193193
<span class="label"><?php echo __( '6 Month conversion', 'wpcable' ); ?></span>
194194
</td>
195195
<td>
196-
<span class="value"><?php echo $account_details['stats']['estimated_completed_conversion_6_months'] * 100; ?>
196+
<span class="value"><?php echo $account_details['user']['stats']['estimated_completed_conversion_6_months'] * 100; ?>
197197
%</span>
198198
</td>
199199
</tr>

0 commit comments

Comments
 (0)