| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly! |
| 4 |
} |
| 5 |
|
| 6 |
if ( ! class_exists( 'WPSC_Other_Plugins' ) ) : |
| 7 |
|
| 8 |
final class WPSC_Other_Plugins { |
| 9 |
|
| 10 |
/** |
| 11 |
* Initialize this class |
| 12 |
* |
| 13 |
* @return void |
| 14 |
*/ |
| 15 |
public static function init() {} |
| 16 |
|
| 17 |
/** |
| 18 |
* List of all supportcandy add-ons |
| 19 |
* |
| 20 |
* @return void |
| 21 |
*/ |
| 22 |
public static function layout() { |
| 23 |
?> |
| 24 |
<style> |
| 25 |
:root { |
| 26 |
--primary-color: #2271b1; |
| 27 |
--text-main: #111827; |
| 28 |
--text-muted: #4b5563; |
| 29 |
--bg-light: #f9fafb; |
| 30 |
} |
| 31 |
|
| 32 |
body { |
| 33 |
background-color: var(--bg-light); |
| 34 |
margin: 0; |
| 35 |
font-family: 'Inter', -apple-system, sans-serif; |
| 36 |
} |
| 37 |
|
| 38 |
.plugin-showcase { |
| 39 |
max-width: 1200px; |
| 40 |
margin: 0 auto; |
| 41 |
padding: 20px 20px; |
| 42 |
} |
| 43 |
|
| 44 |
/* Header & Footer Styling */ |
| 45 |
.showcase-header, .showcase-footer { |
| 46 |
text-align: center; |
| 47 |
margin-bottom: 50px; |
| 48 |
} |
| 49 |
|
| 50 |
.showcase-footer { |
| 51 |
margin-top: 50px; |
| 52 |
border-top: 1px solid #e5e7eb; |
| 53 |
padding-top: 10px; |
| 54 |
} |
| 55 |
|
| 56 |
.showcase-header h2, .showcase-footer h3 { |
| 57 |
font-size: 2rem; |
| 58 |
color: var(--text-main); |
| 59 |
margin-bottom: 15px; |
| 60 |
line-height: 2rem; |
| 61 |
} |
| 62 |
|
| 63 |
.showcase-header p, .showcase-footer p { |
| 64 |
color: var(--text-muted); |
| 65 |
max-width: 700px; |
| 66 |
margin: 0 auto; |
| 67 |
line-height: 1.6; |
| 68 |
} |
| 69 |
|
| 70 |
/* Grid Logic: Forces 3 columns */ |
| 71 |
.grid-container { |
| 72 |
display: grid; |
| 73 |
grid-template-columns: repeat(3, 1fr); |
| 74 |
gap: 40px; |
| 75 |
} |
| 76 |
|
| 77 |
/* Card Styling */ |
| 78 |
.modern-card { |
| 79 |
background: #ffffff; |
| 80 |
border-radius: 12px; |
| 81 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); |
| 82 |
overflow: hidden; |
| 83 |
display: flex; |
| 84 |
flex-direction: column; |
| 85 |
transition: transform 0.3s ease; |
| 86 |
} |
| 87 |
|
| 88 |
.image-wrapper { |
| 89 |
height: 180px; |
| 90 |
background: #eee; |
| 91 |
} |
| 92 |
|
| 93 |
.card-img { |
| 94 |
width: 100%; |
| 95 |
height: 100%; |
| 96 |
object-fit: cover; |
| 97 |
} |
| 98 |
|
| 99 |
.card-body { |
| 100 |
padding: 24px; |
| 101 |
display: flex; |
| 102 |
flex-direction: column; |
| 103 |
flex-grow: 1; |
| 104 |
} |
| 105 |
|
| 106 |
.card-body h3 { |
| 107 |
margin: 0 0 12px 0; |
| 108 |
line-height: 1.25rem; |
| 109 |
} |
| 110 |
|
| 111 |
.card-body p { |
| 112 |
font-size: 0.95rem; |
| 113 |
color: var(--text-muted); |
| 114 |
line-height: 1.5; |
| 115 |
margin-bottom: 20px; |
| 116 |
/* Keeps text between 3-5 lines */ |
| 117 |
display: -webkit-box; |
| 118 |
-webkit-line-clamp: 4; |
| 119 |
-webkit-box-orient: vertical; |
| 120 |
overflow: hidden; |
| 121 |
} |
| 122 |
|
| 123 |
.card-link { |
| 124 |
margin-top: auto; |
| 125 |
background: var(--primary-color); |
| 126 |
color: white; |
| 127 |
text-decoration: none; |
| 128 |
text-align: center; |
| 129 |
padding: 12px; |
| 130 |
border-radius: 6px; |
| 131 |
font-weight: 600; |
| 132 |
font-size: 0.9rem; |
| 133 |
border: 1px solid var(--primary-color); |
| 134 |
} |
| 135 |
|
| 136 |
.card-link:hover { |
| 137 |
background: var(--bg-light); |
| 138 |
} |
| 139 |
|
| 140 |
/* Responsive Adjustments */ |
| 141 |
@media (max-width: 992px) { |
| 142 |
.grid-container { |
| 143 |
grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */ |
| 144 |
} |
| 145 |
} |
| 146 |
|
| 147 |
@media (max-width: 650px) { |
| 148 |
.grid-container { |
| 149 |
grid-template-columns: 1fr; /* 1 per row on mobile */ |
| 150 |
} |
| 151 |
} |
| 152 |
</style> |
| 153 |
<section class="plugin-showcase"> |
| 154 |
<header class="showcase-header"> |
| 155 |
<h2>Our other plugins</h2> |
| 156 |
<p>From store enhancements to customer support, our plugins are built to help you sell better, communicate faster, and manage your business more efficiently.</p> |
| 157 |
</header> |
| 158 |
|
| 159 |
<div class="grid-container"> |
| 160 |
<div class="modern-card"> |
| 161 |
<div class="image-wrapper"> |
| 162 |
<img src="<?php echo esc_url( WPSC_PLUGIN_URL . 'asset/images/multi-currency-banner.webp' ); ?>" alt="Multi-Currency Plugin" class="card-img"> |
| 163 |
</div> |
| 164 |
<div class="card-body"> |
| 165 |
<h3>Multi Currency Switcher for WooCommerce</h3> |
| 166 |
<p>Offer your customers a seamless multi-currency shopping experience. This plugin automatically updates exchange rates and detects customer location for easy global selling.</p> |
| 167 |
<a href="https://psmplugins.com/multi-currency-for-woocommerce" target="__blank" class="card-link">View Plugin</a> |
| 168 |
</div> |
| 169 |
</div> |
| 170 |
|
| 171 |
<div class="modern-card"> |
| 172 |
<div class="image-wrapper"> |
| 173 |
<img src="<?php echo esc_url( WPSC_PLUGIN_URL . 'asset/images/request-a-quote-banner.webp' ); ?>" alt="Request a Quote Plugin" class="card-img"> |
| 174 |
</div> |
| 175 |
<div class="card-body"> |
| 176 |
<h3>Request a Quote for WooCommerce</h3> |
| 177 |
<p>Turn your store into a negotiation hub. Allow customers to build custom inquiry lists for bulk orders and convert quotes to orders with a single click.</p> |
| 178 |
<a href="https://psmplugins.com/request-a-quote-for-woocommerce/" target="__blank" class="card-link">View Plugin</a> |
| 179 |
</div> |
| 180 |
</div> |
| 181 |
|
| 182 |
<div class="modern-card"> |
| 183 |
<div class="image-wrapper"> |
| 184 |
<img src="<?php echo esc_url( WPSC_PLUGIN_URL . 'asset/images/supportcandy-banner.webp' ); ?>" alt="SupportCandy Plugin" class="card-img"> |
| 185 |
</div> |
| 186 |
<div class="card-body"> |
| 187 |
<h3>SupportCandy – Helpdesk & Customer Support Ticket System</h3> |
| 188 |
<p>Streamline your customer service with a professional helpdesk. Organize, track, and resolve tickets efficiently directly from your website dashboard.</p> |
| 189 |
<a href="https://psmplugins.com/supportcandy/" target="__blank" class="card-link">View Plugin</a> |
| 190 |
</div> |
| 191 |
</div> |
| 192 |
</div> |
| 193 |
</section> |
| 194 |
<?php |
| 195 |
} |
| 196 |
} |
| 197 |
endif; |
| 198 |
|