31453 31498 code cleanup
[com.zyxware.civiwci.git] / wci-helper-functions.php
index c8a307c11322ebe77f05cd7361a7dead4bd293c2..8dc4b0f7f0b6eded50d0fbc4b135b324c9baebb2 100644 (file)
@@ -1,30 +1,52 @@
 <?php
+/*
+ +--------------------------------------------------------------------+
+ | CiviCRM Widget Creation Interface (WCI) Version 1.0                |
+ +--------------------------------------------------------------------+
+ | Copyright Zyxware Technologies (c) 2014                            |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM WCI.                                |
+ |                                                                    |
+ | CiviCRM WCI is free software; you can copy, modify, and distribute |
+ | it under the terms of the GNU Affero General Public License        |
+ | Version 3, 19 November 2007.                                       |
+ |                                                                    |
+ | CiviCRM WCI is distributed in the hope that it will be useful,     |
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of     |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License along with this program; if not, contact Zyxware           |
+ | Technologies at info[AT]zyxware[DOT]com.                           |
+ +--------------------------------------------------------------------+
+*/
 
   function getContributionPageOptions() {
     $options = array(
       0 => ts('- select -'),
     );
-    
+
     $result = civicrm_api3('contribution_page', 'get');
     foreach ($result['values'] as $contribution_page) {
       $options[$contribution_page['id']] = $contribution_page['title'];
     }
-    
+
     return $options;
   }
-  
+
   function getExtensionRootPath() {
     return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__);
   }
-  
+
   function getWciWidgetControllerPath() {
     $widget_controller_path = getExtensionRootPath() . '/extern/embed.php';
-    
+
     return $widget_controller_path;
   }
-  
+
   function getWciWidgetTemplatePath() {
     $widget_tpl_path = __DIR__ . '/templates/CRM/Wci/Page';
-    
+
     return $widget_tpl_path;
   }