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-manage.php
<div class="wrap">
  <h2><?php _e('Manage', 'lingotek-translation'); ?></h2>

    <?php

    $menu_items = array(
      'content' => __('Content Type Configuration', 'lingotek-translation'),
      'profiles' => __('Translation Profiles', 'lingotek-translation'),
      'custom-fields' => __('Custom Fields', 'lingotek-translation'),
      'string-groups' => __('String Groups', 'lingotek-translation'),
      'strings' => __('Strings', 'lingotek-translation'),
    );

    ?>

    <h3 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']; ?>&amp;sm=<?php echo $menu_item_key; ?>"><?php echo $menu_item_label; ?></a>
           <?php
           $menu_item_index++;
         }
         ?>
    </h3>

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

</div>

<script>jQuery(document).ready(function($) { $('#wpfooter').remove(); } );</script>