PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
← All changes | utils/pro-awareness/pro-awareness.php +8 -235 1.0.15 → 1.0.38 View file →
@@ -285,10 +285,10 @@
285 285 <h3 class="tw-accordion-title">
286 286 <?php echo esc_html__('How can I translate event content into my own language?', 'timetics'); ?>
287 287 </h3>
288 288 <div class="tw-accordion-cotent">
289 - <p><?php echo Helper::kses('If you want to translate in a single language then you can use the <a href="https://wordpress.org/plugins/loco-translate/" target="_blank">Loco Translate</a> plugin. For multi-language translation, you can use the <a href="https://wpml.org/" target="_blank">WPML</a> translator plugin. Simply install the plugin and activate it. After that, please complete the basic settings and you are good to go.', 'eventin'); ?></p>
290 - <p><?php echo Helper::kses('For “Loco Translate”, you can check this <a href="https://youtu.be/6qLkdl97PU0" target="_blank">video tutorial</a> and <a href="https://localise.biz/wordpress/plugin/beginners" target="_blank">documentation</a>. Also, for the WPML multi-language translation, here is the <a href="https://www.youtube.com/watch?v=O7zrroWtrpQ&list=PLs3PkRpIy7BwP5uGV7H2uX34E3MWgdAsH" target="_blank">video</a> and <a href="https://wpml.org/documentation/" target="_blank">documentation</a> link.', 'eventin'); ?></p>
289 + <p><?php echo Helper::kses('If you want to translate in a single language then you can use the <a href="https://wordpress.org/plugins/loco-translate/" target="_blank">Loco Translate</a> plugin. For multi-language translation, you can use the <a href="https://wpml.org/" target="_blank">WPML</a> translator plugin. Simply install the plugin and activate it. After that, please complete the basic settings and you are good to go.', 'timetics'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
290 + <p><?php echo Helper::kses('For “Loco Translate”, you can check this <a href="https://youtu.be/6qLkdl97PU0" target="_blank">video tutorial</a> and <a href="https://localise.biz/wordpress/plugin/beginners" target="_blank">documentation</a>. Also, for the WPML multi-language translation, here is the <a href="https://www.youtube.com/watch?v=O7zrroWtrpQ&list=PLs3PkRpIy7BwP5uGV7H2uX34E3MWgdAsH" target="_blank">video</a> and <a href="https://wpml.org/documentation/" target="_blank">documentation</a> link.', 'timetics'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
291 291 </div>
292 292 </div>
293 293 </div>
294 294 </div>
@@ -301,9 +301,9 @@
301 301 <h3 class="tw-accordion-title">
302 302 <?php echo esc_html__('How to upgrade to Eventin PRO?', 'timetics'); ?>
303 303 </h3>
304 304 <div class="tw-accordion-cotent">
305 - <p><?php echo Helper::kses('If you buy the plugin from CodeCanyon then you do not need license key activation. Just use the Envato Marketplace plugin to get regular updates. If you buy the plugin from <a href="https://themewinter.com/eventin/" target="_blank">Themewinter website</a> then follow our <a href="https://support.themewinter.com/docs/plugins/plugin-docs/general-settings-eventin/license/" target="_blank">documentation here</a> for activating the PRO license.', 'eventin'); ?></p>
305 + <p><?php echo Helper::kses('If you buy the plugin from CodeCanyon then you do not need license key activation. Just use the Envato Marketplace plugin to get regular updates. If you buy the plugin from <a href="https://themewinter.com/eventin/" target="_blank">Themewinter website</a> then follow our <a href="https://support.themewinter.com/docs/plugins/plugin-docs/general-settings-eventin/license/" target="_blank">documentation here</a> for activating the PRO license.', 'timetics'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
306 306 </div>
307 307 </div>
308 308 </div>
309 309 </div>
@@ -364,239 +364,12 @@
364 364 <!-- Commmon FAQ wrapper end -->
365 365 <?php
366 366 }
367 367
368 - public static function enqueue_scripts() {
369 - $tw_welcome_image = TIMETICS_PLUGIN_URL . 'utils/pro-awareness/assets/welcome_image.png';
370 - $tw_setup_image = TIMETICS_PLUGIN_URL . 'utils/pro-awareness/assets/setup_wizard.png';
371 - echo "
372 - <script>
373 -
374 - </script>
375 -
376 - <style>
377 - .wpmet_pro_a-grid-container {
378 - max-width: 1140px;
379 - width: 100%;
380 - padding-right: 15px;
381 - padding-left: 15px;
382 - box-sizing: border-box;
383 - margin-top: 50px;
384 - }
385 - .wpmet_pro_a-row {
386 - display: -webkit-box;
387 - display: -ms-flexbox;
388 - display: flex;
389 - -ms-flex-wrap: wrap;
390 - flex-wrap: wrap;
391 - margin-right: -15px;
392 - margin-left: -15px;
393 - box-sizing: border-box;
394 - }
395 -
396 - .wpmet_pro_a-grid {
397 - padding-right: 15px;
398 - padding-left: 15px;
399 - position: relative;
400 - width: 100%;
401 - min-height: 1px;
402 - box-sizing: border-box;
403 - }
404 -
405 - .wpmet_pro_a_thumb {
406 - min-height: unset;
407 - margin-bottom: 35px;
408 - display: block;
409 - border-radius: inherit;
410 - }
411 -
412 -
413 - .wp-submenu > li > a{
414 - position: relative;
415 - }
416 -
417 -
418 - /* Themewinter sections style */
419 - .tw-grid-row {
420 - display: grid;
421 - grid-template-columns: 1fr;
422 - gap: 30px;
423 - }
424 - .tw-help-section {
425 - max-width: 100%;
426 - padding: 0 40px 0 20px;
427 - }
428 - .tw-help-hero {
429 - padding: 30px 67% 30px 40px;
430 - background-color: #fff;
431 - background-image: none;
432 - border-radius: 6px;
433 - margin: 40px 0;
434 - background-size: 60%;
435 - background-repeat: no-repeat;
436 - background-position: 100% 100%;
437 - }
438 - .tw-setup-widgard-area .tw-help-hero {
439 - padding: 50px 65% 50px 40px;
440 - }
441 -
442 - .tw-help-hero h2 {
443 - font-size: 30px;
444 - line-height: 1;
445 - color: #000000;
446 - margin: 0;
447 - }
448 - .tw-help-hero p {
449 - font-size: 1rem;
450 - color: #71787C;
451 - }
452 - .tw-grid-item-inner {
453 - padding: 40px;
454 - display: block;
455 - text-align: left;
456 - background-color: #fff;
457 - border-radius: 8px;
458 - text-decoration: none;
459 - min-height: 270px;
460 - box-sizing: border-box;
461 - }
462 - .tw-grid-title {
463 - font-size: 20px;
464 - margin: 0;
465 - color: #000;
466 - display: block;
467 - line-height: 24px;
468 - }
469 - .tw-grid-button {
470 - margin-bottom: 0;
471 - display: inline-block;
472 - border: 2px solid #E3106E;
473 - border-radius: 6px;
474 - padding: 9px 16px;
475 - font-size: 15px;
476 - font-weight: 600;
477 - color: #E3106E;
478 - margin-top: 20px;
479 - line-height: 1;
480 - transition: .3s ease;
481 - }
482 - .tw-grid-button:hover {
483 - transform: translateY(-5px);
484 - background-color: #E3106E;
485 - color: #ffffff;
486 - }
487 - .tw-faq-wrapper {
488 - background: #fff;
489 - padding: 40px;
490 - margin-top: 30px;
491 - border-radius: 8px;
492 - }
493 - .tw-accordion-content-wrapper {
494 - border: 1px solid #E4E6EB;
495 - border-radius: 8px;
496 - padding: 20px;
497 - display: flex;
498 - align-items: baseline;
499 - }
500 - .tw-accordion-content {
501 - padding-left: 20px;
502 - flex: 0 0 95%;
503 - }
504 - .tw-accordion-content-wrapper svg {
505 - transition: all .3s ease;
506 - flex: 0 0 20px;
507 - }
508 - .tw-accordion-content-wrapper.item-active {
509 - background-color: #F7F8FB;
510 - }
511 - .tw-accordion-content-wrapper.item-active svg {
512 - transform: rotate(180deg);
513 - }
514 - .tw-section-title {
515 - margin: 0 0 30px;
516 - font-size: 24px;
517 - font-weight: 600;
518 - line-height: 28px;
519 - }
520 - .tw-accordion-title {
521 - margin: 0;
522 - cursor: pointer;
523 - font-size: 18px;
524 - font-weight: 700;
525 - }
526 -
527 -
528 - .tw-accordion-item {
529 - margin-bottom: 20px;
530 - }
531 - .tw-accordion-cotent {
532 - display: none;
533 - padding-top: 10px;
534 - }
535 - .tw-accordion-cotent p {
536 - margin: 0;
537 - font-size: 1rem;
538 - color: #44464B;
539 - }
540 - .tw-accordion-cotent p:not(:last-child) {
541 - margin-bottom: 10px;
542 - }
543 - @media (min-width: 991px) {
544 - .tw-grid-row {
545 - grid-template-columns: repeat(3, 1fr);
546 - }
547 - .tw-help-hero {
548 - background-image: url($tw_welcome_image);
549 - }
550 - .tw-setup-widgard-area .tw-help-hero p {
551 - margin-bottom: 25px;
552 - }
553 - .tw-setup-widgard-area .tw-help-hero {
554 - background-image: url($tw_setup_image);
555 - background-position: 95% 100%;
556 - background-size: contain;
557 - }
558 - .tw-accordion-content-wrapper {
559 - padding: 25px 30px;
560 - }
561 - .tw-help-hero h2 {
562 - font-size: 36px;
563 - }
564 -
565 - }
566 - @media (min-width: 1366px) {
567 - .tw-grid-row {
568 - grid-template-columns: repeat(4, 1fr);
569 - }
570 - .tw-help-hero {
571 - background-position: 95% 100%;
572 - background-size: 35%;
573 - }
574 - .tw-accordion-wrapper {
575 - grid-template-columns: repeat(2, 1fr);
576 - }
577 - }
578 - @media (max-width: 1024px) and (min-width: 768px) {
579 - .tw-grid-row {
580 - grid-template-columns: repeat(2, 1fr);
581 - }
582 - .tw-help-hero,
583 - .tw-setup-widgard-area .tw-help-hero {
584 - background-position: 154% 0px;
585 - background-size: 74%;
586 - }
587 - }
588 - @media (max-width: 991px) {
589 - .tw-help-hero,
590 - .tw-setup-widgard-area .tw-help-hero {
591 - padding: 30px;
592 - }
593 - .tw-faq-wrapper {
594 - padding: 30px;
595 - }
596 - }
597 - </style>
598 - ";
368 + public static function enqueue_scripts( $handle ) {
369 + if ( 'toplevel_page_timetics' !== $handle ) {
370 + return;
371 + }
599 372 }
600 373
601 374 public function insert_plugin_links($links) {
602 375
@@ -680,9 +453,9 @@
680 453 }
681 454 }
682 455
683 456 public static function init() {
684 - add_action('admin_head', [__CLASS__, 'enqueue_scripts']);
457 + add_action('admin_enqueue_scripts', [__CLASS__, 'enqueue_scripts' ]);
685 458 }
686 459
687 460 public function call() {
688 461 add_action('admin_menu', [$this, 'generate_menus'], 99999);