PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.9
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.9
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Core/Admin.php +15 -44 3.7.13.4.9 View file →
@@ -202,45 +202,23 @@
202 202 $_localize_handle = 'templately-' . $hook;
203 203 $script_dependencies[] = $_localize_handle;
204 204 }
205 205
206 - if ( 'templately_page_templately_settings' === $hook ) {
207 - templately()->assets->register( 'settings-vendor', 'js/chunks/settings-vendor.js', [], true );
208 - $script_dependencies[] = 'settings-vendor';
209 - }
210 -
211 206 if ( $hook === 'toplevel_page_templately' || $hook == 'edit.php' || 'templately_page_templately_settings' === $hook ) {
212 207 templately()->assets->enqueue( 'templately-admin', 'css/admin.css', [ 'templately' ] );
213 208 }
214 209
215 - // Google Fonts Enqueueing
216 - // DM Sans - Used in general UI
210 + // Google Font Enqueueing
217 211 templately()->assets->enqueue(
218 212 'templately-dmsans',
219 213 set_url_scheme( '//fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap' )
220 214 );
221 215
222 - // Inter - Used in Tailwind components and various UI elements
223 - templately()->assets->enqueue(
224 - 'templately-inter',
225 - set_url_scheme( '//fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap' )
226 - );
227 -
228 - // DM Mono - Used in settings and code-related UI
229 - templately()->assets->enqueue(
230 - 'templately-dmmono',
231 - set_url_scheme( '//fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap' )
232 - );
233 -
234 216 wp_enqueue_style('wp-components');
235 217
236 218 wp_enqueue_media();
237 219 templately()->assets->enqueue( 'templately', 'js/templately.js', $script_dependencies, true );
238 - templately()->assets->enqueue( 'templately', 'css/templately.css', ['templately-dmsans', 'templately-inter'] );
239 - $tailwind_hooks = apply_filters( 'templately_tailwind_hooks', [ 'toplevel_page_templately', 'elementor', 'gutenberg', 'templately_page_templately_settings', 'edit.php' ] );
240 - if ( in_array( $hook, $tailwind_hooks, true ) ) {
241 - templately()->assets->enqueue( 'templately-tailwind', 'css/tailwind.css', ['templately', 'templately-inter'] );
242 - }
220 + templately()->assets->enqueue( 'templately', 'css/templately.css', ['templately-dmsans'] );
243 221
244 222 /**
245 223 * @var Elementor|Gutenberg $platform
246 224 */
@@ -270,10 +248,8 @@
270 248 'not_found' => templately()->assets->icon( 'no-item-found.png' ),
271 249 'no_items' => templately()->assets->icon( 'no-items.png' ),
272 250 'loadingImage' => templately()->assets->icon( 'logos/loading-logo.gif' ),
273 251 'current_url' => admin_url( 'admin.php?page=templately' ),
274 - 'wp_dashboard_url' => admin_url( 'index.php' ),
275 - 'templately_library_url' => admin_url( 'edit.php?post_type=templately_library' ),
276 252 'is_signed' => Login::is_signed(),
277 253 'is_globally_signed' => Login::is_globally_signed(),
278 254 'signed_as_global' => Login::signed_as_global(),
279 255 'current_screen' => $_current_screen,
@@ -287,10 +263,8 @@
287 263 'settings' => $templately_settings,
288 264 'wp_user_avatar' => get_avatar_url( get_current_user_id(), [ 'size' => 96 ] ),
289 265 'allowed_mime_types' => get_allowed_mime_types(),
290 266 'is_free_user' => $global_user === false || isset( $global_user['plan'] ) && $global_user['plan'] == 'free',
291 - 'is_disconnected' => ! empty( $global_user['is_disconnected'] ),
292 - 'tour_status' => Options::get_instance()->get( 'tour_status', [] ),
293 267 ], $templately );
294 268
295 269 // Apply filter to allow network admin modifications
296 270 $templately = apply_filters( 'templately_admin_localized_data', $templately );
@@ -295,10 +269,8 @@
295 269 // Apply filter to allow network admin modifications
296 270 $templately = apply_filters( 'templately_admin_localized_data', $templately );
297 271
298 272 templately()->assets->localize( $_localize_handle, 'templately', $templately );
299 -
300 - do_action( 'templately_admin_scripts', $hook );
301 273 }
302 274
303 275 /**
304 276 * Check the status of a plugin.
@@ -323,9 +295,9 @@
323 295 * @since 2.0.0
324 296 */
325 297 public function notices() {
326 298 $notices = new Notices( [
327 - // 'dev_mode' => true, // also need to clear templately_notices from option/site meta table.
299 + // 'dev_mode' => true,
328 300 'id' => 'templately',
329 301 'storage_key' => 'notices',
330 302 'lifetime' => 3,
331 303 'stylesheet_url' => TEMPLATELY_ASSETS . 'css/notices.css',
@@ -368,9 +340,9 @@
368 340 'class' => 'dismiss-btn'
369 341 ]
370 342 ],
371 343 'support' => [
372 - 'link' => 'https://templately.com/?support=open',
344 + 'link' => 'https://wpdeveloper.com/support',
373 345 'attributes' => [
374 346 'target' => '_blank'
375 347 ],
376 348 'label' => __( 'I need help', 'templately' ),
@@ -424,39 +396,38 @@
424 396 // 'nav-menus'
425 397 // ]
426 398 // ] );
427 399
428 - // spring_savings_2026 notice
429 - $_notice_text_spring_savings_2026 = '<p style="margin-top: 0; margin-bottom: 0px;">🌸 Spring Savings: Design Website Quickly With 6,500+ Elementor & Gutenberg Templates, Including AI-Powered Features ⚡️ – Now <strong>Flat 50% OFF!</strong></p>';
400 + $notice_text = '<p style="margin-top: 0; margin-bottom: 0px; text-transform: capitalize;"><strong>Season’s Best Deal:</strong> Smarter & faster web design with 6,500+ AI-powered Elementor & Gutenberg templates – now <strong>up to 60% OFF!</strong> ⚡</p>';
430 401
431 - $_spring_savings_2026 = [
402 + $_black_friday = [
432 403 'thumbnail' => templately()->assets->icon( 'logos/logo-full.svg' ),
433 - 'html' => $_notice_text_spring_savings_2026,
404 + 'html' => $notice_text,
434 405 'links' => [
435 - 'later' => [
406 + 'later' => [
436 407 'link' => 'https://templately.com/#pricing',
437 408 'target' => '_blank',
438 - 'label' => __( 'Upgrade To Pro Now', 'templately' ),
409 + 'label' => __( 'Upgrade To PRO', 'templately' ),
439 410 'attributes' => [
440 411 'class' => 'button button-primary',
441 412 ]
442 413 ],
443 414 'never_show_again' => [
444 - 'label' => __( 'Maybe Later', 'templately' ),
415 + 'label' => __( 'I’ll Grab It Later', 'templately' ),
445 416 'attributes' => [
446 417 'data-dismiss' => true,
447 418 'class' => 'button button-link dismiss-btn',
448 419 ]
449 - ],
420 + ]
450 421 ],
451 422 ];
452 423
453 - $notices->add( 'spring_savings_2026', $_spring_savings_2026, [
454 - 'start' => $notices->strtotime('00:00:01AM 8th April, 2026'),
424 + $notices->add( 'holiday_2025', $_black_friday, [
425 + 'start' => $notices->strtotime('00:00:01AM 15th December, 2025'),
455 426 'recurrence' => false,
456 427 'dismissible' => true,
457 428 'refresh' => TEMPLATELY_VERSION,
458 - "expire" => strtotime( '11:59:59pm 10th May, 2026' ),
429 + "expire" => strtotime( '11:59:59pm 7th January, 2026' ),
459 430 'display_if' => !wp_is_mobile(),
460 431 'screens' => [
461 432 'dashboard',
462 433 ],
@@ -476,9 +447,9 @@
476 447 'https://templately.com/#pricing'
477 448 );
478 449 $holiday_text .= sprintf(
479 450 '<button class="button button-link dismiss-btn" data-dismiss="true">%1$s</button>',
480 - __('No, I\'ll Pay Full Price Later', 'templately'),
451 + __('No, I’ll Pay Full Price Later', 'templately'),
481 452 );
482 453 $holiday_text .= "</div>";
483 454
484 455