PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.4.7
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.4.7
4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / EmbedPress / Ends / Back / Settings / templates / hub.php
embedpress / EmbedPress / Ends / Back / Settings / templates Last commit date
partials 8 months ago ads.php 7 months ago bnr-img.png 11 months ago calendly.php 9 months ago custom-logo.php 9 months ago dailymotion.php 2 years ago elements.php 7 months ago general.php 6 months ago go-premium.php 7 months ago google-calendar.php 2 years ago hub.php 7 months ago instagram.php 6 months ago license.php 5 years ago main-template.php 8 months ago opensea.php 2 years ago premium.php 2 years ago settings.php 6 months ago shortcode.php 7 months ago soundcloud.php 2 years ago sources.php 9 months ago spotify.php 2 years ago twitch.php 2 years ago vimeo.php 2 years ago wistia.php 2 years ago youtube.php 1 year ago
hub.php
508 lines
1 <?php
2 /*
3 * Hub Settings page
4 * All undefined vars comes from 'render_settings_page' method
5 */
6
7 // Check pro plugin status and license
8
9 // Get comprehensive license information
10 $license_info = \EmbedPress\Includes\Classes\Helper::get_license_info();
11 $is_pro_active = $license_info['is_pro_active'];
12 $license_status = $license_info['license_status'];
13 $license_key = $license_info['license_key'];
14 $is_features_enabled = $license_info['is_features_enabled'];
15 $status_message = $license_info['status_message'];
16
17 $is_banner_dismissed = get_option('embedpress_hub_banner_dismissed', false);
18
19 // Version-based popup logic
20 $stored_version = get_option('embedpress_last_popup_version', '');
21 $current_version = EMBEDPRESS_VERSION;
22 $is_popup_dismissed = false;
23
24 // Show popup if version has changed (for all users)
25 if ($stored_version !== $current_version) {
26 // Reset popup dismissed status for new version
27 $is_popup_dismissed = false;
28 } else {
29 // Check if popup was dismissed for current version
30 $is_popup_dismissed = get_option('embedpress_hub_popup_dismissed', false);
31 }
32
33 // Check if Black Friday banner should be shown (until December 5, 2025)
34 $show_bfriday_banner = (time() < strtotime('2025-12-04 23:59:59'));
35
36 // Get global brand settings
37 $global_brand_settings = get_option(EMBEDPRESS_PLG_NAME . ':global_brand', []);
38 $global_brand_logo_url = isset($global_brand_settings['logo_url']) ? $global_brand_settings['logo_url'] : '';
39 $global_brand_logo_id = isset($global_brand_settings['logo_id']) ? $global_brand_settings['logo_id'] : '';
40
41 // Dynamic username for personalization
42 $current_user = wp_get_current_user();
43 $username = $current_user->display_name ? $current_user->display_name : $current_user->user_login;
44
45
46 ?>
47
48 <section class="embedpress-hub-section">
49 <div class="embedpress-banner-wrapper <?php echo $is_pro_active ? 'pro-plugin-active' : ''; ?>">
50 <?php if (!$is_pro_active): ?>
51 <!-- Free Version Banner -->
52 <div class="embedpress-banner embedpress-banner-active">
53 <div class="embedpress-row">
54 <div class=" embdpress-col-6 ">
55 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-plan-wrapper">
56 <div class="embedpress-left-content">
57 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
58 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
59 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock.svg'); ?>" alt="<?php esc_attr_e('Lock Icon', 'embedpress'); ?>">
60 </div>
61
62 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Free Plan', 'embedpress'); ?></h2>
63 </div>
64 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header">
65 You’re using the free version with access to 250+ sources, basic updates, and forum support. <a href="<?php echo esc_url('https://wpdeveloper.com/in/upgrade-embedpress'); ?>" target="_blank" class="embdpress-hilight-text">View upgrades</a>.
66 </p>
67 </div>
68 <div class="embedpress-right-content">
69 <div class="embedpress-img-wrapper">
70 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/stAllproduct.png'); ?>" alt="<?php esc_attr_e('All Products Image', 'embedpress'); ?>">
71 </div>
72 </div>
73 </div>
74 </div>
75 <div class=" embdpress-col-6 ">
76 <div class="embedpress-flex embedpress-item-center embedpress-brand-wrapper">
77 <div class="embedpress-left-content">
78 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center ">
79 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
80 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
81 </div>
82
83 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
84 </div>
85 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header">
86 Stand out with every embed. Add your logo and drive traffic back to your site. <a href="<?php echo esc_url('https://wpdeveloper.com/in/upgrade-embedpress'); ?>" target="_blank" class="embdpress-hilight-text"> Upgrade now to unlock branding! </a>
87 </p>
88 </div>
89 <div class="embedpress-right-content">
90 <div class="embedpress-preview-area embedpress-height-95">
91 <div class=" embedpress-font-m embedpress-tag">Premium</div>
92 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/img-in.png'); ?>" alt="<?php esc_attr_e('Premium Feature Preview', 'embedpress'); ?>">
93 </div>
94 </div>
95 </div>
96 </div>
97 </div>
98 </div>
99
100
101 <?php elseif ($is_pro_active && !$is_features_enabled): ?>
102 <!-- Pro Installed but License Not Valid (covers empty, invalid, expired, etc.) -->
103 <div class="embedpress-banner embedpress-banner-active">
104 <div class="embedpress-row">
105 <div class=" embdpress-col-6 ">
106 <div class=" embedpress-banner-box embedpress-license-wrapper">
107 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
108 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
109 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-inactive.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
110 </span>
111 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header">
112 <?php echo $license_status === 'expired' ? __('License Expired', 'embedpress') : __('License Required', 'embedpress'); ?>
113 </h2>
114 </span>
115 <h3 class="embedpress-font-l embdpress-hilight-text embedpress-font-family-dmsans embedpress-banner-secondary-header"><?php echo esc_html($username); ?>, you’ve installed EmbedPress Pro!</h3>
116 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header">
117 Activate your license key to enable EmbedPress Pro’s features and to start receiving automatic updates and premium support. </p>
118 <a href="<?php echo esc_url(admin_url('admin.php?page=embedpress&page_type=license')); ?>" class="embedpress-btn embedpress-license-btn embedpress-activate-license-btn ">
119 <span class="embedpress-line-height-0 ">
120 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/key-removebg-preview 1.png'); ?>" alt="<?php esc_attr_e('License Key Icon', 'embedpress'); ?>">
121 </span>
122 <?php echo esc_html__('Activate License', 'embedpress'); ?>
123 </a>
124 </div>
125 </div>
126 <div class=" embdpress-col-6 ">
127 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
128 <div class="embedpress-left-content">
129 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
130 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
131 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
132
133 </div>
134
135 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
136 </div>
137 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header"><?php esc_html_e('Upload your custom logo to apply branding to your embeds. You can override the logo per content type from the individual source settings.', 'embedpress'); ?> </p>
138 <a href="#" class="embedpress-btn embedpress-branding-options-btn <?php echo !$is_features_enabled ? 'disabled' : ''; ?>" <?php echo !$is_features_enabled ? 'style="opacity: 0.5; pointer-events: none;"' : ''; ?>>
139 <?php echo !$is_features_enabled ? __('Branding Options (Disabled)', 'embedpress') : __('Branding Options', 'embedpress'); ?>
140 </a>
141 </div>
142 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
143 <div class="brand-preview-area">
144 <div class="embedpress-preview-area" id="globalBrandPreview">
145 <?php if (!empty($global_brand_logo_url)): ?>
146 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
147 <?php endif; ?>
148 </div>
149 <input type="hidden" id="globalBrandLogoUrl" value="<?php echo esc_attr($global_brand_logo_url); ?>">
150 <input type="hidden" id="globalBrandLogoId" value="<?php echo esc_attr($global_brand_logo_id); ?>">
151 </div>
152 <div class="preview-actions-button">
153 <button type="button" id="globalBrandUploadBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>>
154 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
155 </button>
156 <?php if (!empty($global_brand_logo_url)): ?>
157 <button type="button" id="globalBrandRemoveBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn remove-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>><?php esc_html_e('Remove', 'embedpress'); ?></button>
158 <?php endif; ?>
159 </div>
160 </div>
161 </div>
162 </div>
163 </div>
164 </div>
165
166
167 <?php elseif ($is_pro_active && $license_status === 'expired'): ?>
168 <!-- Pro Active but License Expired -->
169 <div class="embedpress-banner embedpress-banner-active">
170 <div class="embedpress-row">
171 <div class=" embdpress-col-6 ">
172 <div class=" embedpress-banner-box embedpress-license-wrapper">
173 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
174 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
175 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-inactive.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
176 </span>
177 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('License Key', 'embedpress'); ?></h2>
178 </span>
179 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header error-msg">
180 You‘re currently receiving regular plugin updates and support.</p>
181 <div class="embedpress-license-input-wrapper ">
182 <input type="text" class="embedpress-license-input " value="<?php echo esc_attr($license_key); ?>" disabled>
183 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-active-btn ">
184 <span class="embedpress-line-height-0">
185 <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
186 <path d="M8.917 0.916077L3.66699 7.99941L0.916992 5.91608L0.166992 6.91608L3.91699 9.74941L9.91699 1.66608L8.917 0.916077Z" />
187 </svg>
188 </span>
189 <?php esc_html_e('Active', 'embedpress'); ?>
190 </button>
191 </div>
192
193 <!-- Add the class embedpress-manage-license-btn to the target button (or appropriate element).
194 Update the button text/content to: "Manage License".
195 Add the class embedpress-banner-active to the wrapper element with class embedpress-license-input-wrapper.
196 If the license is enabled/valid, also add this class to the button: embedpress-manage-license-btn-enable. -->
197
198 <a href="<?php echo esc_url('https://store.wpdeveloper.com'); ?>" target="_blank" class="embedpress-btn embedpress-license-btn embedpress-manages-license-btn ">
199 <span class="embedpress-line-height-0 ">
200 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/key-removebg-preview 2.svg'); ?>" alt="<?php esc_attr_e('License Key Icon', 'embedpress'); ?>">
201 </span>
202 <?php esc_html_e('Manage License', 'embedpress'); ?>
203 </a>
204 </div>
205 </div>
206 <div class=" embdpress-col-6 ">
207 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
208 <div class="embedpress-left-content">
209 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
210 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
211 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
212 </div>
213
214 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
215 </div>
216 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header"><?php esc_html_e('Upload your custom logo to apply branding to your embeds. You can override the logo per content type from the individual source settings.', 'embedpress'); ?> </p>
217 <a href="#" class="embedpress-btn embedpress-branding-options-btn"><?php esc_html_e('Branding Options', 'embedpress'); ?></a>
218 </div>
219
220 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
221 <div class="brand-preview-area">
222 <div class="embedpress-preview-area" id="globalBrandPreviewExpired">
223 <?php if (!empty($global_brand_logo_url)): ?>
224 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
225 <?php endif; ?>
226 </div>
227 <input type="hidden" id="globalBrandLogoUrlExpired" value="<?php echo esc_attr($global_brand_logo_url); ?>">
228 <input type="hidden" id="globalBrandLogoIdExpired" value="<?php echo esc_attr($global_brand_logo_id); ?>">
229 </div>
230 <div class="preview-actions-button">
231 <button type="button" id="globalBrandUploadBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>>
232 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
233 </button>
234 <?php if (!empty($global_brand_logo_url)): ?>
235 <button type="button" id="globalBrandRemoveBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn remove-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>><?php esc_html_e('Remove', 'embedpress'); ?></button>
236 <?php endif; ?>
237 </div>
238 </div>
239 </div>
240 </div>
241 </div>
242 </div>
243
244 <?php elseif ($is_pro_active && $license_status === 'valid'): ?>
245 <!-- Pro Active with Valid License -->
246 <div class="embedpress-banner embedpress-banner-active">
247 <div class="embedpress-row">
248 <div class=" embdpress-col-6 ">
249 <div class=" embedpress-banner-box embedpress-license-wrapper">
250 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
251 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
252 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-active.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
253 </span>
254 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('License Key', 'embedpress'); ?></h2>
255 </span>
256 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header valid-msg">
257 You‘re currently receiving regular plugin updates and support.</p>
258 <div class="embedpress-license-input-wrapper ">
259 <input type="text" class="embedpress-license-input " value="<?php echo esc_attr($license_key); ?>" disabled>
260 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-active-btn">
261 <span class="embedpress-line-height-0">
262 <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
263 <path d="M8.917 0.916077L3.66699 7.99941L0.916992 5.91608L0.166992 6.91608L3.91699 9.74941L9.91699 1.66608L8.917 0.916077Z" />
264 </svg>
265 </span>
266 <?php esc_html_e('Active', 'embedpress'); ?>
267 </button>
268 </div>
269
270 <!-- Add the class embedpress-manage-license-btn to the target button (or appropriate element).
271 Update the button text/content to: "Manage License".
272 Add the class embedpress-banner-active to the wrapper element with class embedpress-license-input-wrapper.
273 If the license is enabled/valid, also add this class to the button: embedpress-manage-license-btn-enable. -->
274
275 <a href="<?php echo esc_url(admin_url('admin.php?page=embedpress&page_type=license')); ?>" class="embedpress-btn embedpress-license-btn embedpress-manages-license-btn ">
276 <span class="embedpress-line-height-0 ">
277 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/key-removebg-preview 2.svg'); ?>" alt="<?php esc_attr_e('License Key Icon', 'embedpress'); ?>">
278 </span>
279 <?php esc_html_e('Manage License', 'embedpress'); ?>
280 </a>
281 </div>
282 </div>
283 <div class=" embdpress-col-6 ">
284 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
285 <div class="embedpress-left-content">
286 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
287 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
288 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
289 </div>
290
291 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
292 </div>
293 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header"><?php esc_html_e('Upload your custom logo to apply branding to your embeds. You can override the logo per content type from the individual source settings.', 'embedpress'); ?> </p>
294 <a href="<?php echo esc_url(admin_url('admin.php?page=embedpress&page_type=custom-logo')); ?>" class="embedpress-btn embedpress-branding-options-btn"><?php esc_html_e('Branding Options', 'embedpress'); ?></a>
295 </div>
296 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
297 <div class="brand-preview-area">
298 <div class="embedpress-preview-area" id="globalBrandPreview">
299 <?php if (!empty($global_brand_logo_url)): ?>
300 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
301 <?php endif; ?>
302 </div>
303 <input type="hidden" id="globalBrandLogoUrlValid" value="<?php echo esc_attr($global_brand_logo_url); ?>">
304 <input type="hidden" id="globalBrandLogoIdValid" value="<?php echo esc_attr($global_brand_logo_id); ?>">
305 </div>
306 <div class="preview-actions-button">
307 <button type="button" id="globalBrandUploadBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>>
308 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
309 </button>
310 <?php if (!empty($global_brand_logo_url)): ?>
311 <button type="button" id="globalBrandRemoveBtn" class="embedpress-font-sm embedpress-font-family-dmsans embedpress-upload-btn remove-btn" <?php echo !$is_features_enabled ? 'disabled style="opacity: 0.5;"' : ''; ?>><?php esc_html_e('Remove', 'embedpress'); ?></button>
312 <?php endif; ?>
313 </div>
314 </div>
315 </div>
316 </div>
317 </div>
318 </div>
319 <?php endif; ?>
320 </div>
321
322
323 <?php if (!$is_popup_dismissed && !$is_pro_active): ?>
324 <div class="embedpress-pop-up">
325 <div class="embedpress-flex embedpress-pop-up-content">
326 <div class="pop-up-left-content">
327 <?php if ($show_bfriday_banner): ?>
328 <div class="bfriday-deal-campaign">
329 <a href="https://embedpress.com/in/bfcm2025-unlock-premium-features" target="_blank">
330 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/bfcm2025-banner.png'); ?>" alt="Black Friday Sale">
331 </a>
332 </div>
333 <?php endif; ?>
334 <span class="premium-tag">Premium</span>
335 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-pop-up-header">Unlock More Power in Every Embed</h2>
336 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-pop-up-sub-header">
337 Take full control of your embeds, Customize every detail, protect your<br> content, and unlock monetization features to grow your business.</span>
338 </p>
339 <ul class="embedpress-premium-features-list">
340 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Add your own logo</li>
341 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Lock content for members</li>
342 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Apply lazy loading</li>
343 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Control PDF usage</li>
344 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Control video playback</li>
345 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Show custom ads in embeds</li>
346 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item">Advanced analytics</li>
347 </ul>
348 <a target="_blank" href="<?php echo esc_url('https://embedpress.com/in/unlock-premium-features'); ?>" class="embedpress-btn embedpress-btn-primary embedpress-pop-up-btn">
349 <span class="embedpress-line-height-0 embedpress-mr-4 pop-up-btn-icon">
350 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/crown.png'); ?>" alt="<?php esc_attr_e('Premium Crown Icon', 'embedpress'); ?>">
351 </span>
352 <span><?php esc_html_e('Unlock Premium Features', 'embedpress'); ?></span>
353 </a>
354 <div class="embedpress-font-m embedpress-font-family-dmsans embedpress-flex embedpress-item-center embedpress-guarantee "><span class="embedpress-line-height-0 embedpress-mr-4">
355 <svg width="11" height="13" viewBox="0 0 11 13" fill="none" xmlns="http://www.w3.org/2000/svg">
356 <path d="M10.9477 3.34726C10.9411 2.99628 10.9347 2.66471 10.9347 2.34394C10.9347 2.09265 10.731 1.88891 10.4797 1.88891C8.53363 1.88891 7.05198 1.32965 5.81696 0.128843C5.64029 -0.0429779 5.35914 -0.0429172 5.18252 0.128843C3.94762 1.32965 2.46622 1.88891 0.520311 1.88891C0.269012 1.88891 0.065278 2.09265 0.065278 2.34394C0.065278 2.66477 0.0589682 2.99646 0.0522337 3.34751C-0.0101362 6.6138 -0.0955608 11.0871 5.3507 12.9749C5.399 12.9917 5.44935 13 5.49971 13C5.55007 13 5.60049 12.9917 5.64872 12.9749C11.0954 11.0871 11.0101 6.61361 10.9477 3.34726ZM5.49977 12.0621C0.828885 10.3653 0.899506 6.64832 0.962179 3.36486C0.965941 3.1678 0.969581 2.97681 0.972129 2.78957C2.79469 2.71264 4.25213 2.16035 5.49977 1.07349C6.74753 2.16035 8.20522 2.7127 10.0279 2.78957C10.0304 2.97674 10.0341 3.16762 10.0378 3.36455C10.1005 6.64814 10.171 10.3653 5.49977 12.0621Z" fill="#666666" />
357 <path d="M7.06673 4.91926L4.8705 7.11537L3.93331 6.17819C3.75561 6.00054 3.46748 6.00054 3.28983 6.17819C3.11213 6.35595 3.11213 6.64402 3.28983 6.82172L4.54876 8.08065C4.63758 8.16947 4.75407 8.21388 4.8705 8.21388C4.98693 8.21388 5.10342 8.16947 5.19224 8.08065L7.71015 5.5628C7.88792 5.38509 7.88792 5.09697 7.71021 4.91932C7.53256 4.74161 7.24444 4.74155 7.06673 4.91926Z" fill="#666666" />
358 </svg>
359
360 </span><span><?php esc_html_e('No risk 14-day money-back guarantee included.', 'embedpress'); ?></span></div>
361
362 </div>
363 <div class="pop-up-right-content">
364 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-cancel-button"><?php esc_html_e('Dismiss', 'embedpress'); ?></button>
365 <div class="embedpress-img-wrapper">
366 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/right-content-img.png'); ?>" alt="<?php esc_attr_e('Premium Features Image', 'embedpress'); ?>">
367 </div>
368 <div class="embedress-text-wrapper">
369 <p class="embedpress-font-m embedpress-font-family-dmsans">Premium users get full branding, control, and monetization</p>
370 </div>
371 </div>
372 </div>
373 </div>
374 <?php endif; ?>
375
376 <!-- Popular Content Section (always visible) -->
377 <div class="embedpress-popular-content-wrapper">
378 <div class="embedpress-popular-content-header">
379 <div class="embedpress-flex embedpress-item-center embedpress-justify-between">
380 <span class="embedpress-flex embedpress-item-center">
381 <span class="embedpress-line-height-0 embedpress-mr-4">
382 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/source-control 1.svg'); ?>" alt="<?php esc_attr_e('Source Control Icon', 'embedpress'); ?>">
383 </span>
384 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-popular-types-header"><?php esc_html_e('Most Popular Content Types', 'embedpress'); ?></h2>
385 </span>
386 <a href="<?php echo esc_url(admin_url('admin.php?page=embedpress&page_type=sources')); ?>" class="embedpress-font-m embedpress-font-family-dmsans embdpress-underline"><?php esc_html_e('Discover all sources', 'embedpress'); ?></a>
387 </div>
388 </div>
389
390 <?php
391 // Array of most popular sources based on sources.php with exact icon paths
392 $icon_src = EMBEDPRESS_URL_ASSETS . "images/sources/icons";
393
394 $popular_sources = [
395 // PDFs & Docs
396 'docs' => [
397 'title' => 'PDFs & Docs',
398 'icon' => EMBEDPRESS_URL_ASSETS . 'images/icons/docs-icon 1.png',
399 'sources' => [
400 ['name' => 'PDF', 'provider' => 'pdf', 'icon' => $icon_src . '/pdf.svg', 'settings_url' => '', 'doc_url' => 'https://wpdeveloper.com/embed-pdf-documents-wordpress', 'arival_status' => 'popular'],
401 ['name' => 'Google Docs', 'provider' => 'google-docs', 'icon' => $icon_src . '/google-docs.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-google-docs-wordpress/', 'arival_status' => 'popular'],
402 ['name' => 'Google Slides', 'provider' => 'google-slides', 'icon' => $icon_src . '/google-slides.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-google-slides-wordpress/', 'arival_status' => 'popular'],
403
404 ]
405 ],
406 // Video Sources
407 'video' => [
408 'title' => 'Audio & Video',
409 'icon' => EMBEDPRESS_URL_ASSETS . 'images/sources/audio-video.svg',
410 'sources' => [
411 ['name' => 'YouTube', 'provider' => 'youtube', 'icon' => $icon_src . '/youtube.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=youtube')), 'doc_url' => 'https://embedpress.com/docs/embed-youtube-wordpress/', 'arival_status' => 'popular'],
412 ['name' => 'Vimeo', 'provider' => 'vimeo', 'icon' => $icon_src . '/vimeo.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=vimeo')), 'doc_url' => 'https://embedpress.com/docs/embed-vimeo-videos-wordpress/', 'arival_status' => 'popular'],
413 ['name' => 'Wistia', 'provider' => 'wistia', 'icon' => $icon_src . '/wistia.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=wistia')), 'doc_url' => 'https://embedpress.com/docs/embed-wistia-videos-wordpress/', 'arival_status' => 'popular'],
414 ['name' => 'Spotify', 'provider' => 'spotify', 'icon' => $icon_src . '/spotify.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=spotify')), 'doc_url' => 'https://embedpress.com/docs/embed-spotify-audios-wordpress/', 'arival_status' => 'popular'],
415 ['name' => 'SoundCloud', 'provider' => 'soundcloud', 'icon' => $icon_src . '/soundcloud.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=soundcloud')), 'doc_url' => 'https://embedpress.com/docs/embed-soundcloud-audio-wordpress/'],
416 ]
417 ],
418 // Social Media
419 'social' => [
420 'title' => 'Social Media',
421 'icon' => EMBEDPRESS_URL_ASSETS . 'images/sources/social.svg',
422 'sources' => [
423 ['name' => 'Facebook', 'provider' => 'facebook', 'icon' => $icon_src . '/facebook.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-facebook-posts-wordpress/', 'arival_status' => 'popular'],
424 ['name' => 'Facebook Live', 'provider' => 'facebook-live', 'icon' => $icon_src . '/facebooklive.png', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-facebook-posts-wordpress/', 'arival_status' => 'popular'],
425 ['name' => 'Instagram', 'provider' => 'instagram', 'icon' => $icon_src . '/instagram.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=instagram')), 'doc_url' => 'https://embedpress.com/docs/embed-instagram-wordpress/', 'arival_status' => 'popular'],
426 ['name' => 'OpenSea NFT', 'provider' => 'opensea', 'icon' => $icon_src . '/opensea.svg', 'settings_url' => esc_url(admin_url('admin.php?page=embedpress&page_type=opensea')), 'doc_url' => 'https://embedpress.com/docs/embed-opensea-nft-collections-wordpress/', 'arival_status' => 'popular'],
427 ]
428 ],
429 // Audio & Music
430 'audio' => [
431 'title' => 'Others',
432 'icon' => EMBEDPRESS_URL_ASSETS . 'images//sources/automations.svg',
433 'sources' => [
434 ['name' => 'Google Photos', 'provider' => 'google-photos', 'icon' => $icon_src . '/google-photos.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-google-photos-in-wordpress/', 'arival_status' => 'popular'],
435 ['name' => 'Google Maps', 'provider' => 'google-maps', 'icon' => $icon_src . '/map.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-google-maps-wordpress/', 'arival_status' => 'popular'],
436 ]
437 ]
438 ];
439 ?>
440
441 <div class="embedpress-popular-content-body">
442 <div class="embedpress-row">
443 <?php foreach ($popular_sources as $category_key => $category): ?>
444 <div class="embdpress-col-3">
445 <div class="embedpress-popular-content-cards">
446 <div class="embedpress-flex embedpress-item-center embedpress-card-header-wrapper">
447 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon-l">
448 <img src="<?php echo esc_url($category['icon']); ?>" alt="<?php echo esc_attr($category['title']); ?>">
449 </span>
450 <h3 class="embedpress-font-m embedpress-content-card-header"><?php echo esc_html($category['title']); ?></h3>
451 </div>
452 <ul class="embedpress-popular-content-list">
453 <?php foreach ($category['sources'] as $source): ?>
454 <li class="embedpress-popular-content-list-item">
455 <div class="embedpress-flex embedpress-item-center content-item-wrapper">
456 <span class="embedpress-line-height-0 popular-content-icon <?php echo esc_attr($source['provider']); ?>">
457 <img src="<?php echo esc_url($source['icon']); ?>" alt="<?php echo esc_attr($source['name']); ?>">
458 </span>
459 <span class="embedpress-font-m"><?php echo esc_html($source['name']); ?></span>
460 </div>
461 <div class="embedpress-hub-item-actions">
462
463 <?php if (!empty($source['settings_url'])): ?>
464 <a href="<?php echo esc_url($source['settings_url']); ?>" class="embedpress-hub-item-link" title="<?php esc_attr_e('Settings', 'embedpress'); ?>">
465 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
466 <g clip-path="url(#a)" stroke="#988FBD" stroke-linecap="round" stroke-linejoin="round">
467 <path d="M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58a1.149 1.149 0 0 0 1.715-.71Z" />
468 <path d="M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z" />
469 </g>
470 <defs>
471 <clipPath id="a">
472 <path fill="#fff" d="M0 0h16v16H0z" />
473 </clipPath>
474 </defs>
475 </svg>
476 </a>
477 <?php endif; ?>
478
479 <?php if (!empty($source['doc_url'])): ?>
480 <a href="<?php echo esc_url($source['doc_url']); ?>" target="_blank" class="embedpress-hub-item-link" title="<?php esc_attr_e('Documentation', 'embedpress'); ?>">
481 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
482 <g clip-path="url(#a)" stroke="#988FBD" stroke-linecap="round" stroke-linejoin="round">
483 <path d="M9.333 2v2.667a.667.667 0 0 0 .667.666h2.666" />
484 <path d="M11.333 14H4.666a1.334 1.334 0 0 1-1.333-1.333V3.333A1.333 1.333 0 0 1 4.666 2h4.667l3.333 3.333v7.334A1.333 1.333 0 0 1 11.333 14ZM6 11.333h4M6 8.667h4" />
485 </g>
486 <defs>
487 <clipPath id="a">
488 <path fill="#fff" d="M0 0h16v16H0z" />
489 </clipPath>
490 </defs>
491 </svg>
492 </a>
493 <?php endif; ?>
494 </div>
495
496 <?php if (!empty($source['arival_status']) && $source['arival_status'] !== 'popular'): ?>
497 <div class="ribbon-container <?php echo esc_attr($source['arival_status']); ?>"><?php echo esc_html($source['arival_status']); ?></div>
498 <?php endif; ?>
499 </li>
500 <?php endforeach; ?>
501 </ul>
502 </div>
503 </div>
504 <?php endforeach; ?>
505 </div>
506 </div>
507 </div>
508 </section>