Przeglądaj źródła

Move the menu array to app_menu.php

Mark Crane 10 lat temu
rodzic
commit
44c12d4963
2 zmienionych plików z 21 dodań i 20 usunięć
  1. 1 20
      app_config.php
  2. 20 0
      app_menu.php

+ 1 - 20
app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Contacts";
 		$apps[$x]['uuid'] = "04481e0e-a478-c559-adad-52bd4174574c";
@@ -18,25 +19,6 @@
 		$apps[$x]['description']['pt-pt'] = "Fornece um local para armazenar informações de contato para indivíduos e organizações.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][$y]['title']['en-us'] = "Contacts";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Contactos";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Contacts";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Contactos";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
-		$apps[$x]['menu'][$y]['category'] = "internal";
-		$apps[$x]['menu'][$y]['path'] = "/app/contacts/contacts.php";
-		//$apps[$x]['menu'][$y]['groups'][] = "user";
-		$apps[$x]['menu'][$y]['groups'][] = "admin";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "contact_view";
@@ -612,5 +594,4 @@ $z++;
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the URL description.";
 		$z++;
 
-
 ?>

+ 20 - 0
app_menu.php

@@ -1 +1,21 @@
+<?php
 
+	$apps[$x]['menu'][$y]['title']['en-us'] = "Contacts";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Contactos";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Contacts";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Contactos";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
+	$apps[$x]['menu'][$y]['category'] = "internal";
+	$apps[$x]['menu'][$y]['path'] = "/app/contacts/contacts.php";
+	//$apps[$x]['menu'][$y]['groups'][] = "user";
+	$apps[$x]['menu'][$y]['groups'][] = "admin";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+
+?>