| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying LP information. |
| 4 |
*/ |
| 5 |
defined( 'ABSPATH' ) || exit(); |
| 6 |
|
| 7 |
if ( ! isset( $plugin_data ) || is_wp_error( $plugin_data ) ) { |
| 8 |
return; |
| 9 |
} |
| 10 |
?> |
| 11 |
|
| 12 |
<div class="rss-widget"> |
| 13 |
<ul> |
| 14 |
<li> |
| 15 |
<a href="<?php echo esc_url_raw( $plugin_data->homepage ); ?>" class="rsswidget" target="_blank"><?php echo esc_html( $plugin_data->name ); ?></a> |
| 16 |
</li> |
| 17 |
<li> |
| 18 |
<?php |
| 19 |
if ( ! empty( $plugin_data->downloaded ) ) { |
| 20 |
printf( '<span><strong>%s</strong></span>: %s', esc_html__( 'Downloaded', 'learnpress' ), number_format( $plugin_data->downloaded ) ); |
| 21 |
} |
| 22 |
?> |
| 23 |
<?php printf( '<span><strong>%s</strong></span>: %s', esc_html__( 'Active Installation', 'learnpress' ), number_format( $plugin_data->active_installs ) ); ?> |
| 24 |
</li> |
| 25 |
</ul> |
| 26 |
</div> |
| 27 |
<div class="rss-widget"> |
| 28 |
<ul> |
| 29 |
<li> |
| 30 |
<div class="rssSummary"> |
| 31 |
<?php echo esc_html( $plugin_data->short_description ); ?> |
| 32 |
</div> |
| 33 |
</li> |
| 34 |
</ul> |
| 35 |
</div> |
| 36 |
<p><?php printf( '<strong>%s</strong>: %s', esc_html__( 'Published', 'learnpress' ), date_i18n( get_option( 'date_format' ), strtotime( $plugin_data->added ) ) ); ?></p> |
| 37 |
<p><?php printf( '<strong>%s</strong>: %s', esc_html__( 'Updated', 'learnpress' ), date_i18n( get_option( 'date_format' ), strtotime( $plugin_data->last_updated ) ) ); ?></p> |
| 38 |
<p><?php printf( '<strong>%s</strong>: %s', esc_html__( 'Current Version', 'learnpress' ), $plugin_data->version ); ?></p> |
| 39 |
|