File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ theme_link = "https://github.com/MITLibraries/mitlibraries-theme-omeka"
77author_link = " https://libraries.mit.edu"
88omeka_version_constraint = " ^4.0.0"
99
10+ # Helpers are described in the Omeka documentation at
11+ # https://omeka.org/s/docs/developer/themes/theme_functions/
1012helpers[] = ResourceClasses
1113
14+ # Settings are described in the Omeka documentation at
15+ # https://omeka.org/s/docs/developer/themes/theme_settings/
1216[config]
1317element_groups.branding = " Site branding settings"
1418element_groups.browse = " Site browse settings"
@@ -79,6 +83,8 @@ elements.sites_page.options.element_group = "homepage"
7983elements.sites_page.options.label = " Page slug that displays filterable site list"
8084elements.sites_page.options.info = " Optional. If provided, this is where the filterable list of sites across the network should be displayed."
8185
86+ # Resource page blocks are described in the Omeka documentation at
87+ # https://omeka.org/s/docs/developer/themes/theme_use_resource_page_blocks/
8288resource_page_blocks.items.main[] = " values"
8389resource_page_blocks.items.main[] = " itemSets"
8490resource_page_blocks.items.main[] = " sitePages"
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ class ResourceClasses extends AbstractHelper
77{
88
99 /**
10- * Returns a representation of resource classes in HTML.
10+ * Returns a representation of resource classes in HTML. If this helper
11+ * receives anything other than a resource, with a class, which itself has
12+ * an ID, then it returns an empty string.
1113 *
1214 * @param object $resource The resource to add tags to.
1315 * @return string This is a set of HTML.
You can’t perform that action at this time.
0 commit comments