Delete probably-unused TrackingFields.tpl
authorcolemanw <coleman@civicrm.org>
Thu, 31 Aug 2023 20:06:11 +0000 (16:06 -0400)
committercolemanw <coleman@civicrm.org>
Thu, 31 Aug 2023 21:57:37 +0000 (17:57 -0400)
Was added for this issue: https://issues.civicrm.org/jira/browse/CRM-4493
With this rationale: http://civicrm.org/node/562
In this svn commit: https://github.com/civicrm/civicrm-svn/commit/4ea717

The proposal was to add a "CiviTracker" module that would take advantage of this template.
However, 14 years later the "CiviTracker" extension was never developed, and if it were made today
it would not need this template.

21 files changed:
ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/ConferenceEvents.tpl
ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.tpl
ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/Payment.tpl
ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/ThankYou.tpl
templates/CRM/Contribute/Form/Contribution/Confirm.tpl
templates/CRM/Contribute/Form/Contribution/Main.tpl
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl
templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl
templates/CRM/Event/Form/Registration/Confirm.tpl
templates/CRM/Event/Form/Registration/Register.tpl
templates/CRM/Event/Form/Registration/ThankYou.tpl
templates/CRM/common/TrackingFields.tpl [deleted file]
tests/templates/message_templates/contribution_online_receipt_html.tpl
xml/templates/message_templates/contribution_online_receipt_html.tpl
xml/templates/message_templates/contribution_online_receipt_text.tpl
xml/templates/message_templates/event_offline_receipt_html.tpl
xml/templates/message_templates/event_offline_receipt_text.tpl
xml/templates/message_templates/event_online_receipt_html.tpl
xml/templates/message_templates/event_online_receipt_text.tpl
xml/templates/message_templates/membership_online_receipt_html.tpl
xml/templates/message_templates/membership_online_receipt_text.tpl

index 6069f6a1b218a6943f49dc583abbf8ea7d8de0d8..9e952522c6c32ad4e7941e70b8292dca154c446f 100644 (file)
@@ -1,5 +1,3 @@
-{include file="CRM/common/TrackingFields.tpl"}
-
 <h3>{ts 1=$mer_participant->display_name 2=$mer_participant->email}Choose Events For %1 (%2){/ts}</h3>
 
 {foreach from=$slot_fields key=slot_name item=field_name}
index 5b465d625a83cbbe53f483d883ee4bf3b1576a0a..0d7dd4d0336f01ef7f58128ed9296921e8591a3e 100644 (file)
@@ -1,5 +1,3 @@
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-block crm-form-block crm-eventcart-participantsandprices">
 
   {if $contact}
index 60d841abc3faee32dd033c9f24b35067bcb00182..3c7dd1d3e621d8e765c07dc9393e1d8fde86a178 100644 (file)
@@ -1,5 +1,3 @@
-{include file="CRM/common/TrackingFields.tpl"}
-
 <table>
   <thead>
     <tr>
index f149c2247bf181be1b0ea95097755a4ed5813066..d8c21fe709baaa773b210690a644b4049f72c606 100644 (file)
@@ -1,5 +1,3 @@
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-block crm-event-thankyou-form-block">
   <p>
     {ts}This is your receipt of payment made for the following event registration.{/ts}
index 3bd4ebf4fde3b7cd3dd9fdc6a817c5d7226904b3..7675fb3e676da594b5ad8d11ffafcd6dab85292d 100644 (file)
@@ -11,8 +11,6 @@
   {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
 {/if}
 
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-confirm-form-block" data-page-id="{$contributionPageID}" data-page-template="confirm">
   <div class="help">
     <p>{ts}Please verify the information below carefully. Click <strong>Go Back</strong> if you need to make changes.{/ts}
index c847f4ea8ea041e9825f969bce7beab7345d79c4..b7f75bb871dbb3d3bf834ff9c1a498bdf71f670f 100644 (file)
@@ -55,7 +55,6 @@
     {crmButton target="_blank" p="civicrm/admin/contribute/settings" q="reset=1&action=update&id=`$contributionPageID`" fb=1 title="$buttonTitle" icon="fa-wrench"}{ts}Configure{/ts}{/crmButton}
     <div class='clear'></div>
   {/if}
-  {include file="CRM/common/TrackingFields.tpl"}
 
   <div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-main-form-block" data-page-id="{$contributionPageID}" data-page-template="main">
 
index 8502f4f293d9ddbc2dd037be7b09f6a3bf4897b1..d6a296764b12b2d837ba3279302f9110bf0d1166 100644 (file)
@@ -11,8 +11,6 @@
   {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
 {/if}
 
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-thankyou-form-block" data-page-id="{$contributionPageID}" data-page-template="thankyou">
   {if $thankyou_text}
     <div id="thankyou_text" class="crm-section thankyou_text-section">
index 1c00dbfcc6b4f91a687ff4418b8074188908c2a9..3a6523f621866f3a170b3e1447365772b56aeb44 100644 (file)
@@ -14,8 +14,6 @@
     {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
 {/if}
 
-{include file="CRM/common/TrackingFields.tpl"}
-
 {*CRM-4320*}
 {if $statusMessage}
     <div class="messages status no-popup">
index 07987cb835360df1e5e6c075fb376c3def8b6aed..1f10fcc25dd0caac0e7cf2e11e15c2293240bcba 100644 (file)
@@ -11,8 +11,6 @@
     {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
 {/if}
 
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-event-id-{$event.id} crm-block crm-event-confirm-form-block">
     <div class="messages status section continue_message-section"><p>
     {if $isOnWaitlist}
index 660bdd0f662af4bedfee554d6fab57485891610f..769b35276d6c9841ea3bc85c3d31130942b9c065 100644 (file)
@@ -17,8 +17,6 @@
     {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
   {/if}
 
-  {include file="CRM/common/TrackingFields.tpl"}
-
   <div class="crm-event-id-{$event.id} crm-block crm-event-register-form-block">
 
     {* moved to tpl since need to show only for primary participant page *}
index f1c854b0f77ee7b0a41cd3a6d0695ec1a9a2565e..139f2f05e53fc235e0a630d7eb1103e24174d59b 100644 (file)
@@ -11,8 +11,6 @@
     {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
 {/if}
 
-{include file="CRM/common/TrackingFields.tpl"}
-
 <div class="crm-event-id-{$event.id} crm-block crm-event-thankyou-form-block">
     {* Don't use "normal" thank-you message for Waitlist and Approval Required registrations - since it will probably not make sense for those situations. dgg *}
     {if $event.thankyou_text AND (not $isOnWaitlist AND not $isRequireApproval)}
diff --git a/templates/CRM/common/TrackingFields.tpl b/templates/CRM/common/TrackingFields.tpl
deleted file mode 100644 (file)
index fa20918..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{*
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC. All rights reserved.                        |
- |                                                                    |
- | This work is published under the GNU AGPLv3 license with some      |
- | permitted exceptions and without any warranty. For full license    |
- | and copyright information, see https://civicrm.org/licensing       |
- +--------------------------------------------------------------------+
-*}
-{if $trackingFields and ! empty($trackingFields)}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-{/literal}
-    {foreach from=$trackingFields key=trackingFieldName item=dontCare}
-       $("#{$trackingFieldName}").parent().parent().hide( );
-    {/foreach}
-{literal}
-  }
-);
-</script>
-{/literal}
-{/if}
index 019fd67e01b295c28eaef8af5759a13cc27072cf..79ab58d53da84af4931a9fac181db4d2cc1dae56 100644 (file)
     customPost: customValue:::$customValue
  {/foreach}
  {/if}
- {if !empty($trackingFields)}
- {foreach from=$trackingFields item=trackingValue key=trackingName}
-   trackingName:::$trackingName
-   trackingValue:::$trackingValue
- {/foreach}
- {/if}
 
 </body>
 </html>
index 127b8082a74e94830399eb4ac1e03b8979a55a03..33c4b8d9e7974c3436e780aa4ba4e2923dc49eaf 100644 (file)
        </th>
       </tr>
       {foreach from=$customPre item=customValue key=customName}
-       {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}
         <tr>
          <td {$labelStyle}>
           {$customName}
           {$customValue}
          </td>
         </tr>
-       {/if}
       {/foreach}
      {/if}
 
        </th>
       </tr>
       {foreach from=$customPost item=customValue key=customName}
-       {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}
         <tr>
          <td {$labelStyle}>
           {$customName}
           {$customValue}
          </td>
         </tr>
-       {/if}
       {/foreach}
      {/if}
 
index fc41c039d6a40571c0101e74a567898e1ed65c20..59aad06780d3cd9aadf0d3faa7535605c1fc80db 100644 (file)
 
 ===========================================================
 {foreach from=$customPre item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/if}
 
 
 ===========================================================
 {foreach from=$customPost item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/if}
index 08d91e8946b63d4aac61cb6cb3aabd5ef95b66cc..90d7655a56c8944eaee718749b9ad66402535c6b 100644 (file)
        </th>
       </tr>
       {foreach from=$customPre item=value key=customName}
-       {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
         <tr>
          <td {$labelStyle}>
           {$customName}
           {$value}
          </td>
         </tr>
-       {/if}
       {/foreach}
      {/if}
 
        </th>
       </tr>
       {foreach from=$customPost item=value key=customName}
-       {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
         <tr>
          <td {$labelStyle}>
           {$customName}
           {$value}
          </td>
         </tr>
-       {/if}
       {/foreach}
      {/if}
 
index 440432dde761dce980d5f48adbe4f7432671765b..a92de26188448aee07bedb4d1cd29f88d227dcc2 100644 (file)
 ==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
 
 {foreach from=$customPre item=value key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
-{$customName}: {$value}
-{/if}
+  {$customName}: {$value}
 {/foreach}
 {/if}
 
 ==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
 
 {foreach from=$customPost item=value key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
-{$customName}: {$value}
-{/if}
+  {$customName}: {$value}
 {/foreach}
 {/if}
 {if !empty($customProfile)}
index 5ddb938e773528d93d7b50489297e0a46092d356..4dd5ec640aa8dd9ab2978ea6fbf4b6f759d366ba 100644 (file)
 {foreach from=$customPre item=customPr key=i}
    <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
    {foreach from=$customPr item=customValue key=customName}
-   {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
      <tr>
          <td {$labelStyle}>{$customName}</td>
          <td {$valueStyle}>{$customValue}</td>
      </tr>
-   {/if}
    {/foreach}
 {/foreach}
 {/if}
 {foreach from=$customPost item=customPos key=j}
    <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
    {foreach from=$customPos item=customValue key=customName}
-   {if (!empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
      <tr>
          <td {$labelStyle}>{$customName}</td>
          <td {$valueStyle}>{$customValue}</td>
      </tr>
-{/if}
-{/foreach}
+   {/foreach}
 {/foreach}
 {/if}
 
index cc2d528b8aa7190bab80d1b92f14199a9f5cacb2..11479589ea02fef8a45998f08e80ab3af08ad373 100644 (file)
@@ -229,9 +229,7 @@ You were registered by: {$payer.name}
 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
 
 {foreach from=$customPr item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/foreach}
 {/if}
@@ -244,9 +242,7 @@ You were registered by: {$payer.name}
 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
 
 {foreach from=$customPos item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/foreach}
 {/if}
index e995bbc2b0cdae60eef3811f14dbf20e80970080..61dc61912d37dc932ddbbeeb223e34af2b2abc38 100644 (file)
        </th>
       </tr>
       {foreach from=$customPre item=customValue key=customName}
-       {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}
         <tr>
          <td {$labelStyle}>
           {$customName}
           {$customValue}
          </td>
         </tr>
-       {/if}
       {/foreach}
      {/if}
 
index 1d4b977232c700691225173e268ab0f66394c1be..50c8c03663ba4cd4ef47b7c2bd56edc143550cec 100644 (file)
 
 ===========================================================
 {foreach from=$customPre item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/if}
 
 
 ===========================================================
 {foreach from=$customPost item=customValue key=customName}
-{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
  {$customName}: {$customValue}
-{/if}
 {/foreach}
 {/if}