Stash changes for merge with dev

This commit is contained in:
Andrew Manning
2016-08-17 18:19:36 -04:00
parent 70d38fe5b3
commit c98b91f514
4 changed files with 52 additions and 0 deletions

View File

@@ -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) {