CRM-12721 Change a=true to a=1. Add fe=1 if missing. Add conditional to display URLs...
authorDave Greenberg <dave@civicrm.org>
Wed, 29 May 2013 18:24:10 +0000 (11:24 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 29 May 2013 18:24:10 +0000 (11:24 -0700)
----------------------------------------
* CRM-12721: Correct crmURL parameters and add option for WordPress link display
  http://issues.civicrm.org/jira/browse/CRM-12721

templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl
templates/CRM/Case/Audit/Report.tpl
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl
templates/CRM/Contribute/Form/ContributionPage/Settings.tpl
templates/CRM/Contribute/Form/ContributionPage/Tab.hlp
templates/CRM/Event/Form/ManageEvent/EventInfo.hlp
templates/CRM/Event/Form/ManageEvent/EventInfo.tpl
templates/CRM/Event/Form/ManageEvent/Tab.hlp
templates/CRM/Event/Form/Registration/ThankYou.tpl
templates/CRM/Event/Page/EventInfo.tpl
templates/CRM/Friend/Form.tpl

index 6173f45a0cdbb347b3970858d245c13d1d226217..d2f5e1bf5587b3b877ffb35af82d13c75d2ea995 100644 (file)
@@ -3,5 +3,5 @@ Default Thank-you page for verified signers.
 You might have a specific page that displays more information that the form.
 Check SocialNetwork.drupal as an example
 *}
-{capture assign=petitionURL}{crmURL p='civicrm/petition/sign' q="sid=`$petition_id`" a=true fe=1 h=1}{/capture}
+{capture assign=petitionURL}{crmURL p='civicrm/petition/sign' q="sid=`$petition_id`" a=1 fe=1 h=1}{/capture}
 {include file="CRM/common/SocialNetwork.tpl" url=$petitionURL title=$petitionTitle pageURL=$petitionURL}
index 1665071bfdecf83bf6747c9b2ca798fb614061cb..69a7234ff91b223fb17b0f7f87b8b30986290130 100644 (file)
@@ -27,7 +27,7 @@
 <head>
   <title>{$pageTitle}</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <base href="{crmURL p="" a=true}" /><!--[if IE]></base><![endif]-->
+  <base href="{crmURL p="" a=1}" /><!--[if IE]></base><![endif]-->
   <style type="text/css" media="screen, print">@import url({$config->userFrameworkResourceURL}css/print.css);</style>
 </head>
 
index f5acd0875526ded90cfefbad9cbfdc473ce3fee0..a04849e3466f705ca48a78f4a3a52e4d78c57fe2 100644 (file)
         </p>
     </div>
     {if $isShare}
-    {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=true fe=1 h=1}{/capture}
+    {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture}
     {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl}
     {/if}
 </div>
index a801e1502b27ddb890810d3347188559e0c0cba1..e818a74e7f1ad7b651cfcec546df8701ceafea53 100644 (file)
     <tr class="crm-contribution-contributionpage-settings-form-block-is_active"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>{$form.is_active.html} {$form.is_active.label}<br />
   {if $contributionPageID}
         <span class="description">
-          {if $config->userSystem->is_drupal EQ '1'}
+          {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
               {ts}When your page is active, you can link people to the page by copying and pasting the following URL:{/ts}<br />
-              <strong>{crmURL a=true p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}</strong>
+              <strong>{crmURL a=1 fe=1 p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}</strong>
           {elseif $config->userFramework EQ 'Joomla'}
               {ts 1=$title}When your page is active, create front-end links to the contribution page using the Menu Manager. Select <strong>Administer CiviCRM &raquo; CiviContribute &raquo; Manage Contribution Pages</strong> and select <strong>%1</strong> for the contribution page.{/ts}
           {/if}
index e032a051fdc8d5f752ced7fee3304081464c9934..2d0509dfe235b612765c73d2dc2cc520d6c9b7ab 100644 (file)
@@ -73,7 +73,7 @@ You can use existing CiviCRM Profiles on your page - OR create profile(s) specif
 <tr>
   <td><a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}" id="idLive">&raquo; {ts}Online Contribution{/ts}</a><br /> ({ts}Live{/ts})</td>
   <td>{ts}Review your customized <strong>LIVE</strong> online contribution page here. Use the following URL in links and buttons on any website to send visitors to this live page{/ts}:<br />
-      <strong>{crmURL a=true p="civicrm/contribute/transact" q="reset=1&id=`$contributionPageID`"}</strong></td>
+      <strong>{crmURL a=1 fe=1 p="civicrm/contribute/transact" q="reset=1&id=`$contributionPageID`"}</strong></td>
 </tr>
 </table>
 {/htxt}
index c7024346dc28a39764457547cba5435b213d0f10..03372481d6e2e8630d49981e4444bd9ac72c72ee 100644 (file)
 {htxt id="id-listing"}
     {ts}To allow users to see a listing of participants, set this field to 'Name' (list names only), 'Name and Email', or 'Name, Status and Register Date'.{/ts}
     {if !$params.isTemplate}
-        {if $config->userSystem->is_drupal}
-            {ts}You will need to set Drupal Access Control permissions to include 'view event participants' for any Roles you want to access this listing.{/ts}
-            {if $params.action eq 2 AND $params.entityId}
-                {ts}Create links to the listing page by copying the following URL, and adding it to the Event Description below and / or as a menu item or links elsewhere on your site:{/ts}<br />
-                <em>{crmURL a=true p='civicrm/event/participant' q="reset=1&id=`$params.entityId`"}</em>
-            {else} {* Creating new event *}
-                {ts}After adding your event, create links to the listing page by copying the URL provided in the 'Participant Listing' section of the Configure Event page.{/ts}
-            {/if}
-        {elseif $config->userFramework EQ 'Joomla'}
-            {ts 1=$params.entityId}Then create front-end links to the Participant Listing page using the Menu Manager. Select <strong>Participant Listing Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
+      {ts}You will need to set Access Control permissions to include 'view event participants' for any Roles you want to access this listing.{/ts}
+      {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
+        {if $params.action eq 2 AND $params.entityId}
+          {ts}Create links to the listing page by copying the following URL, and adding it to the Event Description below and / or as a menu item or links elsewhere on your site:{/ts}<br />
+          <em>{crmURL a=1 p='civicrm/event/participant' q="reset=1&id=`$params.entityId`"}</em>
+        {else} {* Creating new event *}
+          {ts}After adding your event, create links to the listing page by copying the URL provided in the 'Participant Listing' section of the Configure Event page.{/ts}
         {/if}
+      {elseif $config->userFramework EQ 'Joomla'}
+          {ts 1=$params.entityId}Then create front-end links to the Participant Listing page using the Menu Manager. Select <strong>Participant Listing Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
+      {/if}
     {/if}
 {/htxt}
 
index 0bd39cd021cdb6a340df825be9814c5dc2d2e127..802321e8ae0edfc6435adcffb503206066b04fdb 100644 (file)
     <tr>
       <td>&nbsp;</td>
       <td class="description">
-      {if $config->userSystem->is_drupal}
+      {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
         {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br />
-        <strong>{crmURL a=true p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong>
+        <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong>
       {elseif $config->userFramework EQ 'Joomla'}
         {ts 1=$eventID}When this Event is active, create front-end links to the Event Information page using the Menu Manager. Select <strong>Event Info Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
       {/if}
index 5c71677979752c9ece0bb55a084889d22b6276a6..fa7763d98ddc33fea0509efa27bea091724d2b23 100644 (file)
 
     {if $params.isOnlineRegistration}
     <tr>
-        <td><a href="{crmURL p='civicrm/event/register' q="reset=1&action=preview&id=`$params.eventId`" fe=1}" id="idTest-drive">&raquo; {ts}Registration{/ts}</a><br />({ts}test-drive{/ts})</td>
+        <td><a href="{crmURL p='civicrm/event/register' q="reset=1&action=preview&id=`$params.eventId`" a=1 fe=1}" id="idTest-drive">&raquo; {ts}Registration{/ts}</a><br />({ts}test-drive{/ts})</td>
         <td>{ts}Test-drive the entire online registration process - including custom fields, confirmation, thank-you page, and receipting. Fee payment transactions will be directed to your payment processor's test server. <strong>No live financial transactions will be submitted. However, a contact record will be created or updated and participant and contribution records will be saved to the database. Use obvious test contact names so you can review and delete these records as needed.</strong>{/ts}</td>
     </tr>
 
     <tr>
-        <td><a href="{crmURL p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}" id="idLive">&raquo; {ts}Registration{/ts}</a><br />({ts}live{/ts})</td>
+        <td><a href="{crmURL a=1 fe=1 p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}" id="idLive">&raquo; {ts}Registration{/ts}</a><br />({ts}live{/ts})</td>
         <td>{ts}Review your customized <strong>LIVE</strong> online event registration page here. Use the following URL in links and buttons on any website to send visitors to this live page{/ts}:<br />
-            <strong>{crmURL a=true p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}</strong>
+            <strong>{crmURL a=1 fe=1 p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}</strong>
         </td>
     </tr>
     {/if}
index e1efe5a6dcb955f17ed519ac3df386b481c49fa3..b4b31f0cc05d243a64be4a2ca8a3174dc9a7eedf 100644 (file)
         {include file="CRM/Event/Page/iCalLinks.tpl"}
     {/if}
     {if $event.is_share}
-    {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=true fe=1 h=1}{/capture}
+    {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=1 fe=1 h=1}{/capture}
     {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl}
     {/if}
 </div>
index 8ce21095a5f87fae44d75ed9f0db0ed85b05d18b..6bbaaed9ca3a09c1ff81e1d3551d21b5a8be050b 100644 (file)
     {/if}
 
     {if $event.is_share }
-        {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=true fe=1 h=1}{/capture}
+        {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=1 fe=1 h=1}{/capture}
         {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl}
     {/if}
     </div>
index 858f95e77c31f189105b01338982816b82f71f2c..2ab7c7ed808b27c832b46bd4054f3c8ab115419d 100644 (file)
@@ -93,9 +93,9 @@
 
 {if $isShare}
   {if $context EQ 'event'}
-    {capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&amp;reset=1" a=true fe=1 h=1}{/capture}
+    {capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&amp;reset=1" a=1 fe=1 h=1}{/capture}
   {else}
-    {capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&amp;id=`$entityID`" a=true fe=1 h=1}{/capture}
+    {capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&amp;id=`$entityID`" a=1 fe=1 h=1}{/capture}
   {/if}
   {include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL}
 {/if}