Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ryan Dee
UNL_TourMap
Commits
988ab0e8
Commit
988ab0e8
authored
Jun 02, 2014
by
Kevin Abel
Browse files
Add a class the filters out "unofficial" building markers.
Use that class to render the directory endpoint.
parent
6b67e862
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/UNL/TourMap.php
View file @
988ab0e8
...
...
@@ -15,7 +15,7 @@ class UNL_TourMap
'innovation'
=>
'UNL_TourMap_GoogleMap_Innovation'
,
// MARKER LISTS
'directory'
=>
'UNL_TourMap_MarkerList_Buildings'
,
'directory'
=>
'UNL_TourMap_MarkerList_Buildings
_Official
'
,
'buildings'
=>
'UNL_TourMap_MarkerList_Buildings'
,
'citybuildingmarkers'
=>
'UNL_TourMap_MarkerList_Buildings_CityCampus'
,
'eastbuildingmarkers'
=>
'UNL_TourMap_MarkerList_Buildings_EastCampus'
,
...
...
src/UNL/TourMap/MarkerList/Buildings/Official.php
0 → 100644
View file @
988ab0e8
<?php
class
UNL_TourMap_MarkerList_Buildings_Official
extends
UNL_TourMap_MarkerList_Buildings
{
public
$title
=
'Official Buildings'
;
public
function
accept
()
{
if
(
!
parent
::
accept
())
{
return
false
;
}
$info
=
FilterIterator
::
current
();
if
(
!
$info
[
'is_official'
])
{
return
false
;
}
return
true
;
}
}
www/templates/html/UNL/TourMap/MarkerList/Buildings.tpl.php
→
www/templates/html/UNL/TourMap/MarkerList/Buildings
/Official
.tpl.php
View file @
988ab0e8
<section
class=
"wdn-band"
><div
class=
"wdn-inner-wrapper wdn-inner-padding-none"
id=
"pointlist"
>
<h1>
All Buildings
</h1>
<section
class=
"wdn-band"
>
<div
class=
"wdn-inner-wrapper"
id=
"pointlist"
>
<h1
class=
"clear-top wdn-center"
>
All Buildings
</h1>
<p>
This list contains the official list of buildings and abbreviations. The building code/abbreviation is used
in class schedules as well as the
<a
href=
"http://directory.unl.edu/"
>
online directory
</a>
. Click a building name to view
its location on the campus maps.
</p>
<?php
echo
$savvy
->
render
(
$context
,
'UNL/TourMap/MarkerList.tpl.php'
)
?>
</div></section>
</div>
</section>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment