<?php
/**
 * @copyright     Copyright (c) 2009-2020 Ryan Demmer. All rights reserved
 * @license       GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * JCE is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses
 */
defined('JPATH_PLATFORM') or die;
?>
<form onsubmit="return false;">
<div class="source-editor">
  <div class="uk-navbar">
    <div class="uk-navbar-content uk-padding-remove uk-margin-small uk-margin-small-top">
        <button type="button" class="uk-button" data-action="undo" title="<?php echo JText::_('WF_SOURCE_UNDO', 'Undo'); ?>"><i class="uk-icon uk-icon-undo"></i></button>
        <button type="button" class="uk-button" data-action="redo" title="<?php echo JText::_('WF_SOURCE_REDO', 'Redo'); ?>"><i class="uk-icon uk-icon-redo"></i></button>

        <button type="button" class="uk-button uk-button-checkbox uk-active" data-action="highlight" title="<?php echo JText::_('WF_SOURCE_HIGHLIGHT', 'Highlight'); ?>"><i class="uk-icon uk-icon-code-highlight"></i></button>
        <button type="button" class="uk-button uk-button-checkbox uk-active" data-action="linenumbers" title="<?php echo JText::_('WF_SOURCE_NUMBERS', 'Line Numbers'); ?>"><i class="uk-icon uk-icon-code-linenumbers"></i></button>
        <button type="button" class="uk-button uk-button-checkbox uk-active" data-action="wrap" title="<?php echo JText::_('WF_SOURCE_WRAP', 'Wrap Lines'); ?>"><i class="uk-icon uk-icon-code-wrap"></i></button>
        <button type="button" class="uk-button" data-action="format" title="<?php echo JText::_('WF_SOURCE_FORMAT', 'Format Code'); ?>"><i class="uk-icon uk-icon-code-format"></i></button>
    </div>
    <div class="uk-navbar-content uk-navbar-flip uk-grid uk-grid-small uk-margin-small-top">
      <div class="uk-form uk-display-inline-block uk-margin-small">
        <input id="source_search_value" placeholder="<?php echo JText::_('WF_SOURCE_SEARCH', 'Search'); ?>" type="text" />
        <button type="button" class="uk-button" data-action="search" title="<?php echo JText::_('WF_SOURCE_SEARCH', 'Search'); ?>"><i class="uk-icon uk-icon-code-search-next"></i></button>
        <button type="button" class="uk-button" data-action="search-previous" title="<?php echo JText::_('WF_SOURCE_SEARCH_PREV', 'Search Previous'); ?>"><i class="uk-icon uk-icon-code-search-previous"></i></button>
      </div>

        <div class="uk-form uk-display-inline-block uk-margin-top-remove uk-margin-small">
          <input id="source_replace_value" placeholder="<?php echo JText::_('WF_SOURCE_REPLACE', 'Replace'); ?>" type="text" />
          <button type="button" class="uk-button" data-action="replace" title="<?php echo JText::_('WF_SOURCE_REPLACE', 'Replace'); ?>"><i class="uk-icon uk-icon-code-replace"></i></button>
          <button type="button" class="uk-button" data-action="replace-all" title="<?php echo JText::_('WF_SOURCE_REPLACE_ALL', 'Replace All'); ?>"><i class="uk-icon uk-icon-code-replace-all"></i></button>
          <button type="button" class="uk-button uk-button-checkbox" data-action="regex" title="<?php echo JText::_('WF_SOURCE_SOURCE_REGEX', 'Regular Expression'); ?>"><i class="uk-icon uk-icon-code-search-regex"></i></button>
        </div>
    </div>
  </div>
  <div class="source-editor-container"></div>
</div>
    <div class="actionPanel uk-modal-footer">
        <button type="button" class="save uk-button uk-button-primary"><i class="uk-icon-check uk-margin-small-right"></i><?php echo JText::_('WF_LABEL_SAVE'); ?></button>
    </div>
    <input type="hidden" id="src" value="" />
    <input type="hidden" name="<?php echo JSession::getFormToken(); ?>" value="1" />
</form>