PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.6.0
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.6.0
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 1 month ago ads.php 1 month ago bnr-img.png 11 months ago calendly.php 1 month ago custom-logo.php 1 month ago dailymotion.php 2 years ago elements.php 3 days ago general.php 6 months ago go-premium.php 7 months ago google-calendar.php 1 month ago hub.php 3 days ago instagram.php 1 month ago license.php 5 years ago main-template.php 1 month ago opensea.php 2 years ago player-engagement.php 2 months ago premium.php 2 years ago settings.php 1 month ago shortcode.php 1 month 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 1 month ago youtube.php 1 year ago
hub.php
523 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 <?php
66 printf(
67 /* translators: %s: "View upgrades" link */
68 esc_html__('You’re using the free version with access to 250+ sources, basic updates, and forum support. %s.', 'embedpress'),
69 '<a href="' . esc_url('https://wpdeveloper.com/in/upgrade-embedpress') . '" target="_blank" class="embdpress-hilight-text">' . esc_html__('View upgrades', 'embedpress') . '</a>'
70 );
71 ?>
72 </p>
73 </div>
74 <div class="embedpress-right-content">
75 <div class="embedpress-img-wrapper">
76 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/stAllproduct.png'); ?>" alt="<?php esc_attr_e('All Products Image', 'embedpress'); ?>">
77 </div>
78 </div>
79 </div>
80 </div>
81 <div class=" embdpress-col-6 ">
82 <div class="embedpress-flex embedpress-item-center embedpress-brand-wrapper">
83 <div class="embedpress-left-content">
84 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center ">
85 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
86 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
87 </div>
88
89 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
90 </div>
91 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-banner-sub-header">
92 <?php
93 printf(
94 /* translators: %s: link to upgrade page */
95 esc_html__('Stand out with every embed. Add your logo and drive traffic back to your site. %s', 'embedpress'),
96 '<a href="' . esc_url('https://wpdeveloper.com/in/upgrade-embedpress') . '" target="_blank" class="embdpress-hilight-text"> ' . esc_html__('Upgrade now to unlock branding!', 'embedpress') . ' </a>'
97 );
98 ?>
99 </p>
100 </div>
101 <div class="embedpress-right-content">
102 <div class="embedpress-preview-area embedpress-height-95">
103 <div class=" embedpress-font-m embedpress-tag"><?php esc_html_e('Premium', 'embedpress'); ?></div>
104 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/img-in.png'); ?>" alt="<?php esc_attr_e('Premium Feature Preview', 'embedpress'); ?>">
105 </div>
106 </div>
107 </div>
108 </div>
109 </div>
110 </div>
111
112
113 <?php elseif ($is_pro_active && !$is_features_enabled): ?>
114 <!-- Pro Installed but License Not Valid (covers empty, invalid, expired, etc.) -->
115 <div class="embedpress-banner embedpress-banner-active">
116 <div class="embedpress-row">
117 <div class=" embdpress-col-6 ">
118 <div class=" embedpress-banner-box embedpress-license-wrapper">
119 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
120 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
121 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-inactive.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
122 </span>
123 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header">
124 <?php echo $license_status === 'expired' ? __('License Expired', 'embedpress') : __('License Required', 'embedpress'); ?>
125 </h2>
126 </span>
127 <h3 class="embedpress-font-l embdpress-hilight-text embedpress-font-family-dmsans embedpress-banner-secondary-header"><?php
128 /* translators: %s: WordPress username */
129 printf(esc_html__('%s, you’ve installed EmbedPress Pro!', 'embedpress'), esc_html($username));
130 ?></h3>
131 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header">
132 <?php esc_html_e('Activate your license key to enable EmbedPress Pro’s features and to start receiving automatic updates and premium support.', 'embedpress'); ?> </p>
133 <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 ">
134 <span class="embedpress-line-height-0 ">
135 <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'); ?>">
136 </span>
137 <?php echo esc_html__('Activate License', 'embedpress'); ?>
138 </a>
139 </div>
140 </div>
141 <div class=" embdpress-col-6 ">
142 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
143 <div class="embedpress-left-content">
144 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
145 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
146 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
147
148 </div>
149
150 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
151 </div>
152 <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>
153 <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;"' : ''; ?>>
154 <?php echo !$is_features_enabled ? __('Branding Options (Disabled)', 'embedpress') : __('Branding Options', 'embedpress'); ?>
155 </a>
156 </div>
157 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
158 <div class="brand-preview-area">
159 <div class="embedpress-preview-area" id="globalBrandPreview">
160 <?php if (!empty($global_brand_logo_url)): ?>
161 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
162 <?php endif; ?>
163 </div>
164 <input type="hidden" id="globalBrandLogoUrl" value="<?php echo esc_attr($global_brand_logo_url); ?>">
165 <input type="hidden" id="globalBrandLogoId" value="<?php echo esc_attr($global_brand_logo_id); ?>">
166 </div>
167 <div class="preview-actions-button">
168 <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;"' : ''; ?>>
169 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
170 </button>
171 <?php if (!empty($global_brand_logo_url)): ?>
172 <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>
173 <?php endif; ?>
174 </div>
175 </div>
176 </div>
177 </div>
178 </div>
179 </div>
180
181
182 <?php elseif ($is_pro_active && $license_status === 'expired'): ?>
183 <!-- Pro Active but License Expired -->
184 <div class="embedpress-banner embedpress-banner-active">
185 <div class="embedpress-row">
186 <div class=" embdpress-col-6 ">
187 <div class=" embedpress-banner-box embedpress-license-wrapper">
188 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
189 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
190 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-inactive.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
191 </span>
192 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('License Key', 'embedpress'); ?></h2>
193 </span>
194 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header error-msg">
195 You‘re currently receiving regular plugin updates and support.</p>
196 <div class="embedpress-license-input-wrapper ">
197 <input type="text" class="embedpress-license-input " value="<?php echo esc_attr(\EmbedPress\Includes\Classes\Helper::mask_license_key($license_key)); ?>" disabled>
198 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-active-btn ">
199 <span class="embedpress-line-height-0">
200 <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
201 <path d="M8.917 0.916077L3.66699 7.99941L0.916992 5.91608L0.166992 6.91608L3.91699 9.74941L9.91699 1.66608L8.917 0.916077Z" />
202 </svg>
203 </span>
204 <?php esc_html_e('Active', 'embedpress'); ?>
205 </button>
206 </div>
207
208 <!-- Add the class embedpress-manage-license-btn to the target button (or appropriate element).
209 Update the button text/content to: "Manage License".
210 Add the class embedpress-banner-active to the wrapper element with class embedpress-license-input-wrapper.
211 If the license is enabled/valid, also add this class to the button: embedpress-manage-license-btn-enable. -->
212
213 <a href="<?php echo esc_url('https://store.wpdeveloper.com'); ?>" target="_blank" class="embedpress-btn embedpress-license-btn embedpress-manages-license-btn ">
214 <span class="embedpress-line-height-0 ">
215 <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'); ?>">
216 </span>
217 <?php esc_html_e('Manage License', 'embedpress'); ?>
218 </a>
219 </div>
220 </div>
221 <div class=" embdpress-col-6 ">
222 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
223 <div class="embedpress-left-content">
224 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
225 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
226 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
227 </div>
228
229 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
230 </div>
231 <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>
232 <a href="#" class="embedpress-btn embedpress-branding-options-btn"><?php esc_html_e('Branding Options', 'embedpress'); ?></a>
233 </div>
234
235 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
236 <div class="brand-preview-area">
237 <div class="embedpress-preview-area" id="globalBrandPreviewExpired">
238 <?php if (!empty($global_brand_logo_url)): ?>
239 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
240 <?php endif; ?>
241 </div>
242 <input type="hidden" id="globalBrandLogoUrlExpired" value="<?php echo esc_attr($global_brand_logo_url); ?>">
243 <input type="hidden" id="globalBrandLogoIdExpired" value="<?php echo esc_attr($global_brand_logo_id); ?>">
244 </div>
245 <div class="preview-actions-button">
246 <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;"' : ''; ?>>
247 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
248 </button>
249 <?php if (!empty($global_brand_logo_url)): ?>
250 <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>
251 <?php endif; ?>
252 </div>
253 </div>
254 </div>
255 </div>
256 </div>
257 </div>
258
259 <?php elseif ($is_pro_active && $license_status === 'valid'): ?>
260 <!-- Pro Active with Valid License -->
261 <div class="embedpress-banner embedpress-banner-active">
262 <div class="embedpress-row">
263 <div class=" embdpress-col-6 ">
264 <div class=" embedpress-banner-box embedpress-license-wrapper">
265 <span class="embedpress-flex embedpress-mb-16 embedpress-item-center">
266 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
267 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/lock-active.png'); ?>" alt="<?php esc_attr_e('License Inactive Icon', 'embedpress'); ?>">
268 </span>
269 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('License Key', 'embedpress'); ?></h2>
270 </span>
271 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-mb-16 embedpress-font-m embedpress-banner-sub-header valid-msg">
272 You‘re currently receiving regular plugin updates and support.</p>
273 <div class="embedpress-license-input-wrapper ">
274 <input type="text" class="embedpress-license-input " value="<?php echo esc_attr(\EmbedPress\Includes\Classes\Helper::mask_license_key($license_key)); ?>" disabled>
275 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-active-btn">
276 <span class="embedpress-line-height-0">
277 <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
278 <path d="M8.917 0.916077L3.66699 7.99941L0.916992 5.91608L0.166992 6.91608L3.91699 9.74941L9.91699 1.66608L8.917 0.916077Z" />
279 </svg>
280 </span>
281 <?php esc_html_e('Active', 'embedpress'); ?>
282 </button>
283 </div>
284
285 <!-- Add the class embedpress-manage-license-btn to the target button (or appropriate element).
286 Update the button text/content to: "Manage License".
287 Add the class embedpress-banner-active to the wrapper element with class embedpress-license-input-wrapper.
288 If the license is enabled/valid, also add this class to the button: embedpress-manage-license-btn-enable. -->
289
290 <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 ">
291 <span class="embedpress-line-height-0 ">
292 <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'); ?>">
293 </span>
294 <?php esc_html_e('Manage License', 'embedpress'); ?>
295 </a>
296 </div>
297 </div>
298 <div class=" embdpress-col-6 ">
299 <div class="embedpress-flex embedpress-item-center embedpress-banner-box embedpress-upload-brand-wrapper">
300 <div class="embedpress-left-content">
301 <div class="embedpress-flex embedpress-mb-16 embedpress-item-center">
302 <div class="embedpress-line-height-0 embedpress-mr-4 banner-icon">
303 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/brand-icon.png'); ?>" alt="<?php esc_attr_e('Brand Icon', 'embedpress'); ?>">
304 </div>
305
306 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-banner-header"><?php esc_html_e('Brand Your Work', 'embedpress'); ?></h2>
307 </div>
308 <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>
309 <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>
310 </div>
311 <div class="embedpress-right-content embedpress-branding-preview-wrapper">
312 <div class="brand-preview-area">
313 <div class="embedpress-preview-area" id="globalBrandPreview">
314 <?php if (!empty($global_brand_logo_url)): ?>
315 <img src="<?php echo esc_url($global_brand_logo_url); ?>" alt="Global Brand Logo" class="embedpress-global-brand-preview-img">
316 <?php endif; ?>
317 </div>
318 <input type="hidden" id="globalBrandLogoUrlValid" value="<?php echo esc_attr($global_brand_logo_url); ?>">
319 <input type="hidden" id="globalBrandLogoIdValid" value="<?php echo esc_attr($global_brand_logo_id); ?>">
320 </div>
321 <div class="preview-actions-button">
322 <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;"' : ''; ?>>
323 <?php echo !empty($global_brand_logo_url) ? esc_html__('Replace', 'embedpress') : esc_html__('Upload', 'embedpress'); ?>
324 </button>
325 <?php if (!empty($global_brand_logo_url)): ?>
326 <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>
327 <?php endif; ?>
328 </div>
329 </div>
330 </div>
331 </div>
332 </div>
333 </div>
334 <?php endif; ?>
335 </div>
336
337
338 <?php if (!$is_popup_dismissed && !$is_pro_active): ?>
339 <div class="embedpress-pop-up">
340 <div class="embedpress-flex embedpress-pop-up-content">
341 <div class="pop-up-left-content">
342 <?php if ($show_bfriday_banner): ?>
343 <div class="bfriday-deal-campaign">
344 <a href="https://embedpress.com/in/bfcm2025-unlock-premium-features" target="_blank">
345 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/bfcm2025-banner.png'); ?>" alt="Black Friday Sale">
346 </a>
347 </div>
348 <?php endif; ?>
349 <span class="premium-tag"><?php esc_html_e('Premium', 'embedpress'); ?></span>
350 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-pop-up-header"><?php esc_html_e('Unlock More Power in Every Embed', 'embedpress'); ?></h2>
351 <p class="embedpress-font-m embedpress-font-family-dmsans embedpress-pop-up-sub-header">
352 <?php echo wp_kses(__('Take full control of your embeds, Customize every detail, protect your<br> content, and unlock monetization features to grow your business.', 'embedpress'), ['br' => []]); ?>
353 </p>
354 <ul class="embedpress-premium-features-list">
355 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Add your own logo', 'embedpress'); ?></li>
356 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Lock content for members', 'embedpress'); ?></li>
357 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Apply lazy loading', 'embedpress'); ?></li>
358 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Control PDF usage', 'embedpress'); ?></li>
359 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Control video playback', 'embedpress'); ?></li>
360 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Show custom ads in embeds', 'embedpress'); ?></li>
361 <li class="embedpress-font-m embedpress-font-family-dmsans embedpress-premium-features-list-item"><?php esc_html_e('Advanced analytics', 'embedpress'); ?></li>
362 </ul>
363 <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">
364 <span class="embedpress-line-height-0 embedpress-mr-4 pop-up-btn-icon">
365 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/crown.png'); ?>" alt="<?php esc_attr_e('Premium Crown Icon', 'embedpress'); ?>">
366 </span>
367 <span><?php esc_html_e('Unlock Premium Features', 'embedpress'); ?></span>
368 </a>
369 <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">
370 <svg width="11" height="13" viewBox="0 0 11 13" fill="none" xmlns="http://www.w3.org/2000/svg">
371 <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" />
372 <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" />
373 </svg>
374
375 </span><span><?php esc_html_e('No risk 14-day money-back guarantee included.', 'embedpress'); ?></span></div>
376
377 </div>
378 <div class="pop-up-right-content">
379 <button class="embedpress-font-m embedpress-font-family-dmsans embedpress-cancel-button"><?php esc_html_e('Dismiss', 'embedpress'); ?></button>
380 <div class="embedpress-img-wrapper">
381 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/right-content-img.png'); ?>" alt="<?php esc_attr_e('Premium Features Image', 'embedpress'); ?>">
382 </div>
383 <div class="embedress-text-wrapper">
384 <p class="embedpress-font-m embedpress-font-family-dmsans"><?php esc_html_e('Premium users get full branding, control, and monetization', 'embedpress'); ?></p>
385 </div>
386 </div>
387 </div>
388 </div>
389 <?php endif; ?>
390
391 <!-- Popular Content Section (always visible) -->
392 <div class="embedpress-popular-content-wrapper">
393 <div class="embedpress-popular-content-header">
394 <div class="embedpress-flex embedpress-item-center embedpress-justify-between">
395 <span class="embedpress-flex embedpress-item-center">
396 <span class="embedpress-line-height-0 embedpress-mr-4">
397 <img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/icons/source-control 1.svg'); ?>" alt="<?php esc_attr_e('Source Control Icon', 'embedpress'); ?>">
398 </span>
399 <h2 class="embedpress-font-xl embedpress-font-family-dmsans embedpress-popular-types-header"><?php esc_html_e('Most Popular Content Types', 'embedpress'); ?></h2>
400 </span>
401 <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>
402 </div>
403 </div>
404
405 <?php
406 // Array of most popular sources based on sources.php with exact icon paths
407 $icon_src = EMBEDPRESS_URL_ASSETS . "images/sources/icons";
408
409 $popular_sources = [
410 // PDFs & Docs
411 'docs' => [
412 'title' => __('PDFs & Docs', 'embedpress'),
413 'icon' => EMBEDPRESS_URL_ASSETS . 'images/icons/docs-icon 1.png',
414 'sources' => [
415 ['name' => 'PDF', 'provider' => 'pdf', 'icon' => $icon_src . '/pdf.svg', 'settings_url' => '', 'doc_url' => 'https://wpdeveloper.com/embed-pdf-documents-wordpress', 'arival_status' => 'popular'],
416 ['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'],
417 ['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'],
418
419 ]
420 ],
421 // Video Sources
422 'video' => [
423 'title' => __('Audio & Video', 'embedpress'),
424 'icon' => EMBEDPRESS_URL_ASSETS . 'images/sources/audio-video.svg',
425 'sources' => [
426 ['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'],
427 ['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'],
428 ['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'],
429 ['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'],
430 ['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/'],
431 ]
432 ],
433 // Social Media
434 'social' => [
435 'title' => __('Social Media', 'embedpress'),
436 'icon' => EMBEDPRESS_URL_ASSETS . 'images/sources/social.svg',
437 'sources' => [
438 ['name' => 'Facebook', 'provider' => 'facebook', 'icon' => $icon_src . '/facebook.svg', 'settings_url' => '', 'doc_url' => 'https://embedpress.com/docs/embed-facebook-posts-wordpress/', 'arival_status' => 'popular'],
439 ['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'],
440 ['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'],
441 ['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'],
442 ]
443 ],
444 // Audio & Music
445 'audio' => [
446 'title' => __('Others', 'embedpress'),
447 'icon' => EMBEDPRESS_URL_ASSETS . 'images//sources/automations.svg',
448 'sources' => [
449 ['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'],
450 ['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'],
451 ]
452 ]
453 ];
454 ?>
455
456 <div class="embedpress-popular-content-body">
457 <div class="embedpress-row">
458 <?php foreach ($popular_sources as $category_key => $category): ?>
459 <div class="embdpress-col-3">
460 <div class="embedpress-popular-content-cards">
461 <div class="embedpress-flex embedpress-item-center embedpress-card-header-wrapper">
462 <span class="embedpress-line-height-0 embedpress-mr-4 banner-icon-l">
463 <img src="<?php echo esc_url($category['icon']); ?>" alt="<?php echo esc_attr($category['title']); ?>">
464 </span>
465 <h3 class="embedpress-font-m embedpress-content-card-header"><?php echo esc_html($category['title']); ?></h3>
466 </div>
467 <ul class="embedpress-popular-content-list">
468 <?php foreach ($category['sources'] as $source): ?>
469 <li class="embedpress-popular-content-list-item">
470 <div class="embedpress-flex embedpress-item-center content-item-wrapper">
471 <span class="embedpress-line-height-0 popular-content-icon <?php echo esc_attr($source['provider']); ?>">
472 <img src="<?php echo esc_url($source['icon']); ?>" alt="<?php echo esc_attr($source['name']); ?>">
473 </span>
474 <span class="embedpress-font-m"><?php echo esc_html($source['name']); ?></span>
475 </div>
476 <div class="embedpress-hub-item-actions">
477
478 <?php if (!empty($source['settings_url'])): ?>
479 <a href="<?php echo esc_url($source['settings_url']); ?>" class="embedpress-hub-item-link" title="<?php esc_attr_e('Settings', 'embedpress'); ?>">
480 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
481 <g clip-path="url(#a)" stroke="#988FBD" stroke-linecap="round" stroke-linejoin="round">
482 <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" />
483 <path d="M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z" />
484 </g>
485 <defs>
486 <clipPath id="a">
487 <path fill="#fff" d="M0 0h16v16H0z" />
488 </clipPath>
489 </defs>
490 </svg>
491 </a>
492 <?php endif; ?>
493
494 <?php if (!empty($source['doc_url'])): ?>
495 <a href="<?php echo esc_url($source['doc_url']); ?>" target="_blank" class="embedpress-hub-item-link" title="<?php esc_attr_e('Documentation', 'embedpress'); ?>">
496 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
497 <g clip-path="url(#a)" stroke="#988FBD" stroke-linecap="round" stroke-linejoin="round">
498 <path d="M9.333 2v2.667a.667.667 0 0 0 .667.666h2.666" />
499 <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" />
500 </g>
501 <defs>
502 <clipPath id="a">
503 <path fill="#fff" d="M0 0h16v16H0z" />
504 </clipPath>
505 </defs>
506 </svg>
507 </a>
508 <?php endif; ?>
509 </div>
510
511 <?php if (!empty($source['arival_status']) && $source['arival_status'] !== 'popular'): ?>
512 <div class="ribbon-container <?php echo esc_attr($source['arival_status']); ?>"><?php echo esc_html($source['arival_status']); ?></div>
513 <?php endif; ?>
514 </li>
515 <?php endforeach; ?>
516 </ul>
517 </div>
518 </div>
519 <?php endforeach; ?>
520 </div>
521 </div>
522 </div>
523 </section>