aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2016-08-01 14:07:18 +0200
committerzottel <github@zottel.net>2016-08-01 14:07:18 +0200
commit55eda16b61041cf5d3aa941f3b2b4329246b1028 (patch)
tree175b6395415767523f1046ee42d654efaf1dac8a /include/text.php
parentb5ea20ac863ebdbc4cc0bad6b7ca9876df336e8f (diff)
parent3d0c90cbc5b756c6d54c4d41a136c0a38e67b013 (diff)
downloadvolse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.tar.gz
volse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.tar.bz2
volse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.zip
Merge remote-tracking branch 'upstream/dev' into dev
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) {