From: Tim Otten Date: Sat, 30 Mar 2013 03:18:56 +0000 (-0400) Subject: CRM-12193 - Display community message on dashboard X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9d9fa5bc37e7bd1bf1f577cbf0def8460587d7fa;p=civicrm-core.git CRM-12193 - Display community message on dashboard ---------------------------------------- * CRM-12193: In-app fundraising for CiviCRM http://issues.civicrm.org/jira/browse/CRM-12193 --- diff --git a/CRM/Contact/Page/DashBoard.php b/CRM/Contact/Page/DashBoard.php index 6576551f29..77a1c2fcc7 100644 --- a/CRM/Contact/Page/DashBoard.php +++ b/CRM/Contact/Page/DashBoard.php @@ -115,6 +115,14 @@ class CRM_Contact_Page_DashBoard extends CRM_Core_Page { $this->assign('ownerOrgOK', $ownerOrgOK); $this->assign('defaultMailboxOK', $defaultMailboxOK); + $communityMessages = CRM_Core_CommunityMessages::create(); + if ($communityMessages->isEnabled()) { + $message = $communityMessages->pick(); + if ($message) { + $this->assign('communityMessages', $communityMessages->evalMarkup($message['markup'])); + } + } + return parent::run(); } } diff --git a/templates/CRM/Contact/Page/DashBoardDashlet.tpl b/templates/CRM/Contact/Page/DashBoardDashlet.tpl index d1f88ff42c..b73ddc1e41 100644 --- a/templates/CRM/Contact/Page/DashBoardDashlet.tpl +++ b/templates/CRM/Contact/Page/DashBoardDashlet.tpl @@ -57,6 +57,7 @@ {/if} {/if} +{$communityMessages}
{ts}Configure Your Dashboard{/ts}