welcome.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <div class="wrap ta-welcome-page-wraper">
  2. <a class="btn demo-import" href="<?php echo get_site_url() . '/wp-admin/themes.php?page=-setup' ?>"><?php echo esc_html__('Run Demo Import', 'taskereasy'); ?></a>
  3. <div class="ta-welcome-page-general-info ">
  4. <h3 class="ta-logo-text primary-color">Taskereasy Theme</h3>
  5. <h4><?php echo esc_html__('Version ', 'taskereasy') . wp_get_theme()->get('Version'); ?></h4>
  6. <div class="ta-theme-welcome-headings">
  7. <h1 class="wp-heading-inline"><?php echo esc_html__('Welcome to Taskereasy - Multipurpose Business & Corporate WordPress Theme', 'taskereasy') ?></h1>
  8. <p class="wp-paragraph-inline"><?php echo esc_html__('This portal serves as a guideline to all your needs.', 'taskereasy') ?></p>
  9. </div>
  10. </div>
  11. <div class="ta-welcome-content clearfix">
  12. <div class="panel-body">
  13. <img width="128" height="128" src="<?php echo get_template_directory_uri().'/assets/images/admin/knowledge-base.png' ?>" alt="Block Image 1">
  14. <h3 class="primary-color"><?php echo esc_html__('Knowledge Base', 'taskereasy') ?></h3>
  15. <p><?php echo esc_html__('Here you will find the answer to all your Post-Sale questions.', 'taskereasy') ?></p>
  16. <a class="btn" href="<?php echo esc_url('https://slidesigma.com/themes/wp/taskereasy/docs/') ?>" target="_blank"><?php echo esc_html__('Find Answers >', 'taskereasy') ?></a>
  17. </div>
  18. <div class="panel-body">
  19. <img width="128" height="128" src="<?php echo get_template_directory_uri().'/assets/images/admin/technical-support.png' ?>" alt="Block Image 3">
  20. <h3 class="primary-color"><?php echo esc_html__('Support Center', 'taskereasy') ?></h3>
  21. <p><?php echo esc_html__('If self-help isn\'t good enough, proceed to our support center.', 'taskereasy') ?></p>
  22. <a class="btn" href="<?php echo esc_url('https://my.slidesigma.com/') ?>" target="_blank"><?php echo esc_html__('Open a Ticket >', 'taskereasy') ?></a>
  23. </div>
  24. <div class="ta-additional-info">
  25. <h3><?php echo esc_html__('Links that will help you get started with Taskereasy', 'taskereasy') ?></h3>
  26. <ul>
  27. <li> <a href="<?php echo esc_url('https://slidesigma.com/themes/wp/taskereasy/docs/') ?>" target="_blank"><?php echo esc_html__('Documentation', 'taskereasy') ?></a> </li>
  28. <li> <a href="<?php echo esc_url('https://themeforest.net/item/taskereasy-multipurpose-business-corporate-wordpress-theme/23832008') ?>" target="_blank"><?php echo esc_html__('Update log', 'taskereasy') ?></a> </li>
  29. </ul>
  30. <h3 class="ta-welcome-thankyou-heading"> <?php echo esc_html__('Thank you for Purchasing', 'taskereasy') ?><a href="<?php echo esc_url('https://slidesigma.com/themes/wp/taskereasy/')?>" class="primary-color" target="_blank"><?php echo esc_html__(' Taskereasy', 'taskereasy') ?></a></h3>
  31. </div>
  32. <?php
  33. $message = 0;
  34. $icon = 'dashicons-yes';
  35. $status = 'ta-success';
  36. $php_version = phpversion();
  37. $memory = wp_convert_hr_to_bytes( ini_get('memory_limit') );
  38. if( version_compare($php_version, '5.2.4', '<') ){
  39. $icon = 'dashicons-warning';
  40. $status = 'ta-warning';
  41. $message = 1;
  42. }
  43. ?>
  44. <div class="ta-server-status">
  45. <?php
  46. $ss_status = get_option( 'theme_activation' );
  47. taskereasy_activation();
  48. ?>
  49. <h3><?php echo esc_html__('Your Server Status', 'taskereasy') ?></h3>
  50. <table class="ta-status-table">
  51. <tbody>
  52. <tr>
  53. <th class="ta-status-heading ta-status"><span class="dashicons <?php echo esc_attr( $icon ) ?> <?php echo esc_attr( $status ) ?>"></span><?php echo esc_html('PHP Version', 'taskereasy') ?></th>
  54. <td class="ta-status-message <?php echo esc_attr( $status ) ?>"><?php if( $message ){ echo __('You are using an outdated PHP version.', 'taskereasy'); } ?></td>
  55. <td class="ta-status-value <?php echo esc_attr( $status ) ?>"><?php echo esc_html( $php_version ) ?></td>
  56. </tr>
  57. <?php
  58. $message = 0;
  59. $icon = 'dashicons-yes';
  60. $status = 'ta-success';
  61. if( $memory < 64000000 ){
  62. $icon = 'dashicons-warning';
  63. $status = 'ta-warning';
  64. $message = 1;
  65. }
  66. ?>
  67. <tr>
  68. <th class="ta-status-heading ta-status"><span class="dashicons <?php echo esc_attr( $icon ) ?> <?php echo esc_attr( $status ) ?>"></span><?php echo esc_html('WordPress Memory Limit', 'taskereasy') ?></th>
  69. <td class="ta-status-message <?php echo esc_attr( $status ) ?>"><?php if( $message ){ echo __('A Minimum memory limit of <strong>64MB is required</strong>. <a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">Learn More</a>', 'taskereasy'); } ?></td>
  70. <td class="ta-status-value <?php echo esc_attr( $status ) ?>"><?php echo esc_html( size_format($memory) ) ?></td>
  71. </tr>
  72. <?php
  73. $message = 0;
  74. $icon = 'dashicons-yes';
  75. $status = 'ta-success';
  76. $exec_time = @ini_get('max_execution_time');
  77. if ( $exec_time < 180 && $exec_time != 0 ) {
  78. $icon = 'dashicons-warning';
  79. $status = 'ta-warning';
  80. $message = 1;
  81. }
  82. ?>
  83. <tr>
  84. <th class="ta-status-heading ta-status"><span class="dashicons <?php echo esc_attr( $icon ) ?> <?php echo esc_attr( $status ) ?>"></span><?php echo esc_html('PHP Execution Time Limit', 'taskereasy') ?></th>
  85. <td class="ta-status-message <?php echo esc_attr( $status ) ?>"><?php if( $message ){ echo __('We recommend setting max execution time to at least 180 for data import. <a href="http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded" target="_blank">Learn More</a>', 'taskereasy'); } ?></td>
  86. <td class="ta-status-value <?php echo esc_attr( $status ) ?>"><?php echo esc_html($exec_time); ?></td>
  87. </tr>
  88. <?php
  89. $message = 0;
  90. $icon = 'dashicons-yes';
  91. $status = 'ta-success';
  92. if ( defined('WP_DEBUG') && WP_DEBUG ) {
  93. $icon = 'dashicons-warning';
  94. $status = 'ta-warning';
  95. $message = 1;
  96. }
  97. $debug_status = ( WP_DEBUG ) ? 'On' : 'Off';
  98. ?>
  99. <tr>
  100. <th class="ta-status-heading ta-status"><span class="dashicons <?php echo esc_attr( $icon ) ?> <?php echo esc_attr( $status ) ?>"></span> <?php echo esc_html('WP Debug Mode', 'taskereasy') ?></th>
  101. <td class="ta-status-message <?php echo esc_attr( $status ) ?>"><?php if( $message ){ echo __('Make sure to turn WP Debug off on your live site. <a href="https://codex.wordpress.org/WP_DEBUG" target="_blank">Learn More </a>', 'taskereasy'); } ?></td>
  102. <td class="ta-status-value <?php echo esc_attr( $status ) ?>"><?php echo esc_html($debug_status, 'taskereasy'); ?></td>
  103. </tr>
  104. <?php
  105. $message = 0;
  106. $icon = 'dashicons-yes';
  107. $status = 'ta-success';
  108. if( empty($ss_status) || $ss_status != 'activated' ) {
  109. $icon = 'dashicons-warning';
  110. $status = 'ta-warning';
  111. $message = 1;
  112. }
  113. $active_status = ( empty($ss_status) || $ss_status != 'activated' ) ? 'Inactive' : 'Activated';
  114. ?>
  115. <tr>
  116. <th class="ta-status-heading ta-status"><span class="dashicons <?php echo esc_attr( $icon ) ?> <?php echo esc_attr( $status ) ?>"></span> <?php echo esc_html('Taskereasy Status', 'taskereasy') ?></th>
  117. <td class="ta-status-message <?php echo esc_attr( $status ) ?>"><?php if( $message ){ echo __('Verify Your Taskereasy License to benefit from all the features', 'taskereasy'); } ?></td>
  118. <td class="ta-status-value <?php echo esc_attr( $status ) ?>"><?php echo esc_html($active_status, 'taskereasy'); ?></td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. </div>
  123. </div>
  124. </div>