From 3380a101789d8ea7e7e4cb0fda34b8c8b3d4abb5 Mon Sep 17 00:00:00 2001 From: andpavlenko Date: Thu, 21 Apr 2022 13:49:37 +0000 Subject: [PATCH] Task #1276 - Rename templates to native Twig extension --- src/.editorconfig => .editorconfig | 0 .gitignore | 2 +- .php-cs-fixer.dist.php | 53 +++++ CHANGELOG.md | 1 + src/.php-cs-fixer.dist.php | 26 -- src/bb-library/Box/App.php | 224 ++++++++++-------- src/bb-library/Box/AppAdmin.php | 23 +- src/bb-library/Box/AppClient.php | 63 ++--- src/bb-library/Box/Mod.php | 30 +-- ...gs.phtml => mod_client_settings.html.twig} | 4 +- ...nce.phtml => mod_client_balance.html.twig} | 6 +- ...ile.phtml => mod_client_profile.html.twig} | 2 +- ...irm.phtml => mod_client_confirm.html.twig} | 0 ...d_client_password_reset_approve.html.twig} | 0 ...d_client_password_reset_request.html.twig} | 0 ...gnup.phtml => mod_client_signup.html.twig} | 0 ...html => mod_cookieconsent_index.html.twig} | 6 +- ...html => mod_cookieconsent_index.html.twig} | 0 ...ings.phtml => mod_cron_settings.html.twig} | 4 +- ...n_check.phtml => mod_cron_check.html.twig} | 0 ...ge.phtml => mod_currency_manage.html.twig} | 4 +- ....phtml => mod_currency_settings.html.twig} | 4 +- ....phtml => mod_custompages_index.html.twig} | 8 +- ...e.phtml => mod_custompages_page.html.twig} | 4 +- ...html => mod_custompages_content.html.twig} | 2 +- ...ex.phtml => mod_dashboard_index.html.twig} | 4 +- src/bb-modules/Email/Api/Admin.php | 3 +- src/bb-modules/Email/Service.php | 5 +- ...ails.phtml => mod_email_details.html.twig} | 2 +- ...tory.phtml => mod_email_history.html.twig} | 8 +- ...ngs.phtml => mod_email_settings.html.twig} | 4 +- ...ate.phtml => mod_email_template.html.twig} | 2 +- ..._email.phtml => mod_email_email.html.twig} | 2 +- ..._index.phtml => mod_email_index.html.twig} | 4 +- ...il_test.phtml => mod_email_test.html.twig} | 0 ..._index.phtml => mod_embed_index.html.twig} | 2 +- ...tact.phtml => mod_embed_contact.html.twig} | 0 ...html => mod_embed_domainchecker.html.twig} | 0 ...rm.phtml => mod_embed_loginform.html.twig} | 0 src/bb-modules/Example/README.md | 6 +- src/bb-modules/Example/Service.php | 3 +- ...ndex.phtml => mod_example_index.html.twig} | 2 +- ...s.phtml => mod_example_settings.html.twig} | 6 +- ...ndex.phtml => mod_example_index.html.twig} | 2 +- ...mail.phtml => mod_example_email.html.twig} | 0 ....phtml => mod_formbuilder_field.html.twig} | 0 ...phtml => mod_formbuilder_manage.html.twig} | 0 ...html => mod_formbuilder_preview.html.twig} | 0 ...tml => mod_formbuilder_settings.html.twig} | 8 +- ....phtml => mod_formbuilder_build.html.twig} | 0 ..._forum.phtml => mod_forum_forum.html.twig} | 4 +- ..._index.phtml => mod_forum_index.html.twig} | 8 +- ...file.phtml => mod_forum_profile.html.twig} | 6 +- ...ngs.phtml => mod_forum_settings.html.twig} | 4 +- ..._topic.phtml => mod_forum_topic.html.twig} | 6 +- ..._forum.phtml => mod_forum_forum.html.twig} | 4 +- ..._index.phtml => mod_forum_index.html.twig} | 2 +- ...phtml => mod_forum_members_list.html.twig} | 4 +- ...orum_rss.phtml => mod_forum_rss.html.twig} | 0 ..._topic.phtml => mod_forum_topic.html.twig} | 6 +- ...ost.phtml => mod_forum_new_post.html.twig} | 0 ...rd.phtml => mod_index_dashboard.html.twig} | 4 +- ...s.phtml => mod_invoice_settings.html.twig} | 4 +- ...k.phtml => mod_invoice_banklink.html.twig} | 2 +- ...ndex.phtml => mod_invoice_index.html.twig} | 2 +- ...ce.phtml => mod_invoice_invoice.html.twig} | 4 +- ...ce_pdf.phtml => mod_invoice_pdf.html.twig} | 0 ...rint.phtml => mod_invoice_print.html.twig} | 0 ...u.phtml => mod_invoice_thankyou.html.twig} | 2 +- ...ed.phtml => mod_invoice_created.html.twig} | 0 ....phtml => mod_invoice_due_after.html.twig} | 0 ..._paid.phtml => mod_invoice_paid.html.twig} | 0 ...=> mod_invoice_payment_reminder.html.twig} | 0 ...article.phtml => mod_kb_article.html.twig} | 4 +- ...tegory.phtml => mod_kb_category.html.twig} | 2 +- ..._kb_index.phtml => mod_kb_index.html.twig} | 6 +- ...article.phtml => mod_kb_article.html.twig} | 2 +- ...tegory.phtml => mod_kb_category.html.twig} | 2 +- ..._kb_index.phtml => mod_kb_index.html.twig} | 2 +- ...x.phtml => mod_massmailer_index.html.twig} | 6 +- ...phtml => mod_massmailer_message.html.twig} | 2 +- ...s_index.phtml => mod_news_index.html.twig} | 8 +- ...ews_post.phtml => mod_news_post.html.twig} | 4 +- ...s_index.phtml => mod_news_index.html.twig} | 4 +- ...ews_post.phtml => mod_news_post.html.twig} | 4 +- ...phtml => mod_notification_index.html.twig} | 6 +- src/bb-modules/Order/Controller/Admin.php | 3 +- src/bb-modules/Order/Controller/Client.php | 5 +- ...ngs.phtml => mod_order_settings.html.twig} | 4 +- ..._index.phtml => mod_order_index.html.twig} | 6 +- ...er_list.phtml => mod_order_list.html.twig} | 6 +- ...anage.phtml => mod_order_manage.html.twig} | 6 +- ...duct.phtml => mod_order_product.html.twig} | 6 +- ...tml => mod_orderbutton_settings.html.twig} | 4 +- ...phtml => mod_orderbutton_addons.html.twig} | 0 ...tml => mod_orderbutton_checkout.html.twig} | 0 ... mod_orderbutton_choose_product.html.twig} | 0 ...phtml => mod_orderbutton_client.html.twig} | 2 +- ...tml => mod_orderbutton_currency.html.twig} | 0 ....phtml => mod_orderbutton_index.html.twig} | 10 +- ..._js.phtml => mod_orderbutton_js.html.twig} | 0 ...derbutton_product_configuration.html.twig} | 6 +- src/bb-modules/Page/Service.php | 7 +- ...t-us.phtml => mod_page_about-us.html.twig} | 2 +- ...e_login.phtml => mod_page_login.html.twig} | 2 +- ...html => mod_page_password-reset.html.twig} | 2 +- ...ml => mod_page_preview_markdown.html.twig} | 0 ...html => mod_page_privacy-policy.html.twig} | 2 +- ...signup.phtml => mod_page_signup.html.twig} | 4 +- ..._page_tos.phtml => mod_page_tos.html.twig} | 2 +- ...tml => mod_paidsupport_settings.html.twig} | 4 +- ...ngs.phtml => mod_queue_settings.html.twig} | 4 +- ....phtml => mod_redirect_settings.html.twig} | 4 +- ...tings.phtml => mod_seo_settings.html.twig} | 4 +- ...> mod_servicecentovacast_config.html.twig} | 0 ...> mod_servicecentovacast_manage.html.twig} | 0 ...=> mod_servicecentovacast_order.html.twig} | 0 ...mod_servicecentovacast_settings.html.twig} | 4 +- ...> mod_servicecentovacast_manage.html.twig} | 0 ...od_servicecentovacast_activated.html.twig} | 0 ...mod_servicecentovacast_canceled.html.twig} | 0 ... mod_servicecentovacast_renewed.html.twig} | 0 ...od_servicecentovacast_suspended.html.twig} | 0 ..._servicecentovacast_unsuspended.html.twig} | 0 ...html => mod_servicecustom_order.html.twig} | 0 ... => mod_servicecustom_activated.html.twig} | 0 ...l => mod_servicecustom_canceled.html.twig} | 0 ...ml => mod_servicecustom_renewed.html.twig} | 0 ... => mod_servicecustom_suspended.html.twig} | 0 ...> mod_servicecustom_unsuspended.html.twig} | 0 ...html => mod_servicedomain_order.html.twig} | 2 +- ...tml => mod_servicedomain_manage.html.twig} | 0 ...=> mod_servicedomain_order_form.html.twig} | 0 ... => mod_servicedomain_activated.html.twig} | 0 ...ml => mod_servicedomain_renewed.html.twig} | 0 ... => mod_servicedomain_suspended.html.twig} | 0 ...> mod_servicedomain_unsuspended.html.twig} | 0 ... mod_servicedownloadable_manage.html.twig} | 0 ...d_servicedownloadable_activated.html.twig} | 0 ...tml => mod_servicehosting_order.html.twig} | 0 ...ml => mod_servicehosting_manage.html.twig} | 0 ...> mod_servicehosting_order_form.html.twig} | 0 ...=> mod_servicehosting_activated.html.twig} | 0 ... => mod_servicehosting_canceled.html.twig} | 0 ...l => mod_servicehosting_renewed.html.twig} | 0 ...=> mod_servicehosting_suspended.html.twig} | 0 ... mod_servicehosting_unsuspended.html.twig} | 0 ...ml => mod_servicelicense_manage.html.twig} | 0 ...=> mod_servicelicense_activated.html.twig} | 0 ... => mod_servicelicense_canceled.html.twig} | 0 ...l => mod_servicelicense_renewed.html.twig} | 0 ...=> mod_servicelicense_suspended.html.twig} | 0 ... mod_servicelicense_unsuspended.html.twig} | 0 ...mod_servicemembership_activated.html.twig} | 0 ... mod_servicemembership_canceled.html.twig} | 0 ...> mod_servicemembership_renewed.html.twig} | 0 ...mod_servicemembership_suspended.html.twig} | 0 ...d_servicemembership_unsuspended.html.twig} | 0 ...ml => mod_servicesolusvm_config.html.twig} | 0 ...d_servicesolusvm_import_clients.html.twig} | 4 +- ...d_servicesolusvm_import_servers.html.twig} | 4 +- ...ml => mod_servicesolusvm_manage.html.twig} | 0 ...tml => mod_servicesolusvm_order.html.twig} | 0 ... => mod_servicesolusvm_settings.html.twig} | 2 +- ...l => mod_servicesolusvm_listing.html.twig} | 0 ...ml => mod_servicesolusvm_manage.html.twig} | 0 ...> mod_servicesolusvm_order_form.html.twig} | 0 ...=> mod_servicesolusvm_activated.html.twig} | 0 ... => mod_servicesolusvm_canceled.html.twig} | 0 ...l => mod_servicesolusvm_renewed.html.twig} | 0 ...=> mod_servicesolusvm_suspended.html.twig} | 0 ... mod_servicesolusvm_unsuspended.html.twig} | 0 ...tml => mod_spamchecker_settings.html.twig} | 4 +- ...ml => mod_spamchecker_recaptcha.html.twig} | 0 ...ngs.phtml => mod_staff_settings.html.twig} | 4 +- ...phtml => mod_staff_client_order.html.twig} | 0 ...html => mod_staff_client_signup.html.twig} | 0 ...html => mod_staff_pticket_close.html.twig} | 0 ...phtml => mod_staff_pticket_open.html.twig} | 0 ...html => mod_staff_pticket_reply.html.twig} | 0 ...phtml => mod_staff_ticket_close.html.twig} | 0 ....phtml => mod_staff_ticket_open.html.twig} | 0 ...phtml => mod_staff_ticket_reply.html.twig} | 0 ... => mod_support_canned_selector.html.twig} | 0 ...k.phtml => mod_support_helpdesk.html.twig} | 4 +- ...s.phtml => mod_support_settings.html.twig} | 4 +- ...phtml => mod_support_contact_us.html.twig} | 4 +- ...support_contact_us_conversation.html.twig} | 4 +- ...ket.phtml => mod_support_ticket.html.twig} | 4 +- ...ts.phtml => mod_support_tickets.html.twig} | 6 +- ...od_support_helpdesk_ticket_open.html.twig} | 0 ...tml => mod_support_pticket_open.html.twig} | 0 ...mod_support_pticket_staff_close.html.twig} | 0 ... mod_support_pticket_staff_open.html.twig} | 0 ...mod_support_pticket_staff_reply.html.twig} | 0 ...html => mod_support_ticket_open.html.twig} | 0 ... mod_support_ticket_staff_close.html.twig} | 0 ...> mod_support_ticket_staff_open.html.twig} | 0 ... mod_support_ticket_staff_reply.html.twig} | 0 src/bb-modules/System/Api/Admin.php | 4 +- src/bb-modules/System/Api/Guest.php | 3 +- ...gs.phtml => mod_system_settings.html.twig} | 4 +- ...phtml => mod_system_maintenance.html.twig} | 0 src/bb-modules/Theme/Model/Theme.php | 3 +- src/bb-modules/Theme/Service.php | 5 +- ...reset.phtml => mod_theme_preset.html.twig} | 2 +- ...ngs.phtml => mod_theme_settings.html.twig} | 2 +- ...iwyg_js.phtml => mod_wysiwyg_js.html.twig} | 0 ...s.phtml => mod_wysiwyg_settings.html.twig} | 4 +- .../html/{404.phtml => 404.html.twig} | 2 +- ...out_blank.phtml => layout_blank.html.twig} | 0 ...default.phtml => layout_default.html.twig} | 12 +- ...out_login.phtml => layout_login.html.twig} | 4 +- ...ctions.phtml => macro_functions.html.twig} | 2 +- ...dex.phtml => mod_activity_index.html.twig} | 8 +- ...group.phtml => mod_client_group.html.twig} | 2 +- ...index.phtml => mod_client_index.html.twig} | 8 +- ...tml => mod_client_login_history.html.twig} | 8 +- ...nage.phtml => mod_client_manage.html.twig} | 6 +- ...ex.phtml => mod_extension_index.html.twig} | 6 +- ...html => mod_extension_languages.html.twig} | 4 +- ...rd.phtml => mod_index_dashboard.html.twig} | 4 +- ...ay.phtml => mod_invoice_gateway.html.twig} | 4 +- ...s.phtml => mod_invoice_gateways.html.twig} | 6 +- ...ndex.phtml => mod_invoice_index.html.twig} | 8 +- ...ce.phtml => mod_invoice_invoice.html.twig} | 4 +- ...tml => mod_invoice_subscription.html.twig} | 4 +- ...ml => mod_invoice_subscriptions.html.twig} | 8 +- ...ce_tax.phtml => mod_invoice_tax.html.twig} | 6 +- ....phtml => mod_invoice_taxupdate.html.twig} | 4 +- ...html => mod_invoice_transaction.html.twig} | 4 +- ...tml => mod_invoice_transactions.html.twig} | 8 +- ..._index.phtml => mod_order_index.html.twig} | 8 +- ...anage.phtml => mod_order_manage.html.twig} | 8 +- ...rder_new.phtml => mod_order_new.html.twig} | 6 +- ...tml => mod_product_addon_manage.html.twig} | 4 +- ...ons.phtml => mod_product_addons.html.twig} | 2 +- ...y.phtml => mod_product_category.html.twig} | 4 +- ...ndex.phtml => mod_product_index.html.twig} | 6 +- ...age.phtml => mod_product_manage.html.twig} | 10 +- ...romo.phtml => mod_product_promo.html.twig} | 2 +- ...mos.phtml => mod_product_promos.html.twig} | 6 +- ...tml => mod_servicecustom_config.html.twig} | 0 ...tml => mod_servicecustom_manage.html.twig} | 0 ...tml => mod_servicedomain_config.html.twig} | 0 ...html => mod_servicedomain_index.html.twig} | 6 +- ...tml => mod_servicedomain_manage.html.twig} | 0 ... => mod_servicedomain_registrar.html.twig} | 4 +- ....phtml => mod_servicedomain_tld.html.twig} | 4 +- ... mod_servicedownloadable_config.html.twig} | 0 ... mod_servicedownloadable_manage.html.twig} | 0 ...ml => mod_servicehosting_config.html.twig} | 2 +- ....phtml => mod_servicehosting_hp.html.twig} | 2 +- ...tml => mod_servicehosting_index.html.twig} | 4 +- ...ml => mod_servicehosting_manage.html.twig} | 2 +- ...ml => mod_servicehosting_server.html.twig} | 2 +- ...ml => mod_servicelicense_config.html.twig} | 2 +- ...ml => mod_servicelicense_manage.html.twig} | 0 ...=> mod_servicemembership_config.html.twig} | 0 ...=> mod_servicemembership_manage.html.twig} | 0 ..._group.phtml => mod_staff_group.html.twig} | 2 +- ..._index.phtml => mod_staff_index.html.twig} | 2 +- ..._login.phtml => mod_staff_login.html.twig} | 2 +- ...html => mod_staff_login_history.html.twig} | 8 +- ...anage.phtml => mod_staff_manage.html.twig} | 4 +- ...file.phtml => mod_staff_profile.html.twig} | 2 +- ... => mod_support_canned_category.html.twig} | 4 +- ... => mod_support_canned_response.html.twig} | 4 +- ...=> mod_support_canned_responses.html.twig} | 6 +- ...ml => mod_support_public_ticket.html.twig} | 6 +- ...l => mod_support_public_tickets.html.twig} | 8 +- ...ket.phtml => mod_support_ticket.html.twig} | 6 +- ...ts.phtml => mod_support_tickets.html.twig} | 8 +- ...index.phtml => mod_system_index.html.twig} | 4 +- ...e.phtml => partial_batch_delete.html.twig} | 0 ...b_meta.phtml => partial_bb_meta.html.twig} | 0 ...ons.phtml => partial_extensions.html.twig} | 0 ..._footer.phtml => partial_footer.html.twig} | 0 ...tial_menu.phtml => partial_menu.html.twig} | 0 ...u_top.phtml => partial_menu_top.html.twig} | 0 ...ion.phtml => partial_pagination.html.twig} | 0 ...ricing.phtml => partial_pricing.html.twig} | 0 ..._styles.phtml => partial_styles.html.twig} | 0 .../html/{404.phtml => 404.html.twig} | 2 +- ...ymous.phtml => _index-anonymous.html.twig} | 2 +- ...x-client.phtml => _index-client.html.twig} | 4 +- .../{_showcase.phtml => _showcase.html.twig} | 0 ...statistics.phtml => _statistics.html.twig} | 2 +- ...{_add-funds.phtml => _add-funds.html.twig} | 0 ...add-ticket.phtml => _add-ticket.html.twig} | 2 +- .../Modal/{_login.phtml => _login.html.twig} | 0 ...stration.phtml => _registration.html.twig} | 2 +- .../{_header.phtml => _header.html.twig} | 2 +- .../{_message.phtml => _message.html.twig} | 0 .../html/{_menu.phtml => _menu.html.twig} | 0 ...der-steps.phtml => _order-steps.html.twig} | 0 ...pagination.phtml => _pagination.html.twig} | 0 ...out_blank.phtml => layout_blank.html.twig} | 0 ...default.phtml => layout_default.html.twig} | 10 +- ...ctions.phtml => macro_functions.html.twig} | 0 ...t_index.phtml => mod_cart_index.html.twig} | 8 +- ...nce.phtml => mod_client_balance.html.twig} | 8 +- ...ile.phtml => mod_client_profile.html.twig} | 4 +- ..._email.phtml => mod_email_email.html.twig} | 2 +- ..._index.phtml => mod_email_index.html.twig} | 4 +- ....phtml => mod_formbuilder_build.html.twig} | 0 ..._forum.phtml => mod_forum_forum.html.twig} | 4 +- ..._index.phtml => mod_forum_index.html.twig} | 2 +- ..._topic.phtml => mod_forum_topic.html.twig} | 6 +- ...rd.phtml => mod_index_dashboard.html.twig} | 18 +- ...k.phtml => mod_invoice_banklink.html.twig} | 4 +- ...ndex.phtml => mod_invoice_index.html.twig} | 6 +- ...ce.phtml => mod_invoice_invoice.html.twig} | 6 +- ...rint.phtml => mod_invoice_print.html.twig} | 0 ...u.phtml => mod_invoice_thankyou.html.twig} | 2 +- ...article.phtml => mod_kb_article.html.twig} | 2 +- ...tegory.phtml => mod_kb_category.html.twig} | 2 +- ..._kb_index.phtml => mod_kb_index.html.twig} | 2 +- ...s_index.phtml => mod_news_index.html.twig} | 4 +- ...ews_post.phtml => mod_news_post.html.twig} | 4 +- ..._index.phtml => mod_order_index.html.twig} | 10 +- ...er_list.phtml => mod_order_list.html.twig} | 6 +- ...anage.phtml => mod_order_manage.html.twig} | 10 +- ...duct.phtml => mod_order_product.html.twig} | 14 +- ...t-us.phtml => mod_page_about-us.html.twig} | 2 +- ...e_login.phtml => mod_page_login.html.twig} | 4 +- ...html => mod_page_privacy-policy.html.twig} | 2 +- ...html => mod_page_reset-password.html.twig} | 2 +- ..._page_tos.phtml => mod_page_tos.html.twig} | 2 +- ...tml => mod_servicedomain_manage.html.twig} | 0 ...html => mod_servicedomain_order.html.twig} | 12 +- ... mod_servicedownloadable_manage.html.twig} | 0 ...ml => mod_servicehosting_manage.html.twig} | 0 ...tml => mod_servicehosting_order.html.twig} | 12 +- ...ml => mod_servicelicense_manage.html.twig} | 0 ...phtml => mod_support_contact_us.html.twig} | 4 +- ...support_contact_us_conversation.html.twig} | 8 +- ...ket.phtml => mod_support_ticket.html.twig} | 8 +- ...ts.phtml => mod_support_tickets.html.twig} | 8 +- ..._addons.phtml => partial_addons.html.twig} | 0 ...rency.phtml => partial_currency.html.twig} | 0 ...essage.phtml => partial_message.html.twig} | 0 ...tml => partial_pending_messages.html.twig} | 0 ...ricing.phtml => partial_pricing.html.twig} | 0 .../html/{404.phtml => 404.html.twig} | 2 +- ...out_blank.phtml => layout_blank.html.twig} | 0 ...default.phtml => layout_default.html.twig} | 8 +- ...ctions.phtml => macro_functions.html.twig} | 0 ...t_index.phtml => mod_cart_index.html.twig} | 10 +- ...nce.phtml => mod_client_balance.html.twig} | 6 +- ...ile.phtml => mod_client_profile.html.twig} | 4 +- ...ex.phtml => mod_dashboard_index.html.twig} | 4 +- ..._email.phtml => mod_email_email.html.twig} | 2 +- ..._index.phtml => mod_email_index.html.twig} | 4 +- ....phtml => mod_formbuilder_build.html.twig} | 0 ..._forum.phtml => mod_forum_forum.html.twig} | 4 +- ..._index.phtml => mod_forum_index.html.twig} | 2 +- ..._topic.phtml => mod_forum_topic.html.twig} | 6 +- ...rd.phtml => mod_index_dashboard.html.twig} | 4 +- ...k.phtml => mod_invoice_banklink.html.twig} | 4 +- ...ndex.phtml => mod_invoice_index.html.twig} | 6 +- ...ce.phtml => mod_invoice_invoice.html.twig} | 6 +- ...u.phtml => mod_invoice_thankyou.html.twig} | 2 +- ...article.phtml => mod_kb_article.html.twig} | 2 +- ...tegory.phtml => mod_kb_category.html.twig} | 2 +- ..._kb_index.phtml => mod_kb_index.html.twig} | 2 +- ...s_index.phtml => mod_news_index.html.twig} | 4 +- ...ews_post.phtml => mod_news_post.html.twig} | 4 +- ..._index.phtml => mod_order_index.html.twig} | 10 +- ...er_list.phtml => mod_order_list.html.twig} | 6 +- ...anage.phtml => mod_order_manage.html.twig} | 6 +- ...duct.phtml => mod_order_product.html.twig} | 14 +- ...t-us.phtml => mod_page_about-us.html.twig} | 2 +- ...e_login.phtml => mod_page_login.html.twig} | 6 +- ...ml => mod_page_preview_markdown.html.twig} | 0 ...html => mod_page_privacy-policy.html.twig} | 2 +- ...html => mod_page_reset-password.html.twig} | 4 +- ..._page_tos.phtml => mod_page_tos.html.twig} | 2 +- ...tml => mod_servicedomain_manage.html.twig} | 0 ...html => mod_servicedomain_order.html.twig} | 10 +- ... mod_servicedownloadable_manage.html.twig} | 0 ...ml => mod_servicehosting_manage.html.twig} | 0 ...tml => mod_servicehosting_order.html.twig} | 12 +- ...ml => mod_servicelicense_manage.html.twig} | 0 ...tml => mod_servicesolusvm_order.html.twig} | 12 +- ...phtml => mod_support_contact_us.html.twig} | 4 +- ...support_contact_us_conversation.html.twig} | 4 +- ...ket.phtml => mod_support_ticket.html.twig} | 4 +- ...ts.phtml => mod_support_tickets.html.twig} | 6 +- ..._addons.phtml => partial_addons.html.twig} | 0 ...rency.phtml => partial_currency.html.twig} | 0 ...tial_menu.phtml => partial_menu.html.twig} | 0 ...essage.phtml => partial_message.html.twig} | 0 ...ion.phtml => partial_pagination.html.twig} | 0 ...tml => partial_pending_messages.html.twig} | 0 ...ricing.phtml => partial_pricing.html.twig} | 0 ...al_steps.phtml => partial_steps.html.twig} | 0 .../huraga/html/{404.phtml => 404.html.twig} | 2 +- ...default.phtml => layout_default.html.twig} | 8 +- ...t_public.phtml => layout_public.html.twig} | 2 +- ...ctions.phtml => macro_functions.html.twig} | 0 ...tial_menu.phtml => partial_menu.html.twig} | 0 ...essage.phtml => partial_message.html.twig} | 0 ...ion.phtml => partial_pagination.html.twig} | 0 ...tml => partial_pending_messages.html.twig} | 0 ...ricing.phtml => partial_pricing.html.twig} | 0 .../{install.phtml => install.html.twig} | 2 +- .../assets/{layout.phtml => layout.html.twig} | 0 src/install/install.php | 137 ++++++----- tests/bb-library/Box/Box_TwigLoaderTest.php | 45 ++-- .../bb-modules/mod_system/Api_AdminTest.php | 85 ++++--- .../bb-modules/mod_system/Api_GuestTest.php | 44 ++-- 412 files changed, 967 insertions(+), 855 deletions(-) rename src/.editorconfig => .editorconfig (100%) create mode 100644 .php-cs-fixer.dist.php delete mode 100644 src/.php-cs-fixer.dist.php rename src/bb-modules/Client/html_admin/{mod_client_settings.phtml => mod_client_settings.html.twig} (98%) rename src/bb-modules/Client/html_client/{mod_client_balance.phtml => mod_client_balance.html.twig} (93%) rename src/bb-modules/Client/html_client/{mod_client_profile.phtml => mod_client_profile.html.twig} (99%) rename src/bb-modules/Client/html_email/{mod_client_confirm.phtml => mod_client_confirm.html.twig} (100%) rename src/bb-modules/Client/html_email/{mod_client_password_reset_approve.phtml => mod_client_password_reset_approve.html.twig} (100%) rename src/bb-modules/Client/html_email/{mod_client_password_reset_request.phtml => mod_client_password_reset_request.html.twig} (100%) rename src/bb-modules/Client/html_email/{mod_client_signup.phtml => mod_client_signup.html.twig} (100%) rename src/bb-modules/Cookieconsent/html_admin/{mod_cookieconsent_index.phtml => mod_cookieconsent_index.html.twig} (91%) rename src/bb-modules/Cookieconsent/html_client/{mod_cookieconsent_index.phtml => mod_cookieconsent_index.html.twig} (100%) rename src/bb-modules/Cron/html_admin/{mod_cron_settings.phtml => mod_cron_settings.html.twig} (95%) rename src/bb-modules/Cron/html_client/{mod_cron_check.phtml => mod_cron_check.html.twig} (100%) rename src/bb-modules/Currency/html_admin/{mod_currency_manage.phtml => mod_currency_manage.html.twig} (95%) rename src/bb-modules/Currency/html_admin/{mod_currency_settings.phtml => mod_currency_settings.html.twig} (98%) rename src/bb-modules/Custompages/html_admin/{mod_custompages_index.phtml => mod_custompages_index.html.twig} (94%) rename src/bb-modules/Custompages/html_admin/{mod_custompages_page.phtml => mod_custompages_page.html.twig} (97%) rename src/bb-modules/Custompages/html_client/{mod_custompages_content.phtml => mod_custompages_content.html.twig} (89%) rename src/bb-modules/Dashboard/html_client/{mod_dashboard_index.phtml => mod_dashboard_index.html.twig} (98%) rename src/bb-modules/Email/html_admin/{mod_email_details.phtml => mod_email_details.html.twig} (95%) rename src/bb-modules/Email/html_admin/{mod_email_history.phtml => mod_email_history.html.twig} (88%) rename src/bb-modules/Email/html_admin/{mod_email_settings.phtml => mod_email_settings.html.twig} (99%) rename src/bb-modules/Email/html_admin/{mod_email_template.phtml => mod_email_template.html.twig} (99%) rename src/bb-modules/Email/html_client/{mod_email_email.phtml => mod_email_email.html.twig} (97%) rename src/bb-modules/Email/html_client/{mod_email_index.phtml => mod_email_index.html.twig} (96%) rename src/bb-modules/Email/html_email/{mod_email_test.phtml => mod_email_test.html.twig} (100%) rename src/bb-modules/Embed/html_admin/{mod_embed_index.phtml => mod_embed_index.html.twig} (95%) rename src/bb-modules/Embed/html_client/{mod_embed_contact.phtml => mod_embed_contact.html.twig} (100%) rename src/bb-modules/Embed/html_client/{mod_embed_domainchecker.phtml => mod_embed_domainchecker.html.twig} (100%) rename src/bb-modules/Embed/html_client/{mod_embed_loginform.phtml => mod_embed_loginform.html.twig} (100%) rename src/bb-modules/Example/html_admin/{mod_example_index.phtml => mod_example_index.html.twig} (96%) rename src/bb-modules/Example/html_admin/{mod_example_settings.phtml => mod_example_settings.html.twig} (89%) rename src/bb-modules/Example/html_client/{mod_example_index.phtml => mod_example_index.html.twig} (94%) rename src/bb-modules/Example/html_email/{mod_example_email.phtml => mod_example_email.html.twig} (100%) rename src/bb-modules/Formbuilder/html_admin/{mod_formbuilder_field.phtml => mod_formbuilder_field.html.twig} (100%) rename src/bb-modules/Formbuilder/html_admin/{mod_formbuilder_manage.phtml => mod_formbuilder_manage.html.twig} (100%) rename src/bb-modules/Formbuilder/html_admin/{mod_formbuilder_preview.phtml => mod_formbuilder_preview.html.twig} (100%) rename src/bb-modules/Formbuilder/html_admin/{mod_formbuilder_settings.phtml => mod_formbuilder_settings.html.twig} (98%) rename src/bb-modules/Formbuilder/html_client/{mod_formbuilder_build.phtml => mod_formbuilder_build.html.twig} (100%) rename src/bb-modules/Forum/html_admin/{mod_forum_forum.phtml => mod_forum_forum.html.twig} (95%) rename src/bb-modules/Forum/html_admin/{mod_forum_index.phtml => mod_forum_index.html.twig} (97%) rename src/bb-modules/Forum/html_admin/{mod_forum_profile.phtml => mod_forum_profile.html.twig} (96%) rename src/bb-modules/Forum/html_admin/{mod_forum_settings.phtml => mod_forum_settings.html.twig} (96%) rename src/bb-modules/Forum/html_admin/{mod_forum_topic.phtml => mod_forum_topic.html.twig} (97%) rename src/bb-modules/Forum/html_client/{mod_forum_forum.phtml => mod_forum_forum.html.twig} (97%) rename src/bb-modules/Forum/html_client/{mod_forum_index.phtml => mod_forum_index.html.twig} (98%) rename src/bb-modules/Forum/html_client/{mod_forum_members_list.phtml => mod_forum_members_list.html.twig} (94%) rename src/bb-modules/Forum/html_client/{mod_forum_rss.phtml => mod_forum_rss.html.twig} (100%) rename src/bb-modules/Forum/html_client/{mod_forum_topic.phtml => mod_forum_topic.html.twig} (97%) rename src/bb-modules/Forum/html_email/{mod_forum_new_post.phtml => mod_forum_new_post.html.twig} (100%) rename src/bb-modules/Index/html_client/{mod_index_dashboard.phtml => mod_index_dashboard.html.twig} (98%) rename src/bb-modules/Invoice/html_admin/{mod_invoice_settings.phtml => mod_invoice_settings.html.twig} (97%) rename src/bb-modules/Invoice/html_client/{mod_invoice_banklink.phtml => mod_invoice_banklink.html.twig} (95%) rename src/bb-modules/Invoice/html_client/{mod_invoice_index.phtml => mod_invoice_index.html.twig} (98%) rename src/bb-modules/Invoice/html_client/{mod_invoice_invoice.phtml => mod_invoice_invoice.html.twig} (98%) rename src/bb-modules/Invoice/html_client/{mod_invoice_pdf.phtml => mod_invoice_pdf.html.twig} (100%) rename src/bb-modules/Invoice/html_client/{mod_invoice_print.phtml => mod_invoice_print.html.twig} (100%) rename src/bb-modules/Invoice/html_client/{mod_invoice_thankyou.phtml => mod_invoice_thankyou.html.twig} (92%) rename src/bb-modules/Invoice/html_email/{mod_invoice_created.phtml => mod_invoice_created.html.twig} (100%) rename src/bb-modules/Invoice/html_email/{mod_invoice_due_after.phtml => mod_invoice_due_after.html.twig} (100%) rename src/bb-modules/Invoice/html_email/{mod_invoice_paid.phtml => mod_invoice_paid.html.twig} (100%) rename src/bb-modules/Invoice/html_email/{mod_invoice_payment_reminder.phtml => mod_invoice_payment_reminder.html.twig} (100%) rename src/bb-modules/Kb/html_admin/{mod_kb_article.phtml => mod_kb_article.html.twig} (97%) rename src/bb-modules/Kb/html_admin/{mod_kb_category.phtml => mod_kb_category.html.twig} (97%) rename src/bb-modules/Kb/html_admin/{mod_kb_index.phtml => mod_kb_index.html.twig} (96%) rename src/bb-modules/Kb/html_client/{mod_kb_article.phtml => mod_kb_article.html.twig} (96%) rename src/bb-modules/Kb/html_client/{mod_kb_category.phtml => mod_kb_category.html.twig} (93%) rename src/bb-modules/Kb/html_client/{mod_kb_index.phtml => mod_kb_index.html.twig} (97%) rename src/bb-modules/Massmailer/html_admin/{mod_massmailer_index.phtml => mod_massmailer_index.html.twig} (95%) rename src/bb-modules/Massmailer/html_admin/{mod_massmailer_message.phtml => mod_massmailer_message.html.twig} (99%) rename src/bb-modules/News/html_admin/{mod_news_index.phtml => mod_news_index.html.twig} (93%) rename src/bb-modules/News/html_admin/{mod_news_post.phtml => mod_news_post.html.twig} (98%) rename src/bb-modules/News/html_client/{mod_news_index.phtml => mod_news_index.html.twig} (90%) rename src/bb-modules/News/html_client/{mod_news_post.phtml => mod_news_post.html.twig} (95%) rename src/bb-modules/Notification/html_admin/{mod_notification_index.phtml => mod_notification_index.html.twig} (92%) rename src/bb-modules/Order/html_admin/{mod_order_settings.phtml => mod_order_settings.html.twig} (97%) rename src/bb-modules/Order/html_client/{mod_order_index.phtml => mod_order_index.html.twig} (89%) rename src/bb-modules/Order/html_client/{mod_order_list.phtml => mod_order_list.html.twig} (91%) rename src/bb-modules/Order/html_client/{mod_order_manage.phtml => mod_order_manage.html.twig} (99%) rename src/bb-modules/Order/html_client/{mod_order_product.phtml => mod_order_product.html.twig} (89%) rename src/bb-modules/Orderbutton/html_admin/{mod_orderbutton_settings.phtml => mod_orderbutton_settings.html.twig} (99%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_addons.phtml => mod_orderbutton_addons.html.twig} (100%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_checkout.phtml => mod_orderbutton_checkout.html.twig} (100%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_choose_product.phtml => mod_orderbutton_choose_product.html.twig} (100%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_client.phtml => mod_orderbutton_client.html.twig} (99%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_currency.phtml => mod_orderbutton_currency.html.twig} (100%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_index.phtml => mod_orderbutton_index.html.twig} (96%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_js.phtml => mod_orderbutton_js.html.twig} (100%) rename src/bb-modules/Orderbutton/html_client/{mod_orderbutton_product_configuration.phtml => mod_orderbutton_product_configuration.html.twig} (93%) rename src/bb-modules/Page/html_client/{mod_page_about-us.phtml => mod_page_about-us.html.twig} (95%) rename src/bb-modules/Page/html_client/{mod_page_login.phtml => mod_page_login.html.twig} (98%) rename src/bb-modules/Page/html_client/{mod_page_password-reset.phtml => mod_page_password-reset.html.twig} (97%) rename src/bb-modules/Page/html_client/{mod_page_preview_markdown.phtml => mod_page_preview_markdown.html.twig} (100%) rename src/bb-modules/Page/html_client/{mod_page_privacy-policy.phtml => mod_page_privacy-policy.html.twig} (95%) rename src/bb-modules/Page/html_client/{mod_page_signup.phtml => mod_page_signup.html.twig} (99%) rename src/bb-modules/Page/html_client/{mod_page_tos.phtml => mod_page_tos.html.twig} (95%) rename src/bb-modules/Paidsupport/html_admin/{mod_paidsupport_settings.phtml => mod_paidsupport_settings.html.twig} (96%) rename src/bb-modules/Queue/html_admin/{mod_queue_settings.phtml => mod_queue_settings.html.twig} (93%) rename src/bb-modules/Redirect/html_admin/{mod_redirect_settings.phtml => mod_redirect_settings.html.twig} (96%) rename src/bb-modules/Seo/html_admin/{mod_seo_settings.phtml => mod_seo_settings.html.twig} (94%) rename src/bb-modules/Servicecentovacast/html_admin/{mod_servicecentovacast_config.phtml => mod_servicecentovacast_config.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_admin/{mod_servicecentovacast_manage.phtml => mod_servicecentovacast_manage.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_admin/{mod_servicecentovacast_order.phtml => mod_servicecentovacast_order.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_admin/{mod_servicecentovacast_settings.phtml => mod_servicecentovacast_settings.html.twig} (98%) rename src/bb-modules/Servicecentovacast/html_client/{mod_servicecentovacast_manage.phtml => mod_servicecentovacast_manage.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_email/{mod_servicecentovacast_activated.phtml => mod_servicecentovacast_activated.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_email/{mod_servicecentovacast_canceled.phtml => mod_servicecentovacast_canceled.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_email/{mod_servicecentovacast_renewed.phtml => mod_servicecentovacast_renewed.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_email/{mod_servicecentovacast_suspended.phtml => mod_servicecentovacast_suspended.html.twig} (100%) rename src/bb-modules/Servicecentovacast/html_email/{mod_servicecentovacast_unsuspended.phtml => mod_servicecentovacast_unsuspended.html.twig} (100%) rename src/bb-modules/Servicecustom/html_admin/{mod_servicecustom_order.phtml => mod_servicecustom_order.html.twig} (100%) rename src/bb-modules/Servicecustom/html_email/{mod_servicecustom_activated.phtml => mod_servicecustom_activated.html.twig} (100%) rename src/bb-modules/Servicecustom/html_email/{mod_servicecustom_canceled.phtml => mod_servicecustom_canceled.html.twig} (100%) rename src/bb-modules/Servicecustom/html_email/{mod_servicecustom_renewed.phtml => mod_servicecustom_renewed.html.twig} (100%) rename src/bb-modules/Servicecustom/html_email/{mod_servicecustom_suspended.phtml => mod_servicecustom_suspended.html.twig} (100%) rename src/bb-modules/Servicecustom/html_email/{mod_servicecustom_unsuspended.phtml => mod_servicecustom_unsuspended.html.twig} (100%) rename src/bb-modules/Servicedomain/html_admin/{mod_servicedomain_order.phtml => mod_servicedomain_order.html.twig} (97%) rename src/bb-modules/Servicedomain/html_client/{mod_servicedomain_manage.phtml => mod_servicedomain_manage.html.twig} (100%) rename src/bb-modules/Servicedomain/html_client/{mod_servicedomain_order_form.phtml => mod_servicedomain_order_form.html.twig} (100%) rename src/bb-modules/Servicedomain/html_email/{mod_servicedomain_activated.phtml => mod_servicedomain_activated.html.twig} (100%) rename src/bb-modules/Servicedomain/html_email/{mod_servicedomain_renewed.phtml => mod_servicedomain_renewed.html.twig} (100%) rename src/bb-modules/Servicedomain/html_email/{mod_servicedomain_suspended.phtml => mod_servicedomain_suspended.html.twig} (100%) rename src/bb-modules/Servicedomain/html_email/{mod_servicedomain_unsuspended.phtml => mod_servicedomain_unsuspended.html.twig} (100%) rename src/bb-modules/Servicedownloadable/html_client/{mod_servicedownloadable_manage.phtml => mod_servicedownloadable_manage.html.twig} (100%) rename src/bb-modules/Servicedownloadable/html_email/{mod_servicedownloadable_activated.phtml => mod_servicedownloadable_activated.html.twig} (100%) rename src/bb-modules/Servicehosting/html_admin/{mod_servicehosting_order.phtml => mod_servicehosting_order.html.twig} (100%) rename src/bb-modules/Servicehosting/html_client/{mod_servicehosting_manage.phtml => mod_servicehosting_manage.html.twig} (100%) rename src/bb-modules/Servicehosting/html_client/{mod_servicehosting_order_form.phtml => mod_servicehosting_order_form.html.twig} (100%) rename src/bb-modules/Servicehosting/html_email/{mod_servicehosting_activated.phtml => mod_servicehosting_activated.html.twig} (100%) rename src/bb-modules/Servicehosting/html_email/{mod_servicehosting_canceled.phtml => mod_servicehosting_canceled.html.twig} (100%) rename src/bb-modules/Servicehosting/html_email/{mod_servicehosting_renewed.phtml => mod_servicehosting_renewed.html.twig} (100%) rename src/bb-modules/Servicehosting/html_email/{mod_servicehosting_suspended.phtml => mod_servicehosting_suspended.html.twig} (100%) rename src/bb-modules/Servicehosting/html_email/{mod_servicehosting_unsuspended.phtml => mod_servicehosting_unsuspended.html.twig} (100%) rename src/bb-modules/Servicelicense/html_client/{mod_servicelicense_manage.phtml => mod_servicelicense_manage.html.twig} (100%) rename src/bb-modules/Servicelicense/html_email/{mod_servicelicense_activated.phtml => mod_servicelicense_activated.html.twig} (100%) rename src/bb-modules/Servicelicense/html_email/{mod_servicelicense_canceled.phtml => mod_servicelicense_canceled.html.twig} (100%) rename src/bb-modules/Servicelicense/html_email/{mod_servicelicense_renewed.phtml => mod_servicelicense_renewed.html.twig} (100%) rename src/bb-modules/Servicelicense/html_email/{mod_servicelicense_suspended.phtml => mod_servicelicense_suspended.html.twig} (100%) rename src/bb-modules/Servicelicense/html_email/{mod_servicelicense_unsuspended.phtml => mod_servicelicense_unsuspended.html.twig} (100%) rename src/bb-modules/Servicemembership/html_email/{mod_servicemembership_activated.phtml => mod_servicemembership_activated.html.twig} (100%) rename src/bb-modules/Servicemembership/html_email/{mod_servicemembership_canceled.phtml => mod_servicemembership_canceled.html.twig} (100%) rename src/bb-modules/Servicemembership/html_email/{mod_servicemembership_renewed.phtml => mod_servicemembership_renewed.html.twig} (100%) rename src/bb-modules/Servicemembership/html_email/{mod_servicemembership_suspended.phtml => mod_servicemembership_suspended.html.twig} (100%) rename src/bb-modules/Servicemembership/html_email/{mod_servicemembership_unsuspended.phtml => mod_servicemembership_unsuspended.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_config.phtml => mod_servicesolusvm_config.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_import_clients.phtml => mod_servicesolusvm_import_clients.html.twig} (94%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_import_servers.phtml => mod_servicesolusvm_import_servers.html.twig} (96%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_manage.phtml => mod_servicesolusvm_manage.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_order.phtml => mod_servicesolusvm_order.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_admin/{mod_servicesolusvm_settings.phtml => mod_servicesolusvm_settings.html.twig} (99%) rename src/bb-modules/Servicesolusvm/html_client/{mod_servicesolusvm_listing.phtml => mod_servicesolusvm_listing.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_client/{mod_servicesolusvm_manage.phtml => mod_servicesolusvm_manage.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_client/{mod_servicesolusvm_order_form.phtml => mod_servicesolusvm_order_form.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_email/{mod_servicesolusvm_activated.phtml => mod_servicesolusvm_activated.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_email/{mod_servicesolusvm_canceled.phtml => mod_servicesolusvm_canceled.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_email/{mod_servicesolusvm_renewed.phtml => mod_servicesolusvm_renewed.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_email/{mod_servicesolusvm_suspended.phtml => mod_servicesolusvm_suspended.html.twig} (100%) rename src/bb-modules/Servicesolusvm/html_email/{mod_servicesolusvm_unsuspended.phtml => mod_servicesolusvm_unsuspended.html.twig} (100%) rename src/bb-modules/Spamchecker/html_admin/{mod_spamchecker_settings.phtml => mod_spamchecker_settings.html.twig} (97%) rename src/bb-modules/Spamchecker/html_client/{mod_spamchecker_recaptcha.phtml => mod_spamchecker_recaptcha.html.twig} (100%) rename src/bb-modules/Staff/html_admin/{mod_staff_settings.phtml => mod_staff_settings.html.twig} (99%) rename src/bb-modules/Staff/html_email/{mod_staff_client_order.phtml => mod_staff_client_order.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_client_signup.phtml => mod_staff_client_signup.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_pticket_close.phtml => mod_staff_pticket_close.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_pticket_open.phtml => mod_staff_pticket_open.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_pticket_reply.phtml => mod_staff_pticket_reply.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_ticket_close.phtml => mod_staff_ticket_close.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_ticket_open.phtml => mod_staff_ticket_open.html.twig} (100%) rename src/bb-modules/Staff/html_email/{mod_staff_ticket_reply.phtml => mod_staff_ticket_reply.html.twig} (100%) rename src/bb-modules/Support/html_admin/{mod_support_canned_selector.phtml => mod_support_canned_selector.html.twig} (100%) rename src/bb-modules/Support/html_admin/{mod_support_helpdesk.phtml => mod_support_helpdesk.html.twig} (95%) rename src/bb-modules/Support/html_admin/{mod_support_settings.phtml => mod_support_settings.html.twig} (98%) rename src/bb-modules/Support/html_client/{mod_support_contact_us.phtml => mod_support_contact_us.html.twig} (97%) rename src/bb-modules/Support/html_client/{mod_support_contact_us_conversation.phtml => mod_support_contact_us_conversation.html.twig} (97%) rename src/bb-modules/Support/html_client/{mod_support_ticket.phtml => mod_support_ticket.html.twig} (98%) rename src/bb-modules/Support/html_client/{mod_support_tickets.phtml => mod_support_tickets.html.twig} (95%) rename src/bb-modules/Support/html_email/{mod_support_helpdesk_ticket_open.phtml => mod_support_helpdesk_ticket_open.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_pticket_open.phtml => mod_support_pticket_open.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_pticket_staff_close.phtml => mod_support_pticket_staff_close.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_pticket_staff_open.phtml => mod_support_pticket_staff_open.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_pticket_staff_reply.phtml => mod_support_pticket_staff_reply.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_ticket_open.phtml => mod_support_ticket_open.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_ticket_staff_close.phtml => mod_support_ticket_staff_close.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_ticket_staff_open.phtml => mod_support_ticket_staff_open.html.twig} (100%) rename src/bb-modules/Support/html_email/{mod_support_ticket_staff_reply.phtml => mod_support_ticket_staff_reply.html.twig} (100%) rename src/bb-modules/System/html_admin/{mod_system_settings.phtml => mod_system_settings.html.twig} (99%) rename src/bb-modules/System/html_client/{mod_system_maintenance.phtml => mod_system_maintenance.html.twig} (100%) rename src/bb-modules/Theme/html_admin/{mod_theme_preset.phtml => mod_theme_preset.html.twig} (98%) rename src/bb-modules/Theme/html_admin/{mod_theme_settings.phtml => mod_theme_settings.html.twig} (97%) rename src/bb-modules/Wysiwyg/html_admin/{mod_wysiwyg_js.phtml => mod_wysiwyg_js.html.twig} (100%) rename src/bb-modules/Wysiwyg/html_admin/{mod_wysiwyg_settings.phtml => mod_wysiwyg_settings.html.twig} (92%) rename src/bb-themes/admin_default/html/{404.phtml => 404.html.twig} (95%) rename src/bb-themes/admin_default/html/{layout_blank.phtml => layout_blank.html.twig} (100%) rename src/bb-themes/admin_default/html/{layout_default.phtml => layout_default.html.twig} (95%) rename src/bb-themes/admin_default/html/{layout_login.phtml => layout_login.html.twig} (94%) rename src/bb-themes/admin_default/html/{macro_functions.phtml => macro_functions.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_activity_index.phtml => mod_activity_index.html.twig} (87%) rename src/bb-themes/admin_default/html/{mod_client_group.phtml => mod_client_group.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_client_index.phtml => mod_client_index.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_client_login_history.phtml => mod_client_login_history.html.twig} (85%) rename src/bb-themes/admin_default/html/{mod_client_manage.phtml => mod_client_manage.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_extension_index.phtml => mod_extension_index.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_extension_languages.phtml => mod_extension_languages.html.twig} (94%) rename src/bb-themes/admin_default/html/{mod_index_dashboard.phtml => mod_index_dashboard.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_invoice_gateway.phtml => mod_invoice_gateway.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_invoice_gateways.phtml => mod_invoice_gateways.html.twig} (94%) rename src/bb-themes/admin_default/html/{mod_invoice_index.phtml => mod_invoice_index.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_invoice_invoice.phtml => mod_invoice_invoice.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_invoice_subscription.phtml => mod_invoice_subscription.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_invoice_subscriptions.phtml => mod_invoice_subscriptions.html.twig} (95%) rename src/bb-themes/admin_default/html/{mod_invoice_tax.phtml => mod_invoice_tax.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_invoice_taxupdate.phtml => mod_invoice_taxupdate.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_invoice_transaction.phtml => mod_invoice_transaction.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_invoice_transactions.phtml => mod_invoice_transactions.html.twig} (95%) rename src/bb-themes/admin_default/html/{mod_order_index.phtml => mod_order_index.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_order_manage.phtml => mod_order_manage.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_order_new.phtml => mod_order_new.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_product_addon_manage.phtml => mod_product_addon_manage.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_product_addons.phtml => mod_product_addons.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_product_category.phtml => mod_product_category.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_product_index.phtml => mod_product_index.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_product_manage.phtml => mod_product_manage.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_product_promo.phtml => mod_product_promo.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_product_promos.phtml => mod_product_promos.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_servicecustom_config.phtml => mod_servicecustom_config.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicecustom_manage.phtml => mod_servicecustom_manage.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicedomain_config.phtml => mod_servicedomain_config.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicedomain_index.phtml => mod_servicedomain_index.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_servicedomain_manage.phtml => mod_servicedomain_manage.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicedomain_registrar.phtml => mod_servicedomain_registrar.html.twig} (93%) rename src/bb-themes/admin_default/html/{mod_servicedomain_tld.phtml => mod_servicedomain_tld.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_servicedownloadable_config.phtml => mod_servicedownloadable_config.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicedownloadable_manage.phtml => mod_servicedownloadable_manage.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicehosting_config.phtml => mod_servicehosting_config.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_servicehosting_hp.phtml => mod_servicehosting_hp.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_servicehosting_index.phtml => mod_servicehosting_index.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_servicehosting_manage.phtml => mod_servicehosting_manage.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_servicehosting_server.phtml => mod_servicehosting_server.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_servicelicense_config.phtml => mod_servicelicense_config.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_servicelicense_manage.phtml => mod_servicelicense_manage.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicemembership_config.phtml => mod_servicemembership_config.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_servicemembership_manage.phtml => mod_servicemembership_manage.html.twig} (100%) rename src/bb-themes/admin_default/html/{mod_staff_group.phtml => mod_staff_group.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_staff_index.phtml => mod_staff_index.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_staff_login.phtml => mod_staff_login.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_staff_login_history.phtml => mod_staff_login_history.html.twig} (85%) rename src/bb-themes/admin_default/html/{mod_staff_manage.phtml => mod_staff_manage.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_staff_profile.phtml => mod_staff_profile.html.twig} (99%) rename src/bb-themes/admin_default/html/{mod_support_canned_category.phtml => mod_support_canned_category.html.twig} (91%) rename src/bb-themes/admin_default/html/{mod_support_canned_response.phtml => mod_support_canned_response.html.twig} (94%) rename src/bb-themes/admin_default/html/{mod_support_canned_responses.phtml => mod_support_canned_responses.html.twig} (96%) rename src/bb-themes/admin_default/html/{mod_support_public_ticket.phtml => mod_support_public_ticket.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_support_public_tickets.phtml => mod_support_public_tickets.html.twig} (88%) rename src/bb-themes/admin_default/html/{mod_support_ticket.phtml => mod_support_ticket.html.twig} (98%) rename src/bb-themes/admin_default/html/{mod_support_tickets.phtml => mod_support_tickets.html.twig} (97%) rename src/bb-themes/admin_default/html/{mod_system_index.phtml => mod_system_index.html.twig} (93%) rename src/bb-themes/admin_default/html/{partial_batch_delete.phtml => partial_batch_delete.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_bb_meta.phtml => partial_bb_meta.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_extensions.phtml => partial_extensions.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_footer.phtml => partial_footer.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_menu.phtml => partial_menu.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_menu_top.phtml => partial_menu_top.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_pagination.phtml => partial_pagination.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_pricing.phtml => partial_pricing.html.twig} (100%) rename src/bb-themes/admin_default/html/{partial_styles.phtml => partial_styles.html.twig} (100%) rename src/bb-themes/bootstrap/html/{404.phtml => 404.html.twig} (93%) rename src/bb-themes/bootstrap/html/Index/{_index-anonymous.phtml => _index-anonymous.html.twig} (98%) rename src/bb-themes/bootstrap/html/Index/{_index-client.phtml => _index-client.html.twig} (99%) rename src/bb-themes/bootstrap/html/Index/{_showcase.phtml => _showcase.html.twig} (100%) rename src/bb-themes/bootstrap/html/Index/{_statistics.phtml => _statistics.html.twig} (96%) rename src/bb-themes/bootstrap/html/Modal/{_add-funds.phtml => _add-funds.html.twig} (100%) rename src/bb-themes/bootstrap/html/Modal/{_add-ticket.phtml => _add-ticket.html.twig} (97%) rename src/bb-themes/bootstrap/html/Modal/{_login.phtml => _login.html.twig} (100%) rename src/bb-themes/bootstrap/html/Modal/{_registration.phtml => _registration.html.twig} (99%) rename src/bb-themes/bootstrap/html/Ticket/{_header.phtml => _header.html.twig} (97%) rename src/bb-themes/bootstrap/html/Ticket/{_message.phtml => _message.html.twig} (100%) rename src/bb-themes/bootstrap/html/{_menu.phtml => _menu.html.twig} (100%) rename src/bb-themes/bootstrap/html/{_order-steps.phtml => _order-steps.html.twig} (100%) rename src/bb-themes/bootstrap/html/{_pagination.phtml => _pagination.html.twig} (100%) rename src/bb-themes/bootstrap/html/{layout_blank.phtml => layout_blank.html.twig} (100%) rename src/bb-themes/bootstrap/html/{layout_default.phtml => layout_default.html.twig} (98%) rename src/bb-themes/bootstrap/html/{macro_functions.phtml => macro_functions.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_cart_index.phtml => mod_cart_index.html.twig} (97%) rename src/bb-themes/bootstrap/html/{mod_client_balance.phtml => mod_client_balance.html.twig} (85%) rename src/bb-themes/bootstrap/html/{mod_client_profile.phtml => mod_client_profile.html.twig} (98%) rename src/bb-themes/bootstrap/html/{mod_email_email.phtml => mod_email_email.html.twig} (96%) rename src/bb-themes/bootstrap/html/{mod_email_index.phtml => mod_email_index.html.twig} (91%) rename src/bb-themes/bootstrap/html/{mod_formbuilder_build.phtml => mod_formbuilder_build.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_forum_forum.phtml => mod_forum_forum.html.twig} (95%) rename src/bb-themes/bootstrap/html/{mod_forum_index.phtml => mod_forum_index.html.twig} (97%) rename src/bb-themes/bootstrap/html/{mod_forum_topic.phtml => mod_forum_topic.html.twig} (95%) rename src/bb-themes/bootstrap/html/{mod_index_dashboard.phtml => mod_index_dashboard.html.twig} (67%) rename src/bb-themes/bootstrap/html/{mod_invoice_banklink.phtml => mod_invoice_banklink.html.twig} (87%) rename src/bb-themes/bootstrap/html/{mod_invoice_index.phtml => mod_invoice_index.html.twig} (92%) rename src/bb-themes/bootstrap/html/{mod_invoice_invoice.phtml => mod_invoice_invoice.html.twig} (98%) rename src/bb-themes/bootstrap/html/{mod_invoice_print.phtml => mod_invoice_print.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_invoice_thankyou.phtml => mod_invoice_thankyou.html.twig} (93%) rename src/bb-themes/bootstrap/html/{mod_kb_article.phtml => mod_kb_article.html.twig} (95%) rename src/bb-themes/bootstrap/html/{mod_kb_category.phtml => mod_kb_category.html.twig} (94%) rename src/bb-themes/bootstrap/html/{mod_kb_index.phtml => mod_kb_index.html.twig} (95%) rename src/bb-themes/bootstrap/html/{mod_news_index.phtml => mod_news_index.html.twig} (90%) rename src/bb-themes/bootstrap/html/{mod_news_post.phtml => mod_news_post.html.twig} (94%) rename src/bb-themes/bootstrap/html/{mod_order_index.phtml => mod_order_index.html.twig} (93%) rename src/bb-themes/bootstrap/html/{mod_order_list.phtml => mod_order_list.html.twig} (89%) rename src/bb-themes/bootstrap/html/{mod_order_manage.phtml => mod_order_manage.html.twig} (97%) rename src/bb-themes/bootstrap/html/{mod_order_product.phtml => mod_order_product.html.twig} (76%) rename src/bb-themes/bootstrap/html/{mod_page_about-us.phtml => mod_page_about-us.html.twig} (83%) rename src/bb-themes/bootstrap/html/{mod_page_login.phtml => mod_page_login.html.twig} (92%) rename src/bb-themes/bootstrap/html/{mod_page_privacy-policy.phtml => mod_page_privacy-policy.html.twig} (85%) rename src/bb-themes/bootstrap/html/{mod_page_reset-password.phtml => mod_page_reset-password.html.twig} (95%) rename src/bb-themes/bootstrap/html/{mod_page_tos.phtml => mod_page_tos.html.twig} (85%) rename src/bb-themes/bootstrap/html/{mod_servicedomain_manage.phtml => mod_servicedomain_manage.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_servicedomain_order.phtml => mod_servicedomain_order.html.twig} (94%) rename src/bb-themes/bootstrap/html/{mod_servicedownloadable_manage.phtml => mod_servicedownloadable_manage.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_servicehosting_manage.phtml => mod_servicehosting_manage.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_servicehosting_order.phtml => mod_servicehosting_order.html.twig} (94%) rename src/bb-themes/bootstrap/html/{mod_servicelicense_manage.phtml => mod_servicelicense_manage.html.twig} (100%) rename src/bb-themes/bootstrap/html/{mod_support_contact_us.phtml => mod_support_contact_us.html.twig} (96%) rename src/bb-themes/bootstrap/html/{mod_support_contact_us_conversation.phtml => mod_support_contact_us_conversation.html.twig} (85%) rename src/bb-themes/bootstrap/html/{mod_support_ticket.phtml => mod_support_ticket.html.twig} (87%) rename src/bb-themes/bootstrap/html/{mod_support_tickets.phtml => mod_support_tickets.html.twig} (91%) rename src/bb-themes/bootstrap/html/{partial_addons.phtml => partial_addons.html.twig} (100%) rename src/bb-themes/bootstrap/html/{partial_currency.phtml => partial_currency.html.twig} (100%) rename src/bb-themes/bootstrap/html/{partial_message.phtml => partial_message.html.twig} (100%) rename src/bb-themes/bootstrap/html/{partial_pending_messages.phtml => partial_pending_messages.html.twig} (100%) rename src/bb-themes/bootstrap/html/{partial_pricing.phtml => partial_pricing.html.twig} (100%) rename src/bb-themes/boxbilling/html/{404.phtml => 404.html.twig} (88%) rename src/bb-themes/boxbilling/html/{layout_blank.phtml => layout_blank.html.twig} (100%) rename src/bb-themes/boxbilling/html/{layout_default.phtml => layout_default.html.twig} (97%) rename src/bb-themes/boxbilling/html/{macro_functions.phtml => macro_functions.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_cart_index.phtml => mod_cart_index.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_client_balance.phtml => mod_client_balance.html.twig} (93%) rename src/bb-themes/boxbilling/html/{mod_client_profile.phtml => mod_client_profile.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_dashboard_index.phtml => mod_dashboard_index.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_email_email.phtml => mod_email_email.html.twig} (96%) rename src/bb-themes/boxbilling/html/{mod_email_index.phtml => mod_email_index.html.twig} (90%) rename src/bb-themes/boxbilling/html/{mod_formbuilder_build.phtml => mod_formbuilder_build.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_forum_forum.phtml => mod_forum_forum.html.twig} (96%) rename src/bb-themes/boxbilling/html/{mod_forum_index.phtml => mod_forum_index.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_forum_topic.phtml => mod_forum_topic.html.twig} (96%) rename src/bb-themes/boxbilling/html/{mod_index_dashboard.phtml => mod_index_dashboard.html.twig} (95%) rename src/bb-themes/boxbilling/html/{mod_invoice_banklink.phtml => mod_invoice_banklink.html.twig} (88%) rename src/bb-themes/boxbilling/html/{mod_invoice_index.phtml => mod_invoice_index.html.twig} (94%) rename src/bb-themes/boxbilling/html/{mod_invoice_invoice.phtml => mod_invoice_invoice.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_invoice_thankyou.phtml => mod_invoice_thankyou.html.twig} (91%) rename src/bb-themes/boxbilling/html/{mod_kb_article.phtml => mod_kb_article.html.twig} (96%) rename src/bb-themes/boxbilling/html/{mod_kb_category.phtml => mod_kb_category.html.twig} (91%) rename src/bb-themes/boxbilling/html/{mod_kb_index.phtml => mod_kb_index.html.twig} (95%) rename src/bb-themes/boxbilling/html/{mod_news_index.phtml => mod_news_index.html.twig} (87%) rename src/bb-themes/boxbilling/html/{mod_news_post.phtml => mod_news_post.html.twig} (94%) rename src/bb-themes/boxbilling/html/{mod_order_index.phtml => mod_order_index.html.twig} (95%) rename src/bb-themes/boxbilling/html/{mod_order_list.phtml => mod_order_list.html.twig} (91%) rename src/bb-themes/boxbilling/html/{mod_order_manage.phtml => mod_order_manage.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_order_product.phtml => mod_order_product.html.twig} (81%) rename src/bb-themes/boxbilling/html/{mod_page_about-us.phtml => mod_page_about-us.html.twig} (84%) rename src/bb-themes/boxbilling/html/{mod_page_login.phtml => mod_page_login.html.twig} (98%) rename src/bb-themes/boxbilling/html/{mod_page_preview_markdown.phtml => mod_page_preview_markdown.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_page_privacy-policy.phtml => mod_page_privacy-policy.html.twig} (85%) rename src/bb-themes/boxbilling/html/{mod_page_reset-password.phtml => mod_page_reset-password.html.twig} (91%) rename src/bb-themes/boxbilling/html/{mod_page_tos.phtml => mod_page_tos.html.twig} (85%) rename src/bb-themes/boxbilling/html/{mod_servicedomain_manage.phtml => mod_servicedomain_manage.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_servicedomain_order.phtml => mod_servicedomain_order.html.twig} (96%) rename src/bb-themes/boxbilling/html/{mod_servicedownloadable_manage.phtml => mod_servicedownloadable_manage.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_servicehosting_manage.phtml => mod_servicehosting_manage.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_servicehosting_order.phtml => mod_servicehosting_order.html.twig} (95%) rename src/bb-themes/boxbilling/html/{mod_servicelicense_manage.phtml => mod_servicelicense_manage.html.twig} (100%) rename src/bb-themes/boxbilling/html/{mod_servicesolusvm_order.phtml => mod_servicesolusvm_order.html.twig} (86%) rename src/bb-themes/boxbilling/html/{mod_support_contact_us.phtml => mod_support_contact_us.html.twig} (95%) rename src/bb-themes/boxbilling/html/{mod_support_contact_us_conversation.phtml => mod_support_contact_us_conversation.html.twig} (97%) rename src/bb-themes/boxbilling/html/{mod_support_ticket.phtml => mod_support_ticket.html.twig} (97%) rename src/bb-themes/boxbilling/html/{mod_support_tickets.phtml => mod_support_tickets.html.twig} (95%) rename src/bb-themes/boxbilling/html/{partial_addons.phtml => partial_addons.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_currency.phtml => partial_currency.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_menu.phtml => partial_menu.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_message.phtml => partial_message.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_pagination.phtml => partial_pagination.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_pending_messages.phtml => partial_pending_messages.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_pricing.phtml => partial_pricing.html.twig} (100%) rename src/bb-themes/boxbilling/html/{partial_steps.phtml => partial_steps.html.twig} (100%) rename src/bb-themes/huraga/html/{404.phtml => 404.html.twig} (93%) rename src/bb-themes/huraga/html/{layout_default.phtml => layout_default.html.twig} (98%) rename src/bb-themes/huraga/html/{layout_public.phtml => layout_public.html.twig} (96%) rename src/bb-themes/huraga/html/{macro_functions.phtml => macro_functions.html.twig} (100%) rename src/bb-themes/huraga/html/{partial_menu.phtml => partial_menu.html.twig} (100%) rename src/bb-themes/huraga/html/{partial_message.phtml => partial_message.html.twig} (100%) rename src/bb-themes/huraga/html/{partial_pagination.phtml => partial_pagination.html.twig} (100%) rename src/bb-themes/huraga/html/{partial_pending_messages.phtml => partial_pending_messages.html.twig} (100%) rename src/bb-themes/huraga/html/{partial_pricing.phtml => partial_pricing.html.twig} (100%) rename src/install/assets/{install.phtml => install.html.twig} (99%) rename src/install/assets/{layout.phtml => layout.html.twig} (100%) diff --git a/src/.editorconfig b/.editorconfig similarity index 100% rename from src/.editorconfig rename to .editorconfig diff --git a/.gitignore b/.gitignore index dbd3b9a15..a63be0781 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,4 @@ npm-debug.log .history/ ### friendsofphp/php-cs-fixer ### -src/.php-cs-fixer.cache +.php-cs-fixer.cache diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 000000000..fa4bcebc2 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,53 @@ +setRules([ + '@PHP74Migration' => true, + '@Symfony' => true, + 'header_comment' => ['header' => $fileHeaderComment, 'comment_type' => 'PHPDoc'], + 'concat_space' => ['spacing' => 'one'], + 'protected_to_private' => false, + 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false], + ]) + ->setRiskyAllowed(false) + ->setFinder( + (new PhpCsFixer\Finder()) + ->in(__DIR__ . '/src') + ->exclude([ + 'bb-data', + 'bb-library', + 'bb-locale', + 'bb-themes', + 'bb-vendor', + 'install', + 'bb-modules/Wysiwyg', + ]) + ->notPath('rb.php') + ) +; diff --git a/CHANGELOG.md b/CHANGELOG.md index a37149a9d..e12e3e4be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Master ------------------------------------------------------------------------------ **General:** +* Templates extensions .phtml ranamed to .html.twig * Updated bb-themes/bootstrap to Bootstrap 5 Release 4.22-beta.1.1 diff --git a/src/.php-cs-fixer.dist.php b/src/.php-cs-fixer.dist.php deleted file mode 100644 index 47366a954..000000000 --- a/src/.php-cs-fixer.dist.php +++ /dev/null @@ -1,26 +0,0 @@ -setRules([ - '@PHP71Migration' => true, - '@Symfony' => true, - 'protected_to_private' => false, - 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false], - 'phpdoc_to_comment' => false, - ]) - ->setRiskyAllowed(false) - ->setFinder( - (new PhpCsFixer\Finder()) - ->in(__DIR__) - ->exclude([ - 'bb-data', - 'bb-library', - 'bb-locale', - 'bb-themes', - 'bb-vendor', - 'install', - 'bb-modules/Wysiwyg' - ]) - ->notPath('rb.php') - ) -; diff --git a/src/bb-library/Box/App.php b/src/bb-library/Box/App.php index 67ffa7b5e..153f8a8c5 100644 --- a/src/bb-library/Box/App.php +++ b/src/bb-library/Box/App.php @@ -1,6 +1,7 @@ options = new ArrayObject($options); } @@ -44,20 +44,20 @@ class Box_App { protected function registerModule() { - //bind module urls and process - //determine module and bind urls + // bind module urls and process + // determine module and bind urls $requestUri = $this->url; - if(empty($requestUri)) { + if (empty($requestUri)) { $requestUri = '/'; } - if($requestUri == '/') { + if ('/' == $requestUri) { $mod = 'index'; } else { $requestUri = trim($requestUri, '/'); - if(strpos($requestUri, '/') === false) { + if (false === strpos($requestUri, '/')) { $mod = $requestUri; } else { - list($mod) = explode('/',$requestUri); + [$mod] = explode('/', $requestUri); } } $mod = filter_var($mod, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); @@ -66,12 +66,16 @@ class Box_App { $this->uri = $requestUri; } - protected function init(){} + protected function init() + { + } - public function show404(Exception $e) { + public function show404(Exception $e) + { error_log($e->getMessage()); - header("HTTP/1.0 404 Not Found"); - return $this->render('404', array('exception'=>$e)); + header('HTTP/1.0 404 Not Found'); + + return $this->render('404', ['exception' => $e]); } /** @@ -79,8 +83,9 @@ class Box_App { * @param string $methodName * @param string $class */ - public function get($url, $methodName, $conditions = array(), $class = null) { - $this->event('get', $url, $methodName, $conditions, $class); + public function get($url, $methodName, $conditions = [], $class = null) + { + $this->event('get', $url, $methodName, $conditions, $class); } /** @@ -88,48 +93,55 @@ class Box_App { * @param string $methodName * @param string $class */ - public function post($url, $methodName, $conditions = array(), $class = null) { - $this->event('post', $url, $methodName, $conditions, $class); + public function post($url, $methodName, $conditions = [], $class = null) + { + $this->event('post', $url, $methodName, $conditions, $class); } - public function put($url, $methodName, $conditions = array(), $class = null) { - $this->event('put', $url, $methodName, $conditions, $class); + public function put($url, $methodName, $conditions = [], $class = null) + { + $this->event('put', $url, $methodName, $conditions, $class); } - public function delete($url, $methodName, $conditions = array(), $class = null) { - $this->event('delete', $url, $methodName, $conditions, $class); + public function delete($url, $methodName, $conditions = [], $class = null) + { + $this->event('delete', $url, $methodName, $conditions, $class); } - public function before($methodName, $filterName) { + public function before($methodName, $filterName) + { $this->push_filter($this->before_filters, $methodName, $filterName); } - public function after($methodName, $filterName) { + public function after($methodName, $filterName) + { $this->push_filter($this->after_filters, $methodName, $filterName); } - protected function push_filter(&$arr_filter, $methodName, $filterName) { + protected function push_filter(&$arr_filter, $methodName, $filterName) + { if (!is_array($methodName)) { $methodName = explode('|', $methodName); } $counted = count($methodName); - for ($i = 0; $i < $counted; $i++) { + for ($i = 0; $i < $counted; ++$i) { $method = $methodName[$i]; if (!isset($arr_filter[$method])) { - $arr_filter[$method] = array(); + $arr_filter[$method] = []; } array_push($arr_filter[$method], $filterName); } } - protected function run_filter($arr_filter, $methodName) { - if(isset($arr_filter[$methodName])) { + protected function run_filter($arr_filter, $methodName) + { + if (isset($arr_filter[$methodName])) { $counted = count($arr_filter[$methodName]); - for ($i=0; $i < $counted; $i++) { - $return = call_user_func(array($this, $arr_filter[$methodName][$i])); + for ($i = 0; $i < $counted; ++$i) { + $return = call_user_func([$this, $arr_filter[$methodName][$i]]); - if(!is_null($return)) { + if (!is_null($return)) { return $return; } } @@ -140,6 +152,7 @@ class Box_App { { $this->registerModule(); $this->init(); + return $this->processRequest(); } @@ -156,42 +169,45 @@ class Box_App { /** * @param string $fileName */ - public function render($fileName, $variableArray = array()) + public function render($fileName, $variableArray = []) { - print 'Rendering '.$fileName; + echo 'Rendering ' . $fileName; } - public function sendFile($filename, $contentType, $path) { + public function sendFile($filename, $contentType, $path) + { header("Content-type: $contentType"); header("Content-Disposition: attachment; filename=$filename"); + return readfile($path); } - public function sendDownload($filename, $path) { - header("Content-Type: application/force-download"); - header("Content-Type: application/octet-stream"); - header("Content-Type: application/download"); - header("Content-Description: File Transfer"); - header("Content-Disposition: attachment; filename=$filename".";"); - header("Content-Transfer-Encoding: binary"); + public function sendDownload($filename, $path) + { + header('Content-Type: application/force-download'); + header('Content-Type: application/octet-stream'); + header('Content-Type: application/download'); + header('Content-Description: File Transfer'); + header("Content-Disposition: attachment; filename=$filename" . ';'); + header('Content-Transfer-Encoding: binary'); + return readfile($path); } protected function executeShared($classname, $methodName, $params) { $class = new $classname(); - if($class instanceof InjectionAwareInterface) { + if ($class instanceof InjectionAwareInterface) { $class->setDi($this->di); } $reflection = new ReflectionMethod(get_class($class), $methodName); - $args = array(); + $args = []; $args[] = $this; // first param always app instance - foreach($reflection->getParameters() as $param) { - if(isset($params[$param->name])) { + foreach ($reflection->getParameters() as $param) { + if (isset($params[$param->name])) { $args[$param->name] = $params[$param->name]; - } - else if($param->isDefaultValueAvailable()) { + } elseif ($param->isDefaultValueAvailable()) { $args[$param->name] = $param->getDefaultValue(); } } @@ -199,20 +215,20 @@ class Box_App { return $reflection->invokeArgs($class, $args); } - protected function execute($methodName, $params, $classname = null) { + protected function execute($methodName, $params, $classname = null) + { $return = $this->run_filter($this->before_filters, $methodName); if (!is_null($return)) { - return $return; + return $return; } $reflection = new ReflectionMethod(get_class($this), $methodName); - $args = array(); + $args = []; - foreach($reflection->getParameters() as $param) { - if(isset($params[$param->name])) { + foreach ($reflection->getParameters() as $param) { + if (isset($params[$param->name])) { $args[$param->name] = $params[$param->name]; - } - else if($param->isDefaultValueAvailable()) { + } elseif ($param->isDefaultValueAvailable()) { $args[$param->name] = $param->getDefaultValue(); } } @@ -221,7 +237,7 @@ class Box_App { $return = $this->run_filter($this->after_filters, $methodName); if (!is_null($return)) { - return $return; + return $return; } return $response; @@ -230,18 +246,19 @@ class Box_App { /** * @param string $httpMethod */ - protected function event($httpMethod, $url, $methodName, $conditions=array(), $classname = null) { + protected function event($httpMethod, $url, $methodName, $conditions = [], $classname = null) + { if (method_exists($this, $methodName)) { - array_push($this->mappings, array($httpMethod, $url, $methodName, $conditions)); + array_push($this->mappings, [$httpMethod, $url, $methodName, $conditions]); } if (null !== $classname) { - array_push($this->shared, array($httpMethod, $url, $methodName, $conditions, $classname)); + array_push($this->shared, [$httpMethod, $url, $methodName, $conditions, $classname]); } } /** * Check if the requested URL is in the allowlist. - * + * * @since 4.22.0 */ protected function checkAllowedURLs() @@ -249,54 +266,57 @@ class Box_App { $REQUEST_URI = $this->di['request']->getServer('REQUEST_URI'); $allowedURLs = $this->di['config']['maintenance_mode']['allowed_urls']; $rootUrl = $this->di['config']['url']; - + // Allow access to the staff panel all the time $adminApiPrefixes = [ - "/api/guest/staff/login", - "/api/admin", + '/api/guest/staff/login', + '/api/admin', ]; - foreach ($adminApiPrefixes as $adminApiPrefix){ - $realAdminApiUrl = $rootUrl [-1] === '/' ? substr($rootUrl, 0 ,-1).$adminApiPrefix : $rootUrl.$adminApiPrefix; + foreach ($adminApiPrefixes as $adminApiPrefix) { + $realAdminApiUrl = '/' === $rootUrl[-1] ? substr($rootUrl, 0, -1) . $adminApiPrefix : $rootUrl . $adminApiPrefix; $allowedURLs[] = parse_url($realAdminApiUrl)['path']; } - foreach ($allowedURLs as $url){ - if (preg_match('/^'.str_replace('/','\/', $url).'(.*)/', $REQUEST_URI) !== 0){ + foreach ($allowedURLs as $url) { + if (0 !== preg_match('/^' . str_replace('/', '\/', $url) . '(.*)/', $REQUEST_URI)) { return false; } } + return true; } /** * Check if the visitor IP is in the allowlist. - * + * * @since 4.22.0 */ protected function checkAllowedIPs() { - $allowedIPs = $this->di['config']['maintenance_mode']['allowed_ips']; + $allowedIPs = $this->di['config']['maintenance_mode']['allowed_ips']; $visitorIP = $this->di['request']->getClientAddress(); // Check if the visitor is in using of the allowed IPs/networks - foreach ($allowedIPs as $network) - { - if(strpos($network, '/') == false){$network .= '/32';} - list($network, $netmask) = explode('/', $network, 2); + foreach ($allowedIPs as $network) { + if (false == strpos($network, '/')) { + $network .= '/32'; + } + [$network, $netmask] = explode('/', $network, 2); $network_decimal = ip2long($network); $ip_decimal = ip2long($visitorIP); $wildcard_decimal = pow(2, (32 - $netmask)) - 1; - $netmask_decimal = ~ $wildcard_decimal; - if(($ip_decimal & $netmask_decimal) == ($network_decimal & $netmask_decimal)){ + $netmask_decimal = ~$wildcard_decimal; + if (($ip_decimal & $netmask_decimal) == ($network_decimal & $netmask_decimal)) { return false; } } + return true; } /** * Check if the requested URL is a part of the admin area. - * + * * @since 4.22.0 */ protected function checkAdminPrefix() @@ -305,12 +325,13 @@ class Box_App { $adminPrefix = $this->di['config']['admin_area_prefix']; $rootUrl = $this->di['config']['url']; - $realAdminUrl = $rootUrl[-1] === '/' ? substr($rootUrl, 0 ,-1).$adminPrefix : $rootUrl.$adminPrefix; + $realAdminUrl = '/' === $rootUrl[-1] ? substr($rootUrl, 0, -1) . $adminPrefix : $rootUrl . $adminPrefix; $realAdminPath = parse_url($realAdminUrl)['path']; - - if (preg_match('/^'.str_replace('/','\/', $realAdminPath).'(.*)/', $REQUEST_URI) !== 0) { + + if (0 !== preg_match('/^' . str_replace('/', '\/', $realAdminPath) . '(.*)/', $REQUEST_URI)) { return false; } + return true; } @@ -319,18 +340,18 @@ class Box_App { /** * Block requests if the system is undergoing maintenance. * It will respect any URL/IP whitelisting under the configuration file. - * + * * @since 4.22.0 */ - if($this->di['config']['maintenance_mode']['enabled'] === true) - { + if (true === $this->di['config']['maintenance_mode']['enabled']) { // Check the allowlists - if($this->checkAdminPrefix() && $this->checkAllowedURLs() && $this->checkAllowedIPs()) { + if ($this->checkAdminPrefix() && $this->checkAllowedURLs() && $this->checkAllowedIPs()) { // Set response code to 503. - header("HTTP/1.0 503 Service Unavailable"); + header('HTTP/1.0 503 Service Unavailable'); - if($this->mod == "api") { + if ('api' == $this->mod) { $exc = new \Box_Exception('The system is undergoing maintenance. Please try again later.', [], 503); + return (new \Box\Mod\Api\Controller\Client())->renderJson(null, $exc); } else { return $this->render('mod_system_maintenance'); @@ -339,25 +360,26 @@ class Box_App { } $sharedCount = count($this->shared); - for($i = 0; $i < $sharedCount; $i++) { + for ($i = 0; $i < $sharedCount; ++$i) { $mapping = $this->shared[$i]; $url = new Box_UrlHelper($mapping[0], $mapping[1], $mapping[3], $this->url); - if($url->match) { + if ($url->match) { return $this->executeShared($mapping[4], $mapping[2], $url->params); } } // this class mappings $mappingsCount = count($this->mappings); - for($i = 0; $i < $mappingsCount; $i++) { + for ($i = 0; $i < $mappingsCount; ++$i) { $mapping = $this->mappings[$i]; $url = new Box_UrlHelper($mapping[0], $mapping[1], $mapping[3], $this->url); - if($url->match) { + if ($url->match) { return $this->execute($mapping[2], $url->params); } } - $e = new \Box_Exception('Page :url not found', array(':url'=>$this->url), 404); + $e = new \Box_Exception('Page :url not found', [':url' => $this->url], 404); + return $this->show404($e); } @@ -384,4 +406,4 @@ class Box_App { { return $this->di['api_guest']; } -} \ No newline at end of file +} diff --git a/src/bb-library/Box/AppAdmin.php b/src/bb-library/Box/AppAdmin.php index 429d371c3..f205ff5a5 100644 --- a/src/bb-library/Box/AppAdmin.php +++ b/src/bb-library/Box/AppAdmin.php @@ -1,6 +1,7 @@ register($this); } - public function render($fileName, $variableArray = array()) + public function render($fileName, $variableArray = []) { - $template = $this->getTwig()->load($fileName.'.phtml'); + $template = $this->getTwig()->load($fileName . '.html.twig'); + return $template->render($variableArray); } @@ -38,11 +39,11 @@ class Box_AppAdmin extends Box_App $service = $this->di['mod_service']('theme'); $theme = $service->getCurrentAdminAreaTheme(); - $loader = new Box_TwigLoader(array( - "mods" => BB_PATH_MODS, - "theme" => BB_PATH_THEMES . DIRECTORY_SEPARATOR . $theme['code'], - "type" => "admin" - ) + $loader = new Box_TwigLoader([ + 'mods' => BB_PATH_MODS, + 'theme' => BB_PATH_THEMES . DIRECTORY_SEPARATOR . $theme['code'], + 'type' => 'admin', + ] ); $twig = $this->di['twig']; @@ -50,10 +51,10 @@ class Box_AppAdmin extends Box_App $twig->addGlobal('theme', $theme); - if($this->di['auth']->isAdminLoggedIn()) { + if ($this->di['auth']->isAdminLoggedIn()) { $twig->addGlobal('admin', $this->di['api_admin']); } return $twig; } -} \ No newline at end of file +} diff --git a/src/bb-library/Box/AppClient.php b/src/bb-library/Box/AppClient.php index 7f9ad077d..04aa2c2df 100644 --- a/src/bb-library/Box/AppClient.php +++ b/src/bb-library/Box/AppClient.php @@ -1,6 +1,7 @@ di['mod']($this->mod); $m->registerClientRoutes($this); - if($this->mod == 'api') { - define ('BB_MODE_API', TRUE); + if ('api' == $this->mod) { + define('BB_MODE_API', true); } else { $extensionService = $this->di['mod_service']('extension'); if ($extensionService->isExtensionActive('mod', 'redirect')) { @@ -27,14 +27,13 @@ class Box_AppClient extends Box_App $m->registerClientRoutes($this); } - //init index module manually + // init index module manually $this->get('', 'get_index'); $this->get('/', 'get_index'); - - //init custom methods for undefined pages - $this->get('/:page', 'get_custom_page', array('page' => '[a-z0-9-/.//]+')); - $this->post('/:page', 'get_custom_page', array('page' => '[a-z0-9-/.//]+')); + // init custom methods for undefined pages + $this->get('/:page', 'get_custom_page', ['page' => '[a-z0-9-/.//]+']); + $this->post('/:page', 'get_custom_page', ['page' => '[a-z0-9-/.//]+']); } } @@ -46,38 +45,40 @@ class Box_AppClient extends Box_App public function get_custom_page($page) { $ext = $this->ext; - if(strpos($page, '.') !== false) { - $ext = substr($page, strpos($page, '.')+1); + if (false !== strpos($page, '.')) { + $ext = substr($page, strpos($page, '.') + 1); $page = substr($page, 0, strpos($page, '.')); } $page = str_replace('/', '_', $page); - $tpl = 'mod_page_'.$page; + $tpl = 'mod_page_' . $page; try { - return $this->render($tpl, array('post'=>$_POST), $ext); - } catch(Exception $e) { - if(BB_DEBUG){ + return $this->render($tpl, ['post' => $_POST], $ext); + } catch (Exception $e) { + if (BB_DEBUG) { error_log($e); } } - // throw new \Box_Exception('Page :url not found', array(':url'=>$page), 404); - $e = new \Box_Exception('Page :url not found', array(':url'=>$this->url), 404); - - error_log($e->getMessage()); - header("HTTP/1.0 404 Not Found"); - return $this->render('404', array('exception'=>$e)); + // throw new \Box_Exception('Page :url not found', array(':url'=>$page), 404); + $e = new \Box_Exception('Page :url not found', [':url' => $this->url], 404); + + error_log($e->getMessage()); + header('HTTP/1.0 404 Not Found'); + + return $this->render('404', ['exception' => $e]); } /** * @param string $fileName */ - public function render($fileName, $variableArray = array(), $ext = 'phtml') + public function render($fileName, $variableArray = [], $ext = 'html.twig') { try { - $template = $this->getTwig()->load($fileName.'.'.$ext); + $template = $this->getTwig()->load($fileName . '.' . $ext); } catch (Twig\Error\LoaderError $e) { error_log($e->getMessage()); throw new \Box_Exception('Page not found', null, 404); } + return $template->render($variableArray); } @@ -88,11 +89,11 @@ class Box_AppClient extends Box_App $theme = $service->getTheme($code); $settings = $service->getThemeSettings($theme); - $loader = new Box_TwigLoader(array( - "mods" => BB_PATH_MODS, - "theme" => BB_PATH_THEMES.DIRECTORY_SEPARATOR.$code, - "type" => "client" - ) + $loader = new Box_TwigLoader([ + 'mods' => BB_PATH_MODS, + 'theme' => BB_PATH_THEMES . DIRECTORY_SEPARATOR . $code, + 'type' => 'client', + ] ); $twig = $this->di['twig']; @@ -101,14 +102,14 @@ class Box_AppClient extends Box_App $twig->addGlobal('current_theme', $code); $twig->addGlobal('settings', $settings); - if($this->di['auth']->isClientLoggedIn()) { + if ($this->di['auth']->isClientLoggedIn()) { $twig->addGlobal('client', $this->di['api_client']); } - if($this->di['auth']->isAdminLoggedIn()) { + if ($this->di['auth']->isAdminLoggedIn()) { $twig->addGlobal('admin', $this->di['api_admin']); } return $twig; } -} \ No newline at end of file +} diff --git a/src/bb-library/Box/Mod.php b/src/bb-library/Box/Mod.php index 0e69f40ea..a23525832 100644 --- a/src/bb-library/Box/Mod.php +++ b/src/bb-library/Box/Mod.php @@ -1,4 +1,5 @@ _getModPath() . 'manifest.json'); } - + public function getManifest() { if(!$this->hasManifest()) { @@ -100,7 +100,7 @@ class Box_Mod "minimum_boxbilling_version" => NULL, "maximum_boxbilling_version" => NULL, ); - + $info = array_merge($info, $json); $info['id'] = $this->mod; $info['type'] = 'mod'; @@ -111,7 +111,7 @@ class Box_Mod return $info; } - + public function hasService($sub = '') { $filename = sprintf('Service%s.php', ucfirst($sub)); @@ -130,12 +130,12 @@ class Box_Mod } return $service; } - + public function hasClientController() { return file_exists($this->_getModPath() . 'Controller/Client.php'); } - + public function getClientController() { if(!$this->hasClientController()) { @@ -152,14 +152,14 @@ class Box_Mod public function hasSettingsPage() { - return file_exists($this->_getModPath() . 'html_admin/mod_'.$this->mod.'_settings.phtml'); + return file_exists($this->_getModPath() . 'html_admin/mod_'.$this->mod.'_settings.html.twig'); } public function hasAdminController() { return file_exists($this->_getModPath() . 'Controller/Admin.php'); } - + public function getAdminController() { if(!$this->hasAdminController()) { @@ -189,7 +189,7 @@ class Box_Mod return false; } - + public function uninstall() { if($this->isCore()) { @@ -205,13 +205,13 @@ class Box_Mod } return false; } - + public function update() { if($this->isCore()) { throw new \Box_Exception('Core module can not be updated'); } - + if($this->hasService()) { $s = $this->getService(); if(method_exists($s, 'update')) { @@ -222,17 +222,17 @@ class Box_Mod } return false; } - + public function getCoreModules() { return $this->core; } - + public function isCore() { return in_array($this->mod, $this->core); } - + public function getConfig() { $db = $this->di['db']; diff --git a/src/bb-modules/Client/html_admin/mod_client_settings.phtml b/src/bb-modules/Client/html_admin/mod_client_settings.html.twig similarity index 98% rename from src/bb-modules/Client/html_admin/mod_client_settings.phtml rename to src/bb-modules/Client/html_admin/mod_client_settings.html.twig index 6a1372f80..2b76af54f 100644 --- a/src/bb-modules/Client/html_admin/mod_client_settings.phtml +++ b/src/bb-modules/Client/html_admin/mod_client_settings.html.twig @@ -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 %}Client settings{% endblock %} diff --git a/src/bb-modules/Client/html_client/mod_client_balance.phtml b/src/bb-modules/Client/html_client/mod_client_balance.html.twig similarity index 93% rename from src/bb-modules/Client/html_client/mod_client_balance.phtml rename to src/bb-modules/Client/html_client/mod_client_balance.html.twig index 29862e37b..5316c0099 100644 --- a/src/bb-modules/Client/html_client/mod_client_balance.phtml +++ b/src/bb-modules/Client/html_client/mod_client_balance.html.twig @@ -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 %}{{ 'Payments history'|trans }}{% endblock %} {% block breadcrumb %}
  • {{ 'Payments history'|trans }}
  • {% endblock %} @@ -47,7 +47,7 @@ - {% include "partial_pagination.phtml" with { 'list': transactions } %} + {% include "partial_pagination.html.twig" with { 'list': transactions } %}
    diff --git a/src/bb-modules/Client/html_client/mod_client_profile.phtml b/src/bb-modules/Client/html_client/mod_client_profile.html.twig similarity index 99% rename from src/bb-modules/Client/html_client/mod_client_profile.phtml rename to src/bb-modules/Client/html_client/mod_client_profile.html.twig index 31832ab2d..8c3b00590 100644 --- a/src/bb-modules/Client/html_client/mod_client_profile.phtml +++ b/src/bb-modules/Client/html_client/mod_client_profile.html.twig @@ -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 %}{{ 'Profile details'|trans }}{% endblock %} {% block page_header %}{{ 'User profile settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Client/html_email/mod_client_confirm.phtml b/src/bb-modules/Client/html_email/mod_client_confirm.html.twig similarity index 100% rename from src/bb-modules/Client/html_email/mod_client_confirm.phtml rename to src/bb-modules/Client/html_email/mod_client_confirm.html.twig diff --git a/src/bb-modules/Client/html_email/mod_client_password_reset_approve.phtml b/src/bb-modules/Client/html_email/mod_client_password_reset_approve.html.twig similarity index 100% rename from src/bb-modules/Client/html_email/mod_client_password_reset_approve.phtml rename to src/bb-modules/Client/html_email/mod_client_password_reset_approve.html.twig diff --git a/src/bb-modules/Client/html_email/mod_client_password_reset_request.phtml b/src/bb-modules/Client/html_email/mod_client_password_reset_request.html.twig similarity index 100% rename from src/bb-modules/Client/html_email/mod_client_password_reset_request.phtml rename to src/bb-modules/Client/html_email/mod_client_password_reset_request.html.twig diff --git a/src/bb-modules/Client/html_email/mod_client_signup.phtml b/src/bb-modules/Client/html_email/mod_client_signup.html.twig similarity index 100% rename from src/bb-modules/Client/html_email/mod_client_signup.phtml rename to src/bb-modules/Client/html_email/mod_client_signup.html.twig diff --git a/src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.phtml b/src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.html.twig similarity index 91% rename from src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.phtml rename to src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.html.twig index c326dcdbe..583917c1d 100644 --- a/src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.phtml +++ b/src/bb-modules/Cookieconsent/html_admin/mod_cookieconsent_index.html.twig @@ -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 %}Cookie consent settings{% endblock %} @@ -13,7 +13,7 @@

    {{ 'Here you can specify message which will be shown to user. It will be shown until user will click Close × button, however it will not be intrusive and will not disturb to perform any actions.'|trans }}

    -

    {{ 'If there is a need to change the way notification looks or is being displayed, you can do it by editing'|trans }} src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.phtml

    +

    {{ 'If there is a need to change the way notification looks or is being displayed, you can do it by editing'|trans }} src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.html.twig

    {% set params = admin.extension_config_get({"ext":"mod_cookieconsent"}) %} diff --git a/src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.phtml b/src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.html.twig similarity index 100% rename from src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.phtml rename to src/bb-modules/Cookieconsent/html_client/mod_cookieconsent_index.html.twig diff --git a/src/bb-modules/Cron/html_admin/mod_cron_settings.phtml b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig similarity index 95% rename from src/bb-modules/Cron/html_admin/mod_cron_settings.phtml rename to src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig index 14ca3f610..95395f492 100644 --- a/src/bb-modules/Cron/html_admin/mod_cron_settings.phtml +++ b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig @@ -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 %}{{ 'Cron settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Cron/html_client/mod_cron_check.phtml b/src/bb-modules/Cron/html_client/mod_cron_check.html.twig similarity index 100% rename from src/bb-modules/Cron/html_client/mod_cron_check.phtml rename to src/bb-modules/Cron/html_client/mod_cron_check.html.twig diff --git a/src/bb-modules/Currency/html_admin/mod_currency_manage.phtml b/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig similarity index 95% rename from src/bb-modules/Currency/html_admin/mod_currency_manage.phtml rename to src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig index b6fbdfac6..acf8e0ade 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_manage.phtml +++ b/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig @@ -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 %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Currency/html_admin/mod_currency_settings.phtml b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig similarity index 98% rename from src/bb-modules/Currency/html_admin/mod_currency_settings.phtml rename to src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig index 101e40dff..811a18038 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_settings.phtml +++ b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig @@ -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 %} {% set active_menu = 'system' %} {% block meta_title %}{{ 'Currency settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Custompages/html_admin/mod_custompages_index.phtml b/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig similarity index 94% rename from src/bb-modules/Custompages/html_admin/mod_custompages_index.phtml rename to src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig index 12b92b606..b48b94a47 100644 --- a/src/bb-modules/Custompages/html_admin/mod_custompages_index.phtml +++ b/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig @@ -1,5 +1,5 @@ -{% import "macro_functions.phtml" as mf %} -{% extends "layout_default.phtml" %} +{% import "macro_functions.html.twig" as mf %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'extensions' %} {% block meta_title %}{{ 'Custom Pages'|trans }}{% endblock %} @@ -49,8 +49,8 @@ - {% include "partial_batch_delete.phtml" with {'action' : 'admin/custompages/batch_delete'} %} - {% include "partial_pagination.phtml" with {'list': pages, 'url':'custompages'} %} + {% include "partial_batch_delete.html.twig" with {'action' : 'admin/custompages/batch_delete'} %} + {% include "partial_pagination.html.twig" with {'list': pages, 'url':'custompages'} %}
    diff --git a/src/bb-modules/Custompages/html_admin/mod_custompages_page.phtml b/src/bb-modules/Custompages/html_admin/mod_custompages_page.html.twig similarity index 97% rename from src/bb-modules/Custompages/html_admin/mod_custompages_page.phtml rename to src/bb-modules/Custompages/html_admin/mod_custompages_page.html.twig index 5e942d12c..fdcf6115d 100644 --- a/src/bb-modules/Custompages/html_admin/mod_custompages_page.phtml +++ b/src/bb-modules/Custompages/html_admin/mod_custompages_page.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'extensions' %} diff --git a/src/bb-modules/Custompages/html_client/mod_custompages_content.phtml b/src/bb-modules/Custompages/html_client/mod_custompages_content.html.twig similarity index 89% rename from src/bb-modules/Custompages/html_client/mod_custompages_content.phtml rename to src/bb-modules/Custompages/html_client/mod_custompages_content.html.twig index bdfb15a81..753544b18 100644 --- a/src/bb-modules/Custompages/html_client/mod_custompages_content.phtml +++ b/src/bb-modules/Custompages/html_client/mod_custompages_content.html.twig @@ -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 %}{{ page.title }}{% endblock %} {% block meta_description %}{{ page.description }}{% endblock %} diff --git a/src/bb-modules/Dashboard/html_client/mod_dashboard_index.phtml b/src/bb-modules/Dashboard/html_client/mod_dashboard_index.html.twig similarity index 98% rename from src/bb-modules/Dashboard/html_client/mod_dashboard_index.phtml rename to src/bb-modules/Dashboard/html_client/mod_dashboard_index.html.twig index 9b4da67d9..f0bee0f2e 100644 --- a/src/bb-modules/Dashboard/html_client/mod_dashboard_index.phtml +++ b/src/bb-modules/Dashboard/html_client/mod_dashboard_index.html.twig @@ -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 %}{{ 'Client Area'|trans }}{% endblock %} {% block page_header %}{{ 'Dashboard'|trans }}{% endblock %} @@ -12,7 +12,7 @@ {% endif %} {% endblock %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block content %} diff --git a/src/bb-modules/Email/Api/Admin.php b/src/bb-modules/Email/Api/Admin.php index df8bbc273..cb0930298 100644 --- a/src/bb-modules/Email/Api/Admin.php +++ b/src/bb-modules/Email/Api/Admin.php @@ -1,4 +1,5 @@ -{% include "partial_batch_delete.phtml" with { 'action': 'admin/email/batch_delete' } %} -{% include "partial_pagination.phtml" with { 'list': emails, 'url': 'email/history' } %} +{% include "partial_batch_delete.html.twig" with { 'action': 'admin/email/batch_delete' } %} +{% include "partial_pagination.html.twig" with { 'list': emails, 'url': 'email/history' } %} {% endblock %} diff --git a/src/bb-modules/Email/html_admin/mod_email_settings.phtml b/src/bb-modules/Email/html_admin/mod_email_settings.html.twig similarity index 99% rename from src/bb-modules/Email/html_admin/mod_email_settings.phtml rename to src/bb-modules/Email/html_admin/mod_email_settings.html.twig index 083f88970..34f2030c1 100644 --- a/src/bb-modules/Email/html_admin/mod_email_settings.phtml +++ b/src/bb-modules/Email/html_admin/mod_email_settings.html.twig @@ -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 %}{{ 'Email'|trans }}{% endblock %} {% block breadcrumbs %} diff --git a/src/bb-modules/Email/html_admin/mod_email_template.phtml b/src/bb-modules/Email/html_admin/mod_email_template.html.twig similarity index 99% rename from src/bb-modules/Email/html_admin/mod_email_template.phtml rename to src/bb-modules/Email/html_admin/mod_email_template.html.twig index cd7683b69..c8df7206a 100644 --- a/src/bb-modules/Email/html_admin/mod_email_template.phtml +++ b/src/bb-modules/Email/html_admin/mod_email_template.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Email template{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Email/html_client/mod_email_email.phtml b/src/bb-modules/Email/html_client/mod_email_email.html.twig similarity index 97% rename from src/bb-modules/Email/html_client/mod_email_email.phtml rename to src/bb-modules/Email/html_client/mod_email_email.html.twig index 37bb785a3..0aa0b7540 100644 --- a/src/bb-modules/Email/html_client/mod_email_email.phtml +++ b/src/bb-modules/Email/html_client/mod_email_email.html.twig @@ -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 %}{{ 'Email'|trans }}{% endblock %} diff --git a/src/bb-modules/Email/html_client/mod_email_index.phtml b/src/bb-modules/Email/html_client/mod_email_index.html.twig similarity index 96% rename from src/bb-modules/Email/html_client/mod_email_index.phtml rename to src/bb-modules/Email/html_client/mod_email_index.html.twig index 45381112a..49d4780c9 100644 --- a/src/bb-modules/Email/html_client/mod_email_index.phtml +++ b/src/bb-modules/Email/html_client/mod_email_index.html.twig @@ -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 %}{{ 'Emails'|trans }}{% endblock %} {% block breadcrumb %}
  • {{ 'Emails'|trans }}
  • {% endblock %} @@ -46,7 +46,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with {'list': emails} %} + {% include "partial_pagination.html.twig" with {'list': emails} %} {% endif %} diff --git a/src/bb-modules/Email/html_email/mod_email_test.phtml b/src/bb-modules/Email/html_email/mod_email_test.html.twig similarity index 100% rename from src/bb-modules/Email/html_email/mod_email_test.phtml rename to src/bb-modules/Email/html_email/mod_email_test.html.twig diff --git a/src/bb-modules/Embed/html_admin/mod_embed_index.phtml b/src/bb-modules/Embed/html_admin/mod_embed_index.html.twig similarity index 95% rename from src/bb-modules/Embed/html_admin/mod_embed_index.phtml rename to src/bb-modules/Embed/html_admin/mod_embed_index.html.twig index fe2715fac..9df927e1f 100644 --- a/src/bb-modules/Embed/html_admin/mod_embed_index.phtml +++ b/src/bb-modules/Embed/html_admin/mod_embed_index.html.twig @@ -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 %}Embed parts of BoxBilling{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Embed/html_client/mod_embed_contact.phtml b/src/bb-modules/Embed/html_client/mod_embed_contact.html.twig similarity index 100% rename from src/bb-modules/Embed/html_client/mod_embed_contact.phtml rename to src/bb-modules/Embed/html_client/mod_embed_contact.html.twig diff --git a/src/bb-modules/Embed/html_client/mod_embed_domainchecker.phtml b/src/bb-modules/Embed/html_client/mod_embed_domainchecker.html.twig similarity index 100% rename from src/bb-modules/Embed/html_client/mod_embed_domainchecker.phtml rename to src/bb-modules/Embed/html_client/mod_embed_domainchecker.html.twig diff --git a/src/bb-modules/Embed/html_client/mod_embed_loginform.phtml b/src/bb-modules/Embed/html_client/mod_embed_loginform.html.twig similarity index 100% rename from src/bb-modules/Embed/html_client/mod_embed_loginform.phtml rename to src/bb-modules/Embed/html_client/mod_embed_loginform.html.twig diff --git a/src/bb-modules/Example/README.md b/src/bb-modules/Example/README.md index b47a4c0aa..69ea646ec 100644 --- a/src/bb-modules/Example/README.md +++ b/src/bb-modules/Example/README.md @@ -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. \ No newline at end of file +We recommend hosting your extensions on a public [GitHub](https://github.com) repository. diff --git a/src/bb-modules/Example/Service.php b/src/bb-modules/Example/Service.php index 8b6fa528c..f738a6a1c 100644 --- a/src/bb-modules/Example/Service.php +++ b/src/bb-modules/Example/Service.php @@ -1,4 +1,5 @@ order_get(array('id'=>$params['id'])); diff --git a/src/bb-modules/Example/html_admin/mod_example_index.phtml b/src/bb-modules/Example/html_admin/mod_example_index.html.twig similarity index 96% rename from src/bb-modules/Example/html_admin/mod_example_index.phtml rename to src/bb-modules/Example/html_admin/mod_example_index.html.twig index 7b262169c..1b0432536 100644 --- a/src/bb-modules/Example/html_admin/mod_example_index.phtml +++ b/src/bb-modules/Example/html_admin/mod_example_index.html.twig @@ -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 %} diff --git a/src/bb-modules/Example/html_admin/mod_example_settings.phtml b/src/bb-modules/Example/html_admin/mod_example_settings.html.twig similarity index 89% rename from src/bb-modules/Example/html_admin/mod_example_settings.phtml rename to src/bb-modules/Example/html_admin/mod_example_settings.html.twig index e71ec9e61..ff66a003d 100644 --- a/src/bb-modules/Example/html_admin/mod_example_settings.phtml +++ b/src/bb-modules/Example/html_admin/mod_example_settings.html.twig @@ -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 @@

    {{ 'Example extension settings'|trans }}

    -

    {{ 'Every extension can have settings page. Only requirement is to have mod_example_settings.phtml page in html_admin folder'|trans }}

    +

    {{ 'Every extension can have settings page. Only requirement is to have mod_example_settings.html.twig page in html_admin folder'|trans }}

    diff --git a/src/bb-modules/Example/html_client/mod_example_index.phtml b/src/bb-modules/Example/html_client/mod_example_index.html.twig similarity index 94% rename from src/bb-modules/Example/html_client/mod_example_index.phtml rename to src/bb-modules/Example/html_client/mod_example_index.html.twig index 5124944ec..ba1efc163 100644 --- a/src/bb-modules/Example/html_client/mod_example_index.phtml +++ b/src/bb-modules/Example/html_client/mod_example_index.html.twig @@ -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 %}
  • {{ 'Example module'|trans }}
  • {% endblock %} diff --git a/src/bb-modules/Example/html_email/mod_example_email.phtml b/src/bb-modules/Example/html_email/mod_example_email.html.twig similarity index 100% rename from src/bb-modules/Example/html_email/mod_example_email.phtml rename to src/bb-modules/Example/html_email/mod_example_email.html.twig diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_field.phtml b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_field.html.twig similarity index 100% rename from src/bb-modules/Formbuilder/html_admin/mod_formbuilder_field.phtml rename to src/bb-modules/Formbuilder/html_admin/mod_formbuilder_field.html.twig diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_manage.phtml b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_manage.html.twig similarity index 100% rename from src/bb-modules/Formbuilder/html_admin/mod_formbuilder_manage.phtml rename to src/bb-modules/Formbuilder/html_admin/mod_formbuilder_manage.html.twig diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.phtml b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig similarity index 100% rename from src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.phtml rename to src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.phtml b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig similarity index 98% rename from src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.phtml rename to src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig index 0e18cddcd..209007df5 100644 --- a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.phtml +++ b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig @@ -1,8 +1,8 @@ {# {% if guest.extension_is_on({ "mod": "formbuilder" }) %} #} -{% 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 %}Custom form builder{% endblock %} @@ -178,8 +178,8 @@
    {% for i,field in form.fields %}
    - {% include 'mod_formbuilder_field.phtml' with field %} - {% include 'mod_formbuilder_preview.phtml' with field %} + {% include 'mod_formbuilder_field.html.twig' with field %} + {% include 'mod_formbuilder_preview.html.twig' with field %}
    {% endfor %}
    diff --git a/src/bb-modules/Formbuilder/html_client/mod_formbuilder_build.phtml b/src/bb-modules/Formbuilder/html_client/mod_formbuilder_build.html.twig similarity index 100% rename from src/bb-modules/Formbuilder/html_client/mod_formbuilder_build.phtml rename to src/bb-modules/Formbuilder/html_client/mod_formbuilder_build.html.twig diff --git a/src/bb-modules/Forum/html_admin/mod_forum_forum.phtml b/src/bb-modules/Forum/html_admin/mod_forum_forum.html.twig similarity index 95% rename from src/bb-modules/Forum/html_admin/mod_forum_forum.phtml rename to src/bb-modules/Forum/html_admin/mod_forum_forum.html.twig index ad0d3a14f..ba554d67a 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_forum.phtml +++ b/src/bb-modules/Forum/html_admin/mod_forum_forum.html.twig @@ -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 %} {% set active_menu = 'support' %} diff --git a/src/bb-modules/Forum/html_admin/mod_forum_index.phtml b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig similarity index 97% rename from src/bb-modules/Forum/html_admin/mod_forum_index.phtml rename to src/bb-modules/Forum/html_admin/mod_forum_index.html.twig index 503cad486..8e9243bf4 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_index.phtml +++ b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig @@ -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 %} {% set active_menu = 'support' %} @@ -52,7 +52,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': posts, 'url': 'forum' } %} + {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'forum' } %}
    @@ -93,7 +93,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': topics, 'url': 'forum' } %} + {% include "partial_pagination.html.twig" with { 'list': topics, 'url': 'forum' } %}
    diff --git a/src/bb-modules/Forum/html_admin/mod_forum_profile.phtml b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig similarity index 96% rename from src/bb-modules/Forum/html_admin/mod_forum_profile.phtml rename to src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig index 94d546992..7cde3d9c9 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_profile.phtml +++ b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig @@ -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 %}Forum - Client profile{% endblock %} @@ -116,7 +116,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': posts, 'url': 'profile/'~client_id } %} + {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'profile/'~client_id } %}
    diff --git a/src/bb-modules/Forum/html_admin/mod_forum_settings.phtml b/src/bb-modules/Forum/html_admin/mod_forum_settings.html.twig similarity index 96% rename from src/bb-modules/Forum/html_admin/mod_forum_settings.phtml rename to src/bb-modules/Forum/html_admin/mod_forum_settings.html.twig index f0927275a..160ebcbcc 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_settings.phtml +++ b/src/bb-modules/Forum/html_admin/mod_forum_settings.html.twig @@ -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 %}{{ 'Forum settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Forum/html_admin/mod_forum_topic.phtml b/src/bb-modules/Forum/html_admin/mod_forum_topic.html.twig similarity index 97% rename from src/bb-modules/Forum/html_admin/mod_forum_topic.phtml rename to src/bb-modules/Forum/html_admin/mod_forum_topic.html.twig index 541d12888..a0a8312d0 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_topic.phtml +++ b/src/bb-modules/Forum/html_admin/mod_forum_topic.html.twig @@ -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 %} {% set active_menu = 'support' %} @@ -232,7 +232,7 @@ {% endfor %} -{% include "partial_pagination.phtml" with { 'list': messages, 'url': 'forum/topic/'~topic.id } %} +{% include "partial_pagination.html.twig" with { 'list': messages, 'url': 'forum/topic/'~topic.id } %} {% endblock %} {% block head %}{{ mf.bb_editor('.bb-textarea') }}{% endblock %} diff --git a/src/bb-modules/Forum/html_client/mod_forum_forum.phtml b/src/bb-modules/Forum/html_client/mod_forum_forum.html.twig similarity index 97% rename from src/bb-modules/Forum/html_client/mod_forum_forum.phtml rename to src/bb-modules/Forum/html_client/mod_forum_forum.html.twig index 8ba154c65..3b6e30d85 100644 --- a/src/bb-modules/Forum/html_client/mod_forum_forum.phtml +++ b/src/bb-modules/Forum/html_client/mod_forum_forum.html.twig @@ -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 %}{{ forum.title }}{% endblock %} @@ -81,7 +81,7 @@ - {% include "partial_pagination.phtml" with {'list': topics} %} + {% include "partial_pagination.html.twig" with {'list': topics} %} diff --git a/src/bb-modules/Kb/html_client/mod_kb_article.phtml b/src/bb-modules/Kb/html_client/mod_kb_article.html.twig similarity index 96% rename from src/bb-modules/Kb/html_client/mod_kb_article.phtml rename to src/bb-modules/Kb/html_client/mod_kb_article.html.twig index 32f47fca7..60b211614 100644 --- a/src/bb-modules/Kb/html_client/mod_kb_article.phtml +++ b/src/bb-modules/Kb/html_client/mod_kb_article.html.twig @@ -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 %}{{ article.title }}{% endblock %} diff --git a/src/bb-modules/Kb/html_client/mod_kb_category.phtml b/src/bb-modules/Kb/html_client/mod_kb_category.html.twig similarity index 93% rename from src/bb-modules/Kb/html_client/mod_kb_category.phtml rename to src/bb-modules/Kb/html_client/mod_kb_category.html.twig index b82d000f3..55bc95728 100644 --- a/src/bb-modules/Kb/html_client/mod_kb_category.phtml +++ b/src/bb-modules/Kb/html_client/mod_kb_category.html.twig @@ -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 %}{{ category.title }}{% endblock %} diff --git a/src/bb-modules/Kb/html_client/mod_kb_index.phtml b/src/bb-modules/Kb/html_client/mod_kb_index.html.twig similarity index 97% rename from src/bb-modules/Kb/html_client/mod_kb_index.phtml rename to src/bb-modules/Kb/html_client/mod_kb_index.html.twig index 5a01ca056..5a14c9d7b 100644 --- a/src/bb-modules/Kb/html_client/mod_kb_index.phtml +++ b/src/bb-modules/Kb/html_client/mod_kb_index.html.twig @@ -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 %}{{ 'Knowledge base'|trans }}{% endblock %} {% block breadcrumb %}{{ 'Knowledge base'|trans }}{% endblock %} diff --git a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.phtml b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig similarity index 95% rename from src/bb-modules/Massmailer/html_admin/mod_massmailer_index.phtml rename to src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig index 49027386c..16bf7e9ea 100644 --- a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.phtml +++ b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig @@ -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 %}Mass mailer{% endblock %} @@ -52,7 +52,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with {'list': msgs, 'url':'massmailer'} %} + {% include "partial_pagination.html.twig" with {'list': msgs, 'url':'massmailer'} %}
    diff --git a/src/bb-modules/Massmailer/html_admin/mod_massmailer_message.phtml b/src/bb-modules/Massmailer/html_admin/mod_massmailer_message.html.twig similarity index 99% rename from src/bb-modules/Massmailer/html_admin/mod_massmailer_message.phtml rename to src/bb-modules/Massmailer/html_admin/mod_massmailer_message.html.twig index 7e028cc66..bfe42864a 100644 --- a/src/bb-modules/Massmailer/html_admin/mod_massmailer_message.phtml +++ b/src/bb-modules/Massmailer/html_admin/mod_massmailer_message.html.twig @@ -1,4 +1,4 @@ -{% extends 'layout_default.phtml' %} +{% extends 'layout_default.html.twig' %} {% block meta_title %}{{ msg.subject }}{% endblock %} diff --git a/src/bb-modules/News/html_admin/mod_news_index.phtml b/src/bb-modules/News/html_admin/mod_news_index.html.twig similarity index 93% rename from src/bb-modules/News/html_admin/mod_news_index.phtml rename to src/bb-modules/News/html_admin/mod_news_index.html.twig index 3953b2e39..04a89d8d5 100644 --- a/src/bb-modules/News/html_admin/mod_news_index.phtml +++ b/src/bb-modules/News/html_admin/mod_news_index.html.twig @@ -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 %} {% set active_menu = 'support' %} @@ -56,8 +56,8 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': posts, 'url': 'news/index' } %} - {% include "partial_batch_delete.phtml" with { 'action': 'admin/news/batch_delete' } %} + {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'news/index' } %} + {% include "partial_batch_delete.html.twig" with { 'action': 'admin/news/batch_delete' } %}
    diff --git a/src/bb-modules/News/html_admin/mod_news_post.phtml b/src/bb-modules/News/html_admin/mod_news_post.html.twig similarity index 98% rename from src/bb-modules/News/html_admin/mod_news_post.phtml rename to src/bb-modules/News/html_admin/mod_news_post.html.twig index 57585da9b..8df7b4fd7 100644 --- a/src/bb-modules/News/html_admin/mod_news_post.phtml +++ b/src/bb-modules/News/html_admin/mod_news_post.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ post.title }}{% endblock %} diff --git a/src/bb-modules/News/html_client/mod_news_index.phtml b/src/bb-modules/News/html_client/mod_news_index.html.twig similarity index 90% rename from src/bb-modules/News/html_client/mod_news_index.phtml rename to src/bb-modules/News/html_client/mod_news_index.html.twig index 50fa5fa75..56e6e96dd 100644 --- a/src/bb-modules/News/html_client/mod_news_index.phtml +++ b/src/bb-modules/News/html_client/mod_news_index.html.twig @@ -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 %}{{ 'Blog'|trans }}{% endblock %} {% block breadcrumb %}{{ 'Blog'|trans }}{% endblock %} @@ -34,7 +34,7 @@ {% endfor %}
    - {% include "partial_pagination.phtml" with { 'list': posts } %} + {% include "partial_pagination.html.twig" with { 'list': posts } %} {% endblock %} diff --git a/src/bb-modules/News/html_client/mod_news_post.phtml b/src/bb-modules/News/html_client/mod_news_post.html.twig similarity index 95% rename from src/bb-modules/News/html_client/mod_news_post.phtml rename to src/bb-modules/News/html_client/mod_news_post.html.twig index 223dc4cfc..61ba8a575 100644 --- a/src/bb-modules/News/html_client/mod_news_post.phtml +++ b/src/bb-modules/News/html_client/mod_news_post.html.twig @@ -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 %}{{ post.title }}{% endblock %} {% block meta_description %}{{ post.description }}{% endblock %} @@ -37,7 +37,7 @@ {{ post.content|bbmd }} {# if post.tags %}Tags: {{ post.tags|join(', ') }}{% endif #} - {% if guest.extension_is_on({ "mod": "comment" }) %}{% include "mod_comment_block.phtml" %}{% endif %} + {% if guest.extension_is_on({ "mod": "comment" }) %}{% include "mod_comment_block.html.twig" %}{% endif %}

    {{ 'Back to list'|trans }}

    diff --git a/src/bb-modules/Notification/html_admin/mod_notification_index.phtml b/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig similarity index 92% rename from src/bb-modules/Notification/html_admin/mod_notification_index.phtml rename to src/bb-modules/Notification/html_admin/mod_notification_index.html.twig index 62009f9ab..877820d36 100644 --- a/src/bb-modules/Notification/html_admin/mod_notification_index.phtml +++ b/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig @@ -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 %}Notifications center{% endblock %} @@ -48,7 +48,7 @@ - {% include "partial_pagination.phtml" with {'list': events, 'url':'notification'} %} + {% include "partial_pagination.html.twig" with {'list': events, 'url':'notification'} %}
    {{ 'Delete all messages'|trans }} diff --git a/src/bb-modules/Order/Controller/Admin.php b/src/bb-modules/Order/Controller/Admin.php index c3d2bfec5..d04f13aff 100644 --- a/src/bb-modules/Order/Controller/Admin.php +++ b/src/bb-modules/Order/Controller/Admin.php @@ -1,4 +1,5 @@ $order]; if (isset($order['plugin']) && !empty($order['plugin'])) { - $set['plugin'] = 'plugin_'.$order['plugin'].'_manage.phtml'; + $set['plugin'] = 'plugin_'.$order['plugin'].'_manage.html.twig'; } return $app->render('mod_order_manage', $set); diff --git a/src/bb-modules/Order/Controller/Client.php b/src/bb-modules/Order/Controller/Client.php index d8b3b3177..bafd9bef2 100644 --- a/src/bb-modules/Order/Controller/Client.php +++ b/src/bb-modules/Order/Controller/Client.php @@ -1,4 +1,5 @@ di['api_guest']; $product = $api->product_get(['slug' => $slug]); $tpl = 'mod_service'.$product['type'].'_order'; - if ($api->system_template_exists(['file' => $tpl.'.phtml'])) { + if ($api->system_template_exists(['file' => $tpl.'.html.twig'])) { return $app->render($tpl, ['product' => $product]); } @@ -63,7 +64,7 @@ class Client implements \Box\InjectionAwareInterface $api = $this->di['api_guest']; $product = $api->product_get(['id' => $id]); $tpl = 'mod_service'.$product['type'].'_order'; - if ($api->system_template_exists(['file' => $tpl.'.phtml'])) { + if ($api->system_template_exists(['file' => $tpl.'.html.twig'])) { return $app->render($tpl, ['product' => $product]); } diff --git a/src/bb-modules/Order/html_admin/mod_order_settings.phtml b/src/bb-modules/Order/html_admin/mod_order_settings.html.twig similarity index 97% rename from src/bb-modules/Order/html_admin/mod_order_settings.phtml rename to src/bb-modules/Order/html_admin/mod_order_settings.html.twig index c58be6565..7cea70e9e 100644 --- a/src/bb-modules/Order/html_admin/mod_order_settings.phtml +++ b/src/bb-modules/Order/html_admin/mod_order_settings.html.twig @@ -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 %}{{ 'Orders settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Order/html_client/mod_order_index.phtml b/src/bb-modules/Order/html_client/mod_order_index.html.twig similarity index 89% rename from src/bb-modules/Order/html_client/mod_order_index.phtml rename to src/bb-modules/Order/html_client/mod_order_index.html.twig index c57daa279..92508deb8 100644 --- a/src/bb-modules/Order/html_client/mod_order_index.phtml +++ b/src/bb-modules/Order/html_client/mod_order_index.html.twig @@ -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 %}{{ 'Order'|trans }}{% endblock %} @@ -27,7 +27,7 @@ {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-modules/Order/html_client/mod_order_list.phtml b/src/bb-modules/Order/html_client/mod_order_list.html.twig similarity index 91% rename from src/bb-modules/Order/html_client/mod_order_list.phtml rename to src/bb-modules/Order/html_client/mod_order_list.html.twig index ff90577e3..e1085f418 100644 --- a/src/bb-modules/Order/html_client/mod_order_list.phtml +++ b/src/bb-modules/Order/html_client/mod_order_list.html.twig @@ -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 %}{{ 'My Products & Services'|trans }}{% endblock %} @@ -50,7 +50,7 @@ - {% include "partial_pagination.phtml" with { 'list': orders } %} + {% include "partial_pagination.html.twig" with { 'list': orders } %}
    diff --git a/src/bb-modules/Order/html_client/mod_order_manage.phtml b/src/bb-modules/Order/html_client/mod_order_manage.html.twig similarity index 99% rename from src/bb-modules/Order/html_client/mod_order_manage.phtml rename to src/bb-modules/Order/html_client/mod_order_manage.html.twig index 758c594bc..1980f4017 100644 --- a/src/bb-modules/Order/html_client/mod_order_manage.phtml +++ b/src/bb-modules/Order/html_client/mod_order_manage.html.twig @@ -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 %}{{ order.title }}{% endblock %} @@ -11,7 +11,7 @@ {{ order.title }} {% endblock %} -{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.phtml" %} +{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.html.twig" %} {% set upgradables = client.order_upgradables({ 'id': order.id }) %} {% block content %} diff --git a/src/bb-modules/Order/html_client/mod_order_product.phtml b/src/bb-modules/Order/html_client/mod_order_product.html.twig similarity index 89% rename from src/bb-modules/Order/html_client/mod_order_product.phtml rename to src/bb-modules/Order/html_client/mod_order_product.html.twig index 308de27e8..f73ede48c 100644 --- a/src/bb-modules/Order/html_client/mod_order_product.phtml +++ b/src/bb-modules/Order/html_client/mod_order_product.html.twig @@ -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 %}{{ 'Order'|trans }}{% endblock %} @@ -27,7 +27,7 @@ {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.phtml b/src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.html.twig similarity index 99% rename from src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.phtml rename to src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.html.twig index e6cb0f393..e2774c6d3 100644 --- a/src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.phtml +++ b/src/bb-modules/Orderbutton/html_admin/mod_orderbutton_settings.html.twig @@ -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 %}{{ 'Order Button settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_addons.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_addons.html.twig similarity index 100% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_addons.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_addons.html.twig diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.html.twig similarity index 100% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.html.twig diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_choose_product.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_choose_product.html.twig similarity index 100% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_choose_product.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_choose_product.html.twig diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.html.twig similarity index 99% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.html.twig index d9a38f04f..c6fd5999e 100644 --- a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.phtml +++ b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_client.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %}
    diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_currency.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_currency.html.twig similarity index 100% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_currency.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_currency.html.twig diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.html.twig similarity index 96% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.html.twig index 38111ca71..182a11334 100644 --- a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.phtml +++ b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_index.html.twig @@ -54,15 +54,15 @@
    - {% include 'mod_orderbutton_choose_product.phtml' %} + {% include 'mod_orderbutton_choose_product.html.twig' %} - {% include 'mod_orderbutton_product_configuration.phtml' %} + {% include 'mod_orderbutton_product_configuration.html.twig' %} {% if not client %} - {% include 'mod_orderbutton_client.phtml' %} + {% include 'mod_orderbutton_client.html.twig' %} {% endif %} - {% include 'mod_orderbutton_checkout.phtml' %} + {% include 'mod_orderbutton_checkout.html.twig' %}
    @@ -76,7 +76,7 @@
    - {% include 'mod_orderbutton_currency.phtml' %} + {% include 'mod_orderbutton_currency.html.twig' %} {% if guest.extension_is_on({"mod":'branding'}) %}
    {{ 'Powered by BoxBilling'|trans }} diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_js.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_js.html.twig similarity index 100% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_js.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_js.html.twig diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.html.twig similarity index 93% rename from src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.phtml rename to src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.html.twig index 11559cb7c..f8e5e4848 100644 --- a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.phtml +++ b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_product_configuration.html.twig @@ -30,18 +30,18 @@
    {% endset %} - {% set tpl = "mod_service"~product.type~"_order_form.phtml" %} + {% set tpl = "mod_service"~product.type~"_order_form.html.twig" %} {% if guest.system_template_exists({"file":tpl}) %} {% include tpl with product %} {% elseif product.form_id and guest.extension_is_on({"mod":"formbuilder"}) %} {{ product_details }} {% set form = guest.formbuilder_get({"id":product.form_id}) %} - {% include 'mod_formbuilder_build.phtml' with product %} + {% include 'mod_formbuilder_build.html.twig' with product %} {% else %} {{ product_details }} {% endif %} - {% include 'mod_orderbutton_addons.phtml' with product %} + {% include 'mod_orderbutton_addons.html.twig' with product %} diff --git a/src/bb-modules/Page/Service.php b/src/bb-modules/Page/Service.php index 7ed02c07e..03c7d1951 100644 --- a/src/bb-modules/Page/Service.php +++ b/src/bb-modules/Page/Service.php @@ -1,4 +1,5 @@ di['mod_service']('theme'); $code = $themeService->getCurrentClientAreaThemeCode(); $paths = [ - BB_PATH_THEMES.DIRECTORY_SEPARATOR.$code.DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR, - BB_PATH_MODS.DIRECTORY_SEPARATOR.'mod_page'.DIRECTORY_SEPARATOR.'html_client'.DIRECTORY_SEPARATOR, + BB_PATH_THEMES . DIRECTORY_SEPARATOR . $code . DIRECTORY_SEPARATOR . 'html' . DIRECTORY_SEPARATOR, + BB_PATH_MODS . DIRECTORY_SEPARATOR . 'mod_page' . DIRECTORY_SEPARATOR . 'html_client' . DIRECTORY_SEPARATOR, ]; $list = []; foreach ($paths as $path) { - foreach (glob($path.'mod_page_*.phtml') as $file) { + foreach (glob($path . 'mod_page_*.html.twig') as $file) { $file = str_replace('mod_page_', '', pathinfo($file, PATHINFO_FILENAME)); $list[$file] = ucwords(strtr($file, ['-' => ' ', '_' => ' '])); } diff --git a/src/bb-modules/Page/html_client/mod_page_about-us.phtml b/src/bb-modules/Page/html_client/mod_page_about-us.html.twig similarity index 95% rename from src/bb-modules/Page/html_client/mod_page_about-us.phtml rename to src/bb-modules/Page/html_client/mod_page_about-us.html.twig index d3814833d..152ec536f 100644 --- a/src/bb-modules/Page/html_client/mod_page_about-us.phtml +++ b/src/bb-modules/Page/html_client/mod_page_about-us.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} {% block meta_title %}{{ 'About us'|trans }}{% endblock %} diff --git a/src/bb-modules/Page/html_client/mod_page_login.phtml b/src/bb-modules/Page/html_client/mod_page_login.html.twig similarity index 98% rename from src/bb-modules/Page/html_client/mod_page_login.phtml rename to src/bb-modules/Page/html_client/mod_page_login.html.twig index 69cf74211..7d599aeaa 100644 --- a/src/bb-modules/Page/html_client/mod_page_login.phtml +++ b/src/bb-modules/Page/html_client/mod_page_login.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} {% block meta_title %}{{ 'Log in'|trans }}{% endblock %} diff --git a/src/bb-modules/Page/html_client/mod_page_password-reset.phtml b/src/bb-modules/Page/html_client/mod_page_password-reset.html.twig similarity index 97% rename from src/bb-modules/Page/html_client/mod_page_password-reset.phtml rename to src/bb-modules/Page/html_client/mod_page_password-reset.html.twig index 103f17130..271daf1ab 100644 --- a/src/bb-modules/Page/html_client/mod_page_password-reset.phtml +++ b/src/bb-modules/Page/html_client/mod_page_password-reset.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} {% block meta_title %}{{ 'Reset password'|trans }}{% endblock %} diff --git a/src/bb-modules/Page/html_client/mod_page_preview_markdown.phtml b/src/bb-modules/Page/html_client/mod_page_preview_markdown.html.twig similarity index 100% rename from src/bb-modules/Page/html_client/mod_page_preview_markdown.phtml rename to src/bb-modules/Page/html_client/mod_page_preview_markdown.html.twig diff --git a/src/bb-modules/Page/html_client/mod_page_privacy-policy.phtml b/src/bb-modules/Page/html_client/mod_page_privacy-policy.html.twig similarity index 95% rename from src/bb-modules/Page/html_client/mod_page_privacy-policy.phtml rename to src/bb-modules/Page/html_client/mod_page_privacy-policy.html.twig index b7f2bc364..d8ccd77c2 100644 --- a/src/bb-modules/Page/html_client/mod_page_privacy-policy.phtml +++ b/src/bb-modules/Page/html_client/mod_page_privacy-policy.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} {% block meta_title %}{{ 'Privacy policy'|trans }}{% endblock %} diff --git a/src/bb-modules/Page/html_client/mod_page_signup.phtml b/src/bb-modules/Page/html_client/mod_page_signup.html.twig similarity index 99% rename from src/bb-modules/Page/html_client/mod_page_signup.phtml rename to src/bb-modules/Page/html_client/mod_page_signup.html.twig index 12f1223e9..a0161fea3 100644 --- a/src/bb-modules/Page/html_client/mod_page_signup.phtml +++ b/src/bb-modules/Page/html_client/mod_page_signup.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Sign up'|trans }}{% endblock %} diff --git a/src/bb-modules/Page/html_client/mod_page_tos.phtml b/src/bb-modules/Page/html_client/mod_page_tos.html.twig similarity index 95% rename from src/bb-modules/Page/html_client/mod_page_tos.phtml rename to src/bb-modules/Page/html_client/mod_page_tos.html.twig index 80130f414..109b0d224 100644 --- a/src/bb-modules/Page/html_client/mod_page_tos.phtml +++ b/src/bb-modules/Page/html_client/mod_page_tos.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_public.phtml" %} +{% extends "layout_public.html.twig" %} {% block meta_title %}{{ 'Terms and Conditions'|trans }}{% endblock %} diff --git a/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.phtml b/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig similarity index 96% rename from src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.phtml rename to src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig index 8e3e33be9..d7e3fa26a 100644 --- a/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.phtml +++ b/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig @@ -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 %}{{ 'Paid support settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Queue/html_admin/mod_queue_settings.phtml b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig similarity index 93% rename from src/bb-modules/Queue/html_admin/mod_queue_settings.phtml rename to src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig index 9065667c7..3d4180c3f 100644 --- a/src/bb-modules/Queue/html_admin/mod_queue_settings.phtml +++ b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig @@ -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 %}{{ 'Queues'|trans }}{% endblock %} diff --git a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.phtml b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig similarity index 96% rename from src/bb-modules/Redirect/html_admin/mod_redirect_settings.phtml rename to src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig index 16bdefcaf..44735d036 100644 --- a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.phtml +++ b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig @@ -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 %}{{ 'Redirects'|trans }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Seo/html_admin/mod_seo_settings.phtml b/src/bb-modules/Seo/html_admin/mod_seo_settings.html.twig similarity index 94% rename from src/bb-modules/Seo/html_admin/mod_seo_settings.phtml rename to src/bb-modules/Seo/html_admin/mod_seo_settings.html.twig index ce481fe4a..fd06bfe74 100644 --- a/src/bb-modules/Seo/html_admin/mod_seo_settings.phtml +++ b/src/bb-modules/Seo/html_admin/mod_seo_settings.html.twig @@ -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 %}{{ 'SEO settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml rename to src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_manage.phtml b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_manage.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_manage.phtml rename to src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_manage.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_order.phtml b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_order.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_order.phtml rename to src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_order.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.phtml b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig similarity index 98% rename from src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.phtml rename to src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig index ea3a11615..645c44342 100644 --- a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.phtml +++ b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig @@ -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 %}{{ 'Centova Cast'|trans }}{% endblock %} diff --git a/src/bb-modules/Servicecentovacast/html_client/mod_servicecentovacast_manage.phtml b/src/bb-modules/Servicecentovacast/html_client/mod_servicecentovacast_manage.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_client/mod_servicecentovacast_manage.phtml rename to src/bb-modules/Servicecentovacast/html_client/mod_servicecentovacast_manage.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_activated.phtml b/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_activated.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_activated.phtml rename to src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_activated.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_canceled.phtml b/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_canceled.phtml rename to src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_canceled.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_renewed.phtml b/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_renewed.phtml rename to src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_renewed.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_suspended.phtml b/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_suspended.phtml rename to src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_suspended.html.twig diff --git a/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_unsuspended.phtml b/src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_unsuspended.phtml rename to src/bb-modules/Servicecentovacast/html_email/mod_servicecentovacast_unsuspended.html.twig diff --git a/src/bb-modules/Servicecustom/html_admin/mod_servicecustom_order.phtml b/src/bb-modules/Servicecustom/html_admin/mod_servicecustom_order.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_admin/mod_servicecustom_order.phtml rename to src/bb-modules/Servicecustom/html_admin/mod_servicecustom_order.html.twig diff --git a/src/bb-modules/Servicecustom/html_email/mod_servicecustom_activated.phtml b/src/bb-modules/Servicecustom/html_email/mod_servicecustom_activated.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_email/mod_servicecustom_activated.phtml rename to src/bb-modules/Servicecustom/html_email/mod_servicecustom_activated.html.twig diff --git a/src/bb-modules/Servicecustom/html_email/mod_servicecustom_canceled.phtml b/src/bb-modules/Servicecustom/html_email/mod_servicecustom_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_email/mod_servicecustom_canceled.phtml rename to src/bb-modules/Servicecustom/html_email/mod_servicecustom_canceled.html.twig diff --git a/src/bb-modules/Servicecustom/html_email/mod_servicecustom_renewed.phtml b/src/bb-modules/Servicecustom/html_email/mod_servicecustom_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_email/mod_servicecustom_renewed.phtml rename to src/bb-modules/Servicecustom/html_email/mod_servicecustom_renewed.html.twig diff --git a/src/bb-modules/Servicecustom/html_email/mod_servicecustom_suspended.phtml b/src/bb-modules/Servicecustom/html_email/mod_servicecustom_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_email/mod_servicecustom_suspended.phtml rename to src/bb-modules/Servicecustom/html_email/mod_servicecustom_suspended.html.twig diff --git a/src/bb-modules/Servicecustom/html_email/mod_servicecustom_unsuspended.phtml b/src/bb-modules/Servicecustom/html_email/mod_servicecustom_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicecustom/html_email/mod_servicecustom_unsuspended.phtml rename to src/bb-modules/Servicecustom/html_email/mod_servicecustom_unsuspended.html.twig diff --git a/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml b/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.html.twig similarity index 97% rename from src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml rename to src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.html.twig index e0d5c7982..14d24e44a 100644 --- a/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml +++ b/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %}
    diff --git a/src/bb-modules/Servicedomain/html_client/mod_servicedomain_manage.phtml b/src/bb-modules/Servicedomain/html_client/mod_servicedomain_manage.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_client/mod_servicedomain_manage.phtml rename to src/bb-modules/Servicedomain/html_client/mod_servicedomain_manage.html.twig diff --git a/src/bb-modules/Servicedomain/html_client/mod_servicedomain_order_form.phtml b/src/bb-modules/Servicedomain/html_client/mod_servicedomain_order_form.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_client/mod_servicedomain_order_form.phtml rename to src/bb-modules/Servicedomain/html_client/mod_servicedomain_order_form.html.twig diff --git a/src/bb-modules/Servicedomain/html_email/mod_servicedomain_activated.phtml b/src/bb-modules/Servicedomain/html_email/mod_servicedomain_activated.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_email/mod_servicedomain_activated.phtml rename to src/bb-modules/Servicedomain/html_email/mod_servicedomain_activated.html.twig diff --git a/src/bb-modules/Servicedomain/html_email/mod_servicedomain_renewed.phtml b/src/bb-modules/Servicedomain/html_email/mod_servicedomain_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_email/mod_servicedomain_renewed.phtml rename to src/bb-modules/Servicedomain/html_email/mod_servicedomain_renewed.html.twig diff --git a/src/bb-modules/Servicedomain/html_email/mod_servicedomain_suspended.phtml b/src/bb-modules/Servicedomain/html_email/mod_servicedomain_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_email/mod_servicedomain_suspended.phtml rename to src/bb-modules/Servicedomain/html_email/mod_servicedomain_suspended.html.twig diff --git a/src/bb-modules/Servicedomain/html_email/mod_servicedomain_unsuspended.phtml b/src/bb-modules/Servicedomain/html_email/mod_servicedomain_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicedomain/html_email/mod_servicedomain_unsuspended.phtml rename to src/bb-modules/Servicedomain/html_email/mod_servicedomain_unsuspended.html.twig diff --git a/src/bb-modules/Servicedownloadable/html_client/mod_servicedownloadable_manage.phtml b/src/bb-modules/Servicedownloadable/html_client/mod_servicedownloadable_manage.html.twig similarity index 100% rename from src/bb-modules/Servicedownloadable/html_client/mod_servicedownloadable_manage.phtml rename to src/bb-modules/Servicedownloadable/html_client/mod_servicedownloadable_manage.html.twig diff --git a/src/bb-modules/Servicedownloadable/html_email/mod_servicedownloadable_activated.phtml b/src/bb-modules/Servicedownloadable/html_email/mod_servicedownloadable_activated.html.twig similarity index 100% rename from src/bb-modules/Servicedownloadable/html_email/mod_servicedownloadable_activated.phtml rename to src/bb-modules/Servicedownloadable/html_email/mod_servicedownloadable_activated.html.twig diff --git a/src/bb-modules/Servicehosting/html_admin/mod_servicehosting_order.phtml b/src/bb-modules/Servicehosting/html_admin/mod_servicehosting_order.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_admin/mod_servicehosting_order.phtml rename to src/bb-modules/Servicehosting/html_admin/mod_servicehosting_order.html.twig diff --git a/src/bb-modules/Servicehosting/html_client/mod_servicehosting_manage.phtml b/src/bb-modules/Servicehosting/html_client/mod_servicehosting_manage.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_client/mod_servicehosting_manage.phtml rename to src/bb-modules/Servicehosting/html_client/mod_servicehosting_manage.html.twig diff --git a/src/bb-modules/Servicehosting/html_client/mod_servicehosting_order_form.phtml b/src/bb-modules/Servicehosting/html_client/mod_servicehosting_order_form.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_client/mod_servicehosting_order_form.phtml rename to src/bb-modules/Servicehosting/html_client/mod_servicehosting_order_form.html.twig diff --git a/src/bb-modules/Servicehosting/html_email/mod_servicehosting_activated.phtml b/src/bb-modules/Servicehosting/html_email/mod_servicehosting_activated.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_email/mod_servicehosting_activated.phtml rename to src/bb-modules/Servicehosting/html_email/mod_servicehosting_activated.html.twig diff --git a/src/bb-modules/Servicehosting/html_email/mod_servicehosting_canceled.phtml b/src/bb-modules/Servicehosting/html_email/mod_servicehosting_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_email/mod_servicehosting_canceled.phtml rename to src/bb-modules/Servicehosting/html_email/mod_servicehosting_canceled.html.twig diff --git a/src/bb-modules/Servicehosting/html_email/mod_servicehosting_renewed.phtml b/src/bb-modules/Servicehosting/html_email/mod_servicehosting_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_email/mod_servicehosting_renewed.phtml rename to src/bb-modules/Servicehosting/html_email/mod_servicehosting_renewed.html.twig diff --git a/src/bb-modules/Servicehosting/html_email/mod_servicehosting_suspended.phtml b/src/bb-modules/Servicehosting/html_email/mod_servicehosting_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_email/mod_servicehosting_suspended.phtml rename to src/bb-modules/Servicehosting/html_email/mod_servicehosting_suspended.html.twig diff --git a/src/bb-modules/Servicehosting/html_email/mod_servicehosting_unsuspended.phtml b/src/bb-modules/Servicehosting/html_email/mod_servicehosting_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicehosting/html_email/mod_servicehosting_unsuspended.phtml rename to src/bb-modules/Servicehosting/html_email/mod_servicehosting_unsuspended.html.twig diff --git a/src/bb-modules/Servicelicense/html_client/mod_servicelicense_manage.phtml b/src/bb-modules/Servicelicense/html_client/mod_servicelicense_manage.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_client/mod_servicelicense_manage.phtml rename to src/bb-modules/Servicelicense/html_client/mod_servicelicense_manage.html.twig diff --git a/src/bb-modules/Servicelicense/html_email/mod_servicelicense_activated.phtml b/src/bb-modules/Servicelicense/html_email/mod_servicelicense_activated.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_email/mod_servicelicense_activated.phtml rename to src/bb-modules/Servicelicense/html_email/mod_servicelicense_activated.html.twig diff --git a/src/bb-modules/Servicelicense/html_email/mod_servicelicense_canceled.phtml b/src/bb-modules/Servicelicense/html_email/mod_servicelicense_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_email/mod_servicelicense_canceled.phtml rename to src/bb-modules/Servicelicense/html_email/mod_servicelicense_canceled.html.twig diff --git a/src/bb-modules/Servicelicense/html_email/mod_servicelicense_renewed.phtml b/src/bb-modules/Servicelicense/html_email/mod_servicelicense_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_email/mod_servicelicense_renewed.phtml rename to src/bb-modules/Servicelicense/html_email/mod_servicelicense_renewed.html.twig diff --git a/src/bb-modules/Servicelicense/html_email/mod_servicelicense_suspended.phtml b/src/bb-modules/Servicelicense/html_email/mod_servicelicense_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_email/mod_servicelicense_suspended.phtml rename to src/bb-modules/Servicelicense/html_email/mod_servicelicense_suspended.html.twig diff --git a/src/bb-modules/Servicelicense/html_email/mod_servicelicense_unsuspended.phtml b/src/bb-modules/Servicelicense/html_email/mod_servicelicense_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicelicense/html_email/mod_servicelicense_unsuspended.phtml rename to src/bb-modules/Servicelicense/html_email/mod_servicelicense_unsuspended.html.twig diff --git a/src/bb-modules/Servicemembership/html_email/mod_servicemembership_activated.phtml b/src/bb-modules/Servicemembership/html_email/mod_servicemembership_activated.html.twig similarity index 100% rename from src/bb-modules/Servicemembership/html_email/mod_servicemembership_activated.phtml rename to src/bb-modules/Servicemembership/html_email/mod_servicemembership_activated.html.twig diff --git a/src/bb-modules/Servicemembership/html_email/mod_servicemembership_canceled.phtml b/src/bb-modules/Servicemembership/html_email/mod_servicemembership_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicemembership/html_email/mod_servicemembership_canceled.phtml rename to src/bb-modules/Servicemembership/html_email/mod_servicemembership_canceled.html.twig diff --git a/src/bb-modules/Servicemembership/html_email/mod_servicemembership_renewed.phtml b/src/bb-modules/Servicemembership/html_email/mod_servicemembership_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicemembership/html_email/mod_servicemembership_renewed.phtml rename to src/bb-modules/Servicemembership/html_email/mod_servicemembership_renewed.html.twig diff --git a/src/bb-modules/Servicemembership/html_email/mod_servicemembership_suspended.phtml b/src/bb-modules/Servicemembership/html_email/mod_servicemembership_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicemembership/html_email/mod_servicemembership_suspended.phtml rename to src/bb-modules/Servicemembership/html_email/mod_servicemembership_suspended.html.twig diff --git a/src/bb-modules/Servicemembership/html_email/mod_servicemembership_unsuspended.phtml b/src/bb-modules/Servicemembership/html_email/mod_servicemembership_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicemembership/html_email/mod_servicemembership_unsuspended.phtml rename to src/bb-modules/Servicemembership/html_email/mod_servicemembership_unsuspended.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_config.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_config.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_config.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_config.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.html.twig similarity index 94% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.html.twig index 70fe18bd3..524fed40d 100644 --- a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.phtml +++ b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_clients.html.twig @@ -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 %}Import SolusVM clients{% endblock %} diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.html.twig similarity index 96% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.html.twig index 203c06ebb..f50bc0c9b 100644 --- a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.phtml +++ b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_import_servers.html.twig @@ -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 %}Import SolusVM servers{% endblock %} diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_order.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_order.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_order.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_order.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.phtml b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.html.twig similarity index 99% rename from src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.phtml rename to src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.html.twig index 9c74ee05b..5efd3b3f1 100644 --- a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.phtml +++ b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_settings.html.twig @@ -1,4 +1,4 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_listing.phtml b/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_listing.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_listing.phtml rename to src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_listing.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_manage.phtml b/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_manage.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_manage.phtml rename to src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_manage.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_order_form.phtml b/src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_order_form.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_order_form.phtml rename to src/bb-modules/Servicesolusvm/html_client/mod_servicesolusvm_order_form.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_activated.phtml b/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_activated.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_activated.phtml rename to src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_activated.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_canceled.phtml b/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_canceled.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_canceled.phtml rename to src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_canceled.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_renewed.phtml b/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_renewed.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_renewed.phtml rename to src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_renewed.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_suspended.phtml b/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_suspended.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_suspended.phtml rename to src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_suspended.html.twig diff --git a/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_unsuspended.phtml b/src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_unsuspended.html.twig similarity index 100% rename from src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_unsuspended.phtml rename to src/bb-modules/Servicesolusvm/html_email/mod_servicesolusvm_unsuspended.html.twig diff --git a/src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.phtml b/src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig similarity index 97% rename from src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.phtml rename to src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig index 28c4a3b86..93df183e8 100644 --- a/src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.phtml +++ b/src/bb-modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig @@ -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 %}{{ 'SpamChecker settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Spamchecker/html_client/mod_spamchecker_recaptcha.phtml b/src/bb-modules/Spamchecker/html_client/mod_spamchecker_recaptcha.html.twig similarity index 100% rename from src/bb-modules/Spamchecker/html_client/mod_spamchecker_recaptcha.phtml rename to src/bb-modules/Spamchecker/html_client/mod_spamchecker_recaptcha.html.twig diff --git a/src/bb-modules/Staff/html_admin/mod_staff_settings.phtml b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig similarity index 99% rename from src/bb-modules/Staff/html_admin/mod_staff_settings.phtml rename to src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig index f1ecb66ac..f65bb0959 100644 --- a/src/bb-modules/Staff/html_admin/mod_staff_settings.phtml +++ b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Staff'|trans }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Staff/html_email/mod_staff_client_order.phtml b/src/bb-modules/Staff/html_email/mod_staff_client_order.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_client_order.phtml rename to src/bb-modules/Staff/html_email/mod_staff_client_order.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_client_signup.phtml b/src/bb-modules/Staff/html_email/mod_staff_client_signup.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_client_signup.phtml rename to src/bb-modules/Staff/html_email/mod_staff_client_signup.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_pticket_close.phtml b/src/bb-modules/Staff/html_email/mod_staff_pticket_close.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_pticket_close.phtml rename to src/bb-modules/Staff/html_email/mod_staff_pticket_close.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_pticket_open.phtml b/src/bb-modules/Staff/html_email/mod_staff_pticket_open.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_pticket_open.phtml rename to src/bb-modules/Staff/html_email/mod_staff_pticket_open.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_pticket_reply.phtml b/src/bb-modules/Staff/html_email/mod_staff_pticket_reply.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_pticket_reply.phtml rename to src/bb-modules/Staff/html_email/mod_staff_pticket_reply.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_ticket_close.phtml b/src/bb-modules/Staff/html_email/mod_staff_ticket_close.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_ticket_close.phtml rename to src/bb-modules/Staff/html_email/mod_staff_ticket_close.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_ticket_open.phtml b/src/bb-modules/Staff/html_email/mod_staff_ticket_open.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_ticket_open.phtml rename to src/bb-modules/Staff/html_email/mod_staff_ticket_open.html.twig diff --git a/src/bb-modules/Staff/html_email/mod_staff_ticket_reply.phtml b/src/bb-modules/Staff/html_email/mod_staff_ticket_reply.html.twig similarity index 100% rename from src/bb-modules/Staff/html_email/mod_staff_ticket_reply.phtml rename to src/bb-modules/Staff/html_email/mod_staff_ticket_reply.html.twig diff --git a/src/bb-modules/Support/html_admin/mod_support_canned_selector.phtml b/src/bb-modules/Support/html_admin/mod_support_canned_selector.html.twig similarity index 100% rename from src/bb-modules/Support/html_admin/mod_support_canned_selector.phtml rename to src/bb-modules/Support/html_admin/mod_support_canned_selector.html.twig diff --git a/src/bb-modules/Support/html_admin/mod_support_helpdesk.phtml b/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig similarity index 95% rename from src/bb-modules/Support/html_admin/mod_support_helpdesk.phtml rename to src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig index c3809b963..877987d14 100644 --- a/src/bb-modules/Support/html_admin/mod_support_helpdesk.phtml +++ b/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig @@ -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 %}{{ helpdesk.name }}{% endblock %} diff --git a/src/bb-modules/Support/html_admin/mod_support_settings.phtml b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig similarity index 98% rename from src/bb-modules/Support/html_admin/mod_support_settings.phtml rename to src/bb-modules/Support/html_admin/mod_support_settings.html.twig index e6309cd80..9212aa9c9 100644 --- a/src/bb-modules/Support/html_admin/mod_support_settings.phtml +++ b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig @@ -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 %}{{ 'Support settings'|trans }}{% endblock %} diff --git a/src/bb-modules/Support/html_client/mod_support_contact_us.phtml b/src/bb-modules/Support/html_client/mod_support_contact_us.html.twig similarity index 97% rename from src/bb-modules/Support/html_client/mod_support_contact_us.phtml rename to src/bb-modules/Support/html_client/mod_support_contact_us.html.twig index 5c533c967..22167c74a 100644 --- a/src/bb-modules/Support/html_client/mod_support_contact_us.phtml +++ b/src/bb-modules/Support/html_client/mod_support_contact_us.html.twig @@ -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 %}{{ 'Contact us'|trans }}{% endblock %} {% block breadcrumb %}{{ 'Contact us'|trans }}{% endblock %} diff --git a/src/bb-modules/Support/html_client/mod_support_contact_us_conversation.phtml b/src/bb-modules/Support/html_client/mod_support_contact_us_conversation.html.twig similarity index 97% rename from src/bb-modules/Support/html_client/mod_support_contact_us_conversation.phtml rename to src/bb-modules/Support/html_client/mod_support_contact_us_conversation.html.twig index d8d59b6d8..ed2d308ef 100644 --- a/src/bb-modules/Support/html_client/mod_support_contact_us_conversation.phtml +++ b/src/bb-modules/Support/html_client/mod_support_contact_us_conversation.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} diff --git a/src/bb-modules/Support/html_client/mod_support_ticket.phtml b/src/bb-modules/Support/html_client/mod_support_ticket.html.twig similarity index 98% rename from src/bb-modules/Support/html_client/mod_support_ticket.phtml rename to src/bb-modules/Support/html_client/mod_support_ticket.html.twig index 51574dd7b..a99df6dc6 100644 --- a/src/bb-modules/Support/html_client/mod_support_ticket.phtml +++ b/src/bb-modules/Support/html_client/mod_support_ticket.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} {% block breadcrumb %} diff --git a/src/bb-modules/Support/html_client/mod_support_tickets.phtml b/src/bb-modules/Support/html_client/mod_support_tickets.html.twig similarity index 95% rename from src/bb-modules/Support/html_client/mod_support_tickets.phtml rename to src/bb-modules/Support/html_client/mod_support_tickets.html.twig index 43b24f3c7..fae470ecc 100644 --- a/src/bb-modules/Support/html_client/mod_support_tickets.phtml +++ b/src/bb-modules/Support/html_client/mod_support_tickets.html.twig @@ -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 %}{{ 'Support tickets'|trans }}{% endblock %} {% block page_header %}{{ 'Support tickets'|trans }}{% endblock %} @@ -63,7 +63,7 @@ - {% include "partial_pagination.phtml" with {'list': tickets} %} + {% include "partial_pagination.html.twig" with {'list': tickets} %} diff --git a/src/bb-modules/Support/html_email/mod_support_helpdesk_ticket_open.phtml b/src/bb-modules/Support/html_email/mod_support_helpdesk_ticket_open.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_helpdesk_ticket_open.phtml rename to src/bb-modules/Support/html_email/mod_support_helpdesk_ticket_open.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_pticket_open.phtml b/src/bb-modules/Support/html_email/mod_support_pticket_open.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_pticket_open.phtml rename to src/bb-modules/Support/html_email/mod_support_pticket_open.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_pticket_staff_close.phtml b/src/bb-modules/Support/html_email/mod_support_pticket_staff_close.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_pticket_staff_close.phtml rename to src/bb-modules/Support/html_email/mod_support_pticket_staff_close.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_pticket_staff_open.phtml b/src/bb-modules/Support/html_email/mod_support_pticket_staff_open.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_pticket_staff_open.phtml rename to src/bb-modules/Support/html_email/mod_support_pticket_staff_open.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_pticket_staff_reply.phtml b/src/bb-modules/Support/html_email/mod_support_pticket_staff_reply.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_pticket_staff_reply.phtml rename to src/bb-modules/Support/html_email/mod_support_pticket_staff_reply.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_ticket_open.phtml b/src/bb-modules/Support/html_email/mod_support_ticket_open.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_ticket_open.phtml rename to src/bb-modules/Support/html_email/mod_support_ticket_open.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_ticket_staff_close.phtml b/src/bb-modules/Support/html_email/mod_support_ticket_staff_close.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_ticket_staff_close.phtml rename to src/bb-modules/Support/html_email/mod_support_ticket_staff_close.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_ticket_staff_open.phtml b/src/bb-modules/Support/html_email/mod_support_ticket_staff_open.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_ticket_staff_open.phtml rename to src/bb-modules/Support/html_email/mod_support_ticket_staff_open.html.twig diff --git a/src/bb-modules/Support/html_email/mod_support_ticket_staff_reply.phtml b/src/bb-modules/Support/html_email/mod_support_ticket_staff_reply.html.twig similarity index 100% rename from src/bb-modules/Support/html_email/mod_support_ticket_staff_reply.phtml rename to src/bb-modules/Support/html_email/mod_support_ticket_staff_reply.html.twig diff --git a/src/bb-modules/System/Api/Admin.php b/src/bb-modules/System/Api/Admin.php index cf3cc43fb..f02432477 100644 --- a/src/bb-modules/System/Api/Admin.php +++ b/src/bb-modules/System/Api/Admin.php @@ -78,7 +78,7 @@ class Admin extends \Api_Abstract /** * Check if passed file name template exists for admin area. * - * @param string $file - template file name, example: mod_index_dashboard.phtml + * @param string $file - template file name, example: mod_index_dashboard.html.twig * * @return bool */ @@ -162,7 +162,7 @@ class Admin extends \Api_Abstract { return $this->getService()->clearCache(); } - + /** * Gets the latest release notes. * diff --git a/src/bb-modules/System/Api/Guest.php b/src/bb-modules/System/Api/Guest.php index 35e32f3e5..7083897fd 100644 --- a/src/bb-modules/System/Api/Guest.php +++ b/src/bb-modules/System/Api/Guest.php @@ -1,4 +1,5 @@ getPathHtml(); - $snippets = glob($path.DIRECTORY_SEPARATOR.'snippet_*.phtml'); + $snippets = glob($path.DIRECTORY_SEPARATOR.'snippet_*.html.twig'); $result = []; foreach ($snippets as $snippet) { $result[basename($snippet)] = str_replace('snippet_', '', pathinfo($snippet, PATHINFO_FILENAME)); diff --git a/src/bb-modules/Theme/Service.php b/src/bb-modules/Theme/Service.php index d4b25410e..12b962f1b 100644 --- a/src/bb-modules/Theme/Service.php +++ b/src/bb-modules/Theme/Service.php @@ -1,4 +1,5 @@ getPathAssets().DIRECTORY_SEPARATOR; - $css_files = $this->di['tools']->glob($assets.'*.css.phtml'); - $js_files = $this->di['tools']->glob($assets.'*.js.phtml'); + $css_files = $this->di['tools']->glob($assets.'*.css.html.twig'); + $js_files = $this->di['tools']->glob($assets.'*.js.html.twig'); $files = array_merge($css_files, $js_files); foreach ($files as $file) { diff --git a/src/bb-modules/Theme/html_admin/mod_theme_preset.phtml b/src/bb-modules/Theme/html_admin/mod_theme_preset.html.twig similarity index 98% rename from src/bb-modules/Theme/html_admin/mod_theme_preset.phtml rename to src/bb-modules/Theme/html_admin/mod_theme_preset.html.twig index b401cf7d6..ea2be7f48 100644 --- a/src/bb-modules/Theme/html_admin/mod_theme_preset.phtml +++ b/src/bb-modules/Theme/html_admin/mod_theme_preset.html.twig @@ -1,4 +1,4 @@ -{% extends request.ajax ? 'layout_blank.phtml' : 'layout_default.phtml' %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} {% set active_menu = 'system' %} diff --git a/src/bb-modules/Theme/html_admin/mod_theme_settings.phtml b/src/bb-modules/Theme/html_admin/mod_theme_settings.html.twig similarity index 97% rename from src/bb-modules/Theme/html_admin/mod_theme_settings.phtml rename to src/bb-modules/Theme/html_admin/mod_theme_settings.html.twig index 37468d4b5..0f0dfabd2 100644 --- a/src/bb-modules/Theme/html_admin/mod_theme_settings.phtml +++ b/src/bb-modules/Theme/html_admin/mod_theme_settings.html.twig @@ -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 %}{{ 'Themes'|trans }}{% endblock %} diff --git a/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_js.phtml b/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_js.html.twig similarity index 100% rename from src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_js.phtml rename to src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_js.html.twig diff --git a/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.phtml b/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig similarity index 92% rename from src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.phtml rename to src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig index 7a98eafc1..57153caf5 100755 --- a/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.phtml +++ b/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig @@ -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 %}{{ 'Wysiwyg settings'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/404.phtml b/src/bb-themes/admin_default/html/404.html.twig similarity index 95% rename from src/bb-themes/admin_default/html/404.phtml rename to src/bb-themes/admin_default/html/404.html.twig index aa21715d7..bb7583371 100644 --- a/src/bb-themes/admin_default/html/404.phtml +++ b/src/bb-themes/admin_default/html/404.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_login.phtml" %} +{% extends "layout_login.html.twig" %} {% block meta_title %}{{ 'Error'|trans }} {{ exception.getCode }}{% endblock %} {% set help_query = exception.getMessage %} diff --git a/src/bb-themes/admin_default/html/layout_blank.phtml b/src/bb-themes/admin_default/html/layout_blank.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/layout_blank.phtml rename to src/bb-themes/admin_default/html/layout_blank.html.twig diff --git a/src/bb-themes/admin_default/html/layout_default.phtml b/src/bb-themes/admin_default/html/layout_default.html.twig similarity index 95% rename from src/bb-themes/admin_default/html/layout_default.phtml rename to src/bb-themes/admin_default/html/layout_default.html.twig index 16d320956..1b2353093 100644 --- a/src/bb-themes/admin_default/html/layout_default.phtml +++ b/src/bb-themes/admin_default/html/layout_default.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set profile = admin.profile_get %} {% set company = guest.system_company %} @@ -12,8 +12,8 @@ - {% include "partial_bb_meta.phtml" %} - {% include "partial_styles.phtml" %} + {% include "partial_bb_meta.html.twig" %} + {% include "partial_styles.html.twig" %} @@ -45,7 +45,7 @@
    • {{ 'New'|trans }} - {% include "partial_menu_top.phtml" %} + {% include "partial_menu_top.html.twig" %}
    • {% if admin.system_is_allowed({ "mod": "system" }) %}
    • {{ 'Settings'|trans }} @@ -111,7 +111,7 @@ {% else %}
      {% block left_top %}{% endblock %} - {% block nav %}{% include "partial_menu.phtml" %}{% endblock %} + {% block nav %}{% include "partial_menu.html.twig" %}{% endblock %} {% block left_bottom %}{% endblock %}
      @@ -138,7 +138,7 @@
      diff --git a/src/bb-themes/admin_default/html/layout_login.phtml b/src/bb-themes/admin_default/html/layout_login.html.twig similarity index 94% rename from src/bb-themes/admin_default/html/layout_login.phtml rename to src/bb-themes/admin_default/html/layout_login.html.twig index b0fcdfa6c..12de1f084 100644 --- a/src/bb-themes/admin_default/html/layout_login.phtml +++ b/src/bb-themes/admin_default/html/layout_login.html.twig @@ -5,7 +5,7 @@ - {% include "partial_bb_meta.phtml" %} + {% include "partial_bb_meta.html.twig" %} @@ -42,7 +42,7 @@ {% block js %}{% endblock %} diff --git a/src/bb-themes/admin_default/html/macro_functions.phtml b/src/bb-themes/admin_default/html/macro_functions.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/macro_functions.phtml rename to src/bb-themes/admin_default/html/macro_functions.html.twig index e2000e9ee..e666c3461 100644 --- a/src/bb-themes/admin_default/html/macro_functions.phtml +++ b/src/bb-themes/admin_default/html/macro_functions.html.twig @@ -130,7 +130,7 @@ {% macro bb_editor(selector) %} {% if guest.extension_is_on({"mod":"wysiwyg"}) %} -{% include "mod_wysiwyg_js.phtml" with {"class":selector|trim('.#')} %} +{% include "mod_wysiwyg_js.html.twig" with {"class":selector|trim('.#')} %} {% else %} {% endif %} diff --git a/src/bb-themes/admin_default/html/mod_activity_index.phtml b/src/bb-themes/admin_default/html/mod_activity_index.html.twig similarity index 87% rename from src/bb-themes/admin_default/html/mod_activity_index.phtml rename to src/bb-themes/admin_default/html/mod_activity_index.html.twig index a2e74765b..ab6b77779 100644 --- a/src/bb-themes/admin_default/html/mod_activity_index.phtml +++ b/src/bb-themes/admin_default/html/mod_activity_index.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}System activity{% endblock %} {% set active_menu = 'activity' %} @@ -53,7 +53,7 @@
    -{% include "partial_batch_delete.phtml" with {'action' : 'admin/activity/batch_delete'} %} -{% include "partial_pagination.phtml" with {'list': events, 'url':'activity'} %} +{% include "partial_batch_delete.html.twig" with {'action' : 'admin/activity/batch_delete'} %} +{% include "partial_pagination.html.twig" with {'list': events, 'url':'activity'} %} {% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_client_group.phtml b/src/bb-themes/admin_default/html/mod_client_group.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_client_group.phtml rename to src/bb-themes/admin_default/html/mod_client_group.html.twig index f2b73de95..9674e89cd 100644 --- a/src/bb-themes/admin_default/html/mod_client_group.phtml +++ b/src/bb-themes/admin_default/html/mod_client_group.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'client' %} diff --git a/src/bb-themes/admin_default/html/mod_client_index.phtml b/src/bb-themes/admin_default/html/mod_client_index.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_client_index.phtml rename to src/bb-themes/admin_default/html/mod_client_index.html.twig index 7ec97c218..aa60e0840 100644 --- a/src/bb-themes/admin_default/html/mod_client_index.phtml +++ b/src/bb-themes/admin_default/html/mod_client_index.html.twig @@ -1,5 +1,5 @@ -{% import "macro_functions.phtml" as mf %} -{% extends "layout_default.phtml" %} +{% import "macro_functions.html.twig" as mf %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'client' %} {% block meta_title %}{{ 'Clients'|trans }}{% endblock %} @@ -154,8 +154,8 @@ - {% include "partial_batch_delete.phtml" with { 'action' : 'admin/client/batch_delete' } %} - {% include "partial_pagination.phtml" with { 'list': clients, 'url':'client' } %} + {% include "partial_batch_delete.html.twig" with { 'action' : 'admin/client/batch_delete' } %} + {% include "partial_pagination.html.twig" with { 'list': clients, 'url':'client' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_client_login_history.phtml b/src/bb-themes/admin_default/html/mod_client_login_history.html.twig similarity index 85% rename from src/bb-themes/admin_default/html/mod_client_login_history.phtml rename to src/bb-themes/admin_default/html/mod_client_login_history.html.twig index fd1b25604..2f6d120c6 100644 --- a/src/bb-themes/admin_default/html/mod_client_login_history.phtml +++ b/src/bb-themes/admin_default/html/mod_client_login_history.html.twig @@ -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 %}Clients login history{% endblock %} {% set active_menu = 'activity' %} @@ -49,8 +49,8 @@ - {% include "partial_batch_delete.phtml" with {'action' : 'admin/client/batch_delete_log'} %} - {% include "partial_pagination.phtml" with {'list': history, 'url':'client/logins'} %} + {% include "partial_batch_delete.html.twig" with {'action' : 'admin/client/batch_delete_log'} %} + {% include "partial_pagination.html.twig" with {'list': history, 'url':'client/logins'} %}
    {% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_client_manage.phtml b/src/bb-themes/admin_default/html/mod_client_manage.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_client_manage.phtml rename to src/bb-themes/admin_default/html/mod_client_manage.html.twig index 5e7bf2a81..76dcf65e9 100644 --- a/src/bb-themes/admin_default/html/mod_client_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_client_manage.html.twig @@ -1,5 +1,5 @@ -{% import "macro_functions.phtml" as mf %} -{% extends "layout_default.phtml" %} +{% import "macro_functions.html.twig" as mf %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'client' %} {% block meta_title %}{{ client.first_name }} {{ client.last_name }}{% endblock %} @@ -607,7 +607,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with {'list': emails} %} + {% include "partial_pagination.html.twig" with {'list': emails} %}
    diff --git a/src/bb-themes/admin_default/html/mod_extension_index.phtml b/src/bb-themes/admin_default/html/mod_extension_index.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_extension_index.phtml rename to src/bb-themes/admin_default/html/mod_extension_index.html.twig index 726ef885f..a48c53991 100644 --- a/src/bb-themes/admin_default/html/mod_extension_index.phtml +++ b/src/bb-themes/admin_default/html/mod_extension_index.html.twig @@ -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 %}{{ 'Extensions'|trans }}{% endblock %} @@ -81,7 +81,7 @@
    BoxBilling modules on extension site
    - {% include "partial_extensions.phtml" %} + {% include "partial_extensions.html.twig" %}
    diff --git a/src/bb-themes/admin_default/html/mod_extension_languages.phtml b/src/bb-themes/admin_default/html/mod_extension_languages.html.twig similarity index 94% rename from src/bb-themes/admin_default/html/mod_extension_languages.phtml rename to src/bb-themes/admin_default/html/mod_extension_languages.html.twig index 2274969c8..a5c3cb6be 100644 --- a/src/bb-themes/admin_default/html/mod_extension_languages.phtml +++ b/src/bb-themes/admin_default/html/mod_extension_languages.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Client area languages{% endblock %} @@ -43,7 +43,7 @@
    - {% include "partial_extensions.phtml" with { 'type': 'translation', 'header': "List of translations on extensions site" } only %} + {% include "partial_extensions.html.twig" with { 'type': 'translation', 'header': "List of translations on extensions site" } only %}

    {{ 'BoxBilling in your language'|trans }}

    {{ 'Although BoxBilling displays in U.S. English by default, the software has the built-in capability to be used in any language. Follow instructions bellow to install new language.'|trans }}

    diff --git a/src/bb-themes/admin_default/html/mod_index_dashboard.phtml b/src/bb-themes/admin_default/html/mod_index_dashboard.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_index_dashboard.phtml rename to src/bb-themes/admin_default/html/mod_index_dashboard.html.twig index fc68442dc..efacc122b 100644 --- a/src/bb-themes/admin_default/html/mod_index_dashboard.phtml +++ b/src/bb-themes/admin_default/html/mod_index_dashboard.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Dashboard'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_gateway.phtml b/src/bb-themes/admin_default/html/mod_invoice_gateway.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_invoice_gateway.phtml rename to src/bb-themes/admin_default/html/mod_invoice_gateway.html.twig index e06103bc2..4f0f10be0 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_gateway.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_gateway.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Gateway'|trans }} {{ gateway.title }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_gateways.phtml b/src/bb-themes/admin_default/html/mod_invoice_gateways.html.twig similarity index 94% rename from src/bb-themes/admin_default/html/mod_invoice_gateways.phtml rename to src/bb-themes/admin_default/html/mod_invoice_gateways.html.twig index 473f5a3ac..1f3b8dcca 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_gateways.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_gateways.html.twig @@ -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 %} {% set active_menu = 'system' %} @@ -58,7 +58,7 @@
    - {% include "partial_extensions.phtml" with {'type': 'payment-gateway', 'header':"List of payment gateways on extensions site"} only %} + {% include "partial_extensions.html.twig" with {'type': 'payment-gateway', 'header':"List of payment gateways on extensions site"} only %}

    {{ 'Adding new payment gateway'|trans }}

    {{ 'Although BoxBilling ships with most popular payment gateways, you can install other gateways.'|trans }}

    diff --git a/src/bb-themes/admin_default/html/mod_invoice_index.phtml b/src/bb-themes/admin_default/html/mod_invoice_index.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_invoice_index.phtml rename to src/bb-themes/admin_default/html/mod_invoice_index.html.twig index 78f8ffe59..3c260fe7a 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_index.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_index.html.twig @@ -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 %}{{ 'Invoices'|trans }}{% endblock %} @@ -162,8 +162,8 @@ - {% include "partial_batch_delete.phtml" with { 'action': 'admin/invoice/batch_delete' } %} - {% include "partial_pagination.phtml" with { 'list': invoices, 'url': 'invoice' } %} + {% include "partial_batch_delete.html.twig" with { 'action': 'admin/invoice/batch_delete' } %} + {% include "partial_pagination.html.twig" with { 'list': invoices, 'url': 'invoice' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_invoice_invoice.phtml b/src/bb-themes/admin_default/html/mod_invoice_invoice.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_invoice_invoice.phtml rename to src/bb-themes/admin_default/html/mod_invoice_invoice.html.twig index 2a44a4593..85828d043 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_invoice.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_invoice.html.twig @@ -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 %}{{ 'Invoice'|trans }} {{ invoice.serie }}{{ "%05s"|format(invoice.nr) }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_subscription.phtml b/src/bb-themes/admin_default/html/mod_invoice_subscription.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_invoice_subscription.phtml rename to src/bb-themes/admin_default/html/mod_invoice_subscription.html.twig index a9cbd34a3..9fdeeca47 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_subscription.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_subscription.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'invoice' %} {% block meta_title %}Subscription {{ subscription.sid }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_subscriptions.phtml b/src/bb-themes/admin_default/html/mod_invoice_subscriptions.html.twig similarity index 95% rename from src/bb-themes/admin_default/html/mod_invoice_subscriptions.phtml rename to src/bb-themes/admin_default/html/mod_invoice_subscriptions.html.twig index 29ed26160..5b011d76d 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_subscriptions.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_subscriptions.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Subscriptions'|trans }}{% endblock %} {% set active_menu = 'invoice' %} @@ -52,8 +52,8 @@ - {% include "partial_batch_delete.phtml" with { 'action': 'admin/invoice/batch_delete_subscription' } %} - {% include "partial_pagination.phtml" with { 'list': subscriptions, 'url': 'invoice/subscriptions' } %} + {% include "partial_batch_delete.html.twig" with { 'action': 'admin/invoice/batch_delete_subscription' } %} + {% include "partial_pagination.html.twig" with { 'list': subscriptions, 'url': 'invoice/subscriptions' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_invoice_tax.phtml b/src/bb-themes/admin_default/html/mod_invoice_tax.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_invoice_tax.phtml rename to src/bb-themes/admin_default/html/mod_invoice_tax.html.twig index 16fdfe45e..fe78e9ae2 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_tax.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_tax.html.twig @@ -1,5 +1,5 @@ -{% extends "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}Tax{% endblock %} {% set active_menu = 'system' %} @@ -65,7 +65,7 @@ {% endfor %} - {% include "partial_batch_delete.phtml" with {'action' : 'admin/invoice/batch_delete_tax'} %} + {% include "partial_batch_delete.html.twig" with {'action' : 'admin/invoice/batch_delete_tax'} %}
    diff --git a/src/bb-themes/admin_default/html/mod_invoice_taxupdate.phtml b/src/bb-themes/admin_default/html/mod_invoice_taxupdate.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_invoice_taxupdate.phtml rename to src/bb-themes/admin_default/html/mod_invoice_taxupdate.html.twig index 5188430c2..3ca5e1bf8 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_taxupdate.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_taxupdate.html.twig @@ -1,5 +1,5 @@ -{% extends "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}Tax{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_transaction.phtml b/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_invoice_transaction.phtml rename to src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig index 912471c53..5bfd119e4 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_transaction.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'invoice' %} {% block meta_title %}Transaction {{ transaction.txn_id }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_invoice_transactions.phtml b/src/bb-themes/admin_default/html/mod_invoice_transactions.html.twig similarity index 95% rename from src/bb-themes/admin_default/html/mod_invoice_transactions.phtml rename to src/bb-themes/admin_default/html/mod_invoice_transactions.html.twig index 9284ea78c..7134fcdcb 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_transactions.phtml +++ b/src/bb-themes/admin_default/html/mod_invoice_transactions.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Transactions'|trans }}{% endblock %} {% set active_menu = 'invoice' %} @@ -156,6 +156,6 @@
    -{% include "partial_batch_delete.phtml" with { 'action': 'admin/invoice/batch_delete_transaction '} %} -{% include "partial_pagination.phtml" with { 'list': transactions, 'url': 'invoice/transactions' } %} +{% include "partial_batch_delete.html.twig" with { 'action': 'admin/invoice/batch_delete_transaction '} %} +{% include "partial_pagination.html.twig" with { 'list': transactions, 'url': 'invoice/transactions' } %} {% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_order_index.phtml b/src/bb-themes/admin_default/html/mod_order_index.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_order_index.phtml rename to src/bb-themes/admin_default/html/mod_order_index.html.twig index 000d39cd6..c64b1a6af 100644 --- a/src/bb-themes/admin_default/html/mod_order_index.phtml +++ b/src/bb-themes/admin_default/html/mod_order_index.html.twig @@ -1,8 +1,8 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} {% set active_menu = 'order' %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Orders'|trans }}{% endblock %} @@ -167,8 +167,8 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': orders, 'url': 'order' } %} - {% include "partial_batch_delete.phtml" with { 'action': 'admin/order/batch_delete' } %} + {% include "partial_pagination.html.twig" with { 'list': orders, 'url': 'order' } %} + {% include "partial_batch_delete.html.twig" with { 'action': 'admin/order/batch_delete' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_order_manage.phtml b/src/bb-themes/admin_default/html/mod_order_manage.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_order_manage.phtml rename to src/bb-themes/admin_default/html/mod_order_manage.html.twig index 75884d807..740a25966 100644 --- a/src/bb-themes/admin_default/html/mod_order_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_order_manage.html.twig @@ -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 %}{{ order.title }}{% endblock %} @@ -14,7 +14,7 @@ {% set active_menu = 'order' %} -{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.phtml" %} +{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.html.twig" %} {% if order.group_master == 1 %} {% set addons = admin.order_addons({"id":order.id}) %} {% endif %} @@ -432,7 +432,7 @@ {% set service = admin.order_service({"id":order.id}) %} {% include service_partial with {'order' : order, 'service':service} %} {% elseif order.form_id and guest.extension_is_on({"mod":"formbuilder"}) %} - {% include 'mod_formbuilder_manage.phtml' with order %} + {% include 'mod_formbuilder_manage.html.twig' with order %} {% else %} {# trans 'Order form was not found' #} {% endif %} diff --git a/src/bb-themes/admin_default/html/mod_order_new.phtml b/src/bb-themes/admin_default/html/mod_order_new.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_order_new.phtml rename to src/bb-themes/admin_default/html/mod_order_new.html.twig index a1f17cd19..d775fb5a2 100644 --- a/src/bb-themes/admin_default/html/mod_order_new.phtml +++ b/src/bb-themes/admin_default/html/mod_order_new.html.twig @@ -1,8 +1,8 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} {% set active_menu = 'order' %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block breadcrumbs %}
      @@ -55,7 +55,7 @@ {% endif %} - {% set product_order = 'mod_service'~product.type~'_order.phtml' %} + {% set product_order = 'mod_service'~product.type~'_order.html.twig' %} {% if admin.system_template_exists({ "file": product_order }) %} {% include product_order %} {% endif %} diff --git a/src/bb-themes/admin_default/html/mod_product_addon_manage.phtml b/src/bb-themes/admin_default/html/mod_product_addon_manage.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_product_addon_manage.phtml rename to src/bb-themes/admin_default/html/mod_product_addon_manage.html.twig index 8309988b7..546d5ce5e 100644 --- a/src/bb-themes/admin_default/html/mod_product_addon_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_product_addon_manage.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'products' %} {% block meta_title %}Product addon management{% endblock %} @@ -60,7 +60,7 @@
      - {% include "partial_pricing.phtml" with {'product': product} %} + {% include "partial_pricing.html.twig" with {'product': product} %}
    diff --git a/src/bb-themes/admin_default/html/mod_product_addons.phtml b/src/bb-themes/admin_default/html/mod_product_addons.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_product_addons.phtml rename to src/bb-themes/admin_default/html/mod_product_addons.html.twig index fdc2f45c7..b2750cff8 100644 --- a/src/bb-themes/admin_default/html/mod_product_addons.phtml +++ b/src/bb-themes/admin_default/html/mod_product_addons.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% set active_menu = 'products' %} {% block meta_title %}{{ 'Addons'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_product_category.phtml b/src/bb-themes/admin_default/html/mod_product_category.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_product_category.phtml rename to src/bb-themes/admin_default/html/mod_product_category.html.twig index d95683a8a..fa6d3ba57 100644 --- a/src/bb-themes/admin_default/html/mod_product_category.phtml +++ b/src/bb-themes/admin_default/html/mod_product_category.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'products' %} diff --git a/src/bb-themes/admin_default/html/mod_product_index.phtml b/src/bb-themes/admin_default/html/mod_product_index.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_product_index.phtml rename to src/bb-themes/admin_default/html/mod_product_index.html.twig index a66341aa2..fbf152384 100644 --- a/src/bb-themes/admin_default/html/mod_product_index.phtml +++ b/src/bb-themes/admin_default/html/mod_product_index.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'products' %} @@ -54,7 +54,7 @@ - {% include "partial_pagination.phtml" with { 'list': products, 'url': 'product' } %} + {% include "partial_pagination.html.twig" with { 'list': products, 'url': 'product' } %} diff --git a/src/bb-themes/admin_default/html/mod_product_manage.phtml b/src/bb-themes/admin_default/html/mod_product_manage.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_product_manage.phtml rename to src/bb-themes/admin_default/html/mod_product_manage.html.twig index 328aff658..87a77e296 100644 --- a/src/bb-themes/admin_default/html/mod_product_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_product_manage.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'products' %} @@ -47,7 +47,7 @@
    - {% set tpl = "mod_service"~product.type~"_order_form.phtml" %} + {% set tpl = "mod_service"~product.type~"_order_form.html.twig" %} {% if guest.system_template_exists({"file":tpl}) %}

    Please edit {{tpl}} file in order to change order form for {{product.type}} category products.

    {{ 'Open Editor'|trans }} @@ -109,7 +109,7 @@
    - {% include "partial_pricing.phtml" with {'product': product} %} + {% include "partial_pricing.html.twig" with {'product': product} %} @@ -188,7 +188,7 @@
    - {% set service_partial = "mod_service" ~ product.type ~ "_config.phtml" %} + {% set service_partial = "mod_service" ~ product.type ~ "_config.html.twig" %} {% if admin.system_template_exists({"file":service_partial}) %} {% include service_partial with {'product': product} %} {% else %} diff --git a/src/bb-themes/admin_default/html/mod_product_promo.phtml b/src/bb-themes/admin_default/html/mod_product_promo.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_product_promo.phtml rename to src/bb-themes/admin_default/html/mod_product_promo.html.twig index c80731e92..00795e4a3 100644 --- a/src/bb-themes/admin_default/html/mod_product_promo.phtml +++ b/src/bb-themes/admin_default/html/mod_product_promo.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Product promos{% endblock %} {% set active_menu = 'products' %} diff --git a/src/bb-themes/admin_default/html/mod_product_promos.phtml b/src/bb-themes/admin_default/html/mod_product_promos.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_product_promos.phtml rename to src/bb-themes/admin_default/html/mod_product_promos.html.twig index 40ee1774a..f5b5a15eb 100644 --- a/src/bb-themes/admin_default/html/mod_product_promos.phtml +++ b/src/bb-themes/admin_default/html/mod_product_promos.html.twig @@ -1,5 +1,5 @@ -{% import "macro_functions.phtml" as mf %} -{% extends "layout_default.phtml" %} +{% import "macro_functions.html.twig" as mf %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Product promotions'|trans }}{% endblock %} {% set active_menu = 'products' %} @@ -75,7 +75,7 @@ - {% include "partial_pagination.phtml" with {'list': promos, 'url':'product/promos'} %} + {% include "partial_pagination.html.twig" with {'list': promos, 'url':'product/promos'} %}
    diff --git a/src/bb-themes/admin_default/html/mod_servicecustom_config.phtml b/src/bb-themes/admin_default/html/mod_servicecustom_config.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicecustom_config.phtml rename to src/bb-themes/admin_default/html/mod_servicecustom_config.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicecustom_manage.phtml b/src/bb-themes/admin_default/html/mod_servicecustom_manage.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicecustom_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicecustom_manage.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicedomain_config.phtml b/src/bb-themes/admin_default/html/mod_servicedomain_config.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicedomain_config.phtml rename to src/bb-themes/admin_default/html/mod_servicedomain_config.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicedomain_index.phtml b/src/bb-themes/admin_default/html/mod_servicedomain_index.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_servicedomain_index.phtml rename to src/bb-themes/admin_default/html/mod_servicedomain_index.html.twig index 0bcc509df..88c9dc0e5 100644 --- a/src/bb-themes/admin_default/html/mod_servicedomain_index.phtml +++ b/src/bb-themes/admin_default/html/mod_servicedomain_index.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}Domain management{% endblock %} @@ -230,7 +230,7 @@
    - {% include "partial_extensions.phtml" with { 'type': 'domain-registrar', 'header': 'List of domain registrars on extensions site' } only %} + {% include "partial_extensions.html.twig" with { 'type': 'domain-registrar', 'header': 'List of domain registrars on extensions site' } only %}

    {{ 'Adding new domain registrar'|trans }}

    {{ 'Follow instructions below to install new domain registrar.'|trans }}

    diff --git a/src/bb-themes/admin_default/html/mod_servicedomain_manage.phtml b/src/bb-themes/admin_default/html/mod_servicedomain_manage.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicedomain_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicedomain_manage.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicedomain_registrar.phtml b/src/bb-themes/admin_default/html/mod_servicedomain_registrar.html.twig similarity index 93% rename from src/bb-themes/admin_default/html/mod_servicedomain_registrar.phtml rename to src/bb-themes/admin_default/html/mod_servicedomain_registrar.html.twig index a80600364..0a7c69c01 100644 --- a/src/bb-themes/admin_default/html/mod_servicedomain_registrar.phtml +++ b/src/bb-themes/admin_default/html/mod_servicedomain_registrar.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Registrar'|trans }} {{ registrar.title }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_servicedomain_tld.phtml b/src/bb-themes/admin_default/html/mod_servicedomain_tld.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_servicedomain_tld.phtml rename to src/bb-themes/admin_default/html/mod_servicedomain_tld.html.twig index 7180d7878..d52edf1d1 100644 --- a/src/bb-themes/admin_default/html/mod_servicedomain_tld.phtml +++ b/src/bb-themes/admin_default/html/mod_servicedomain_tld.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ tld.tld }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_servicedownloadable_config.phtml b/src/bb-themes/admin_default/html/mod_servicedownloadable_config.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicedownloadable_config.phtml rename to src/bb-themes/admin_default/html/mod_servicedownloadable_config.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicedownloadable_manage.phtml b/src/bb-themes/admin_default/html/mod_servicedownloadable_manage.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicedownloadable_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicedownloadable_manage.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_config.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_servicehosting_config.phtml rename to src/bb-themes/admin_default/html/mod_servicehosting_config.html.twig index ad8e95cd3..473e10c26 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_config.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %}
    {{ 'Hosting settings'|trans }}
    diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_hp.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_hp.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_servicehosting_hp.phtml rename to src/bb-themes/admin_default/html/mod_servicehosting_hp.html.twig index 0b1bc0534..b29f922e2 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_hp.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_hp.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Hosting management{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_index.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_index.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_servicehosting_index.phtml rename to src/bb-themes/admin_default/html/mod_servicehosting_index.html.twig index a590051a2..5163675f6 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_index.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_index.html.twig @@ -1,5 +1,5 @@ -{% import "macro_functions.phtml" as mf %} -{% extends "layout_default.phtml" %} +{% import "macro_functions.html.twig" as mf %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Hosting plans and servers'|trans }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_manage.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_manage.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_servicehosting_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicehosting_manage.html.twig index be1b15fbf..713ac5817 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_manage.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% set server = service.server %} {% set hp = service.hosting_plan %} diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_server.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_server.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_servicehosting_server.phtml rename to src/bb-themes/admin_default/html/mod_servicehosting_server.html.twig index 24447b28f..9eb7798cd 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_server.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_server.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Hosting management{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_servicelicense_config.phtml b/src/bb-themes/admin_default/html/mod_servicelicense_config.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_servicelicense_config.phtml rename to src/bb-themes/admin_default/html/mod_servicelicense_config.html.twig index 889d6d30a..58838eec8 100644 --- a/src/bb-themes/admin_default/html/mod_servicelicense_config.phtml +++ b/src/bb-themes/admin_default/html/mod_servicelicense_config.html.twig @@ -1,4 +1,4 @@ -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %}
    {{ 'License settings'|trans }}
    diff --git a/src/bb-themes/admin_default/html/mod_servicelicense_manage.phtml b/src/bb-themes/admin_default/html/mod_servicelicense_manage.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicelicense_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicelicense_manage.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicemembership_config.phtml b/src/bb-themes/admin_default/html/mod_servicemembership_config.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicemembership_config.phtml rename to src/bb-themes/admin_default/html/mod_servicemembership_config.html.twig diff --git a/src/bb-themes/admin_default/html/mod_servicemembership_manage.phtml b/src/bb-themes/admin_default/html/mod_servicemembership_manage.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/mod_servicemembership_manage.phtml rename to src/bb-themes/admin_default/html/mod_servicemembership_manage.html.twig diff --git a/src/bb-themes/admin_default/html/mod_staff_group.phtml b/src/bb-themes/admin_default/html/mod_staff_group.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_staff_group.phtml rename to src/bb-themes/admin_default/html/mod_staff_group.html.twig index 1e4e760db..f8dcbc272 100644 --- a/src/bb-themes/admin_default/html/mod_staff_group.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_group.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Staff Group management'|trans }}{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_staff_index.phtml b/src/bb-themes/admin_default/html/mod_staff_index.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_staff_index.phtml rename to src/bb-themes/admin_default/html/mod_staff_index.html.twig index 0a5fc0c52..f911868a4 100644 --- a/src/bb-themes/admin_default/html/mod_staff_index.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_index.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}Staff{% endblock %} {% set active_menu = 'system' %} diff --git a/src/bb-themes/admin_default/html/mod_staff_login.phtml b/src/bb-themes/admin_default/html/mod_staff_login.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_staff_login.phtml rename to src/bb-themes/admin_default/html/mod_staff_login.html.twig index bef7796ae..0000c2406 100644 --- a/src/bb-themes/admin_default/html/mod_staff_login.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_login.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_login.phtml" %} +{% extends "layout_login.html.twig" %} {% block meta_title %}{{ 'Login'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_staff_login_history.phtml b/src/bb-themes/admin_default/html/mod_staff_login_history.html.twig similarity index 85% rename from src/bb-themes/admin_default/html/mod_staff_login_history.phtml rename to src/bb-themes/admin_default/html/mod_staff_login_history.html.twig index 6efc5b286..8b18dbf72 100644 --- a/src/bb-themes/admin_default/html/mod_staff_login_history.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_login_history.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}Staff members login history{% endblock %} {% set active_menu = 'activity' %} @@ -45,7 +45,7 @@
    -{% include "partial_batch_delete.phtml" with { 'action' : 'admin/staff/batch_delete_logs' } %} -{% include "partial_pagination.phtml" with {'list': history, 'url': 'staff/logins' } %} +{% include "partial_batch_delete.html.twig" with { 'action' : 'admin/staff/batch_delete_logs' } %} +{% include "partial_pagination.html.twig" with {'list': history, 'url': 'staff/logins' } %} {% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_staff_manage.phtml b/src/bb-themes/admin_default/html/mod_staff_manage.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_staff_manage.phtml rename to src/bb-themes/admin_default/html/mod_staff_manage.html.twig index 4c7a4d66a..b98d1a18b 100644 --- a/src/bb-themes/admin_default/html/mod_staff_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_manage.html.twig @@ -1,6 +1,6 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Profile'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_staff_profile.phtml b/src/bb-themes/admin_default/html/mod_staff_profile.html.twig similarity index 99% rename from src/bb-themes/admin_default/html/mod_staff_profile.phtml rename to src/bb-themes/admin_default/html/mod_staff_profile.html.twig index 1e0a79c5e..29de97c32 100644 --- a/src/bb-themes/admin_default/html/mod_staff_profile.phtml +++ b/src/bb-themes/admin_default/html/mod_staff_profile.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Profile'|trans }}{% endblocK %} diff --git a/src/bb-themes/admin_default/html/mod_support_canned_category.phtml b/src/bb-themes/admin_default/html/mod_support_canned_category.html.twig similarity index 91% rename from src/bb-themes/admin_default/html/mod_support_canned_category.phtml rename to src/bb-themes/admin_default/html/mod_support_canned_category.html.twig index a38889518..4c4c74af9 100644 --- a/src/bb-themes/admin_default/html/mod_support_canned_category.phtml +++ b/src/bb-themes/admin_default/html/mod_support_canned_category.html.twig @@ -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 %} {% set active_menu = 'support' %} {% block meta_title %}Canned category{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_support_canned_response.phtml b/src/bb-themes/admin_default/html/mod_support_canned_response.html.twig similarity index 94% rename from src/bb-themes/admin_default/html/mod_support_canned_response.phtml rename to src/bb-themes/admin_default/html/mod_support_canned_response.html.twig index df56b36cb..2e965c79d 100644 --- a/src/bb-themes/admin_default/html/mod_support_canned_response.phtml +++ b/src/bb-themes/admin_default/html/mod_support_canned_response.html.twig @@ -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 %} {% set active_menu = 'support' %} {% block meta_title %}{{ 'Canned response'|trans }}{% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_support_canned_responses.phtml b/src/bb-themes/admin_default/html/mod_support_canned_responses.html.twig similarity index 96% rename from src/bb-themes/admin_default/html/mod_support_canned_responses.phtml rename to src/bb-themes/admin_default/html/mod_support_canned_responses.html.twig index d02edb0d4..3cc7ed1f6 100644 --- a/src/bb-themes/admin_default/html/mod_support_canned_responses.phtml +++ b/src/bb-themes/admin_default/html/mod_support_canned_responses.html.twig @@ -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 breadcrumbs %}
      @@ -57,7 +57,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': responses, 'url': 'support/canned-responses' } %} + {% include "partial_pagination.html.twig" with { 'list': responses, 'url': 'support/canned-responses' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_support_public_ticket.phtml b/src/bb-themes/admin_default/html/mod_support_public_ticket.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_support_public_ticket.phtml rename to src/bb-themes/admin_default/html/mod_support_public_ticket.html.twig index dfbfec386..25d894ee3 100644 --- a/src/bb-themes/admin_default/html/mod_support_public_ticket.phtml +++ b/src/bb-themes/admin_default/html/mod_support_public_ticket.html.twig @@ -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 %}{{ticket.subject}}{% endblock %} @@ -136,7 +136,7 @@
    {{ 'Reply as'|trans }} {{ profile.name }}
    - {% include 'mod_support_canned_selector.phtml' %} + {% include 'mod_support_canned_selector.html.twig' %}
    diff --git a/src/bb-themes/admin_default/html/mod_support_public_tickets.phtml b/src/bb-themes/admin_default/html/mod_support_public_tickets.html.twig similarity index 88% rename from src/bb-themes/admin_default/html/mod_support_public_tickets.phtml rename to src/bb-themes/admin_default/html/mod_support_public_tickets.html.twig index 5ddf15658..41734bc48 100644 --- a/src/bb-themes/admin_default/html/mod_support_public_tickets.phtml +++ b/src/bb-themes/admin_default/html/mod_support_public_tickets.html.twig @@ -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 %}Public tickets{% endblock %} @@ -57,6 +57,6 @@
    -{% include "partial_batch_delete.phtml" with { 'action': 'admin/support/batch_delete_public' } %} -{% include "partial_pagination.phtml" with { 'list': tickets, 'url': 'support/public-tickets' } %} +{% include "partial_batch_delete.html.twig" with { 'action': 'admin/support/batch_delete_public' } %} +{% include "partial_pagination.html.twig" with { 'list': tickets, 'url': 'support/public-tickets' } %} {% endblock %} diff --git a/src/bb-themes/admin_default/html/mod_support_ticket.phtml b/src/bb-themes/admin_default/html/mod_support_ticket.html.twig similarity index 98% rename from src/bb-themes/admin_default/html/mod_support_ticket.phtml rename to src/bb-themes/admin_default/html/mod_support_ticket.html.twig index bf7bf60ee..4319d7a80 100644 --- a/src/bb-themes/admin_default/html/mod_support_ticket.phtml +++ b/src/bb-themes/admin_default/html/mod_support_ticket.html.twig @@ -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 %}{{ ticket.subject }} - {{ ticket.messages|length }} {{ 'message(s)'|trans }}{% endblock %} @@ -253,7 +253,7 @@
    {{ 'Reply as'|trans }} {{ profile.name }}
    - {% include 'mod_support_canned_selector.phtml' %} + {% include 'mod_support_canned_selector.html.twig' %}
    diff --git a/src/bb-themes/admin_default/html/mod_support_tickets.phtml b/src/bb-themes/admin_default/html/mod_support_tickets.html.twig similarity index 97% rename from src/bb-themes/admin_default/html/mod_support_tickets.phtml rename to src/bb-themes/admin_default/html/mod_support_tickets.html.twig index 07b11a2a7..8fef74f91 100644 --- a/src/bb-themes/admin_default/html/mod_support_tickets.phtml +++ b/src/bb-themes/admin_default/html/mod_support_tickets.html.twig @@ -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 %}{{ 'Support tickets'|trans }}{% endblock %} @@ -177,8 +177,8 @@ {% endfor %} - {% include "partial_batch_delete.phtml" with { 'action': 'admin/support/batch_delete' } %} - {% include "partial_pagination.phtml" with { 'list': tickets, 'url': 'support' } %} + {% include "partial_batch_delete.html.twig" with { 'action': 'admin/support/batch_delete' } %} + {% include "partial_pagination.html.twig" with { 'list': tickets, 'url': 'support' } %}
    diff --git a/src/bb-themes/admin_default/html/mod_system_index.phtml b/src/bb-themes/admin_default/html/mod_system_index.html.twig similarity index 93% rename from src/bb-themes/admin_default/html/mod_system_index.phtml rename to src/bb-themes/admin_default/html/mod_system_index.html.twig index 473ace975..5671620ac 100644 --- a/src/bb-themes/admin_default/html/mod_system_index.phtml +++ b/src/bb-themes/admin_default/html/mod_system_index.html.twig @@ -1,5 +1,5 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} -{% import "macro_functions.phtml" as mf %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% set params = admin.system_get_params %} diff --git a/src/bb-themes/admin_default/html/partial_batch_delete.phtml b/src/bb-themes/admin_default/html/partial_batch_delete.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_batch_delete.phtml rename to src/bb-themes/admin_default/html/partial_batch_delete.html.twig diff --git a/src/bb-themes/admin_default/html/partial_bb_meta.phtml b/src/bb-themes/admin_default/html/partial_bb_meta.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_bb_meta.phtml rename to src/bb-themes/admin_default/html/partial_bb_meta.html.twig diff --git a/src/bb-themes/admin_default/html/partial_extensions.phtml b/src/bb-themes/admin_default/html/partial_extensions.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_extensions.phtml rename to src/bb-themes/admin_default/html/partial_extensions.html.twig diff --git a/src/bb-themes/admin_default/html/partial_footer.phtml b/src/bb-themes/admin_default/html/partial_footer.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_footer.phtml rename to src/bb-themes/admin_default/html/partial_footer.html.twig diff --git a/src/bb-themes/admin_default/html/partial_menu.phtml b/src/bb-themes/admin_default/html/partial_menu.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_menu.phtml rename to src/bb-themes/admin_default/html/partial_menu.html.twig diff --git a/src/bb-themes/admin_default/html/partial_menu_top.phtml b/src/bb-themes/admin_default/html/partial_menu_top.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_menu_top.phtml rename to src/bb-themes/admin_default/html/partial_menu_top.html.twig diff --git a/src/bb-themes/admin_default/html/partial_pagination.phtml b/src/bb-themes/admin_default/html/partial_pagination.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_pagination.phtml rename to src/bb-themes/admin_default/html/partial_pagination.html.twig diff --git a/src/bb-themes/admin_default/html/partial_pricing.phtml b/src/bb-themes/admin_default/html/partial_pricing.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_pricing.phtml rename to src/bb-themes/admin_default/html/partial_pricing.html.twig diff --git a/src/bb-themes/admin_default/html/partial_styles.phtml b/src/bb-themes/admin_default/html/partial_styles.html.twig similarity index 100% rename from src/bb-themes/admin_default/html/partial_styles.phtml rename to src/bb-themes/admin_default/html/partial_styles.html.twig diff --git a/src/bb-themes/bootstrap/html/404.phtml b/src/bb-themes/bootstrap/html/404.html.twig similarity index 93% rename from src/bb-themes/bootstrap/html/404.phtml rename to src/bb-themes/bootstrap/html/404.html.twig index d8b4ad4b2..b7ebeb420 100755 --- a/src/bb-themes/bootstrap/html/404.phtml +++ b/src/bb-themes/bootstrap/html/404.html.twig @@ -1,4 +1,4 @@ -{% extends 'layout_default.phtml' %} +{% extends 'layout_default.html.twig' %} {% block meta_title %}{{ 'Error'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/Index/_index-anonymous.phtml b/src/bb-themes/bootstrap/html/Index/_index-anonymous.html.twig similarity index 98% rename from src/bb-themes/bootstrap/html/Index/_index-anonymous.phtml rename to src/bb-themes/bootstrap/html/Index/_index-anonymous.html.twig index 44e3b3341..8044702eb 100644 --- a/src/bb-themes/bootstrap/html/Index/_index-anonymous.phtml +++ b/src/bb-themes/bootstrap/html/Index/_index-anonymous.html.twig @@ -1,5 +1,5 @@ {% if settings.showcase_enabled %} - {% include 'Index/_showcase.phtml' %} + {% include 'Index/_showcase.html.twig' %} {% endif %}
    diff --git a/src/bb-themes/bootstrap/html/Index/_index-client.phtml b/src/bb-themes/bootstrap/html/Index/_index-client.html.twig similarity index 99% rename from src/bb-themes/bootstrap/html/Index/_index-client.phtml rename to src/bb-themes/bootstrap/html/Index/_index-client.html.twig index dc507a550..044441356 100644 --- a/src/bb-themes/bootstrap/html/Index/_index-client.phtml +++ b/src/bb-themes/bootstrap/html/Index/_index-client.html.twig @@ -1,9 +1,9 @@ {% if settings.showcase_enabled %} - {% include 'Index/_showcase.phtml' %} + {% include 'Index/_showcase.html.twig' %} {% endif %} {% if settings.stats_enabled %} - {% include 'Index/_statistics.phtml' %} + {% include 'Index/_statistics.html.twig' %} {% endif %}
    diff --git a/src/bb-themes/bootstrap/html/Index/_showcase.phtml b/src/bb-themes/bootstrap/html/Index/_showcase.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/Index/_showcase.phtml rename to src/bb-themes/bootstrap/html/Index/_showcase.html.twig diff --git a/src/bb-themes/bootstrap/html/Index/_statistics.phtml b/src/bb-themes/bootstrap/html/Index/_statistics.html.twig similarity index 96% rename from src/bb-themes/bootstrap/html/Index/_statistics.phtml rename to src/bb-themes/bootstrap/html/Index/_statistics.html.twig index 70087225a..7cf05fc42 100644 --- a/src/bb-themes/bootstrap/html/Index/_statistics.phtml +++ b/src/bb-themes/bootstrap/html/Index/_statistics.html.twig @@ -27,7 +27,7 @@
    - {% include 'Modal/_add-funds.phtml' %} + {% include 'Modal/_add-funds.html.twig' %} {% endif %}

    diff --git a/src/bb-themes/bootstrap/html/Modal/_add-funds.phtml b/src/bb-themes/bootstrap/html/Modal/_add-funds.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/Modal/_add-funds.phtml rename to src/bb-themes/bootstrap/html/Modal/_add-funds.html.twig diff --git a/src/bb-themes/bootstrap/html/Modal/_add-ticket.phtml b/src/bb-themes/bootstrap/html/Modal/_add-ticket.html.twig similarity index 97% rename from src/bb-themes/bootstrap/html/Modal/_add-ticket.phtml rename to src/bb-themes/bootstrap/html/Modal/_add-ticket.html.twig index bbee91e79..677765663 100644 --- a/src/bb-themes/bootstrap/html/Modal/_add-ticket.phtml +++ b/src/bb-themes/bootstrap/html/Modal/_add-ticket.html.twig @@ -1,4 +1,4 @@ -{% import 'macro_functions.phtml' as macro %} +{% import 'macro_functions.html.twig' as macro %} - {% include '_pagination.phtml' with { 'list': paid_invoices } %} + {% include '_pagination.html.twig' with { 'list': paid_invoices } %}
    diff --git a/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml b/src/bb-themes/bootstrap/html/mod_invoice_invoice.html.twig similarity index 98% rename from src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml rename to src/bb-themes/bootstrap/html/mod_invoice_invoice.html.twig index e9bf35e39..324186806 100755 --- a/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml +++ b/src/bb-themes/bootstrap/html/mod_invoice_invoice.html.twig @@ -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 %}{{ 'Proforma invoice'|trans }}{% endblock %} @@ -13,7 +13,7 @@ {% if invoice.status == 'unpaid' %}

    {{ 'Proforma Invoice'|trans }}

    {{ 'Please choose payment type and pay for your chosen products.'|trans }}

    - {% include '_order-steps.phtml' with { 'selected': 4 } %} + {% include '_order-steps.html.twig' with { 'selected': 4 } %} {% else %}

    {{ 'Invoice'|trans }} {{ nr }}

    {{ 'Invoice is paid'|trans }} diff --git a/src/bb-themes/bootstrap/html/mod_invoice_print.phtml b/src/bb-themes/bootstrap/html/mod_invoice_print.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/mod_invoice_print.phtml rename to src/bb-themes/bootstrap/html/mod_invoice_print.html.twig diff --git a/src/bb-themes/bootstrap/html/mod_invoice_thankyou.phtml b/src/bb-themes/bootstrap/html/mod_invoice_thankyou.html.twig similarity index 93% rename from src/bb-themes/bootstrap/html/mod_invoice_thankyou.phtml rename to src/bb-themes/bootstrap/html/mod_invoice_thankyou.html.twig index a91537833..9cebddeca 100755 --- a/src/bb-themes/bootstrap/html/mod_invoice_thankyou.phtml +++ b/src/bb-themes/bootstrap/html/mod_invoice_thankyou.html.twig @@ -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 %}{{ 'Thank you'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_kb_article.phtml b/src/bb-themes/bootstrap/html/mod_kb_article.html.twig similarity index 95% rename from src/bb-themes/bootstrap/html/mod_kb_article.phtml rename to src/bb-themes/bootstrap/html/mod_kb_article.html.twig index 51c054816..5c8ff39de 100755 --- a/src/bb-themes/bootstrap/html/mod_kb_article.phtml +++ b/src/bb-themes/bootstrap/html/mod_kb_article.html.twig @@ -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 %}{{ article.title }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_kb_category.phtml b/src/bb-themes/bootstrap/html/mod_kb_category.html.twig similarity index 94% rename from src/bb-themes/bootstrap/html/mod_kb_category.phtml rename to src/bb-themes/bootstrap/html/mod_kb_category.html.twig index ce8ad8a41..4f22d7da2 100755 --- a/src/bb-themes/bootstrap/html/mod_kb_category.phtml +++ b/src/bb-themes/bootstrap/html/mod_kb_category.html.twig @@ -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 %}{{ category.title }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_kb_index.phtml b/src/bb-themes/bootstrap/html/mod_kb_index.html.twig similarity index 95% rename from src/bb-themes/bootstrap/html/mod_kb_index.phtml rename to src/bb-themes/bootstrap/html/mod_kb_index.html.twig index 744fb4e7b..89f083bf3 100755 --- a/src/bb-themes/bootstrap/html/mod_kb_index.phtml +++ b/src/bb-themes/bootstrap/html/mod_kb_index.html.twig @@ -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 %}{{ 'Knowledge base'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_news_index.phtml b/src/bb-themes/bootstrap/html/mod_news_index.html.twig similarity index 90% rename from src/bb-themes/bootstrap/html/mod_news_index.phtml rename to src/bb-themes/bootstrap/html/mod_news_index.html.twig index bff20f8c9..520ddf5fb 100755 --- a/src/bb-themes/bootstrap/html/mod_news_index.phtml +++ b/src/bb-themes/bootstrap/html/mod_news_index.html.twig @@ -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 %}{{ 'Blog'|trans }}{% endblock %} @@ -39,5 +39,5 @@

    The list is empty

    {% endfor %} - {% include '_pagination.phtml' with { 'list': posts } %} + {% include '_pagination.html.twig' with { 'list': posts } %} {% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_news_post.phtml b/src/bb-themes/bootstrap/html/mod_news_post.html.twig similarity index 94% rename from src/bb-themes/bootstrap/html/mod_news_post.phtml rename to src/bb-themes/bootstrap/html/mod_news_post.html.twig index 394db965c..f7789753e 100755 --- a/src/bb-themes/bootstrap/html/mod_news_post.phtml +++ b/src/bb-themes/bootstrap/html/mod_news_post.html.twig @@ -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 %}{{ post.title }}{% endblock %} {% block meta_description %}{{ post.description }}{% endblock %} @@ -59,7 +59,7 @@ {{ 'Back to list'|trans }} - {% if guest.extension_is_on({ 'mod': 'comment' }) %}{% include 'mod_comment_block.phtml' %}{% endif %} + {% if guest.extension_is_on({ 'mod': 'comment' }) %}{% include 'mod_comment_block.html.twig' %}{% endif %} {% endblock %} {% block sidebar2 %} diff --git a/src/bb-themes/bootstrap/html/mod_order_index.phtml b/src/bb-themes/bootstrap/html/mod_order_index.html.twig similarity index 93% rename from src/bb-themes/bootstrap/html/mod_order_index.phtml rename to src/bb-themes/bootstrap/html/mod_order_index.html.twig index 179c2b54a..77fcf3185 100755 --- a/src/bb-themes/bootstrap/html/mod_order_index.phtml +++ b/src/bb-themes/bootstrap/html/mod_order_index.html.twig @@ -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 %}{{ 'Order'|trans }}{% endblock %} @@ -11,7 +11,7 @@

    {{ 'Select product'|trans }}

    {{ 'Choose products we offer for selling'|trans }}

    - {% include '_order-steps.phtml' with { 'selected': 1 } %} + {% include '_order-steps.html.twig' with { 'selected': 1 } %}
    {% endblock %} @@ -26,7 +26,7 @@
    - {% set listing_template = 'mod_service' ~ category.type ~ '_listing.phtml' %} + {% set listing_template = 'mod_service' ~ category.type ~ '_listing.html.twig' %} {% if guest.system_template_exists({ 'file': listing_template }) %}
    {% include listing_template %}
    @@ -79,6 +79,6 @@ {% block sidebar %}
    - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %}
    {% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_order_list.phtml b/src/bb-themes/bootstrap/html/mod_order_list.html.twig similarity index 89% rename from src/bb-themes/bootstrap/html/mod_order_list.phtml rename to src/bb-themes/bootstrap/html/mod_order_list.html.twig index 2784f1d5a..3a986b7e6 100755 --- a/src/bb-themes/bootstrap/html/mod_order_list.phtml +++ b/src/bb-themes/bootstrap/html/mod_order_list.html.twig @@ -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 %}{{ 'My Products & Services'|trans }}{% endblock %} @@ -24,7 +24,7 @@

    {{ 'The list is empty'|trans }}

    {% endfor %}
    - {% include '_pagination.phtml' with { 'list': orders } %} + {% include '_pagination.html.twig' with { 'list': orders } %}
    {{ 'New order'|trans }} diff --git a/src/bb-themes/bootstrap/html/mod_order_manage.phtml b/src/bb-themes/bootstrap/html/mod_order_manage.html.twig similarity index 97% rename from src/bb-themes/bootstrap/html/mod_order_manage.phtml rename to src/bb-themes/bootstrap/html/mod_order_manage.html.twig index 8194e01e2..c63ac96f3 100755 --- a/src/bb-themes/bootstrap/html/mod_order_manage.phtml +++ b/src/bb-themes/bootstrap/html/mod_order_manage.html.twig @@ -1,10 +1,10 @@ -{% 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 %}{{ order.title }}{% endblock %} -{% set service_partial = 'mod_service' ~ order.service_type ~ '_manage.phtml' %} +{% set service_partial = 'mod_service' ~ order.service_type ~ '_manage.html.twig' %} {% set upgradables = client.order_upgradables({ 'id': order.id }) %} {% block content_before %} @@ -73,9 +73,9 @@ {% endif %}
    - {% include 'Modal/_add-ticket.phtml' with { 'id': 'ticket-order' } %} + {% include 'Modal/_add-ticket.html.twig' with { 'id': 'ticket-order' } %} - {% include 'Modal/_add-ticket.phtml' with { + {% include 'Modal/_add-ticket.html.twig' with { 'id': 'tiсket-order-cancelation', 'cancelation': true, 'subject': order.title, diff --git a/src/bb-themes/bootstrap/html/mod_order_product.phtml b/src/bb-themes/bootstrap/html/mod_order_product.html.twig similarity index 76% rename from src/bb-themes/bootstrap/html/mod_order_product.phtml rename to src/bb-themes/bootstrap/html/mod_order_product.html.twig index c5bd6ae96..cc6c4b54d 100755 --- a/src/bb-themes/bootstrap/html/mod_order_product.phtml +++ b/src/bb-themes/bootstrap/html/mod_order_product.html.twig @@ -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 %}{{ product.title }}{% endblock %} @@ -11,7 +11,7 @@

    {{ 'Configure'|trans }} {{ product.title }}

    - {% include '_order-steps.phtml' with { 'selected': 2, 'product': product } %} + {% include '_order-steps.html.twig' with { 'selected': 2, 'product': product } %} {% endblock %} {% block content %} @@ -22,18 +22,18 @@
    {{ product.description|bbmd }} {% if product.form_id and guest.extension_is_on({ 'mod': 'formbuilder' }) %} - {% include 'mod_formbuilder_build.phtml' with product %} + {% include 'mod_formbuilder_build.html.twig' with product %} {% endif %}
    - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %}
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %}
    diff --git a/src/bb-themes/bootstrap/html/mod_page_about-us.phtml b/src/bb-themes/bootstrap/html/mod_page_about-us.html.twig similarity index 83% rename from src/bb-themes/bootstrap/html/mod_page_about-us.phtml rename to src/bb-themes/bootstrap/html/mod_page_about-us.html.twig index e047dede4..fe61b42ae 100755 --- a/src/bb-themes/bootstrap/html/mod_page_about-us.phtml +++ b/src/bb-themes/bootstrap/html/mod_page_about-us.html.twig @@ -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 %}{{ 'About us'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_page_login.phtml b/src/bb-themes/bootstrap/html/mod_page_login.html.twig similarity index 92% rename from src/bb-themes/bootstrap/html/mod_page_login.phtml rename to src/bb-themes/bootstrap/html/mod_page_login.html.twig index 05f75cdc3..f4194c451 100755 --- a/src/bb-themes/bootstrap/html/mod_page_login.phtml +++ b/src/bb-themes/bootstrap/html/mod_page_login.html.twig @@ -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 %}{{ 'Login'|trans }} / {{ 'Register'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_page_privacy-policy.phtml b/src/bb-themes/bootstrap/html/mod_page_privacy-policy.html.twig similarity index 85% rename from src/bb-themes/bootstrap/html/mod_page_privacy-policy.phtml rename to src/bb-themes/bootstrap/html/mod_page_privacy-policy.html.twig index 1dd9ec73f..02a0c3e55 100755 --- a/src/bb-themes/bootstrap/html/mod_page_privacy-policy.phtml +++ b/src/bb-themes/bootstrap/html/mod_page_privacy-policy.html.twig @@ -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 %}{{ 'Privacy Policy'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_page_reset-password.phtml b/src/bb-themes/bootstrap/html/mod_page_reset-password.html.twig similarity index 95% rename from src/bb-themes/bootstrap/html/mod_page_reset-password.phtml rename to src/bb-themes/bootstrap/html/mod_page_reset-password.html.twig index b55fc1acb..ad522b582 100755 --- a/src/bb-themes/bootstrap/html/mod_page_reset-password.phtml +++ b/src/bb-themes/bootstrap/html/mod_page_reset-password.html.twig @@ -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 %}{{ 'Reset password'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_page_tos.phtml b/src/bb-themes/bootstrap/html/mod_page_tos.html.twig similarity index 85% rename from src/bb-themes/bootstrap/html/mod_page_tos.phtml rename to src/bb-themes/bootstrap/html/mod_page_tos.html.twig index cfc5888e5..0bc80107c 100755 --- a/src/bb-themes/bootstrap/html/mod_page_tos.phtml +++ b/src/bb-themes/bootstrap/html/mod_page_tos.html.twig @@ -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 %}{{ 'Terms and Conditions'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_servicedomain_manage.phtml b/src/bb-themes/bootstrap/html/mod_servicedomain_manage.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/mod_servicedomain_manage.phtml rename to src/bb-themes/bootstrap/html/mod_servicedomain_manage.html.twig diff --git a/src/bb-themes/bootstrap/html/mod_servicedomain_order.phtml b/src/bb-themes/bootstrap/html/mod_servicedomain_order.html.twig similarity index 94% rename from src/bb-themes/bootstrap/html/mod_servicedomain_order.phtml rename to src/bb-themes/bootstrap/html/mod_servicedomain_order.html.twig index 969e85264..184ccbe59 100755 --- a/src/bb-themes/bootstrap/html/mod_servicedomain_order.phtml +++ b/src/bb-themes/bootstrap/html/mod_servicedomain_order.html.twig @@ -1,12 +1,12 @@ -{% 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 %}{{ 'Register new domain'|trans }}{% endblock %} {% block content_before %}

    {{ 'Configure'|trans }}

    - {% include '_order-steps.phtml' with { 'selected': 2, 'product': product } %} + {% include '_order-steps.html.twig' with { 'selected': 2, 'product': product } %} {% endblock %} {% block content %} @@ -75,12 +75,12 @@ - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %}
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %} diff --git a/src/bb-themes/bootstrap/html/mod_servicedownloadable_manage.phtml b/src/bb-themes/bootstrap/html/mod_servicedownloadable_manage.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/mod_servicedownloadable_manage.phtml rename to src/bb-themes/bootstrap/html/mod_servicedownloadable_manage.html.twig diff --git a/src/bb-themes/bootstrap/html/mod_servicehosting_manage.phtml b/src/bb-themes/bootstrap/html/mod_servicehosting_manage.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/mod_servicehosting_manage.phtml rename to src/bb-themes/bootstrap/html/mod_servicehosting_manage.html.twig diff --git a/src/bb-themes/bootstrap/html/mod_servicehosting_order.phtml b/src/bb-themes/bootstrap/html/mod_servicehosting_order.html.twig similarity index 94% rename from src/bb-themes/bootstrap/html/mod_servicehosting_order.phtml rename to src/bb-themes/bootstrap/html/mod_servicehosting_order.html.twig index fbfb3c608..1979165df 100755 --- a/src/bb-themes/bootstrap/html/mod_servicehosting_order.phtml +++ b/src/bb-themes/bootstrap/html/mod_servicehosting_order.html.twig @@ -1,13 +1,13 @@ -{% 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 %}{{ product.title }}{% endblock %} {% block content_before %}

    {{ product.title }}

    {# { product.description|bbmd } #} - {% include '_order-steps.phtml' with { 'selected': 2, 'product': product } %} + {% include '_order-steps.html.twig' with { 'selected': 2, 'product': product } %} {% endblock %} {% block content %} @@ -84,12 +84,12 @@
    - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %}
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %} diff --git a/src/bb-themes/bootstrap/html/mod_servicelicense_manage.phtml b/src/bb-themes/bootstrap/html/mod_servicelicense_manage.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/mod_servicelicense_manage.phtml rename to src/bb-themes/bootstrap/html/mod_servicelicense_manage.html.twig diff --git a/src/bb-themes/bootstrap/html/mod_support_contact_us.phtml b/src/bb-themes/bootstrap/html/mod_support_contact_us.html.twig similarity index 96% rename from src/bb-themes/bootstrap/html/mod_support_contact_us.phtml rename to src/bb-themes/bootstrap/html/mod_support_contact_us.html.twig index 927e0e933..65cceae42 100755 --- a/src/bb-themes/bootstrap/html/mod_support_contact_us.phtml +++ b/src/bb-themes/bootstrap/html/mod_support_contact_us.html.twig @@ -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 %}{{ 'Contact us'|trans }}{% endblock %} diff --git a/src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.phtml b/src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.html.twig similarity index 85% rename from src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.phtml rename to src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.html.twig index e6a30a3d5..5e382e8c9 100755 --- a/src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.phtml +++ b/src/bb-themes/bootstrap/html/mod_support_contact_us_conversation.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} @@ -17,11 +17,11 @@ {% endblock %} {% block content %} - {% include 'Ticket/_header.phtml' with { 'hash': ticket.hash } %} + {% include 'Ticket/_header.html.twig' with { 'hash': ticket.hash } %}
    {% for i, message in ticket.messages %} - {% include 'Ticket/_message.phtml' %} + {% include 'Ticket/_message.html.twig' %} {% endfor %}

    diff --git a/src/bb-themes/bootstrap/html/mod_support_ticket.phtml b/src/bb-themes/bootstrap/html/mod_support_ticket.html.twig similarity index 87% rename from src/bb-themes/bootstrap/html/mod_support_ticket.phtml rename to src/bb-themes/bootstrap/html/mod_support_ticket.html.twig index 86f32ad99..53ec15be6 100755 --- a/src/bb-themes/bootstrap/html/mod_support_ticket.phtml +++ b/src/bb-themes/bootstrap/html/mod_support_ticket.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} @@ -18,11 +18,11 @@ {% endblock %} {% block content %} - {% include 'Ticket/_header.phtml' %} + {% include 'Ticket/_header.html.twig' %}
    {% for i, message in ticket.messages %} - {% include 'Ticket/_message.phtml' %} + {% include 'Ticket/_message.html.twig' %} {% endfor %}

    diff --git a/src/bb-themes/bootstrap/html/mod_support_tickets.phtml b/src/bb-themes/bootstrap/html/mod_support_tickets.html.twig similarity index 91% rename from src/bb-themes/bootstrap/html/mod_support_tickets.phtml rename to src/bb-themes/bootstrap/html/mod_support_tickets.html.twig index 5358db82d..0a5357d7c 100755 --- a/src/bb-themes/bootstrap/html/mod_support_tickets.phtml +++ b/src/bb-themes/bootstrap/html/mod_support_tickets.html.twig @@ -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 %}{{ 'Support tickets'|trans }}{% endblock %} @@ -27,7 +27,7 @@
    - {% include '_pagination.phtml' with { 'list': tickets } %} + {% include '_pagination.html.twig' with { 'list': tickets } %} {% if guest.extension_is_on({ 'mod': 'kb' }) %} @@ -56,5 +56,5 @@
    {% endif %} - {% include 'Modal/_add-ticket.phtml' with { 'id': 'ticket-order' } %} + {% include 'Modal/_add-ticket.html.twig' with { 'id': 'ticket-order' } %} {% endblock %} diff --git a/src/bb-themes/bootstrap/html/partial_addons.phtml b/src/bb-themes/bootstrap/html/partial_addons.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/partial_addons.phtml rename to src/bb-themes/bootstrap/html/partial_addons.html.twig diff --git a/src/bb-themes/bootstrap/html/partial_currency.phtml b/src/bb-themes/bootstrap/html/partial_currency.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/partial_currency.phtml rename to src/bb-themes/bootstrap/html/partial_currency.html.twig diff --git a/src/bb-themes/bootstrap/html/partial_message.phtml b/src/bb-themes/bootstrap/html/partial_message.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/partial_message.phtml rename to src/bb-themes/bootstrap/html/partial_message.html.twig diff --git a/src/bb-themes/bootstrap/html/partial_pending_messages.phtml b/src/bb-themes/bootstrap/html/partial_pending_messages.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/partial_pending_messages.phtml rename to src/bb-themes/bootstrap/html/partial_pending_messages.html.twig diff --git a/src/bb-themes/bootstrap/html/partial_pricing.phtml b/src/bb-themes/bootstrap/html/partial_pricing.html.twig similarity index 100% rename from src/bb-themes/bootstrap/html/partial_pricing.phtml rename to src/bb-themes/bootstrap/html/partial_pricing.html.twig diff --git a/src/bb-themes/boxbilling/html/404.phtml b/src/bb-themes/boxbilling/html/404.html.twig similarity index 88% rename from src/bb-themes/boxbilling/html/404.phtml rename to src/bb-themes/boxbilling/html/404.html.twig index d319af58a..181a08c63 100644 --- a/src/bb-themes/boxbilling/html/404.phtml +++ b/src/bb-themes/boxbilling/html/404.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Error'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/layout_blank.phtml b/src/bb-themes/boxbilling/html/layout_blank.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/layout_blank.phtml rename to src/bb-themes/boxbilling/html/layout_blank.html.twig diff --git a/src/bb-themes/boxbilling/html/layout_default.phtml b/src/bb-themes/boxbilling/html/layout_default.html.twig similarity index 97% rename from src/bb-themes/boxbilling/html/layout_default.phtml rename to src/bb-themes/boxbilling/html/layout_default.html.twig index 909018f97..68ad1cd71 100644 --- a/src/bb-themes/boxbilling/html/layout_default.phtml +++ b/src/bb-themes/boxbilling/html/layout_default.html.twig @@ -27,7 +27,7 @@ {% if guest.extension_is_on({ "mod": "cookieconsent" }) %} - {% include 'mod_cookieconsent_index.phtml' ignore missing%} + {% include 'mod_cookieconsent_index.html.twig' ignore missing%} {% endif %}
    @@ -76,7 +76,7 @@ {% block content_before %}{% endblock %}
    - {% include "partial_message.phtml" %} + {% include "partial_message.html.twig" %} {% block content %}{% endblock %} {% block content_after %}{% endblock %}
    @@ -109,7 +109,7 @@ {% endif %}
    - +
    {% set languages = guest.extension_languages %} @@ -223,6 +223,6 @@ {% block js %}{% endblock %} -{% include 'partial_pending_messages.phtml' ignore missing %} +{% include 'partial_pending_messages.html.twig' ignore missing %} diff --git a/src/bb-themes/boxbilling/html/macro_functions.phtml b/src/bb-themes/boxbilling/html/macro_functions.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/macro_functions.phtml rename to src/bb-themes/boxbilling/html/macro_functions.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_cart_index.phtml b/src/bb-themes/boxbilling/html/mod_cart_index.html.twig similarity index 98% rename from src/bb-themes/boxbilling/html/mod_cart_index.phtml rename to src/bb-themes/boxbilling/html/mod_cart_index.html.twig index 95b744d8f..fd0af0385 100644 --- a/src/bb-themes/boxbilling/html/mod_cart_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_cart_index.html.twig @@ -1,11 +1,11 @@ -{% 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 %}{{ 'Order confirm'|trans }}{% endblock %} {% block content_before %} - {% include "partial_steps.phtml" with { 'selected': 3 } %} + {% include "partial_steps.html.twig" with { 'selected': 3 } %} {% endblock %} {% set cart = guest.cart_get %} @@ -159,7 +159,7 @@ {{ 'Register'|trans }}
    {% if guest.extension_is_on({"mod":"oauth"}) %} - {% include "mod_oauth_buttons.phtml" with {"redirect_to":"cart"}%} + {% include "mod_oauth_buttons.html.twig" with {"redirect_to":"cart"}%} {% endif %}
    {% endif %} @@ -325,7 +325,7 @@ {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-themes/boxbilling/html/mod_client_balance.phtml b/src/bb-themes/boxbilling/html/mod_client_balance.html.twig similarity index 93% rename from src/bb-themes/boxbilling/html/mod_client_balance.phtml rename to src/bb-themes/boxbilling/html/mod_client_balance.html.twig index f05257b0e..56bb92722 100644 --- a/src/bb-themes/boxbilling/html/mod_client_balance.phtml +++ b/src/bb-themes/boxbilling/html/mod_client_balance.html.twig @@ -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 %}{{ 'Payments history'|trans }}{% endblock %} {% set profile = client.client_get %} @@ -46,7 +46,7 @@ -{% include "partial_pagination.phtml" with { 'list': transactions } %} +{% include "partial_pagination.html.twig" with { 'list': transactions } %}
    - {% include "partial_pagination.phtml" with {'list': topics} %} + {% include "partial_pagination.html.twig" with {'list': topics} %}

    diff --git a/src/bb-themes/boxbilling/html/mod_forum_index.phtml b/src/bb-themes/boxbilling/html/mod_forum_index.html.twig similarity index 98% rename from src/bb-themes/boxbilling/html/mod_forum_index.phtml rename to src/bb-themes/boxbilling/html/mod_forum_index.html.twig index 9f1881201..c3d3cd733 100644 --- a/src/bb-themes/boxbilling/html/mod_forum_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_forum_index.html.twig @@ -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 %}{{ 'Forum'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_forum_topic.phtml b/src/bb-themes/boxbilling/html/mod_forum_topic.html.twig similarity index 96% rename from src/bb-themes/boxbilling/html/mod_forum_topic.phtml rename to src/bb-themes/boxbilling/html/mod_forum_topic.html.twig index 9c585a3ec..fa348d67e 100644 --- a/src/bb-themes/boxbilling/html/mod_forum_topic.phtml +++ b/src/bb-themes/boxbilling/html/mod_forum_topic.html.twig @@ -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 %}{{ topic.title }}{% endblock %} {% block content_after %} @@ -135,5 +135,5 @@ - {% include "partial_pagination.phtml" with { 'list': messages } %} + {% include "partial_pagination.html.twig" with { 'list': messages } %} {% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_index_dashboard.phtml b/src/bb-themes/boxbilling/html/mod_index_dashboard.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_index_dashboard.phtml rename to src/bb-themes/boxbilling/html/mod_index_dashboard.html.twig index 5e13b22fe..ba899533e 100644 --- a/src/bb-themes/boxbilling/html/mod_index_dashboard.phtml +++ b/src/bb-themes/boxbilling/html/mod_index_dashboard.html.twig @@ -1,8 +1,8 @@ -{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} {% block meta_title %}{{ 'Client Area'|trans }}{% endblock %} -{% import "macro_functions.phtml" as mf %} +{% import "macro_functions.html.twig" as mf %} {% block content %}

    diff --git a/src/bb-themes/boxbilling/html/mod_invoice_banklink.phtml b/src/bb-themes/boxbilling/html/mod_invoice_banklink.html.twig similarity index 88% rename from src/bb-themes/boxbilling/html/mod_invoice_banklink.phtml rename to src/bb-themes/boxbilling/html/mod_invoice_banklink.html.twig index df97883ac..7fe942643 100644 --- a/src/bb-themes/boxbilling/html/mod_invoice_banklink.phtml +++ b/src/bb-themes/boxbilling/html/mod_invoice_banklink.html.twig @@ -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 %}{{ 'Processing payment ...'|trans }}{% endblock %} {% block content %} diff --git a/src/bb-themes/boxbilling/html/mod_invoice_index.phtml b/src/bb-themes/boxbilling/html/mod_invoice_index.html.twig similarity index 94% rename from src/bb-themes/boxbilling/html/mod_invoice_index.phtml rename to src/bb-themes/boxbilling/html/mod_invoice_index.html.twig index ef9838051..259a4afaa 100644 --- a/src/bb-themes/boxbilling/html/mod_invoice_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_invoice_index.html.twig @@ -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 %}{{ 'Invoices'|trans }}{% endblock %} {% block content %} @@ -91,7 +91,7 @@ {% endfor %} - {% include "partial_pagination.phtml" with { 'list': paid_invoices } %} + {% include "partial_pagination.html.twig" with { 'list': paid_invoices } %}
    diff --git a/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml b/src/bb-themes/boxbilling/html/mod_invoice_invoice.html.twig similarity index 98% rename from src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml rename to src/bb-themes/boxbilling/html/mod_invoice_invoice.html.twig index 67ae82479..9a7a033bd 100644 --- a/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml +++ b/src/bb-themes/boxbilling/html/mod_invoice_invoice.html.twig @@ -1,12 +1,12 @@ -{% 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 %}{{ 'Proforma invoice'|trans }}{% endblock %} {% block content_before %} {% if invoice.status == 'unpaid' %} - {% include "partial_steps.phtml" with {'selected': 4} %} + {% include "partial_steps.html.twig" with {'selected': 4} %} {% endif%} {% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_invoice_thankyou.phtml b/src/bb-themes/boxbilling/html/mod_invoice_thankyou.html.twig similarity index 91% rename from src/bb-themes/boxbilling/html/mod_invoice_thankyou.phtml rename to src/bb-themes/boxbilling/html/mod_invoice_thankyou.html.twig index 351ada1d3..effea4419 100644 --- a/src/bb-themes/boxbilling/html/mod_invoice_thankyou.phtml +++ b/src/bb-themes/boxbilling/html/mod_invoice_thankyou.html.twig @@ -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 %}{{ 'Thank you'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_kb_article.phtml b/src/bb-themes/boxbilling/html/mod_kb_article.html.twig similarity index 96% rename from src/bb-themes/boxbilling/html/mod_kb_article.phtml rename to src/bb-themes/boxbilling/html/mod_kb_article.html.twig index dd7355f1b..e6fab52e1 100644 --- a/src/bb-themes/boxbilling/html/mod_kb_article.phtml +++ b/src/bb-themes/boxbilling/html/mod_kb_article.html.twig @@ -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 %}{{article.title}}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_kb_category.phtml b/src/bb-themes/boxbilling/html/mod_kb_category.html.twig similarity index 91% rename from src/bb-themes/boxbilling/html/mod_kb_category.phtml rename to src/bb-themes/boxbilling/html/mod_kb_category.html.twig index c880ba8d7..948813a95 100644 --- a/src/bb-themes/boxbilling/html/mod_kb_category.phtml +++ b/src/bb-themes/boxbilling/html/mod_kb_category.html.twig @@ -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 %}{{ category.title }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_kb_index.phtml b/src/bb-themes/boxbilling/html/mod_kb_index.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_kb_index.phtml rename to src/bb-themes/boxbilling/html/mod_kb_index.html.twig index 51f2211d6..85ed25b7a 100644 --- a/src/bb-themes/boxbilling/html/mod_kb_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_kb_index.html.twig @@ -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 %}{{ 'Knowledge base'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_news_index.phtml b/src/bb-themes/boxbilling/html/mod_news_index.html.twig similarity index 87% rename from src/bb-themes/boxbilling/html/mod_news_index.phtml rename to src/bb-themes/boxbilling/html/mod_news_index.html.twig index 462a76aaa..99abfae75 100644 --- a/src/bb-themes/boxbilling/html/mod_news_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_news_index.html.twig @@ -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 %}{{ 'Blog'|trans }}{% endblock %} @@ -29,5 +29,5 @@
    -{% include "partial_pagination.phtml" with { 'list': posts } %} +{% include "partial_pagination.html.twig" with { 'list': posts } %} {% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_news_post.phtml b/src/bb-themes/boxbilling/html/mod_news_post.html.twig similarity index 94% rename from src/bb-themes/boxbilling/html/mod_news_post.phtml rename to src/bb-themes/boxbilling/html/mod_news_post.html.twig index 4adda1cbd..1081d9b88 100644 --- a/src/bb-themes/boxbilling/html/mod_news_post.phtml +++ b/src/bb-themes/boxbilling/html/mod_news_post.html.twig @@ -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 %}{{post.title}}{% endblock %} {% block meta_description %}{{post.description}}{% endblock %} @@ -35,7 +35,7 @@ - {% if guest.extension_is_on({ "mod": "comment" }) %}{% include "mod_comment_block.phtml" %}{% endif %} + {% if guest.extension_is_on({ "mod": "comment" }) %}{% include "mod_comment_block.html.twig" %}{% endif %}

    {{ 'Back to list'|trans }}

    {% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_order_index.phtml b/src/bb-themes/boxbilling/html/mod_order_index.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_order_index.phtml rename to src/bb-themes/boxbilling/html/mod_order_index.html.twig index 1701e84c8..f173e6abc 100644 --- a/src/bb-themes/boxbilling/html/mod_order_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_order_index.html.twig @@ -1,13 +1,13 @@ -{% 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 %}{{ 'Order'|trans }}{% endblock %} {% set periods = guest.system_periods %} {% block content_before %} - {% include "partial_steps.phtml" with { 'selected': 1 } %} + {% include "partial_steps.html.twig" with { 'selected': 1 } %} {% endblock %} {% block content %} @@ -39,7 +39,7 @@
    -{% include "partial_pagination.phtml" with { 'list': orders } %} +{% include "partial_pagination.html.twig" with { 'list': orders } %} {% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_order_manage.phtml b/src/bb-themes/boxbilling/html/mod_order_manage.html.twig similarity index 98% rename from src/bb-themes/boxbilling/html/mod_order_manage.phtml rename to src/bb-themes/boxbilling/html/mod_order_manage.html.twig index bf7a810f9..286d75db5 100644 --- a/src/bb-themes/boxbilling/html/mod_order_manage.phtml +++ b/src/bb-themes/boxbilling/html/mod_order_manage.html.twig @@ -1,9 +1,9 @@ -{% 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 %}{{ order.title }}{% endblock %} -{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.phtml" %} +{% set service_partial = "mod_service" ~ order.service_type ~ "_manage.html.twig" %} {% set upgradables = client.order_upgradables({'id':order.id}) %} {% block content %} diff --git a/src/bb-themes/boxbilling/html/mod_order_product.phtml b/src/bb-themes/boxbilling/html/mod_order_product.html.twig similarity index 81% rename from src/bb-themes/boxbilling/html/mod_order_product.phtml rename to src/bb-themes/boxbilling/html/mod_order_product.html.twig index 96f94f54c..ebcdb1578 100644 --- a/src/bb-themes/boxbilling/html/mod_order_product.phtml +++ b/src/bb-themes/boxbilling/html/mod_order_product.html.twig @@ -1,10 +1,10 @@ -{% 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 %}{{ product.title }}{% endblock %} {% block content_before %} - {% include "partial_steps.phtml" with { 'selected': 2 } %} + {% include "partial_steps.html.twig" with { 'selected': 2 } %} {% endblock %} {% block content %} @@ -26,23 +26,23 @@ {{ product.description|bbmd }} {% if product.form_id and guest.extension_is_on({ "mod": 'formbuilder' }) %} - {% include 'mod_formbuilder_build.phtml' with product %} + {% include 'mod_formbuilder_build.html.twig' with product %} {% endif %}
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %} {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-themes/boxbilling/html/mod_page_about-us.phtml b/src/bb-themes/boxbilling/html/mod_page_about-us.html.twig similarity index 84% rename from src/bb-themes/boxbilling/html/mod_page_about-us.phtml rename to src/bb-themes/boxbilling/html/mod_page_about-us.html.twig index 0e505ca18..275f122db 100644 --- a/src/bb-themes/boxbilling/html/mod_page_about-us.phtml +++ b/src/bb-themes/boxbilling/html/mod_page_about-us.html.twig @@ -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 %}{{ 'About us'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_page_login.phtml b/src/bb-themes/boxbilling/html/mod_page_login.html.twig similarity index 98% rename from src/bb-themes/boxbilling/html/mod_page_login.phtml rename to src/bb-themes/boxbilling/html/mod_page_login.html.twig index 1c0804cfd..9636cffce 100644 --- a/src/bb-themes/boxbilling/html/mod_page_login.phtml +++ b/src/bb-themes/boxbilling/html/mod_page_login.html.twig @@ -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 %}{{ 'Login / Sign up'|trans }}{% endblock %} {% block content %} @@ -44,7 +44,7 @@ {{ 'Register'|trans }} {% if guest.extension_is_on({ "mod": "oauth" }) %} - {% include "mod_oauth_buttons.phtml" with { "redirect_to": "client/me" } %} + {% include "mod_oauth_buttons.html.twig" with { "redirect_to": "client/me" } %} {% endif %} diff --git a/src/bb-themes/boxbilling/html/mod_page_preview_markdown.phtml b/src/bb-themes/boxbilling/html/mod_page_preview_markdown.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/mod_page_preview_markdown.phtml rename to src/bb-themes/boxbilling/html/mod_page_preview_markdown.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_page_privacy-policy.phtml b/src/bb-themes/boxbilling/html/mod_page_privacy-policy.html.twig similarity index 85% rename from src/bb-themes/boxbilling/html/mod_page_privacy-policy.phtml rename to src/bb-themes/boxbilling/html/mod_page_privacy-policy.html.twig index 8075612f3..5cb08848b 100644 --- a/src/bb-themes/boxbilling/html/mod_page_privacy-policy.phtml +++ b/src/bb-themes/boxbilling/html/mod_page_privacy-policy.html.twig @@ -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 %}{{ 'Privacy Policy'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_page_reset-password.phtml b/src/bb-themes/boxbilling/html/mod_page_reset-password.html.twig similarity index 91% rename from src/bb-themes/boxbilling/html/mod_page_reset-password.phtml rename to src/bb-themes/boxbilling/html/mod_page_reset-password.html.twig index 8c11d0c6a..240737776 100644 --- a/src/bb-themes/boxbilling/html/mod_page_reset-password.phtml +++ b/src/bb-themes/boxbilling/html/mod_page_reset-password.html.twig @@ -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 %}{{ 'Reset password'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_page_tos.phtml b/src/bb-themes/boxbilling/html/mod_page_tos.html.twig similarity index 85% rename from src/bb-themes/boxbilling/html/mod_page_tos.phtml rename to src/bb-themes/boxbilling/html/mod_page_tos.html.twig index eac55c5f1..00e11677d 100644 --- a/src/bb-themes/boxbilling/html/mod_page_tos.phtml +++ b/src/bb-themes/boxbilling/html/mod_page_tos.html.twig @@ -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 %}{{ 'Terms and Conditions'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_servicedomain_manage.phtml b/src/bb-themes/boxbilling/html/mod_servicedomain_manage.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/mod_servicedomain_manage.phtml rename to src/bb-themes/boxbilling/html/mod_servicedomain_manage.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_servicedomain_order.phtml b/src/bb-themes/boxbilling/html/mod_servicedomain_order.html.twig similarity index 96% rename from src/bb-themes/boxbilling/html/mod_servicedomain_order.phtml rename to src/bb-themes/boxbilling/html/mod_servicedomain_order.html.twig index cfa2d72ac..f9c03511a 100644 --- a/src/bb-themes/boxbilling/html/mod_servicedomain_order.phtml +++ b/src/bb-themes/boxbilling/html/mod_servicedomain_order.html.twig @@ -1,11 +1,11 @@ -{% 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 %}{{ 'Register new domain'|trans }}{% endblock %} {% block content_before %} - {% include "partial_steps.phtml" with {'selected': 2} %} + {% include "partial_steps.html.twig" with {'selected': 2} %} {% endblock %} {% block content %} @@ -85,7 +85,7 @@
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %} @@ -93,7 +93,7 @@ {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-themes/boxbilling/html/mod_servicedownloadable_manage.phtml b/src/bb-themes/boxbilling/html/mod_servicedownloadable_manage.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/mod_servicedownloadable_manage.phtml rename to src/bb-themes/boxbilling/html/mod_servicedownloadable_manage.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_servicehosting_manage.phtml b/src/bb-themes/boxbilling/html/mod_servicehosting_manage.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/mod_servicehosting_manage.phtml rename to src/bb-themes/boxbilling/html/mod_servicehosting_manage.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_servicehosting_order.phtml b/src/bb-themes/boxbilling/html/mod_servicehosting_order.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_servicehosting_order.phtml rename to src/bb-themes/boxbilling/html/mod_servicehosting_order.html.twig index 9721f4324..010e6ed07 100644 --- a/src/bb-themes/boxbilling/html/mod_servicehosting_order.phtml +++ b/src/bb-themes/boxbilling/html/mod_servicehosting_order.html.twig @@ -1,11 +1,11 @@ -{% 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 %}{{ product.title }}{% endblock %} {% block content_before %} - {% include "partial_steps.phtml" with { 'selected': 2 } %} + {% include "partial_steps.html.twig" with { 'selected': 2 } %} {% endblock %} {% block content %} @@ -99,14 +99,14 @@
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with { 'product': product } %} + {% include 'partial_addons.html.twig' with { 'product': product } %} @@ -114,7 +114,7 @@ {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-themes/boxbilling/html/mod_servicelicense_manage.phtml b/src/bb-themes/boxbilling/html/mod_servicelicense_manage.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/mod_servicelicense_manage.phtml rename to src/bb-themes/boxbilling/html/mod_servicelicense_manage.html.twig diff --git a/src/bb-themes/boxbilling/html/mod_servicesolusvm_order.phtml b/src/bb-themes/boxbilling/html/mod_servicesolusvm_order.html.twig similarity index 86% rename from src/bb-themes/boxbilling/html/mod_servicesolusvm_order.phtml rename to src/bb-themes/boxbilling/html/mod_servicesolusvm_order.html.twig index 0ec608c5f..39e790a5c 100644 --- a/src/bb-themes/boxbilling/html/mod_servicesolusvm_order.phtml +++ b/src/bb-themes/boxbilling/html/mod_servicesolusvm_order.html.twig @@ -1,11 +1,11 @@ -{% 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 %}{{ product.title }}{% endblock %} {% block content_before %} - {% include "partial_steps.phtml" with { 'selected': 2 } %} + {% include "partial_steps.html.twig" with { 'selected': 2 } %} {% endblock %} {% block content %} @@ -45,18 +45,18 @@
    - {% include 'partial_pricing.phtml' with { 'product': product } %} + {% include 'partial_pricing.html.twig' with { 'product': product } %}
    - {% include 'partial_addons.phtml' with {'product': product} %} + {% include 'partial_addons.html.twig' with {'product': product} %} {% endblock %} {% block sidebar2 %} - {% include 'partial_currency.phtml' %} + {% include 'partial_currency.html.twig' %} {% endblock %} {% block js %} diff --git a/src/bb-themes/boxbilling/html/mod_support_contact_us.phtml b/src/bb-themes/boxbilling/html/mod_support_contact_us.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_support_contact_us.phtml rename to src/bb-themes/boxbilling/html/mod_support_contact_us.html.twig index 247b14903..0f89f7306 100644 --- a/src/bb-themes/boxbilling/html/mod_support_contact_us.phtml +++ b/src/bb-themes/boxbilling/html/mod_support_contact_us.html.twig @@ -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 %}{{ 'Contact us'|trans }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.phtml b/src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.html.twig similarity index 97% rename from src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.phtml rename to src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.html.twig index 35b35f5e3..4047342ce 100644 --- a/src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.phtml +++ b/src/bb-themes/boxbilling/html/mod_support_contact_us_conversation.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_support_ticket.phtml b/src/bb-themes/boxbilling/html/mod_support_ticket.html.twig similarity index 97% rename from src/bb-themes/boxbilling/html/mod_support_ticket.phtml rename to src/bb-themes/boxbilling/html/mod_support_ticket.html.twig index 56e165da7..0be794a06 100644 --- a/src/bb-themes/boxbilling/html/mod_support_ticket.phtml +++ b/src/bb-themes/boxbilling/html/mod_support_ticket.html.twig @@ -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 %}{{ ticket.subject }}{% endblock %} diff --git a/src/bb-themes/boxbilling/html/mod_support_tickets.phtml b/src/bb-themes/boxbilling/html/mod_support_tickets.html.twig similarity index 95% rename from src/bb-themes/boxbilling/html/mod_support_tickets.phtml rename to src/bb-themes/boxbilling/html/mod_support_tickets.html.twig index 0b3f75a18..5b1ecb144 100644 --- a/src/bb-themes/boxbilling/html/mod_support_tickets.phtml +++ b/src/bb-themes/boxbilling/html/mod_support_tickets.html.twig @@ -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 %}{{ 'Support tickets'|trans }}{% endblock %} @@ -54,7 +54,7 @@ {{ 'Submit new ticket'|trans }} - {% include "partial_pagination.phtml" with {'list': tickets} %} + {% include "partial_pagination.html.twig" with {'list': tickets} %} diff --git a/src/bb-themes/boxbilling/html/partial_addons.phtml b/src/bb-themes/boxbilling/html/partial_addons.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_addons.phtml rename to src/bb-themes/boxbilling/html/partial_addons.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_currency.phtml b/src/bb-themes/boxbilling/html/partial_currency.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_currency.phtml rename to src/bb-themes/boxbilling/html/partial_currency.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_menu.phtml b/src/bb-themes/boxbilling/html/partial_menu.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_menu.phtml rename to src/bb-themes/boxbilling/html/partial_menu.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_message.phtml b/src/bb-themes/boxbilling/html/partial_message.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_message.phtml rename to src/bb-themes/boxbilling/html/partial_message.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_pagination.phtml b/src/bb-themes/boxbilling/html/partial_pagination.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_pagination.phtml rename to src/bb-themes/boxbilling/html/partial_pagination.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_pending_messages.phtml b/src/bb-themes/boxbilling/html/partial_pending_messages.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_pending_messages.phtml rename to src/bb-themes/boxbilling/html/partial_pending_messages.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_pricing.phtml b/src/bb-themes/boxbilling/html/partial_pricing.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_pricing.phtml rename to src/bb-themes/boxbilling/html/partial_pricing.html.twig diff --git a/src/bb-themes/boxbilling/html/partial_steps.phtml b/src/bb-themes/boxbilling/html/partial_steps.html.twig similarity index 100% rename from src/bb-themes/boxbilling/html/partial_steps.phtml rename to src/bb-themes/boxbilling/html/partial_steps.html.twig diff --git a/src/bb-themes/huraga/html/404.phtml b/src/bb-themes/huraga/html/404.html.twig similarity index 93% rename from src/bb-themes/huraga/html/404.phtml rename to src/bb-themes/huraga/html/404.html.twig index 4ee1b4a94..afa7f9f0b 100644 --- a/src/bb-themes/huraga/html/404.phtml +++ b/src/bb-themes/huraga/html/404.html.twig @@ -1,4 +1,4 @@ -{% extends "layout_default.phtml" %} +{% extends "layout_default.html.twig" %} {% block meta_title %}{{ 'Error'|trans }}{% endblock %} diff --git a/src/bb-themes/huraga/html/layout_default.phtml b/src/bb-themes/huraga/html/layout_default.html.twig similarity index 98% rename from src/bb-themes/huraga/html/layout_default.phtml rename to src/bb-themes/huraga/html/layout_default.html.twig index 15040b450..7952a9341 100644 --- a/src/bb-themes/huraga/html/layout_default.phtml +++ b/src/bb-themes/huraga/html/layout_default.html.twig @@ -38,7 +38,7 @@ {% if guest.extension_is_on({ "mod": "cookieconsent" }) %} - {% include 'mod_cookieconsent_index.phtml' ignore missing%} + {% include 'mod_cookieconsent_index.html.twig' ignore missing%} {% endif %} {% block body %} @@ -129,7 +129,7 @@ {% if settings.show_client_details %} @@ -188,7 +188,7 @@ {% endblock #} {% endif %} - {% include "partial_message.phtml" %} + {% include "partial_message.html.twig" %} {% block content_before %}{% endblock %} {% block content %}{% endblock %} @@ -278,6 +278,6 @@ {% if settings.inject_javascript %} {{ settings.inject_javascript | raw}} {% endif %} -{% include 'partial_pending_messages.phtml' ignore missing %} +{% include 'partial_pending_messages.html.twig' ignore missing %} diff --git a/src/bb-themes/huraga/html/layout_public.phtml b/src/bb-themes/huraga/html/layout_public.html.twig similarity index 96% rename from src/bb-themes/huraga/html/layout_public.phtml rename to src/bb-themes/huraga/html/layout_public.html.twig index 64e3ad26c..8f26115eb 100644 --- a/src/bb-themes/huraga/html/layout_public.phtml +++ b/src/bb-themes/huraga/html/layout_public.html.twig @@ -33,6 +33,6 @@ {% block body %}{% endblock %} - {% include 'partial_pending_messages.phtml' ignore missing %} + {% include 'partial_pending_messages.html.twig' ignore missing %} \ No newline at end of file diff --git a/src/bb-themes/huraga/html/macro_functions.phtml b/src/bb-themes/huraga/html/macro_functions.html.twig similarity index 100% rename from src/bb-themes/huraga/html/macro_functions.phtml rename to src/bb-themes/huraga/html/macro_functions.html.twig diff --git a/src/bb-themes/huraga/html/partial_menu.phtml b/src/bb-themes/huraga/html/partial_menu.html.twig similarity index 100% rename from src/bb-themes/huraga/html/partial_menu.phtml rename to src/bb-themes/huraga/html/partial_menu.html.twig diff --git a/src/bb-themes/huraga/html/partial_message.phtml b/src/bb-themes/huraga/html/partial_message.html.twig similarity index 100% rename from src/bb-themes/huraga/html/partial_message.phtml rename to src/bb-themes/huraga/html/partial_message.html.twig diff --git a/src/bb-themes/huraga/html/partial_pagination.phtml b/src/bb-themes/huraga/html/partial_pagination.html.twig similarity index 100% rename from src/bb-themes/huraga/html/partial_pagination.phtml rename to src/bb-themes/huraga/html/partial_pagination.html.twig diff --git a/src/bb-themes/huraga/html/partial_pending_messages.phtml b/src/bb-themes/huraga/html/partial_pending_messages.html.twig similarity index 100% rename from src/bb-themes/huraga/html/partial_pending_messages.phtml rename to src/bb-themes/huraga/html/partial_pending_messages.html.twig diff --git a/src/bb-themes/huraga/html/partial_pricing.phtml b/src/bb-themes/huraga/html/partial_pricing.html.twig similarity index 100% rename from src/bb-themes/huraga/html/partial_pricing.phtml rename to src/bb-themes/huraga/html/partial_pricing.html.twig diff --git a/src/install/assets/install.phtml b/src/install/assets/install.html.twig similarity index 99% rename from src/install/assets/install.phtml rename to src/install/assets/install.html.twig index 362895086..8d1292403 100644 --- a/src/install/assets/install.phtml +++ b/src/install/assets/install.html.twig @@ -1,4 +1,4 @@ -{% extends "./assets/layout.phtml" %} +{% extends "./assets/layout.html.twig" %} {% block left %}
    diff --git a/src/install/assets/layout.phtml b/src/install/assets/layout.html.twig similarity index 100% rename from src/install/assets/layout.phtml rename to src/install/assets/layout.html.twig diff --git a/src/install/install.php b/src/install/install.php index 9e3d2c8de..800be5c7e 100644 --- a/src/install/install.php +++ b/src/install/install.php @@ -1,6 +1,19 @@ canConnectToDatabase($host, $name, $user, $pass)) { - print 'Could not connect to database. Please check database details. You might need to create database first.'; + echo 'Could not connect to database. Please check database details. You might need to create database first.'; } else { $this->session->set('db_host', $host); $this->session->set('db_name', $name); $this->session->set('db_user', $user); $this->session->set('db_pass', $pass); - print 'ok'; + echo 'ok'; } break; @@ -121,37 +134,36 @@ final class Box_Installer $this->session->set('admin_name', $admin_name); } - $this->session->set('license', "BoxBilling CE"); + $this->session->set('license', 'BoxBilling CE'); $this->makeInstall($this->session); $this->generateEmailTemplates(); session_destroy(); // Try to remove install folder - function rmAllDir($dir) { + function rmAllDir($dir) + { if (is_dir($dir)) { - $contents = scandir($dir); - foreach ($contents as $content) { - if ($content != '.' && $content != '..') { - if (filetype($dir.'/'.$content) == 'dir') { - rmAllDir($dir.'/'.$content); - } - else { - unlink($dir.'/'.$content); - } + $contents = scandir($dir); + foreach ($contents as $content) { + if ('.' != $content && '..' != $content) { + if ('dir' == filetype($dir . '/' . $content)) { + rmAllDir($dir . '/' . $content); + } else { + unlink($dir . '/' . $content); + } + } } - } - reset($contents); - rmdir($dir); + reset($contents); + rmdir($dir); } } try { rmAllDir('../install'); - } - catch(Exception $e) { + } catch (Exception $e) { // do nothing } - print 'ok'; + echo 'ok'; } catch (Exception $e) { - print $e->getMessage(); + echo $e->getMessage(); } break; @@ -197,7 +209,7 @@ final class Box_Installer 'domain' => pathinfo(BB_URL, PATHINFO_BASENAME), ]; - print $this->render('./assets/install.phtml', $vars); + echo $this->render('./assets/install.html.twig', $vars); break; } } @@ -215,9 +227,10 @@ final class Box_Installer ]; $loader = new \Twig\Loader\FilesystemLoader($options['paths']); $twig = new Twig\Environment($loader, $options); - //$twig->addExtension(new Twig_Extension_Optimizer()); + // $twig->addExtension(new Twig_Extension_Optimizer()); $twig->addGlobal('request', $_REQUEST); $twig->addGlobal('version', Box_Version::VERSION); + return $twig->render($name, $vars); } @@ -225,30 +238,31 @@ final class Box_Installer { $path = BB_PATH_LICENSE; if (!file_exists($path)) { - return 'BoxBilling is licensed under the Apache License, Version 2.0.'.PHP_EOL.'Please visit https://github.com/boxbilling/boxbilling/blob/master/LICENSE for full license text.'; + return 'BoxBilling is licensed under the Apache License, Version 2.0.' . PHP_EOL . 'Please visit https://github.com/boxbilling/boxbilling/blob/master/LICENSE for full license text.'; } + return file_get_contents($path); } private function getPdo($host, $db, $user, $pass) { - $pdo = new \PDO('mysql:host='.$host, + $pdo = new \PDO('mysql:host=' . $host, $user, $pass, - array( - \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true, - \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, - \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, - ) + [ + \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true, + \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, + \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, + ] ); - $pdo->exec( 'SET NAMES "utf8"' ); - $pdo->exec( 'SET CHARACTER SET utf8' ); - $pdo->exec( 'SET CHARACTER_SET_CONNECTION = utf8' ); - $pdo->exec( 'SET character_set_results = utf8' ); - $pdo->exec( 'SET character_set_server = utf8' ); - $pdo->exec( 'SET SESSION interactive_timeout = 28800' ); - $pdo->exec( 'SET SESSION wait_timeout = 28800' ); + $pdo->exec('SET NAMES "utf8"'); + $pdo->exec('SET CHARACTER SET utf8'); + $pdo->exec('SET CHARACTER_SET_CONNECTION = utf8'); + $pdo->exec('SET character_set_results = utf8'); + $pdo->exec('SET character_set_server = utf8'); + $pdo->exec('SET SESSION interactive_timeout = 28800'); + $pdo->exec('SET SESSION wait_timeout = 28800'); // try create database if permissions allows try { @@ -258,6 +272,7 @@ final class Box_Installer } $pdo->query("USE $db;"); + return $pdo; } @@ -267,8 +282,10 @@ final class Box_Installer $this->getPdo($host, $db, $user, $pass); } catch (\Exception $e) { error_log($e->getMessage()); + return false; } + return true; } @@ -318,11 +335,11 @@ final class Box_Installer $passwordObject = new \Box_Password(); $stmt = $pdo->prepare("INSERT INTO admin (role, name, email, pass, protected, created_at, updated_at) VALUES('admin', :admin_name, :admin_email, :admin_pass, 1, NOW(), NOW());"); - $stmt->execute(array( - 'admin_name' => $ns->get('admin_name'), + $stmt->execute([ + 'admin_name' => $ns->get('admin_name'), 'admin_email' => $ns->get('admin_email'), - 'admin_pass' => $passwordObject->hashIt($ns->get('admin_pass')), - )); + 'admin_pass' => $passwordObject->hashIt($ns->get('admin_pass')), + ]); try { $this->_sendMail($ns); @@ -330,26 +347,26 @@ final class Box_Installer // E-mail was not sent, but that is not a problem error_log($e->getMessage()); } - - + /* Copy config templates when applicable */ - if(!file_exists(BB_PATH_HTACCESS) && file_exists(BB_PATH_HTACCESS_TEMPLATE)) { + if (!file_exists(BB_PATH_HTACCESS) && file_exists(BB_PATH_HTACCESS_TEMPLATE)) { rename(BB_PATH_HTACCESS_TEMPLATE, BB_PATH_HTACCESS); } - if(!file_exists(BB_BS_CONFIG) && file_exists(BB_BS_CONFIG_TEMPLATE)) { + if (!file_exists(BB_BS_CONFIG) && file_exists(BB_BS_CONFIG_TEMPLATE)) { rename(BB_BS_CONFIG_TEMPLATE, BB_BS_CONFIG); } - if(!file_exists(BB_HURAGA_CONFIG) && file_exists(BB_HURAGA_CONFIG_TEMPLATE)) { + if (!file_exists(BB_HURAGA_CONFIG) && file_exists(BB_HURAGA_CONFIG_TEMPLATE)) { rename(BB_HURAGA_CONFIG_TEMPLATE, BB_HURAGA_CONFIG); } - if(!file_exists(BB_BBTHEME_CONFIG) && file_exists(BB_BBTHEM_CONFIG_TEMPLATE)) { + if (!file_exists(BB_BBTHEME_CONFIG) && file_exists(BB_BBTHEM_CONFIG_TEMPLATE)) { rename(BB_BBTHEM_CONFIG_TEMPLATE, BB_BBTHEME_CONFIG); } + return true; } @@ -360,14 +377,14 @@ final class Box_Installer $admin_pass = $ns->get('admin_pass'); $content = "Hi $admin_name, " . PHP_EOL; - $content .= "You have successfully setup BoxBilling at " . BB_URL . PHP_EOL; - $content .= "Access client area at: " . BB_URL . PHP_EOL; - $content .= "Access admin area at: " . BB_URL_ADMIN . " with login details:" . PHP_EOL; - $content .= "E-mail: " . $admin_email . PHP_EOL; - $content .= "Password: " . $admin_pass . PHP_EOL . PHP_EOL; + $content .= 'You have successfully setup BoxBilling at ' . BB_URL . PHP_EOL; + $content .= 'Access client area at: ' . BB_URL . PHP_EOL; + $content .= 'Access admin area at: ' . BB_URL_ADMIN . ' with login details:' . PHP_EOL; + $content .= 'E-mail: ' . $admin_email . PHP_EOL; + $content .= 'Password: ' . $admin_pass . PHP_EOL . PHP_EOL; - $content .= "Read BoxBilling documentation to get started https://docs.boxbilling.org/" . PHP_EOL; - $content .= "Thank You for using BoxBilling." . PHP_EOL; + $content .= 'Read BoxBilling documentation to get started https://docs.boxbilling.org/' . PHP_EOL; + $content .= 'Thank You for using BoxBilling.' . PHP_EOL; $subject = sprintf('BoxBilling is ready at "%s"', BB_URL); @@ -393,7 +410,7 @@ final class Box_Installer 'allowed_urls' => [], 'allowed_ips' => [], ], - + 'salt' => md5(random_bytes(13)), 'url' => BB_URL, 'admin_area_prefix' => '/bb-admin', @@ -427,7 +444,7 @@ final class Box_Installer 'rate_span' => 60 * 60, 'rate_limit' => 1000, 'throttle_delay' => 2, - 'rate_span_login' => 60, + 'rate_span_login' => 60, 'rate_limit_login' => 20, ], 'guzzle' => [ @@ -438,6 +455,7 @@ final class Box_Installer ]; $output = 'setDi($di); + return $emailService->templateBatchGenerate(); } } -$action = isset($_GET['a']) ? $_GET['a'] : 'index'; -$installer = new Box_Installer; +$action = $_GET['a'] ?? 'index'; +$installer = new Box_Installer(); $installer->run($action); diff --git a/tests/bb-library/Box/Box_TwigLoaderTest.php b/tests/bb-library/Box/Box_TwigLoaderTest.php index 9bb3301de..3be47db31 100644 --- a/tests/bb-library/Box/Box_TwigLoaderTest.php +++ b/tests/bb-library/Box/Box_TwigLoaderTest.php @@ -1,21 +1,30 @@ BB_PATH_MODS, - "theme" => BB_PATH_THEMES.DIRECTORY_SEPARATOR."huraga", - "type" => "client" - )); - $test = $loader->getSourceContext("mod_example_index.phtml"); - $test2 = $loader->getSourceContext("404.phtml"); + $loader = new Box_TwigLoader([ + 'mods' => BB_PATH_MODS, + 'theme' => BB_PATH_THEMES . DIRECTORY_SEPARATOR . 'huraga', + 'type' => 'client', + ]); + $test = $loader->getSourceContext('mod_example_index.html.twig'); + $test2 = $loader->getSourceContext('404.html.twig'); $this->assertIsObject($test); $this->assertIsObject($test2); @@ -23,13 +32,13 @@ class Box_TwigLoaderTest extends PHPUnit\Framework\TestCase public function testException() { - $loader = new Box_TwigLoader(array( - "type" => 'client', - "mods" => BB_PATH_MODS, - "theme" => BB_PATH_THEMES.DIRECTORY_SEPARATOR."huraga", - )); + $loader = new Box_TwigLoader([ + 'type' => 'client', + 'mods' => BB_PATH_MODS, + 'theme' => BB_PATH_THEMES . DIRECTORY_SEPARATOR . 'huraga', + ]); $this->expectException(Twig\Error\LoaderError::class); - $test = $loader->getSourceContext("mod_non_existing_settings.phtml"); - $test = $loader->getSourceContext("some_random_name.phtml"); + $test = $loader->getSourceContext('mod_non_existing_settings.html.twig'); + $test = $loader->getSourceContext('some_random_name.html.twig'); } -} \ No newline at end of file +} diff --git a/tests/integration/bb-modules/mod_system/Api_AdminTest.php b/tests/integration/bb-modules/mod_system/Api_AdminTest.php index 7fb8f665d..3df7a4c6e 100644 --- a/tests/integration/bb-modules/mod_system/Api_AdminTest.php +++ b/tests/integration/bb-modules/mod_system/Api_AdminTest.php @@ -1,4 +1,16 @@ '1', - 'captcha_recaptcha_publickey' => 'pub', - 'captcha_recaptcha_privatekey' => 'priv', - ); + $data = [ + 'captcha_enabled' => '1', + 'captcha_recaptcha_publickey' => 'pub', + 'captcha_recaptcha_privatekey' => 'priv', + ]; $bool = $this->api_admin->system_update_params($data); $array = $this->api_admin->system_get_params(); @@ -25,90 +37,89 @@ class Api_Admin_SystemTest extends BBDbApiTestCase { $bool = $this->api_admin->system_template_exists(); $this->assertFalse($bool); - - $bool = $this->api_admin->system_template_exists(array('file'=>'non_existing_template.phtml')); + + $bool = $this->api_admin->system_template_exists(['file' => 'non_existing_template.html.twig']); $this->assertFalse($bool); - - $bool = $this->api_admin->system_template_exists(array('file'=>'mod_index_dashboard.phtml')); + + $bool = $this->api_admin->system_template_exists(['file' => 'mod_index_dashboard.html.twig']); $this->assertTrue($bool); } - + public function testRender() { - $vars = array( + $vars = [ '_tpl' => '{{ now|date("Y") }}', - ); + ]; $string = $this->api_admin->system_string_render($vars); $this->assertEquals(date('Y'), $string); - - //test guest API in template - $vars = array( + + // test guest API in template + $vars = [ '_tpl' => '{{ guest.system_states | json_encode }}', - ); + ]; $string = $this->api_admin->system_string_render($vars); $json = html_entity_decode($string); $result = json_decode($json, 1); $expected = $this->api_guest->system_states(); $this->assertEquals($expected, $result); - //test admin API in template - $vars = array( + // test admin API in template + $vars = [ '_tpl' => '{{ admin.cron_info | json_encode }}', - ); + ]; $string = $this->api_admin->system_string_render($vars); $json = html_entity_decode($string); $result = json_decode($json, 1); $expected = $this->api_admin->cron_info(); $this->assertEquals($expected, $result); - - //test client API in template - $vars = array( + + // test client API in template + $vars = [ '_tpl' => '{{ client.order_get_list | json_encode }}', '_client_id' => 1, - ); + ]; $string = $this->api_admin->system_string_render($vars); $json = html_entity_decode($string); $result = json_decode($json, 1); $expected = $this->api_client->order_get_list(); $this->assertEquals($expected, $result); } - + public function testPermissions() { - $bool = $this->api_admin->system_is_allowed(array('mod'=>'order')); + $bool = $this->api_admin->system_is_allowed(['mod' => 'order']); $this->assertTrue($bool); - - $bool = $this->api_admin->system_is_allowed(array('mod'=>'notexisting')); + + $bool = $this->api_admin->system_is_allowed(['mod' => 'notexisting']); $this->assertTrue($bool); } - + public function testInfos() { $array = $this->api_admin->system_env(); $this->assertIsArray($array); - + $array = $this->api_admin->system_messages(); $this->assertIsArray($array); - + $array = $this->api_admin->system_license_info(); $this->assertIsArray($array); $array = $this->api_admin->system_get_params(); $this->assertIsArray($array); - $string = $this->api_admin->system_param(array('key'=>'db_version')); + $string = $this->api_admin->system_param(['key' => 'db_version']); $this->assertEquals('2', '2'); - } public function testRenderDate() { $result = strftime($this->di['config']['locale_date_format']); - $data = array( - 'id' => 1, - '_tpl' => '{{ now|date("Y-m-d")|bb_date }}', - ); + $data = [ + 'id' => 1, + '_tpl' => '{{ now|date("Y-m-d")|bb_date }}', + ]; $string = $this->api_admin->email_template_render($data); $this->assertEquals($result, $string); } -} \ No newline at end of file +} diff --git a/tests/integration/bb-modules/mod_system/Api_GuestTest.php b/tests/integration/bb-modules/mod_system/Api_GuestTest.php index 71d21c397..d28c1223a 100644 --- a/tests/integration/bb-modules/mod_system/Api_GuestTest.php +++ b/tests/integration/bb-modules/mod_system/Api_GuestTest.php @@ -1,29 +1,41 @@ api_guest->system_phone_codes(); $this->assertIsArray($array); - - $str = $this->api_guest->system_phone_codes(array('country'=>'US')); + + $str = $this->api_guest->system_phone_codes(['country' => 'US']); $this->assertEquals('1', $str); - + foreach ($this->api_guest->system_countries() as $code => $name) { - $this->api_guest->system_phone_codes(array('country'=>$code)); + $this->api_guest->system_phone_codes(['country' => $code]); } } - + public function testCompany() { $array = $this->api_guest->system_countries(); $this->assertIsArray($array); - + $array = $this->api_guest->system_countries_eunion(); $this->assertIsArray($array); @@ -38,14 +50,14 @@ class Api_Guest_SystemTest extends BBDbApiTestCase { $bool = $this->api_guest->system_template_exists(); $this->assertFalse($bool); - - $bool = $this->api_guest->system_template_exists(array('file'=>'non_existing_template.phtml')); + + $bool = $this->api_guest->system_template_exists(['file' => 'non_existing_template.html.twig']); $this->assertFalse($bool); - - $bool = $this->api_guest->system_template_exists(array('file'=>'mod_index_dashboard.phtml')); + + $bool = $this->api_guest->system_template_exists(['file' => 'mod_index_dashboard.html.twig']); $this->assertTrue($bool); } - + public function testSystem() { $string = $this->api_guest->system_version(); @@ -53,8 +65,8 @@ class Api_Guest_SystemTest extends BBDbApiTestCase $array = $this->api_guest->system_company(); $this->assertIsArray($array); - - $string = $this->api_guest->system_param(array('key'=>'phpunit')); + + $string = $this->api_guest->system_param(['key' => 'phpunit']); $this->assertIsString($string); $array = $this->api_guest->system_countries(); @@ -62,8 +74,8 @@ class Api_Guest_SystemTest extends BBDbApiTestCase $array = $this->api_guest->system_periods(); $this->assertIsArray($array); - + $string = $this->api_guest->system_locale(); $this->assertIsString($string); } -} \ No newline at end of file +}