mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 22:24:42 +09:00
Task #1276 - Rename templates to native Twig extension
This commit is contained in:
1 parent
39407bce41
commit
3380a10178
412 files changed
+967
-855
No files matched your search
@@ -15,8 +15,8 @@ All modules can communicate with the other modules using their API endpoints.
|
||||
|
||||
## Optional
|
||||
* **README.md** - file for installation and getting started instructions
|
||||
* **html_admin** folder - for admin area templates, to store custom *.phtml files
|
||||
* **html_client** folder - for client area templates, to store custom *.phtml files
|
||||
* **html_admin** folder - for admin area templates, to store custom *.html.twig files
|
||||
* **html_client** folder - for client area templates, to store custom *.html.twig files
|
||||
###### Controller folder
|
||||
* **Admin.php** - if the module has install/uninstall instructions or
|
||||
an admin area interface
|
||||
@@ -27,4 +27,4 @@ All modules can communicate with the other modules using their API endpoints.
|
||||
* **Guest.php** - Guest API, no authorization is needed for these endpoints. Don't provide confidential data over these endpoints. Anybody over the internet will be able to access these information, including bots.
|
||||
|
||||
# Tips
|
||||
We recommend hosting your extensions on a public [GitHub](https://github.com) repository.
|
||||
We recommend hosting your extensions on a public [GitHub](https://github.com) repository.
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BoxBilling.
|
||||
*
|
||||
@@ -240,7 +241,7 @@ class Service
|
||||
|
||||
$email = array();
|
||||
$email['to_client'] = $params['client_id'];
|
||||
$email['code'] = 'mod_example_email'; //@see bb-modules/Example/html_email/mod_example_email.phtml
|
||||
$email['code'] = 'mod_example_email'; //@see bb-modules/Example/html_email/mod_example_email.html.twig
|
||||
|
||||
// these parameters are available in email template
|
||||
$email['order'] = $api->order_get(array('id'=>$params['id']));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %}
|
||||
{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %}
|
||||
|
||||
{% block meta_title %}{{ 'Example module'|trans }}{% endblock %}
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %}
|
||||
{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %}
|
||||
|
||||
{% import "macro_functions.phtml" as mf %}
|
||||
{% import "macro_functions.html.twig" as mf %}
|
||||
|
||||
{% block meta_title %}Example extension settings{% endblock %}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<form method="post" action="{{ 'api/admin/extension/config_save'|link }}" class="mainForm api-form" data-api-msg="{{ 'Configuration updated'|trans }}">
|
||||
<div class="help">
|
||||
<h3>{{ 'Example extension settings'|trans }}</h3>
|
||||
<p>{{ 'Every extension can have settings page. Only requirement is to have mod_example_settings.phtml page in html_admin folder'|trans }}</p>
|
||||
<p>{{ 'Every extension can have settings page. Only requirement is to have mod_example_settings.html.twig page in html_admin folder'|trans }}</p>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %}
|
||||
{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %}
|
||||
|
||||
{% block meta_title %}{{ 'Example module'|trans }}{% endblock %}
|
||||
{% block breadcrumb %} <li class="active">{{ 'Example module'|trans }}</li>{% endblock %}
|
||||
Reference in new issue
Block a user