aboutsummaryrefslogtreecommitdiffstats
path: root/include/apps.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/apps.php')
-rw-r--r--include/apps.php36
1 files changed, 34 insertions, 2 deletions
diff --git a/include/apps.php b/include/apps.php
index bd50b953a..7ac4c7e4b 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -124,7 +124,7 @@ function translate_system_apps(&$arr) {
'Bookmarks' => t('Bookmarks'),
'Address Book' => t('Address Book'),
'Login' => t('Login'),
- 'Channel Select' => t('Channel Select'),
+ 'Channel Manager' => t('Channel Manager'),
'Matrix' => t('Matrix'),
'Settings' => t('Settings'),
'Files' => t('Files'),
@@ -467,4 +467,36 @@ function app_encode($app,$embed = false) {
function papp_encode($papp) {
return chunk_split(base64_encode(json_encode($papp)),72,"\n");
-} \ No newline at end of file
+}
+
+
+/**
+ * install a shared design element (layout, webpage, block, menu, whatever)
+ *
+ */
+
+function element_install($channel,$s) {
+
+ $ret = array('success' => false);
+
+ $s = str_replace(array('[element]','[/element]'),array('',''),$s);
+ $s = base64url_decode($s);
+ if(! $s)
+ return $ret;
+ $x = json_decode($s,true);
+ if(! $x)
+ return $ret;
+
+ $d = array();
+
+
+
+
+
+
+
+
+ $result = item_store($d);
+
+}
+