HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/tana/wp-content/themes/tana/page-templates/subpage-contact.php
<?php
/*
* Template Name: Subpage: Contact
*
*/

$title = get_the_title();
 ?>

<?php get_header(); ?>

  <div class="secondary-page__content">
    <div class="container team-directory">
      <div class="row">
        <div class="col-sm-2 col-md-3 team-directory__departments">
          <div>Trade marks</div>
          <div>Patents</div>
          <div>Renewals</div>
          <div>Designs</div>
          <div>Accounts &amp; E-billing</div>
        </div>
        <div class="col-xs-12 col-sm-8 col-md-6">
          <div class="col-xs-12">
            <h2 class="secondary-page__title"><?= $title ?></h2>
          </div>
          <div class="col-xs-12">
            <?php
              if( have_rows('department') ) :
                $total_count = 0;
                $count    = 0;

                while( have_rows('department') ) : the_row();
                  if( have_rows('person') ) :
                    while( have_rows('person') ) : the_row();
                      $total_count = $total_count + count(get_sub_field('person'));
                    endwhile;
                  endif;
                endwhile;

                while( have_rows('department') ) : the_row();
                  $dept_name = get_field('department_name');

                  if( have_rows('person') ) :

                    while( have_rows('person') ) : the_row();
                      $name     = get_sub_field('name');
                      $position = get_sub_field('position');
                      $email    = get_sub_field('email');
                      $phone    = get_sub_field('phone');
                      ?>

                      <?php if ($count % 2 == 0) : ?>
                        <div class="row">
                      <?php endif ?>

                        <div class="col-xs-12 col-sm-6">
                          <div class="contact-info__item">
                            <div class="contact-info__item-title contact-info__item-title--big"><?= $name ?></div>
                            <div class="contact-info__item-title"><?= $position ?></div>
                            <div class="contact-info__item-details">
                              <ul class="list list--unstyled contact-info__item-single">
                                <li><span>E</span> <a href="mailto:<?= $email ?>"><?= $email ?></a></li>
                                <li><span>T</span> <a href="tel:<?= $phone ?>"><?= $phone ?></a></li>
                              </ul>
                            </div>
                          </div>
                        </div>

                      <?php if ($count % 2 == 1 || $total_count == $count + 1) : ?>
                        </div>
                      <?php endif ?>

                    <?php
                    $count++;
                    endwhile;
                  endif;
                endwhile;
              endif;
              ?>
          </div>
        </div>
        <div class="col-sm-2 col-md-3 team-directory__departments">
          <div>Filing</div>
          <div>Prosecution</div>
          <div>Domain names</div>
          <div>Recordals</div>
          <div>Searches</div>
          <div>Enforcement</div>
        </div>
      </div>
    </div>
    <div class="circle-part circle-part--bottom"><svg xmlns="http://www.w3.org/2000/svg" width="100%"
        viewBox="0 0 1440 345">
        <path fill="#1428aa"
          d="M719.5 345.4A1056 1056 0 0 0 1440 61.8V0c-184.3 185.5-439.1 300.4-720 300.4S184.3 185.5 0 0v62.8a1056.2 1056.2 0 0 0 719.5 282.6z">
        </path>
      </svg></div>
  </div>
</div>

<div class="content-wrapper-second">
</div>

<?php get_footer(); ?>