<?php
  /**
   * Load Language Section
   *
   * @package Wojo Framework
   * @author wojoscripts.com
   * @copyright 2019
   * @version $Id: loadLanguageSection.tpl.php, v1.00 2019-03-02 10:12:05 gewa Exp $
   */
  if (!defined("_WOJO"))
      die('Direct access to this location is not allowed.');
?>
<?php
  $i = 0;
  $html = '';

  switch ($_GET['type']):
      case "filter":
          foreach ($this->section as $pkey):
              $i++;
              $html .= '
		  <div class="item">
			<div class="content"><span data-editable="true" data-set=\'{"action": "editPhrase", "id": ' . $i . ',"key":"' . $pkey['data'] . '"}\'>' . $pkey . '</span></div>
			<div class="content auto"><span class="wojo small dark inverted label">' . $pkey['data'] . '</span></div>
		  </div>';
          endforeach;
          break;

      default:
          foreach ($this->xmlel as $pkey):
              $i++;
              $html .= '
		  <div class="item">
			<div class="content"><span data-editable="true" data-set=\'{"action": "editPhrase", "id": ' . $i . ',"key":"' . $pkey['data'] . '"}\'>' . $pkey . '</span></div>
			<div class="content auto"><span class="wojo small dark inverted label">' . $pkey['data'] . '</span></div>
		  </div>';
          endforeach;
          break;

  endswitch;
  echo $html;
?>