HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/web/wp-content/plugins.hold/lingotek-translation/admin/view-tutorial.php
<?php

  $menu_items = array(
    'features' => __("Features", 'lingotek-translation'),
    'content' => __('Tutorial', 'lingotek-translation'),
    'faq' => __('FAQ', 'lingotek-translation'),
    'credits' => __('Credits', 'lingotek-translation'),
  );

?>


<div class="wrap about-wrap">

<h1><?php printf( __( 'Welcome to Lingotek' , 'lingotek-translation') ); ?></h1>

<div class="about-text"><?php printf( __( 'Thank you for updating! Lingotek offers convenient cloud-based localization and translation.' , 'lingotek-translation'), LINGOTEK_VERSION ); ?></div>


<div class="wp-badge" style="background: url(<?php echo LINGOTEK_URL ?>/img/lingotek-chevrons-blue.png) center 24px/85px 80px no-repeat #fff; color: #666;"><?php printf( __( 'Version %s' , 'lingotek-translation'), LINGOTEK_VERSION ); ?></div>

<h2 class="nav-tab-wrapper">
  <?php
  $menu_item_index = 0;
  foreach ($menu_items as $menu_item_key => $menu_item_label) {
    $use_as_default = ($menu_item_index === 0 && !isset($_GET['sm'])) ? TRUE : FALSE;
    ?>

    <a class="nav-tab <?php if ($use_as_default || (isset($_GET['sm']) && $_GET['sm'] == $menu_item_key)): ?> nav-tab-active<?php endif; ?>"
       href="admin.php?page=<?php echo $_GET['page']; ?>&sm=<?php echo $menu_item_key; ?>"><?php echo $menu_item_label; ?></a>
       <?php
       $menu_item_index++;
     }
  ?>
</h2>


<?php
    settings_errors();
    $submenu = isset($_GET['sm']) ? sanitize_text_field($_GET['sm']) : current(array_keys($menu_items));
    $dir = dirname(__FILE__) . '/tutorial/';
    $filename = $dir . $submenu . ".php";
    if (file_exists($filename))
      include $filename;
    else
      echo "TO-DO: create <i>" . 'tutorial/' . $submenu . ".php</i>";
?>

</div>