?> <span class="input-group-addon"><?php echo EXT; ?> </span> </div> </div> </div> </div> <div class="panel-heading"> <span class="panel-title"><?php echo __('Content'); ?> </span> <?php echo UI::badge($layout->get_relative_path()); ?> <?php if ($layout->is_writable() or !$layout->is_exists()) { ?> <div class="panel-heading-controls"> <?php echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m')); ?> </div> <?php } ?> </div> <?php
?> <span class="input-group-addon"><?php echo EXT; ?> </span> </div> </div> </div> </div> <div class="panel-heading"> <span class="panel-title"><?php echo __('Content'); ?> </span> <?php echo UI::badge($snippet->get_relative_path()); ?> <?php if ($snippet->is_writable() or !$snippet->is_exists()) { ?> <div class="panel-heading-controls"> <?php echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m')); ?> </div> <?php } ?> </div> <?php echo Form::textarea('content', $snippet->content, array('id' => 'textarea_content', 'tabindex' => 2, 'data-height' => 600, 'data-readonly' => (!$snippet->is_exists() or $snippet->is_exists() and $snippet->is_writable()) ? 'off' : 'on'));