First draft of website import tools

This commit is contained in:
Andrew Manning
2016-07-10 06:58:20 -04:00
parent 50e581d88a
commit a338a97d5b
4 changed files with 46 additions and 0 deletions

View File

@@ -2246,6 +2246,30 @@ 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('design_tools.tpl'), array(
'$title' => t('Import'),
'$who' => $who,
));
}
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {