Skip to content

Commit

Permalink
added information tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenfin committed Sep 22, 2018
1 parent a159f2c commit 2aefaac
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 3 deletions.
7 changes: 5 additions & 2 deletions upload/admin/controller/extension/module/foc_add2cart_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function index () {
$this->model_extension_module_foc_add2cart_box->saveSettings($data['fa2cb_settings']);

$this->response->redirect($this->createUrl('extension/module/foc_add2cart_box/index'));
// $this->response->redirect($this->url->link('extension/module/foc_add2cart_box/index', 'token=' . $this->session->data['token'], 'SSL'));
}
}

Expand All @@ -79,7 +78,11 @@ public function index () {
foreach ($validKeys as $key) {
$data['labels'][$key] = $this->language->get('label_' . $key);
$data['tooltips'][$key] = $this->language->get('tooltip_' . $key);
}
}

$data['labels']['foc_add2cart_box_info_tab_name'] = $this->language->get('foc_add2cart_box_info_tab_name');
$data['labels']['foc_add2cart_box_info_tab_title'] = $this->language->get('foc_add2cart_box_info_tab_title');
$data['labels']['foc_add2cart_box_info_tab_content'] = $this->language->get('foc_add2cart_box_info_tab_content');

return $this->response->setOutput($this->load->view('extension/module/foc_add2cart_box', $data));
}
Expand Down
21 changes: 21 additions & 0 deletions upload/admin/language/en-gb/extension/module/foc_add2cart_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,25 @@
$_['label_foc_add2cart_box_continue_css_class'] = 'Continue button css classes';
$_['label_foc_add2cart_box_autoclose_time'] = 'Autoclose modal timeout (0 - disabled)';

$_['foc_add2cart_box_info_tab_name'] = 'Information';
$_['foc_add2cart_box_info_tab_title'] = 'About';
$_['foc_add2cart_box_info_tab_content'] = '
<p>
This module is licensed under GNU GPLv3, part of <a href="http://freeocart.ru" target="_blank">freeocart</a> project
</p>
<p>
If you have any questions, or you need a help with install/setup - please <a href="mailto:[email protected]">email me</a>!
</p>
<hr>
<h3>How i can help</h3>
<p>
All developed products by freeocart project is opensource software, so any help is welcome!
</p>
<ul>
<li>Found a bug? Please, report on github (issues)</li>
<li>Have interesting modifications? Send me pull request on github!</li>
<li>You are good translater? Please <a href="mailto:[email protected]">email me</a></li>
</ul>
';

$_['tooltip_foc_add2cart_box_content'] = 'Tooltip {{ continue_btn }} - continue button';
21 changes: 21 additions & 0 deletions upload/admin/language/ru-ru/extension/module/foc_add2cart_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,25 @@
$_['label_foc_add2cart_box_continue_css_class'] = 'Css классы кнопки закрытия';
$_['label_foc_add2cart_box_autoclose_time'] = 'Время автозакрытия (0 - выключено)';

$_['foc_add2cart_box_info_tab_name'] = 'Информация';
$_['foc_add2cart_box_info_tab_title'] = 'О модуле';
$_['foc_add2cart_box_info_tab_content'] = '
<p>
Модуль является частью проекта <a href="http://freeocart.ru" target="_blank">freeocart</a> и распространяется под лицензией GNU GPLv3.
</p>
<p>
Если у вас возникли вопросы по работе модуля, или сложности с установкой/настройкой, то вы можете связаться со мной по e-mail: <a href="mailto:[email protected]">[email protected]</a>.
</p>
<hr>
<h3>Помощь проекту</h3>
<p>
Все разработки проекта freeocart являются открытым программным обеспечением, любая помощь всегда приветствуется!
</p>
<ul>
<li>Нашли ошибку? Сообщите на github (раздел issues)</li>
<li>Расширили функционал? Присылайте pull request на github!</li>
<li>Хорошо владеете языками? Свяжитесь со мной <a href="http://freeocart.ru" target="_blank">любым удобным способом</a></li>
</ul>
';

$_['tooltip_foc_add2cart_box_content'] = 'Тултип';
14 changes: 13 additions & 1 deletion upload/admin/view/template/extension/module/foc_add2cart_box.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<a href="#language<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
</li>
<?php endforeach; ?>
<li>
<a href="#tab-info" data-toggle="tab">
<i class="fa fa-info-circle"></i> <?php echo $labels['foc_add2cart_box_info_tab_name']; ?>
</a>
</li>
</ul>

<div class="tab-content">
Expand Down Expand Up @@ -77,8 +82,15 @@
</div>
</div>
<?php endforeach; ?>
</div>

<div id="tab-info" class="tab-pane">
<h3><?php echo $labels['foc_add2cart_box_info_tab_title']; ?></h3>
<hr>
<div>
<?php echo $labels['foc_add2cart_box_info_tab_content']; ?>
</div>
</div>
</div>
</form>
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions upload/admin/view/template/extension/module/foc_add2cart_box.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<a href="#language{{ language['language_id'] }}" data-toggle="tab"><img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /> {{ language['name'] }}</a>
</li>
{% endfor %}
<li>
<a href="#tab-info" data-toggle="tab">
<i class="fa fa-info-circle"></i> {{ labels['foc_add2cart_box_info_tab_name'] }}
</a>
</li>
</ul>

<div class="tab-content">
Expand Down Expand Up @@ -75,6 +80,14 @@
</div>
</div>
{% endfor %}

<div id="tab-info" class="tab-pane">
<h3>{{ labels['foc_add2cart_box_info_tab_title'] }}</h3>
<hr>
<div>
{{ labels['foc_add2cart_box_info_tab_content'] }}
</div>
</div>
</div>

</form>
Expand Down

0 comments on commit 2aefaac

Please sign in to comment.