aboutsummaryrefslogtreecommitdiffstats
path: root/include/apps.php
diff options
context:
space:
mode:
authorPaolo T <tuscanhobbit@users.noreply.github.com>2014-09-02 13:15:59 +0200
committerPaolo T <tuscanhobbit@users.noreply.github.com>2014-09-02 13:15:59 +0200
commitfee5b6bd1599599da2f3b662f04b9651b23fb4e4 (patch)
treee4ab47f657ce1e6ae0aabf6be51bdf169e4b389d /include/apps.php
parenta1f85cda3ec0e6fc1c661ee12b1e7d87b3f242c5 (diff)
parent9dac46ca25b11f80dded42db31e7e062fc7b5142 (diff)
downloadvolse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.tar.gz
volse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.tar.bz2
volse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.zip
Merge pull request #2 from friendica/master
Merge from main project
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);
+
+}
+