PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.2.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.2.0
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 +33 -23 3.1.103.2.0 View file →
@@ -158,8 +158,11 @@
158 158
159 159 if ( $hook === 'toplevel_page_templately' || $hook == 'edit.php' ) {
160 160 templately()->assets->enqueue( 'templately-admin', 'css/admin.css', [ 'templately' ] );
161 161 }
162 + if ( $hook === 'toplevel_page_templately' ) {
163 + header("x-frame-options: ALLOW-FROM *.templately.com");
164 + }
162 165
163 166 // Google Font Enqueueing
164 167 templately()->assets->enqueue(
165 168 'templately-dmsans',
@@ -189,8 +192,9 @@
189 192 'construction' => templately()->assets->icon( 'icons/construction.gif' ),
190 193 'profile' => templately()->assets->icon( 'icons/profile.svg' ),
191 194 'warning' => templately()->assets->icon( 'icons/warning.png' )
192 195 ],
196 + 'locale' => get_locale(),
193 197 'promo_image' => templately()->assets->icon( 'single-page-promo.png' ),
194 198 'default_image' => templately()->assets->icon( 'clouds/cloud-item.svg' ),
195 199 'not_found' => templately()->assets->icon( 'no-item-found.png' ),
196 200 'no_items' => templately()->assets->icon( 'no-items.png' ),
@@ -333,45 +337,51 @@
333 337 'thumbnail' => templately()->assets->icon( 'logos/logo-full.svg' ),
334 338 'html' => $notice_text,
335 339 ];
336 340
337 - $notices->add( 'black_friday', $_black_friday, [
338 - 'start' => $notices->strtotime('+1 minute'),
339 - 'recurrence' => false,
340 - 'dismissible' => true,
341 - 'refresh' => TEMPLATELY_VERSION,
342 - "expire" => strtotime( '11:59:59pm 5nd December, 2024' ),
343 - 'display_if' => !wp_is_mobile(),
344 - 'screens' => [
345 - 'dashboard',
346 - ],
347 - ] );
341 + // $notices->add( 'black_friday', $_black_friday, [
342 + // 'start' => $notices->strtotime('+1 minute'),
343 + // 'recurrence' => false,
344 + // 'dismissible' => true,
345 + // 'refresh' => TEMPLATELY_VERSION,
346 + // "expire" => strtotime( '11:59:59pm 5nd December, 2024' ),
347 + // 'display_if' => !wp_is_mobile(),
348 + // 'screens' => [
349 + // 'dashboard',
350 + // ],
351 + // ] );
348 352
349 - $halloween_text = sprintf(
350 - '<p style="margin-top: 0; margin-bottom: 0px;"> 🎃 %s <strong>%s</strong> %s</p>',
351 - __('Halloween Treats: Get Templately PRO', 'templately'),
352 - __('up to 65% OFF', 'templately'),
353 - __('& unlock 5000+ ready WordPress templates now.', 'templately')
353 + $holiday_text = sprintf(
354 + '<p style="margin-top: 0; margin-bottom: 0px;"> 🎁 %s <strong>%s</strong> %s</p>',
355 + __('Get', 'templately'),
356 + __('Templately PRO', 'templately'),
357 + __('with up to 60% OFF & unlock 5500+ ready WordPress templates to power up web design in 2025.', 'templately')
354 358 );
355 359
356 - $halloween_text .= sprintf(
360 + $holiday_text .= "<div class='wpnotice-button-wrapper'>";
361 + $holiday_text .= sprintf(
357 362 '<a class="button button-primary" target="_blank" href="%2$s">%1$s</a>',
358 - $crown . __('Upgrade to Pro', 'templately'),
363 + $crown . __('GET PRO Lifetime Access', 'templately'),
359 364 'https://templately.com/#pricing'
360 365 );
366 + $holiday_text .= sprintf(
367 + '<button class="button button-link dismiss-btn" data-dismiss="true">%1$s</button>',
368 + __('No, I’ll Pay Full Price Later', 'templately'),
369 + );
370 + $holiday_text .= "</div>";
361 371
362 372
363 - $_halloween = [
373 + $_holiday = [
364 374 'thumbnail' => templately()->assets->icon( 'logos/logo-full.svg' ),
365 - 'html' => $halloween_text,
375 + 'html' => $holiday_text,
366 376 ];
367 377
368 - $notices->add( 'halloween', $_halloween, [
369 - 'start' => $notices->strtotime('+1 minute'),
378 + $notices->add( 'holiday', $_holiday, [
379 + 'start' => $notices->strtotime( '+0 minute' ),
370 380 'recurrence' => false,
371 381 'dismissible' => true,
372 382 'refresh' => TEMPLATELY_VERSION,
373 - "expire" => strtotime( '11:59:59pm 3nd November, 2024' ),
383 + "expire" => strtotime( '11:59:59pm 10th January, 2025' ),
374 384 'display_if' => !wp_is_mobile(),
375 385 'screens' => [
376 386 'dashboard',
377 387 ],