function lingotek_grid_create_progress_bar in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.4 lingotek.bulk_grid.inc \lingotek_grid_create_progress_bar()
- 7.5 lingotek.bulk_grid.inc \lingotek_grid_create_progress_bar()
- 7.6 lingotek.bulk_grid.inc \lingotek_grid_create_progress_bar()
Helper function for creating the HTML for a progress bar
Parameters
int $progress: Percentage complete for the progress bar
Return value
string $html Raw HTML for a progress bar themed in style/lingotek.base.css
1 call to lingotek_grid_create_progress_bar()
- lingotek_download_translations_form in ./
lingotek.page.inc - Download Translations Form.
File
- ./
lingotek.bulk_grid.inc, line 2886
Code
function lingotek_grid_create_progress_bar($progress) {
$style = "width:" . round($progress) . "%;";
$html = '<div class="lingotek-progress"><div class="bar" style="' . $style . '"></div><div class="percent">' . $progress . '%' . '</div></div>';
return $html;
}