CRM-14515 add display of the link for the PCP itself.
authorDave Greenberg <dave@civicrm.org>
Fri, 2 May 2014 01:02:33 +0000 (18:02 -0700)
committerDave Greenberg <dave@civicrm.org>
Fri, 2 May 2014 01:02:33 +0000 (18:02 -0700)
----------------------------------------
* CRM-14515:
  https://issues.civicrm.org/jira/browse/CRM-14515

CRM/PCP/BAO/PCP.php
CRM/PCP/Page/PCPInfo.php
templates/CRM/PCP/Page/PCPInfo.tpl

index 126b84495d12e8c00d17f3e4365e497dbc0adfa2..4e8b910bd2626df82d6051d6716094bb3e15027a 100644 (file)
@@ -305,6 +305,12 @@ WHERE pcp.id = %1 AND cc.contribution_status_id =1 AND cc.is_test = 0";
           'qs' => 'eid=%%pcpId%%&blockId=%%pcpBlock%%&reset=1&pcomponent=pcp&component=%%pageComponent%%',
           'title' => ts('Tell Friends'),
         ),
+        CRM_Core_Action::VIEW => array(
+          'name' => ts('URL for this Page'),
+          'url' => 'civicrm/pcp/info',
+          'qs' => 'reset=1&id=%%pcpId%%&component=%%pageComponent%%',
+          'title' => ts('URL for this Page'),
+        ),
         CRM_Core_Action::BROWSE => array(
           'name' => ts('Update Contact Information'),
           'url' => 'civicrm/pcp/info',
index 56a5287d5921f8a7b62c050dbba6f3528c9fd1b3..4bc4a082744669cb6a1a917094990152b5e21f54 100644 (file)
@@ -161,6 +161,7 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page {
       $hints = array(
         CRM_Core_Action::UPDATE => ts('Change the content and appearance of your page'),
         CRM_Core_Action::DETACH => ts('Send emails inviting your friends to support your campaign!'),
+        CRM_Core_Action::VIEW =>   ts('Copy this link to share directly with your network!'),
         CRM_Core_Action::BROWSE => ts('Update your personal contact information'),
         CRM_Core_Action::DISABLE => ts('De-activate the page (you can re-activate it later)'),
         CRM_Core_Action::ENABLE => ts('Activate the page (you can de-activate it later)'),
index f81bc10c82d2205b6e230f0a26492d88e31b8a0e..386fc61f4938d1f160b55aa6193b4942eaff31ff 100644 (file)
@@ -29,7 +29,6 @@
   <div class="icon inform-icon"></div>
   <p><strong>{ts}Personal Campaign Preview{/ts}</strong> - {ts}This is a preview of your Personal Campaign Page in support of{/ts} <a href="{$parentURL}"><strong>{$pageName}</strong></a>.</p>
         {ts}The current status of your page is{/ts}: <strong {if $pcp.status_id NEQ 2}class=disabled {/if}>{$owner.status}</strong>.
-        {ts}The URL for this page is: <strong>{$contributeURL}</strong>{/ts}
         {if $pcp.status_id NEQ 2}<br /><span class="description">{ts}You will receive an email notification when your page is Approved and you can begin promoting your campaign.{/ts}</span>{/if}
         {if $pcp.page_type EQ 'event'}
             {if $owner.registration_start_date}<br />{ts}People can register for this event starting on {/ts} <strong>{$owner.registration_start_date|truncate:10:''|crmDate}</strong>{if $owner.registration_end_date} {ts}until{/ts} <strong>{$owner.registration_end_date|truncate:10:''|crmDate}</strong>{/if}.{/if}