| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
/** |
| 6 |
* QuadLayers WP Plugin Suggestions |
| 7 |
* |
| 8 |
* @package quadlayers/wp-plugin-suggestions |
| 9 |
* @author QuadLayers |
| 10 |
* @link https://github.com/quadlayers/wp-plugin-suggestions |
| 11 |
* @copyright Copyright (c) 2023 |
| 12 |
* @license GPL-3.0 |
| 13 |
*/ |
| 14 |
|
| 15 |
?> |
| 16 |
|
| 17 |
<style> |
| 18 |
.wrap.wrap { |
| 19 |
position: relative; |
| 20 |
margin: 25px 40px 0 20px; |
| 21 |
max-width: 1200px; |
| 22 |
} |
| 23 |
.wp-badge.wp-badge { |
| 24 |
background: #006bff url(<?php echo esc_url( plugins_url( '../../assets/img/logo.jpg', __FILE__ ) ); ?>) no-repeat; |
| 25 |
background-position: top center; |
| 26 |
background-size: 130px 130px; |
| 27 |
color: #fff; |
| 28 |
font-size: 14px; |
| 29 |
text-align: center; |
| 30 |
font-weight: 600; |
| 31 |
margin: 5px 0 0; |
| 32 |
padding-top: 120px; |
| 33 |
height: 40px; |
| 34 |
display: inline-block; |
| 35 |
width: 140px; |
| 36 |
} |
| 37 |
@media screen and (max-width: 2299px) and (min-width: 1600px) { |
| 38 |
#the-list { |
| 39 |
display: flex; |
| 40 |
flex-wrap: wrap; |
| 41 |
} |
| 42 |
.plugin-card { |
| 43 |
margin: 8px !important; |
| 44 |
width: calc(50% - 4px - 16px) !important; |
| 45 |
} |
| 46 |
} |
| 47 |
</style> |
| 48 |
<div class="wrap about-wrap full-width-layout"> |
| 49 |
<h1> |
| 50 |
<?php esc_html_e( 'Suggestions', 'wp-plugin-suggestions' ); ?> |
| 51 |
</h1> |
| 52 |
<p class="about-text"> |
| 53 |
<?php esc_html_e( 'Thanks for using our product! We recommend these extensions that will add new features to stand out your business and improve your sales.', 'wp-plugin-suggestions' ); ?> |
| 54 |
</p> |
| 55 |
<p class="about-text"> |
| 56 |
<?php |
| 57 |
if ( ! empty( $this->plugin_data['promote_links'] ) ) { |
| 58 |
$promote_links = $this->plugin_data['promote_links']; |
| 59 |
foreach ( $promote_links as $index => $link ) { |
| 60 |
if ( $index > 0 ) { |
| 61 |
echo ' | '; |
| 62 |
} |
| 63 |
$link = wp_parse_args( |
| 64 |
$link, |
| 65 |
array( |
| 66 |
'text' => '', |
| 67 |
'url' => '', |
| 68 |
'target' => '_blank', |
| 69 |
) |
| 70 |
); |
| 71 |
echo sprintf( '<a href="%s" target="%s">%s</a>', esc_url( $link['url'] ), esc_attr( $link['target'] ), esc_html( $link['text'] ) ); |
| 72 |
} |
| 73 |
} |
| 74 |
?> |
| 75 |
</p> |
| 76 |
<?php |
| 77 |
printf( |
| 78 |
'<a href="%s" target="_blank"> |
| 79 |
<div class="wp-badge">%s</div> |
| 80 |
</a>', |
| 81 |
'https://quadlayers.com/?utm_source=WordPress&utm_medium=page&utm_campaign=suggestions', |
| 82 |
esc_html__( 'QuadLayers', 'wp-plugin-suggestions' ) |
| 83 |
); |
| 84 |
?> |
| 85 |
</div> |
| 86 |
<div class="wrap"> |
| 87 |
<?php |
| 88 |
$wp_list_table->prepare_items(); |
| 89 |
?> |
| 90 |
<form id="plugin-filter" method="post" class="importer-item"> |
| 91 |
<?php $wp_list_table->display(); ?> |
| 92 |
</form> |
| 93 |
</div> |
| 94 |
|