MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / CustomHTML

Method CustomHTML

pkg/setting/provider.go:290–296  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

288}
289
290func (s *settingProvider) CustomHTML(ctx context.Context) *CustomHTML {
291 return &CustomHTML{
292 HeadlessFooter: s.getString(ctx, "headless_footer_html", ""),
293 HeadlessBody: s.getString(ctx, "headless_bottom_html", ""),
294 SidebarBottom: s.getString(ctx, "sidebar_bottom_html", ""),
295 }
296}
297func (s *settingProvider) CustomNavItems(ctx context.Context) []CustomNavItem {
298 raw := s.getString(ctx, "custom_nav_items", "[]")
299 var items []CustomNavItem

Callers

nothing calls this directly

Calls 1

getStringMethod · 0.95

Tested by

no test coverage detected