aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-17 18:19:36 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-17 18:19:36 -0400
commitc98b91f5149d53f522a19ec0f69b4d4727d34896 (patch)
treed543272c668d6327d9c917c004f1d0b52a489f60 /include/text.php
parent70d38fe5b3cec680fe689addfac34a47c26273ba (diff)
downloadvolse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.tar.gz
volse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.tar.bz2
volse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.zip
Stash changes for merge with dev
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index a2a6d918b..c8e0b1888 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2294,6 +2294,28 @@ function website_import_tools() {
));
}
+/**
+ * @brief Creates website export tools menu
+ *
+ * @return string
+ */
+function website_export_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_export_tools.tpl'), array(
+ '$title' => t('Export'),
+ '$export_label' => t('Export website...'),
+ ));
+}
+
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {