31453 31498 code cleanup
[com.zyxware.civiwci.git] / CRM / Wci / WidgetCode.php
index e870456b8c7d2e534ec95f54106e402f73253993..a5145ee1ca6f1273d26faade812c8e8bb8cab978 100644 (file)
@@ -1,4 +1,27 @@
 <?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.                           |
+ +--------------------------------------------------------------------+
+*/
+
 require_once '../wci-helper-functions.php';
 
 class CRM_Wci_WidgetCode {
@@ -18,15 +41,15 @@ class CRM_Wci_WidgetCode {
     } else {
       $wcidata = $template->fetch('string:' . html_entity_decode($data['custom_template']));
     }
-    
+
     $code = json_encode($wcidata);
-    
+
     if ($data['progress_bar_id'] != 0) {
       $dynamic_content = TRUE;
     }
     return array('dynamic' => $dynamic_content, 'code' => $code);
   }
-  
+
   static function get_widget_code($embedId, $preview = 0) {
     $code = '';
     if ($preview) {
@@ -46,4 +69,3 @@ class CRM_Wci_WidgetCode {
     return $code;
   }
 }
-