| 1 |
<div class="wrap"> |
| 2 |
<h1><?php echo get_admin_page_title(); ?></h1> |
| 3 |
|
| 4 |
<h2><?php _e( 'Plugins', 'pronamic-client' ); ?></h2> |
| 5 |
|
| 6 |
<?php |
| 7 |
|
| 8 |
$pronamic_plugins = pronamic_client_get_plugins(); |
| 9 |
|
| 10 |
if ( empty( $pronamic_plugins ) ) : |
| 11 |
?> |
| 12 |
|
| 13 |
<p> |
| 14 |
<?php _e( 'No Pronamic plugins found.', 'pronamic-client' ); ?> |
| 15 |
</p> |
| 16 |
|
| 17 |
<?php else : ?> |
| 18 |
|
| 19 |
<table class="wp-list-table widefat plugins" cellspacing="0"> |
| 20 |
<thead> |
| 21 |
<tr> |
| 22 |
<th scope="col"><?php _e( 'Plugin', 'pronamic-client' ); ?></th> |
| 23 |
<th scope="col"><?php _e( 'Author', 'pronamic-client' ); ?></th> |
| 24 |
<th scope="col"><?php _e( 'Version', 'pronamic-client' ); ?></th> |
| 25 |
</tr> |
| 26 |
</thead> |
| 27 |
|
| 28 |
<tbody> |
| 29 |
|
| 30 |
<?php foreach ( $pronamic_plugins as $pronamic_plugin ) : ?> |
| 31 |
|
| 32 |
<tr> |
| 33 |
<td> |
| 34 |
<?php echo $pronamic_plugin['Name']; ?> |
| 35 |
</td> |
| 36 |
<td> |
| 37 |
<?php echo $pronamic_plugin['Author']; ?> |
| 38 |
</td> |
| 39 |
<td> |
| 40 |
<?php echo $pronamic_plugin['Version']; ?> |
| 41 |
</td> |
| 42 |
</tr> |
| 43 |
|
| 44 |
<?php endforeach; ?> |
| 45 |
|
| 46 |
</tbody> |
| 47 |
</table> |
| 48 |
|
| 49 |
<?php endif; ?> |
| 50 |
|
| 51 |
<h2><?php _e( 'Themes', 'pronamic-client' ); ?></h2> |
| 52 |
|
| 53 |
<?php |
| 54 |
|
| 55 |
$pronamic_themes = pronamic_client_get_themes(); |
| 56 |
|
| 57 |
if ( empty( $pronamic_themes ) ) : |
| 58 |
?> |
| 59 |
|
| 60 |
<p> |
| 61 |
<?php _e( 'No Pronamic themes found.', 'pronamic-client' ); ?> |
| 62 |
</p> |
| 63 |
|
| 64 |
<?php else : ?> |
| 65 |
|
| 66 |
<table class="wp-list-table widefat themes" cellspacing="0"> |
| 67 |
<thead> |
| 68 |
<tr> |
| 69 |
<th scope="col"><?php _e( 'Theme', 'pronamic-client' ); ?></th> |
| 70 |
<th scope="col"><?php _e( 'Author', 'pronamic-client' ); ?></th> |
| 71 |
<th scope="col"><?php _e( 'Version', 'pronamic-client' ); ?></th> |
| 72 |
</tr> |
| 73 |
</thead> |
| 74 |
|
| 75 |
<tbody> |
| 76 |
|
| 77 |
<?php foreach ( $pronamic_themes as $theme ) : ?> |
| 78 |
|
| 79 |
<tr> |
| 80 |
<td> |
| 81 |
<?php echo $theme['Name']; ?> |
| 82 |
</td> |
| 83 |
<td> |
| 84 |
<?php echo $theme['Author']; ?> |
| 85 |
</td> |
| 86 |
<td> |
| 87 |
<?php echo $theme['Version']; ?> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
|
| 91 |
<?php endforeach; ?> |
| 92 |
|
| 93 |
</tbody> |
| 94 |
</table> |
| 95 |
|
| 96 |
<?php endif; ?> |
| 97 |
</div> |
| 98 |
|