From ec95d32c44b49d733bf387a7f3bebb72b6fca47f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 15 Dec 2015 15:35:53 -0800 Subject: [PATCH] CRM-17711 - CRM_*_Backdrop - Fix enough to run setup.sh --- CRM/Utils/System/Backdrop.php | 6 +++ templates/CRM/common/backdrop.tpl | 79 +++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 templates/CRM/common/backdrop.tpl diff --git a/CRM/Utils/System/Backdrop.php b/CRM/Utils/System/Backdrop.php index 1b0a3c1f50..5a4abf49da 100644 --- a/CRM/Utils/System/Backdrop.php +++ b/CRM/Utils/System/Backdrop.php @@ -830,6 +830,12 @@ AND u.status = 1 ); } + /** + * @inheritDoc + */ + public function clearResourceCache() { + _backdrop_flush_css_js(); + } /** * Get all the contact emails for users that have a specific permission. diff --git a/templates/CRM/common/backdrop.tpl b/templates/CRM/common/backdrop.tpl new file mode 100644 index 0000000000..0da5579632 --- /dev/null +++ b/templates/CRM/common/backdrop.tpl @@ -0,0 +1,79 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM version 4.7 | + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC (c) 2004-2015 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM. | + | | + | CiviCRM is free software; you can copy, modify, and distribute it | + | under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | + | | + | CiviCRM is distributed in the hope that it will be useful, but | + | WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License and the CiviCRM Licensing Exception along | + | with this program; if not, contact CiviCRM LLC | + | at info[AT]civicrm[DOT]org. If you have questions about the | + | GNU Affero General Public License or the licensing of CiviCRM, | + | see the CiviCRM license FAQ at http://civicrm.org/licensing | + +--------------------------------------------------------------------+ +*} +{if $config->debug} +{include file="CRM/common/debug.tpl"} +{/if} + +
+ + +{crmNavigationMenu is_default=1} + +{if isset($browserPrint) and $browserPrint} +{* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *} +
+ + + +
+{else} +{* Printer friendly link/icon. *} +
+ + + +
+{/if} + +{crmRegion name='page-header'} +{/crmRegion} +
+ +{if isset($localTasks) and $localTasks} + {include file="CRM/common/localNav.tpl"} +{/if} +
+ {include file="CRM/common/status.tpl"} + {crmRegion name='page-body'} + + {if isset($isForm) and $isForm and isset($formTpl)} + {include file="CRM/Form/$formTpl.tpl"} + {else} + {include file=$tplFile} + {/if} + {/crmRegion} +
+ +{crmRegion name='page-footer'} +{if $urlIsPublic} + {include file="CRM/common/publicFooter.tpl"} +{else} + {include file="CRM/common/footer.tpl"} +{/if} +{/crmRegion} + + +
{* end crm-container div *} -- 2.25.1