aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-08-01 09:13:43 +1000
committerGitHub <noreply@github.com>2016-08-01 09:13:43 +1000
commit74c68f09e5d7fa28d7345e18e813dc726309ea48 (patch)
treea6e4b55e1eb695242165256808e47bed51a9df78 /include/text.php
parentda9b6690e565452a9a9d69084a07ac48005d7e60 (diff)
parent99afd0a449cde502b32c30d5b6170c6b87b85edc (diff)
downloadvolse-hubzilla-74c68f09e5d7fa28d7345e18e813dc726309ea48.tar.gz
volse-hubzilla-74c68f09e5d7fa28d7345e18e813dc726309ea48.tar.bz2
volse-hubzilla-74c68f09e5d7fa28d7345e18e813dc726309ea48.zip
Merge pull request #469 from anaqreon/website-import
Website import tool
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 1eec2ba0a..d508f8ab3 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2242,6 +2242,34 @@ 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;
+ }
+
+ return replace_macros(get_markup_template('website_import_tools.tpl'), array(
+ '$title' => t('Import'),
+ '$import_label' => t('Import website...'),
+ '$import_placeholder' => t('Select folder to import'),
+ '$file_upload_text' => t('Import from a zipped folder:'),
+ '$file_import_text' => t('Import from cloud files:'),
+ '$desc' => t('/cloud/channel/path/to/folder'),
+ '$hint' => t('Enter path to website files'),
+ '$select' => t('Select folder'),
+ ));
+}
+
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {