Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of geocache attributes #2304

Merged
merged 2 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions config/geocache.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

use src\Models\GeoCache\GeoCacheCommons;
use src\Models\GeoCache\CacheAttribute;

$geocache = [];

Expand Down Expand Up @@ -62,3 +63,11 @@
* If the list is empty only custom (user defined) option will be active.
*/
$geocache['reactivationRulesPredefinedOpts'] = [];

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::FEE, CacheAttribute::BOAT, CacheAttribute::CHILDREN
];
21 changes: 20 additions & 1 deletion config/geocache.nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Those are configuration overrides for OCNL node only.
*/

use src\Models\GeoCache\CacheAttribute;
use src\Models\GeoCache\GeoCacheCommons;

$geocache['enabledSizes'][] = GeoCacheCommons::SIZE_NANO;
Expand All @@ -19,4 +20,22 @@
/**
* Minimum number of founds necessary for titled cache
*/
$geocache['titledCacheMinFounds'] = 2;
$geocache['titledCacheMinFounds'] = 2;

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::BOAT, CacheAttribute::CHILDREN, CacheAttribute::HIKING,
CacheAttribute::AVAILABLE247, CacheAttribute::NIGHT, CacheAttribute::TICKS,
CacheAttribute::HUNTING, CacheAttribute::DANGER, CacheAttribute::WHEELCHAIR,
CacheAttribute::PARKING, CacheAttribute::BIKE, CacheAttribute::THORNS,
CacheAttribute::STEALTH, CacheAttribute::FLASHLIGHT, CacheAttribute::TOOLS,
CacheAttribute::BEACON, CacheAttribute::OCONLY, CacheAttribute::LETTERBOX,
CacheAttribute::COMPASS, CacheAttribute::QUICK, CacheAttribute::GEOHOTEL,
CacheAttribute::PEN, CacheAttribute::MAGNETIC, CacheAttribute::MP3,
CacheAttribute::USB, CacheAttribute::BENCHMARK, CacheAttribute::NATURE,
CacheAttribute::HISTORIC, CacheAttribute::SHOVEL, CacheAttribute::WALK,
CacheAttribute::NOTAVAILABLE247
];
18 changes: 18 additions & 0 deletions config/geocache.pl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Those are configuration overrides for OCPL node only.
*/

use src\Models\GeoCache\CacheAttribute;
use src\Models\GeoCache\GeoCacheCommons;

/**
Expand Down Expand Up @@ -43,3 +44,20 @@
'editDesc_reactivRuleOptNoReactivations',
'editDesc_reactivRuleOptAfterContact',
'editDesc_reactivRuleOptReactAllowed'];

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::FEE, CacheAttribute::BOAT, CacheAttribute::CHILDREN,
CacheAttribute::NIGHT, CacheAttribute::DANGER, CacheAttribute::WHEELCHAIR,
CacheAttribute::BIKE, CacheAttribute::FLASHLIGHT, CacheAttribute::TOOLS,
CacheAttribute::BEACON, CacheAttribute::LETTERBOX, CacheAttribute::COMPASS,
CacheAttribute::QUICK, CacheAttribute::GEOHOTEL, CacheAttribute::PEN,
CacheAttribute::MAGNETIC, CacheAttribute::MP3, CacheAttribute::OFFSET,
CacheAttribute::USB, CacheAttribute::BENCHMARK, CacheAttribute::WHERIGO,
CacheAttribute::NATURE, CacheAttribute::MONUMENT, CacheAttribute::SHOVEL,
CacheAttribute::WALK
];

20 changes: 20 additions & 0 deletions config/geocache.ro.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Those are configuration overrides for OCRO node only.
*/

use src\Models\GeoCache\CacheAttribute;
use src\Models\GeoCache\GeoCacheCommons;

$geocache['enabledSizes'][] = GeoCacheCommons::SIZE_NANO;
Expand All @@ -21,3 +22,22 @@
* Hide coordinates for non-logged users
*/
$geocache['coordsHiddenForNonLogged'] = false;

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::FEE, CacheAttribute::BOAT, CacheAttribute::CHILDREN,
CacheAttribute::HIKING, CacheAttribute::AVAILABLE247, CacheAttribute::NIGHT,
CacheAttribute::TICKS, CacheAttribute::HUNTING, CacheAttribute::DANGER,
CacheAttribute::WHEELCHAIR, CacheAttribute::PARKING, CacheAttribute::WATER,
CacheAttribute::BIKE, CacheAttribute::THORNS, CacheAttribute::STEALTH,
CacheAttribute::FLASHLIGHT, CacheAttribute::RIDDLE, CacheAttribute::TOOLS,
CacheAttribute::BEACON, CacheAttribute::OCONLY, CacheAttribute::LETTERBOX,
CacheAttribute::COMPASS, CacheAttribute::QUICK, CacheAttribute::GEOHOTEL,
CacheAttribute::PEN, CacheAttribute::MAGNETIC, CacheAttribute::MP3,
CacheAttribute::OFFSET, CacheAttribute::USB, CacheAttribute::BENCHMARK,
CacheAttribute::WHERIGO, CacheAttribute::NATURE, CacheAttribute::MONUMENT,
CacheAttribute::SHOVEL, CacheAttribute::WALK, CacheAttribute::NOTAVAILABLE247,
];
26 changes: 26 additions & 0 deletions config/geocache.uk.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Those are configuration overrides for OCUK node only.
*/

use src\Models\GeoCache\CacheAttribute;
use src\Models\GeoCache\GeoCacheCommons;

/**
Expand All @@ -24,3 +25,28 @@
* Minimum number of founds necessary for titled cache
*/
$geocache['titledCacheMinFounds'] = 7;

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::FEE, CacheAttribute::RAPPELING, CacheAttribute::BOAT,
CacheAttribute::DIVING, CacheAttribute::CHILDREN, CacheAttribute::HIKING,
CacheAttribute::CLIMBING, CacheAttribute::WADING, CacheAttribute::SWIMMING, CacheAttribute::AVAILABLE247,
CacheAttribute::WINTER, CacheAttribute::POISON, CacheAttribute::ANIMALS,
CacheAttribute::TICKS, CacheAttribute::MINE, CacheAttribute::CLIFF,
CacheAttribute::HUNTING, CacheAttribute::DANGER, CacheAttribute::PARKING,
CacheAttribute::TRANSPORT, CacheAttribute::WATER, CacheAttribute::RESTROOMS,
CacheAttribute::PHONE, CacheAttribute::THORNS, CacheAttribute::FLASHLIGHT,
CacheAttribute::RIDDLE, CacheAttribute::TOOLS, CacheAttribute::NIGHTONLY,
CacheAttribute::DRIVEIN, CacheAttribute::OCONLY, CacheAttribute::LETTERBOX,
CacheAttribute::TRAIN, CacheAttribute::FIRSTAID, CacheAttribute::STEEP,
CacheAttribute::HISTORIC, CacheAttribute::MOVING, CacheAttribute::WEBCAM,
CacheAttribute::INDOOR, CacheAttribute::UNDERWATER, CacheAttribute::NOGPS,
CacheAttribute::OVERNIGHT, CacheAttribute::TIDE, CacheAttribute::PRESERVE,
CacheAttribute::COMPASS, CacheAttribute::CAVE, /*CacheAttribute::AIRCRAFT,*/
CacheAttribute::WIKI, CacheAttribute::MATH, /*CacheAttribute::OTHER,*/
/*CacheAttribute::ASKOWNER,*/ CacheAttribute::HANDICACHING, CacheAttribute::MUNZEE,
CacheAttribute::NOTAVAILABLE247, CacheAttribute::DAY, CacheAttribute::ALLSEASONS
];
20 changes: 20 additions & 0 deletions config/geocache.us.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
* Those are configuration overrides for OCUS node only.
*/

use src\Models\GeoCache\CacheAttribute;
use src\Models\GeoCache\GeoCacheCommons;

$geocache['enabledSizes'][] = GeoCacheCommons::SIZE_NANO;

/**
* List of attributes supported by the node. The order is significant - the same order is used on sites.
* Use CacheAttribute::* notation for more clear definition.
*/
$geocache['supportedAttributes'] = [
CacheAttribute::FEE, CacheAttribute::CHILDREN, CacheAttribute::WINTER,
CacheAttribute::POISON, CacheAttribute::ANIMALS, CacheAttribute::TICKS,
CacheAttribute::DANGER, CacheAttribute::WHEELCHAIR, CacheAttribute::THORNS,
CacheAttribute::STEALTH, CacheAttribute::FLASHLIGHT, CacheAttribute::TRUCK,
CacheAttribute::TOOLS, CacheAttribute::NIGHTONLY, CacheAttribute::BEACON,
/*CacheAttribute::CHALLENGE ???, */ CacheAttribute::OCONLY, CacheAttribute::LETTERBOX,
CacheAttribute::COMPASS, CacheAttribute::QUICK, CacheAttribute::GEOHOTEL,
CacheAttribute::PEN, CacheAttribute::MAGNETIC, CacheAttribute::MP3,
CacheAttribute::OFFSET, CacheAttribute::USB, CacheAttribute::BENCHMARK,
CacheAttribute::NATURE, CacheAttribute::HISTORIC, CacheAttribute::MUNZEE,
CacheAttribute::ADS, /*CacheAttribute::BITCACHE ???*/ /*CacheAttribute::GUESTBOOK??*/
CacheAttribute::NOTAVAILABLE247
];
82 changes: 81 additions & 1 deletion lib/languages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -3136,6 +3136,86 @@
'vote_elListThEnd' => 'End of election',
'vote_optionsToChoose' => 'Options to choose from',


'at_fee' => 'Access or parking fee',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not clear. I suggest rename it to attr_*

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know - this is just a prefix. Shorter is easier to write...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still I myself support @deg-pl - better use attr_* - much more clear and human readable. at_ can easily be confused with references using the english word "at".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple find&replace should do the trick, while it's fresh

'at_rappeling' => 'Climbing gear requried',
'at_boat' => 'Boat required',
'at_diving' => 'Diving equipment required',
'at_children' => 'Suitable for children',
'at_hiking' => 'Long walk or hike',
'at_climbing' => 'Some climbing (no gear needed)',
'at_wading' => 'Swamp or marsh. May require wading',
'at_swimming' => 'Swimming required',
'at_available247' => 'Available 24/7',
'at_night' => 'Recommended at night',
'at_winter' => 'Available during winter',
'at_poison' => 'Poisonous plants',
'at_animals' => 'Dangerous animals',
'at_ticks' => 'Ticks',
'at_mine' => 'Abandoned mines',
'at_cliff' => 'Cliffs / falling rocks hazard',
'at_hunting' => 'Hunting grounds',
'at_danger' => 'Dangerous area',
'at_wheelchair' => 'Wheelchair accessible',
'at_parking' => 'Parking area nearby',
'at_transport' => 'Public transportation',
'at_water' => 'Drinking water nearby',
'at_restrooms' => 'Public restrooms nearby',
'at_phone' => 'Public phone nerby',
'at_bike' => 'Bycicles allowed',
'at_thorn' => 'Thorns',
'at_stealth' => 'Stealth required',
'at_flashlight' => 'Flashlight required',
'at_truck' => 'Truck / RV allowed',
'at_riddle' => 'Puzzle / Mystery',
'at_uv' => 'UV light required',
'at_tools' => 'Special tool / equipment required',
'at_nightonly' => 'Night cache - can only be found at night',
'at_drivein' => 'Park and grab',
'at_ruin' => 'Abandoned structure / ruin',
'at_beacon' => 'Wireless beacon / Garmin Chirp™',
'at_tree' => 'Tree climbing required',
'at_oconly' => 'Only loggable at Opencaching',
'at_letterbox' => 'Letterbox',
'at_train' => 'Active railway nearby',
'at_firstaid' => 'First aid available',
'at_steep' => 'Hilly area',
'at_poi' => 'Point of interest',
'at_moving' => 'Moving target',
'at_webcam' => 'Webcam',
'at_indoor' => 'Wihin enclosed rooms (caves, buildings etc.)',
'at_underwater' => 'Under water',
'at_nogps' => 'No GPS required',
'at_overnight' => 'Overnight stay necessary',
'at_tide' => 'Not available during high tide',
'at_preserve' => 'Nature preserve / Breeding season',
'at_compass' => 'Compass required',
'at_cave' => 'Cave equipment required',
'at_wiki' => 'Internet research required',
'at_math' => 'Mathematical or logical problem',
'at_quick' => 'Quick and easy cache',
'at_geohotel' => 'GeoHotel for trackables',
'at_pen' => 'Bring your own pen',
'at_magnetic' => 'Attached using magnet(s)',
'at_mp3' => 'Information in MP3 file',
'at_offset' => 'Container placed at an offset from given coordinates',
'at_usb' => 'Dead Drop USB container',
'at_benchmark' => 'Benchmark - geodetic point',
'at_wherigo' => 'Wherigo cartridge to play',
'at_nature' => 'Hidden in natural surroundings',
'at_monument' => 'Monument or historic site',
'at_shovel' => 'Shovel required',
'at_walk' => 'Access only by walk',
'at_handicaching' => 'Rated on Handicaching.com',
'at_munzee' => 'Contains a Munzee',
'at_ads' => 'Contains advertising',
'at_military' => 'Military training area, some access restrictions - check before visit',
'at_monitoring' => 'Caution, area under video surveillance',
'at_trackables' => 'Suitable to hold trackables',
'at_historic' => 'Officially designated historical monument',
'at_nodogs' => 'Dogs not allowed',
'at_notAvailable247' => 'Only available at specified time',
'at_day' => 'NOT recommended at night',
'at_notinwinter' => 'NOT available during winter',
'at_allseasons' => 'Available all seasons',

);
3 changes: 3 additions & 0 deletions public/images/cacheAttributes/nl/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

The icons of attributes base on free icons from http://icons.mysitemyway.com/

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_beacon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_benchmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_bike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_boat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_children.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_compass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_danger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_geohotel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_hiking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_historic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_hunting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_letterbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_magnetic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_mp3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_nature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_nogps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_oconly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_offset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_parking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cacheAttributes/nl/at_pen.png
Binary file added public/images/cacheAttributes/nl/at_quick.png
Binary file added public/images/cacheAttributes/nl/at_shovel.png
Binary file added public/images/cacheAttributes/nl/at_stealth.png
Binary file added public/images/cacheAttributes/nl/at_thorns.png
Binary file added public/images/cacheAttributes/nl/at_ticks.png
Binary file added public/images/cacheAttributes/nl/at_tools.png
Binary file added public/images/cacheAttributes/nl/at_usb.png
Binary file added public/images/cacheAttributes/nl/at_walk.png
Binary file added public/images/cacheAttributes/nl/at_wigo.png
Binary file added public/images/cacheAttributes/nl/at_winter.png
3 changes: 3 additions & 0 deletions public/images/cacheAttributes/pl/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

The icons of attributes base on free icons from http://icons.mysitemyway.com/

Binary file added public/images/cacheAttributes/pl/at_beacon.png
Binary file added public/images/cacheAttributes/pl/at_benchmark.png
Binary file added public/images/cacheAttributes/pl/at_bike.png
Binary file added public/images/cacheAttributes/pl/at_boat.png
Binary file added public/images/cacheAttributes/pl/at_children.png
Binary file added public/images/cacheAttributes/pl/at_compass.png
Binary file added public/images/cacheAttributes/pl/at_danger.png
Binary file added public/images/cacheAttributes/pl/at_fee.png
Binary file added public/images/cacheAttributes/pl/at_geohotel.png
Binary file added public/images/cacheAttributes/pl/at_letterbox.png
Binary file added public/images/cacheAttributes/pl/at_magnetic.png
Binary file added public/images/cacheAttributes/pl/at_monument.png
Binary file added public/images/cacheAttributes/pl/at_mp3.png
Binary file added public/images/cacheAttributes/pl/at_nature.png
Binary file added public/images/cacheAttributes/pl/at_night.png
Binary file added public/images/cacheAttributes/pl/at_nogps.png
Binary file added public/images/cacheAttributes/pl/at_offset.png
Binary file added public/images/cacheAttributes/pl/at_password.png
Binary file added public/images/cacheAttributes/pl/at_pen.png
Binary file added public/images/cacheAttributes/pl/at_quick.png
Binary file added public/images/cacheAttributes/pl/at_shovel.png
Binary file added public/images/cacheAttributes/pl/at_tools.png
Binary file added public/images/cacheAttributes/pl/at_usb.png
Binary file added public/images/cacheAttributes/pl/at_walk.png
Binary file added public/images/cacheAttributes/pl/at_wherigo.png
Binary file added public/images/cacheAttributes/pl/at_winter.png
3 changes: 3 additions & 0 deletions public/images/cacheAttributes/ro/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

The icons of attributes base on free icons from http://icons.mysitemyway.com/

Binary file added public/images/cacheAttributes/ro/at_beacon.png
Binary file added public/images/cacheAttributes/ro/at_benchmark.png
Binary file added public/images/cacheAttributes/ro/at_bike.png
Binary file added public/images/cacheAttributes/ro/at_boat.png
Binary file added public/images/cacheAttributes/ro/at_children.png
Binary file added public/images/cacheAttributes/ro/at_compass.png
Binary file added public/images/cacheAttributes/ro/at_danger.png
Binary file added public/images/cacheAttributes/ro/at_fee.png
Binary file added public/images/cacheAttributes/ro/at_geohotel.png
Binary file added public/images/cacheAttributes/ro/at_hiking.png
Binary file added public/images/cacheAttributes/ro/at_hunting.png
Binary file added public/images/cacheAttributes/ro/at_letterbox.png
Binary file added public/images/cacheAttributes/ro/at_magnetic.png
Binary file added public/images/cacheAttributes/ro/at_monument.png
Binary file added public/images/cacheAttributes/ro/at_mp3.png
Binary file added public/images/cacheAttributes/ro/at_nature.png
Binary file added public/images/cacheAttributes/ro/at_night.png
Binary file added public/images/cacheAttributes/ro/at_nogps.png
Binary file added public/images/cacheAttributes/ro/at_oconly.png
Binary file added public/images/cacheAttributes/ro/at_offset.png
Binary file added public/images/cacheAttributes/ro/at_parking.png
Binary file added public/images/cacheAttributes/ro/at_password.png
Binary file added public/images/cacheAttributes/ro/at_pen.png
Binary file added public/images/cacheAttributes/ro/at_quick.png
Binary file added public/images/cacheAttributes/ro/at_riddle.png
Binary file added public/images/cacheAttributes/ro/at_shovel.png
Binary file added public/images/cacheAttributes/ro/at_stealth.png
Binary file added public/images/cacheAttributes/ro/at_thorns.png
Binary file added public/images/cacheAttributes/ro/at_ticks.png
Binary file added public/images/cacheAttributes/ro/at_tools.png
Binary file added public/images/cacheAttributes/ro/at_usb.png
Binary file added public/images/cacheAttributes/ro/at_walk.png
Binary file added public/images/cacheAttributes/ro/at_water.png
Binary file added public/images/cacheAttributes/ro/at_wherigo.png
Binary file added public/images/cacheAttributes/ro/at_winter.png
Binary file added public/images/cacheAttributes/test/ocnl.png
Binary file added public/images/cacheAttributes/test/ocpl.png
Binary file added public/images/cacheAttributes/test/ocro.png
Binary file added public/images/cacheAttributes/test/ocuk.png
Binary file added public/images/cacheAttributes/test/ocus.png
Binary file added public/images/cacheAttributes/uk/at_allseasons.png
Binary file added public/images/cacheAttributes/uk/at_animals.png
Binary file added public/images/cacheAttributes/uk/at_available247.png
Binary file added public/images/cacheAttributes/uk/at_bike.png
Binary file added public/images/cacheAttributes/uk/at_boat.png
Binary file added public/images/cacheAttributes/uk/at_cave.png
Binary file added public/images/cacheAttributes/uk/at_children.png
Binary file added public/images/cacheAttributes/uk/at_cliff.png
Binary file added public/images/cacheAttributes/uk/at_climbing.png
Binary file added public/images/cacheAttributes/uk/at_compass.png
Binary file added public/images/cacheAttributes/uk/at_danger.png
Binary file added public/images/cacheAttributes/uk/at_day.png
Binary file added public/images/cacheAttributes/uk/at_diving.png
Binary file added public/images/cacheAttributes/uk/at_drivein.png
Binary file added public/images/cacheAttributes/uk/at_fee.png
Binary file added public/images/cacheAttributes/uk/at_firstaid.png
Binary file added public/images/cacheAttributes/uk/at_flashlight.png
Binary file added public/images/cacheAttributes/uk/at_hiking.png
Binary file added public/images/cacheAttributes/uk/at_historic.png
Binary file added public/images/cacheAttributes/uk/at_hunting.png
Binary file added public/images/cacheAttributes/uk/at_indoor.png
Binary file added public/images/cacheAttributes/uk/at_letterbox.png
Binary file added public/images/cacheAttributes/uk/at_math.png
Binary file added public/images/cacheAttributes/uk/at_mine.png
Binary file added public/images/cacheAttributes/uk/at_moving.png
Binary file added public/images/cacheAttributes/uk/at_munzee.png
Binary file added public/images/cacheAttributes/uk/at_nightonly.png
Binary file added public/images/cacheAttributes/uk/at_nogps.png
Binary file added public/images/cacheAttributes/uk/at_oconly.png
Binary file added public/images/cacheAttributes/uk/at_overnight.png
Binary file added public/images/cacheAttributes/uk/at_parking.png
Binary file added public/images/cacheAttributes/uk/at_password.png
Binary file added public/images/cacheAttributes/uk/at_phone.png
Binary file added public/images/cacheAttributes/uk/at_poison.png
Binary file added public/images/cacheAttributes/uk/at_preserve.png
Binary file added public/images/cacheAttributes/uk/at_rappeling.png
Binary file added public/images/cacheAttributes/uk/at_restrooms.png
Binary file added public/images/cacheAttributes/uk/at_riddle.png
Binary file added public/images/cacheAttributes/uk/at_steep.png
Binary file added public/images/cacheAttributes/uk/at_swimming.png
Binary file added public/images/cacheAttributes/uk/at_thorns.png
Binary file added public/images/cacheAttributes/uk/at_ticks.png
Binary file added public/images/cacheAttributes/uk/at_tide.png
Binary file added public/images/cacheAttributes/uk/at_tools.png
Binary file added public/images/cacheAttributes/uk/at_train.png
Binary file added public/images/cacheAttributes/uk/at_transport.png
Binary file added public/images/cacheAttributes/uk/at_underwater.png
Binary file added public/images/cacheAttributes/uk/at_wading.png
Binary file added public/images/cacheAttributes/uk/at_water.png
Binary file added public/images/cacheAttributes/uk/at_webcam.png
Binary file added public/images/cacheAttributes/uk/at_wiki.png
Binary file added public/images/cacheAttributes/uk/at_winter.png
Binary file added public/images/cacheAttributes/us/at_ads.png
Binary file added public/images/cacheAttributes/us/at_animals.png
Binary file added public/images/cacheAttributes/us/at_beacon.png
Binary file added public/images/cacheAttributes/us/at_benchmark.png
Binary file added public/images/cacheAttributes/us/at_bitcache.png
Binary file added public/images/cacheAttributes/us/at_boat.png
Binary file added public/images/cacheAttributes/us/at_challenge.png
Binary file added public/images/cacheAttributes/us/at_children.png
Binary file added public/images/cacheAttributes/us/at_compass.png
Binary file added public/images/cacheAttributes/us/at_danger.png
Binary file added public/images/cacheAttributes/us/at_fee.png
Binary file added public/images/cacheAttributes/us/at_geohotel.png
Binary file added public/images/cacheAttributes/us/at_historic.png
Binary file added public/images/cacheAttributes/us/at_letterbox.png
Binary file added public/images/cacheAttributes/us/at_magnetic.png
Binary file added public/images/cacheAttributes/us/at_mp3.png
Binary file added public/images/cacheAttributes/us/at_munzee.png
Binary file added public/images/cacheAttributes/us/at_nature.png
Binary file added public/images/cacheAttributes/us/at_nightonly.png
Binary file added public/images/cacheAttributes/us/at_oconly.png
Binary file added public/images/cacheAttributes/us/at_offset.png
Binary file added public/images/cacheAttributes/us/at_password.png
Binary file added public/images/cacheAttributes/us/at_pen.png
Binary file added public/images/cacheAttributes/us/at_poison.png
Binary file added public/images/cacheAttributes/us/at_quick.png
Binary file added public/images/cacheAttributes/us/at_stealth.png
Binary file added public/images/cacheAttributes/us/at_thorns.png
Binary file added public/images/cacheAttributes/us/at_ticks.png
Binary file added public/images/cacheAttributes/us/at_tools.png
Binary file added public/images/cacheAttributes/us/at_truck.png
Binary file added public/images/cacheAttributes/us/at_usb.png
Binary file added public/images/cacheAttributes/us/at_walk.png
Binary file added public/images/cacheAttributes/us/at_winter.png
Binary file added public/images/cacheAttributes/us/at_woods.png
38 changes: 36 additions & 2 deletions src/Controllers/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
use src\Utils\Uri\SimpleRouter;
use src\Models\Coordinates\Coordinates;
use src\Models\Coordinates\Altitude;
use src\Controllers\Cron\Jobs\AltitudeUpdateJob;
use src\Utils\Database\OcDb;
use src\Utils\DateTime\OcDateTime;
use src\Models\Voting\ChoiceOption;
use src\Models\Voting\Election;
use src\Models\User\User;
use src\Controllers\Core\ViewBaseController;

class TestController extends BaseController
class TestController extends ViewBaseController
{
public function __construct(){
parent::__construct();
Expand Down Expand Up @@ -79,6 +79,40 @@ public function newLayout()
$this->view->display();
}

public function attributes()
{
$this->view->setTemplate('test/attributes');
$this->view->loadJQuery();

$attrList = [];
$geocache = [];
$link = [];

include ('../config/geocache.pl.php');
$attrList['pl'] = $geocache['supportedAttributes'];
$link['pl'] = 'https://opencaching.pl/search.php?lang=pl';

include ('../config/geocache.nl.php');
$attrList['nl'] = $geocache['supportedAttributes'];
$link['nl'] = '';

include ('../config/geocache.ro.php');
$attrList['ro'] = $geocache['supportedAttributes'];
$link['ro'] = '';

include ('../config/geocache.uk.php');
$attrList['uk'] = $geocache['supportedAttributes'];
$link['uk'] = '';

include ('../config/geocache.us.php');
$attrList['us'] = $geocache['supportedAttributes'];
$link['us'] = '';

$this->view->setVar('link', $link);
$this->view->setVar('attrList', $attrList);
$this->view->buildView();
}

/**
* This method allow to init test authorization process based on external service
*/
Expand Down
Loading