<?php
// DISPLAY WALKS FOR ONE OR MORE GROUPS USING RECOMMENDED DISPLAY METHOD
// OVERRIDE FORMATS AND TABS
// CODE OVERRIDES VALUES WITH THEIR DEFAULT SETTINGS
$options = new RJsonwalksFeedoptions('RB02');
$feed=new RJsonwalksFeed($options);
$display= new RJsonwalksStdDisplay(); // code to display the walks in a particular format
// OVERRIDE TAB ORDER
$tabOrder= [ 'Map', 'Table', 'List', 'Grades', 'Calendar','Contacts'];
$display->setTabOrder($tabOrder);
// OVERRIDE FORMAT of GRADES TAB
$gradeformat= ['{gradeimg}', '{dowddmm}', '{,title}', '{,distance}', '{,contactname}'];
$display->setCustomGradesFormat($gradeformat);
// OVERRIDE FORMAT of TABLE TAB
$tableFormat= [["title"=> "Date","items"=> ["{dowddmm}"]],
["title"=> "Meet","items"=> ["{meet}","{,meetGR}","{,meetPC}"]],
["title"=> "Start","items"=> ["{start}","{,startGR}","{,startPC}"]],
["title"=> "Title","items"=> ["{title}"]],
["title"=> "Difficulty","items"=> ["{difficulty}"]],
["title"=> "Contact","items"=> ["{contact}"]]
];
$display->setCustomTableFormat( $tableFormat);
// OVERRIDE FORMAT of LIST TAB
$listformat= ["{dowddmm}","{,title}","{,meet}","{,start}","{","{{,difficulty}","{,contactname}","{,telephone}","{,telephone2}"];
$display->setCustomListFormat($listformat);
// OVERRIDE FORMAT of CALENDAR TAB
$calendarformat= ['{title}', '{,distance}', ',', ' ', '{meetTime}', '{< or >startTime}'];
$display->setCustomCalendarFormat($calendarformat);
$feed->Display($display); // display walks information
?>
