From 2f0a08e993f4b487820023fdbdb7481802effb02 Mon Sep 17 00:00:00 2001 From: Eli Lisseck Date: Tue, 17 Sep 2019 10:35:59 -0700 Subject: [PATCH] dev/core/1259 update config checklist contribution section --- CRM/Admin/Page/ConfigTaskList.php | 11 +++++++++++ templates/CRM/Admin/Page/ConfigTaskList.tpl | 12 +++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CRM/Admin/Page/ConfigTaskList.php b/CRM/Admin/Page/ConfigTaskList.php index 7d43f650e4..ccb987294b 100644 --- a/CRM/Admin/Page/ConfigTaskList.php +++ b/CRM/Admin/Page/ConfigTaskList.php @@ -57,6 +57,17 @@ class CRM_Admin_Page_ConfigTaskList extends CRM_Core_Page { $this->assign('registerSite', htmlspecialchars('https://civicrm.org/register-your-site?src=iam&sid=' . CRM_Utils_System::getSiteID())); + //Provide ability to optionally display some component checklist items when components are on + $result = civicrm_api3('Setting', 'get', [ + 'sequential' => 1, + 'return' => ["enable_components"], + ]); + $enabled = array(); + foreach ($result['values'][0]['enable_components'] as $component) { + $enabled[$component] = 1; + } + $this->assign('enabledComponents', $enabled); + return parent::run(); } diff --git a/templates/CRM/Admin/Page/ConfigTaskList.tpl b/templates/CRM/Admin/Page/ConfigTaskList.tpl index e68bb610eb..1c6f5f9cfb 100644 --- a/templates/CRM/Admin/Page/ConfigTaskList.tpl +++ b/templates/CRM/Admin/Page/ConfigTaskList.tpl @@ -105,13 +105,15 @@ {else} {ts}Permissions for Anonymous Users{/ts} {/if} - {ts}You will also need to change Drupal permissions so anonymous users can make contributions, register for events and / or use profiles to enter contact information.{/ts} {docURL page="Default Permissions and Roles" resource="wiki"} + {ts}You will also need to change Drupal permissions so anonymous users can make contributions, register for events and / or use profiles to enter contact information.{/ts} {docURL page="user/en/latest/initial-set-up/permissions-and-access-control" text="(learn more...)"} {/if} - - {ts}System Workflow Templates{/ts} - {ts}Review and modify the templates used for system-generated emails, including contribution receipts and event registration confirmations.{/ts} - + {if $enabledComponents.CiviContribute eq 1} + + {ts}CiviContribute Component Settings{/ts} + {ts}Review and modify the CiviContribute Component settings such as Taxes and Invoicing, Deferred Revenue, and Access Control by Financial Type{/ts} + + {/if}
-- 2.25.1