%%[[if !edit]]%%
%[if %("%id=list_type%" == "csv")% ]%
';
if (isset($data[%id=key_column%]) && isset($data[%id=value_column%])) {
echo "
%id=key_prefix%" . htmlspecialchars($data[%id=key_column%]) . "%id=key_suffix%\n";
echo "%id=value_prefix%" . htmlspecialchars($data[%id=value_column%]) . "%id=value_suffix%\n";
}
echo "\n";
}
}
fclose($f);
}
?>
%[endif]%
%%[[endif]]%%
%%[[if edit]]%%
%[if %("%id=list_type%" == "csv")% ]%
%[if %("%id=optional_link -href%" != "")% ]%%id=optional_link%%[endif]%
Column %id=key_column%
Column %id=value_column%
%id=data_source -href%
%[endif]%
%%[[endif]]%%
%[if %("%id=list_type%" == "html")% ]%
%[if %("%id=optional_link -href%" != "")% ]%%id=optional_link%%[endif]%
%html="Key"%
%html="Value goes here"%
%[endif]%
%[if %("%id=list_type%" == "markdown")% ]%
%[if %("%id=optional_link -href%" != "")% ]%%id=optional_link%%[endif]%
%markdown="Key"%
%markdown="Value goes here"%
%[endif]%
%[if %("%id=list_type%" == "text")% ]%
%[if %("%id=optional_link -href%" != "")% ]%%id=optional_link%%[endif]%
%text="Key"%
%text="Value goes here"%
%[endif]%