'table']);
$column = 0;
$row = 0;
$headers = [
'',
$plugin->get_lang('variable').' ['.$plugin->get_lang('subkey').']',
$plugin->get_lang('category'),
$plugin->get_lang('accessurl'),
$plugin->get_lang('value'),
'',
];
$attrs = ['center' => 'left'];
$table->addRow($headers, $attrs, 'th');
foreach ($settings as $param) {
if ($param['subkey'] == 'vchamilo') {
continue;
}
$check = '';
$attrs = ['center' => 'left'];
$syncButton = '
';
$data = [
$check,
isset($param['subkey']) && !empty($param['subkey']) ? $param['variable'].' ['.$param['subkey'].']' : $param['variable'],
$param['category'],
$param['access_url'],
''.
'
Master value: '.$param['selected_value'],
$syncButton,
];
$row = $table->addRow($data, $attrs, 'td');
$table->setRowAttributes($row, ['id' => 'row_'.$param['id']], true);
}
$content = '