aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 0b4f039af..ea29babd8 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2250,6 +2250,37 @@ 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('website_import_tools.tpl'), array(
+ '$title' => t('Import'),
+ //'$who' => $who,
+ '$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('/path/to/folder'),
+ '$hint' => t('/path/to/folder'),
+ '$select' => t('Select folder'),
+ ));
+}
+
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {