Adding support for including event id or contribution page id class in the main div...
authorDave Greenberg <dave@civicrm.org>
Sat, 4 May 2013 20:09:29 +0000 (13:09 -0700)
committerDave Greenberg <dave@civicrm.org>
Sat, 4 May 2013 20:09:29 +0000 (13:09 -0700)
CRM/Contribute/Form/Contribution/Confirm.php
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/Confirm.tpl
templates/CRM/Event/Form/Registration/Register.tpl
templates/CRM/Event/Form/Registration/ThankYou.tpl
templates/CRM/Event/Page/EventInfo.tpl

index ca96a812fd02c53f37f3b1508a082237c7df77b8..6e3af38f578a778549499ba6fb00bb3906f6d1be 100644 (file)
@@ -352,6 +352,9 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       $this->_params['campaign_id'] = $this->_params['contribution_campaign_id'];
     }
 
+    // assign contribution page id to the template so we can add css class for it
+    $this->assign('contributionPageID', $this->_id);
+
     $this->set('params', $this->_params);
   }
 
index 1c495358e7dec0d2d240eef0589c670a0dc0cc75..e3fc398db28a98b909a3121d5de2c6a17a6cbfb6 100644 (file)
@@ -29,7 +29,7 @@
 
 {include file="CRM/common/TrackingFields.tpl"}
 
-<div class="crm-block crm-contribution-confirm-form-block">
+<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-confirm-form-block">
     <div id="help">
         <p>{ts}Please verify the information below carefully. Click <strong>Go Back</strong> if you need to make changes.{/ts}
             {if $contributeMode EQ 'notify' and ! $is_pay_later}
index d1fc7fbfd94933c137ba1f82007f15da5d16e38b..565691e49735bb8da2b0f971f485ea1b12e33e97 100644 (file)
@@ -94,7 +94,7 @@
   {include file="CRM/common/TrackingFields.tpl"}
 
   {capture assign='reqMark'}<span class="marker" title="{ts}This field is required.{/ts}">*</span>{/capture}
-  <div class="crm-block crm-contribution-main-form-block">
+  <div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-main-form-block">
   <div id="intro_text" class="crm-section intro_text-section">
     {$intro_text}
   </div>
index 0252de3c4bbbb66de733f2ad1e17039e2b6ada98..f5acd0875526ded90cfefbad9cbfdc473ce3fee0 100644 (file)
@@ -29,7 +29,7 @@
 
 {include file="CRM/common/TrackingFields.tpl"}
 
-<div class="crm-block crm-contribution-thankyou-form-block">
+<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-thankyou-form-block">
     {if $thankyou_text}
         <div id="thankyou_text" class="crm-section thankyou_text-section">
             {$thankyou_text}
index 5b75bd0d1ac0e0f373f2119588bf1edc2bc42571..1c5487256c4424ca97c97ea64b61fdfc3b11bd73 100644 (file)
@@ -29,7 +29,7 @@
 
 {include file="CRM/common/TrackingFields.tpl"}
 
-<div class="crm-block crm-event-confirm-form-block">
+<div class="crm-event-id-{$event.id} crm-block crm-event-confirm-form-block">
     {if $isOnWaitlist}
         <div class="help">
             {ts}Please verify the information below. <span class="bold">Then click 'Continue' to be added to the WAIT LIST for this event</span>. If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
index 8996e277dc6cf0a754f49aa86d7be4275e6f1e96..887b790221f450376ac2fe1e68d65670fc5999fa 100644 (file)
@@ -46,7 +46,7 @@
 {include file="CRM/common/TrackingFields.tpl"}
 
 {capture assign='reqMark'}<span class="marker"  title="{ts}This field is required.{/ts}">*</span>{/capture}
-<div class="crm-block crm-event-register-form-block">
+<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 *}
 {if $requireApprovalMsg || $waitlistMsg}
index 1513c81eff19ed28d4dfdbae6eb0749800549b1e..e1efe5a6dcb955f17ed519ac3df386b481c49fa3 100644 (file)
@@ -29,7 +29,7 @@
 
 {include file="CRM/common/TrackingFields.tpl"}
 
-<div class="crm-block crm-event-thankyou-form-block">
+<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)}
         <div id="intro_text" class="crm-section event_thankyou_text-section">
index 867f4243f409181c2a5f1735d6cabc17901ebdb8..8ce21095a5f87fae44d75ed9f0db0ed85b05d18b 100644 (file)
@@ -82,7 +82,7 @@
   <div class="clear"></div>
 </div>
 {/if}
-<div class="vevent crm-block crm-event-info-form-block">
+<div class="vevent crm-event-id-{$event.id} crm-block crm-event-info-form-block">
   <div class="event-info">
   {if $event.summary}
       <div class="crm-section event_summary-section">