Example #1
0
 /**
  * Get the online contribution links.
  *
  * @return array
  */
 public function &onlineContributionLinks()
 {
     if (!isset(self::$_onlineContributionLinks)) {
         $urlString = 'civicrm/contribute/transact';
         $urlParams = 'reset=1&id=%%id%%';
         self::$_onlineContributionLinks = array(CRM_Core_Action::RENEW => array('name' => ts('Live Page'), 'title' => ts('Live Page'), 'url' => $urlString, 'qs' => $urlParams, 'fe' => TRUE, 'uniqueName' => 'live_page'), CRM_Core_Action::PREVIEW => array('name' => ts('Test-drive'), 'title' => ts('Test-drive'), 'url' => $urlString, 'qs' => $urlParams . '&action=preview', 'uniqueName' => 'test_drive'));
     }
     return self::$_onlineContributionLinks;
 }