From bd31891496f75057332d0ef47441ac9772a773bb Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Fri, 20 Feb 2015 08:15:32 +0200 Subject: [PATCH 1/2] add partial_pending_messages.pthml template to BoxBilling theme fix issue #267 --- .../boxbilling/html/partial_pending_messages.phtml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/bb-themes/boxbilling/html/partial_pending_messages.phtml diff --git a/src/bb-themes/boxbilling/html/partial_pending_messages.phtml b/src/bb-themes/boxbilling/html/partial_pending_messages.phtml new file mode 100644 index 000000000..22c07bfe0 --- /dev/null +++ b/src/bb-themes/boxbilling/html/partial_pending_messages.phtml @@ -0,0 +1,8 @@ +{% set pending_messages = guest.system_get_pending_messages %} +{% if pending_messages %} + +{% endif %} \ No newline at end of file From a1314f7425dfa6214c9ba81643420e237ff87132 Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Fri, 20 Feb 2015 08:20:11 +0200 Subject: [PATCH 2/2] add ignore missing statements for future theme development it will be easier to remove functionality later --- src/bb-themes/boxbilling/html/layout_default.phtml | 2 +- src/bb-themes/huraga/html/layout_default.phtml | 2 +- src/bb-themes/huraga/html/layout_public.phtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-themes/boxbilling/html/layout_default.phtml b/src/bb-themes/boxbilling/html/layout_default.phtml index a14e4f1fd..5ce7190fe 100644 --- a/src/bb-themes/boxbilling/html/layout_default.phtml +++ b/src/bb-themes/boxbilling/html/layout_default.phtml @@ -225,6 +225,6 @@ {% block js %}{% endblock %} -{% include 'partial_pending_messages.phtml' %} +{% include 'partial_pending_messages.phtml' ignore missing %} \ No newline at end of file diff --git a/src/bb-themes/huraga/html/layout_default.phtml b/src/bb-themes/huraga/html/layout_default.phtml index 12a831377..f21399d02 100644 --- a/src/bb-themes/huraga/html/layout_default.phtml +++ b/src/bb-themes/huraga/html/layout_default.phtml @@ -247,6 +247,6 @@ {% if settings.inject_javascript %} {{ settings.inject_javascript | raw}} {% endif %} -{% include 'partial_pending_messages.phtml' %} +{% include 'partial_pending_messages.phtml' ignore missing %} \ No newline at end of file diff --git a/src/bb-themes/huraga/html/layout_public.phtml b/src/bb-themes/huraga/html/layout_public.phtml index 91e10e819..cfa27e7ee 100644 --- a/src/bb-themes/huraga/html/layout_public.phtml +++ b/src/bb-themes/huraga/html/layout_public.phtml @@ -35,6 +35,6 @@ {% block body %}{% endblock %} - {% include 'partial_pending_messages.phtml' %} + {% include 'partial_pending_messages.phtml' ignore missing %} \ No newline at end of file