Beta 2 bug fixes. 31243. added agpl license and widget cache feature
[com.zyxware.civiwci.git] / wci.php
diff --git a/wci.php b/wci.php
index 8ad81187d84d4d1384d621c6d4c5b591194106f4..4a8cf2ed908585508e99f2b1276eb39041156ac6 100644 (file)
--- a/wci.php
+++ b/wci.php
@@ -119,7 +119,7 @@ function wci_civicrm_navigationMenu( &$params ) {
   // inserting WCI menu at the place of old help location
   $params[$helpID] = array (
     'attributes' => array (
-    'label' => ts('WCI'),
+    'label' => ts('Widgets and Progress Bars'),
     'name' => 'WCI',
     'url' => null,
     'permission' => 'access CiviReport,access CiviContribute',
@@ -131,53 +131,88 @@ function wci_civicrm_navigationMenu( &$params ) {
     'child' =>  array (
         '1' => array (
         'attributes' => array (
-        'label' => ts('New widget'),
+        'label' => ts('New Widget'),
         'name' => 'new_widget',
         'url' => 'civicrm/wci/widget/add',
         'permission' => 'access CiviReport,access CiviContribute',
         'operator' => 'OR',
         'separator' => 1,
-        'parentID' => navId, 
+        'parentID' => $navId, 
         'navID' => $navId+1,
         'active' => 1)),
         
         '2' => array (
         'attributes' => array (
-        'label' => ts('Manage widget'),
+        'label' => ts('Manage Widget'),
         'name' => 'manage_widget',
         'url' => 'civicrm/wci/widget?reset=1',
         'permission' => 'access CiviReport,access CiviContribute',
         'operator' => 'OR',
         'separator' => 1,
-        'parentID' => navId, 
+        'parentID' => $navId, 
         'navID' => $navId+2,
         'active' => 1)),
         
         '3' => array (
         'attributes' => array (
-        'label' => ts('New Progress bar'),
+        'label' => ts('New Progress Bar'),
         'name' => 'new_progress_bar',
         'url' => 'civicrm/wci/progress-bar/add',
         'permission' => 'access CiviReport,access CiviContribute',
         'operator' => 'OR',
         'separator' => 1,
-        'parentID' => navId, 
+        'parentID' => $navId, 
         'navID' => $navId+3,
         'active' => 1)),
         
         '4' => array (
         'attributes' => array (
-        'label' => ts('Manage Progress bar'),
+        'label' => ts('Manage Progress Bar'),
         'name' => 'manage_progress_bar',
         'url' => 'civicrm/wci/progress-bar?reset=1',
         'permission' => 'access CiviReport,access CiviContribute',
         'operator' => 'OR',
         'separator' => 1,
-        'parentID' => navId, 
+        'parentID' => $navId, 
         'navID' => $navId+4,
-        'active' => 1)),           
+        'active' => 1)),
+        
+        '5' => array (
+        'attributes' => array (
+        'label' => ts('New Embed Code'),
+        'name' => 'new_embed-code',
+        'url' => 'civicrm/wci/embed-code/add',
+        'permission' => 'access CiviReport,access CiviContribute',
+        'operator' => 'OR',
+        'separator' => 1,
+        'parentID' => $navId, 
+        'navID' => $navId+5,
+        'active' => 1)),
+
+        '6' => array (
+        'attributes' => array (
+        'label' => ts('Manage Embed Code'),
+        'name' => 'manage-emebed-code',
+        'url' => 'civicrm/wci/embed-code?reset=1',
+        'permission' => 'access CiviReport,access CiviContribute',
+        'operator' => 'OR',
+        'separator' => 1,
+        'parentID' => $navId, 
+        'navID' => $navId+6,
+        'active' => 1)),
+        
+        '7' => array (
+        'attributes' => array (
+        'label' => ts('Widget Settings'),
+        'name' => 'widget-settings',
+        'url' => 'civicrm/wci/settings?reset=1',
+        'permission' => 'access CiviReport,access CiviContribute',
+        'operator' => 'OR',
+        'separator' => 1,
+        'parentID' => $navId, 
+        'navID' => $navId+7,
+        'active' => 1)),
         ),
   );
 }
 
-