Plugin code for getting subpages in accordion