<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Tweak for OpenCart 2x Russkaya sborka</name>
<code>Tweak for OpenCart 2x Russkaya sborka</code>
<version>2.2.0.0</version>
<date>29.06.2016</date>
<author>Romans</author>
<link>http://opencart-russia.ru</link>


<file path="admin/view/template/common/header.tpl">
<!-- Расширяем колонку меню для русских слов и подключаем translit.js-->
	<operation>
		<search><![CDATA[
		<?php foreach ($links as $link) { ?>
		]]></search>
		<add position="before"><![CDATA[
<script type="text/javascript" src="view/javascript/jquery/translit.js"></script>

<style>
#column-left.active {width: 260px !important;}
#column-left.active + #content {margin-left: 270px !important;}
#menu > li > ul {width: 235px !important;}
</style>
		]]></add>
	</operation>

<!-- Подключаем русский перевод для редактора Summernote -->	
	<operation>
		<search><![CDATA[
		<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
		]]></search>
		<add position="after" trim="true"><![CDATA[
		<script type="text/javascript" src="view/javascript/summernote/lang/summernote-ru-RU.js"></script>
		]]></add>
	</operation>
	
<!-- Добавляем ссылки на сайт, документацию, форум -->	
	<operation>
		<search><![CDATA[
		<li><a href="http://www.opencart.com" target="_blank"><?php echo $text_homepage; ?></a></li>
		]]></search>
		<add position="replace"><![CDATA[
		<li><a href="http://opencart-russia.ru/" target="_blank"><?php echo $text_homepage; ?></a></li>
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
		<li><a href="http://docs.opencart.com" target="_blank"><?php echo $text_documentation; ?></a></li>
		]]></search>
		<add position="replace"><![CDATA[
		<li><a href="http://forum.opencart-russia.ru/threads/soderzhanie.5/" target="_blank"><?php echo $text_documentation; ?></a></li>
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
		<li><a href="http://forum.opencart.com" target="_blank"><?php echo $text_support; ?></a></li>
		]]></search>
		<add position="replace"><![CDATA[
		<li><a href="http://forum.opencart-russia.ru" target="_blank"><?php echo $text_support; ?></a></li>
		]]></add>
	</operation>
	
</file>

<!-- Скрываем поля в форме товара -->
<file path="admin/view/template/catalog/product_form.tpl">
	<operation>
		<search><![CDATA[
			<label class="col-sm-2 control-label" for="input-sku"><span data-toggle="tooltip" title="<?php echo $help_sku; ?>"><?php echo $entry_sku; ?></span></label>
		]]></search>
		<add position="replace" offset="-2"><![CDATA[
               <label class="col-sm-2 control-label" for="input-sku"><span data-toggle="tooltip" title="<?php echo $help_sku; ?>"><?php echo $entry_sku; ?></span></label>
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
        <label class="col-sm-2 control-label" for="input-sku">
		]]></search>
		<add position="before"><![CDATA[
 				<div class="col-sm-1 text-right">
					<a type="button"  title="Показать/Скрыть - Дополнительные поля " class="btn btn-info " data-toggle="collapse" data-parent="#accordion" href="#pcollapse"><i class="fa fa-arrows-v"></i></a>
				</div>
			 </div>
			  
              <div class="collapse" id="pcollapse">
			  <div class="form-group">
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
		<label class="col-sm-2 control-label" for="input-location"><?php echo $entry_location; ?></label>
		]]></search>
		<add position="before" offset="1"><![CDATA[
			  </div>
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
		<input type="text" name="model" value="<?php echo $model; ?>" placeholder="<?php echo $entry_model; ?>" id="input-model" class="form-control" />
		]]></search>
		<add position="replace" offset="-1"><![CDATA[
                <div class="col-sm-9">
                  <input type="text" name="model" value="<?php echo $model; ?>" placeholder="<?php echo $entry_model; ?>" id="input-model" class="form-control" />
		]]></add>
	</operation>
</file>

<!-- Меняем местами пункты меню (в разделе Модули) для более удобной навигации -->
<file path="admin/view/template/common/menu.tpl">
	<operation>
		<search><![CDATA[
      <li><a href="<?php echo $theme; ?>"><?php echo $text_theme; ?></a></li>
		]]></search>
		<add position="replace" offset="4"><![CDATA[
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
      <li><a href="<?php echo $total; ?>"><?php echo $text_total; ?></a></li>
		]]></search>
		<add position="after"><![CDATA[
      <li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
      <li><a href="<?php echo $theme; ?>"><?php echo $text_theme; ?></a></li>	  
      <li><a href="<?php echo $analytics; ?>"><?php echo $text_analytics; ?></a></li>
      <li><a href="<?php echo $captcha; ?>"><?php echo $text_captcha; ?></a></li>
      <li><a href="<?php echo $fraud; ?>"><?php echo $text_fraud; ?></a></li>
		]]></add>
	</operation>	
	
</file>



<!-- Делаем кнопку импорта более ровной за счет класса button -->

<file path="admin/view/template/tool/backup.tpl">
	<operation>
		<search><![CDATA[
		<input type="file" name="import" id="input-import" />
		]]></search>
		<add position="replace"><![CDATA[
		<input class="btn btn-default" type="file" name="import" id="input-import" />
		]]></add>
	</operation>
	
</file>


<!-- Делаем в файловом менеджере сохранение последней открытой директории -->

<file path="admin/controller/common/filemanager.php">
	<operation>
		<search><![CDATA[
		$this->load->language('common/filemanager');
		]]></search>
		<add position="after"><![CDATA[
		// Запоминае последней директории
		if (!isset($this->request->get['directory']) && !isset($this->request->get['parent']) ) {
			$this->request->get['directory'] = isset($this->session->data['directory_file_manager']) ? $this->session->data['directory_file_manager'] : null;
			$this->request->get['page'] = isset($this->session->data['page_file_manager']) ? $this->session->data['page_file_manager'] : null;
		} else {
			$this->session->data['directory_file_manager'] = isset($this->request->get['directory']) ? $this->request->get['directory'] : null;
			$this->session->data['page_file_manager'] = isset($this->request->get['page']) ? $this->request->get['page'] : null;
		}
		]]></add>
	</operation>
	
	<operation>
		<search><![CDATA[
		// Parent
		]]></search>
		<add position="replace" offset="1"><![CDATA[
		// Parent
		$url = '&parent=parent';
		]]></add>
	</operation>
	
</file>

</modification>