Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/res/training/result_files.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + if ( ! defined( 'ABSPATH' ) ) exit;
3 + ?>
4 + <div class="aiomatic-modal-content">
5 + <?php
6 + if(isset($aiomatic_data) && is_array($aiomatic_data) && count($aiomatic_data)):
7 + ?>
8 + <table class="wp-list-table widefat fixed striped table-view-list comments">
9 + <thead>
10 + <tr>
11 + <th>ID</th>
12 + <th>Purpose</th>
13 + <th>Created At</th>
14 + <th>Filename</th>
15 + <th>Status</th>
16 + <th>Download</th>
17 + </tr>
18 + </thead>
19 + <tbody>
20 + <?php
21 + foreach($aiomatic_data as $item)
22 + {
23 + if(is_object($item))
24 + {
25 + ?>
26 + <tr>
27 + <td><?php echo esc_html($item->id)?></td>
28 + <td><?php echo esc_html($item->purpose)?></td>
29 + <td><?php echo esc_html(date('Y-m-d H:i:s',$item->created_at))?></td>
30 + <td><?php echo esc_html($item->filename)?></td>
31 + <td><?php echo esc_html($item->status)?></td>
32 + <td><a download="download" href="<?php echo admin_url('admin-ajax.php?action=aiomatic_download&id='.$item->id)?>">Download</a></td>
33 + </tr>
34 + <?php
35 + }
36 + else
37 + {
38 + ?>
39 + <tr>
40 + <td>-</td>
41 + <td>-</td>
42 + <td>-</td>
43 + <td><?php echo esc_html(print_r($item, true))?></td>
44 + <td>-</td>
45 + <td>-</td>
46 + </tr>
47 + <?php
48 + }
49 + }
50 + ?>
51 + </tbody>
52 + </table>
53 + <?php
54 + else:
55 + ?>
56 + Fine-tuning has not yet been completed.
57 + <?php
58 + endif;
59 + ?>
60 + </div>
61 +