$cprogress, 'ccompleted_str' => $ccompleted_str, 'fprogress' => $fprogress, 'fcompleted_str' => $fcompleted_str ]; json_return_and_die($ret); } return replace_macros(get_markup_template('import_progress.tpl'), [ '$chtitle_str' => t('Channel clone status'), '$ctitle_str' => t('Item sync status'), '$ftitle_str' => t('File sync status'), '$cprogress_str' => $cprogress_str, '$cprogress' => intval($cprogress), '$fprogress_str' => $fprogress_str, '$fprogress' => intval($fprogress), '$fcompleted_str' => $fcompleted_str, '$ccompleted_str' => $ccompleted_str, '$chcompleted_str' => t('Channel cloning completed!'), '$resume_str' => t('Resume'), '$resume_helper_str' => t('Only resume if sync stalled!') ]); } }