aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-10 06:58:20 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-10 06:58:20 -0400
commita338a97d5bb947f462483de8a9d87dd52fa3b2eb (patch)
tree7919c7ac7345e331b2eb12f3797620c0cc229a8d /include/text.php
parent50e581d88ad4901b13bbf99b2e58a5787b6bccec (diff)
downloadvolse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.tar.gz
volse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.tar.bz2
volse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.zip
First draft of website import tools
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 986e3b56c..57339e16d 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2246,6 +2246,30 @@ function design_tools() {
));
}
+/**
+ * @brief Creates website import tools menu
+ *
+ * @return string
+ */
+function website_import_tools() {
+
+ $channel = App::get_channel();
+ $sys = false;
+
+ if(App::$is_sys && is_site_admin()) {
+ require_once('include/channel.php');
+ $channel = get_sys_channel();
+ $sys = true;
+ }
+
+ $who = $channel['channel_address'];
+
+ return replace_macros(get_markup_template('design_tools.tpl'), array(
+ '$title' => t('Import'),
+ '$who' => $who,
+ ));
+}
+
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {