partial merge of InfinitePaginationPanel sample from module-themes branch