homepages/homepage.php¶
-
largo_register_default_homepage_layouts
()¶ Registers all of the standard Largo homepage layout classes
-
largo_get_home_layouts
()¶ Uses $largo_homepage_factory to build a list of homepage layouts. This list is used in Theme Options and Customizer to allow the user to choose a Homepage layout.
Returns: array $n array of layouts, with friendly names as keys and arrays with ‘path’ and ‘thumb’ as values
-
largo_get_home_thumb
()¶ Retrieves the thumbnail image for a homepage template, or a default
Returns: string $he public url of the image file to use for the given template’s screenshot
-
largo_render_homepage_layout
()¶ Creates instance of a homepage layout class and renders it.
-
largo_get_active_homepage_layout
()¶ Get the class name of the currently-active homepage layout
-
largo_home_single_top
()¶ Get the post to display at the top of the home single template
-
largo_home_featured_stories
()¶ Returns featured stories for the homepage.
Parameters: - $max. (int) – The maximum number of posts to return.
-
largo_home_series_stories_data
()¶ - Gets 3 stories from the same series as the homepage’s Big Story.
- Gets the term that the 3 series stories belong to.
Returns: array $n array with series_stories and series_stories_term keys. Todo: is $his duplicating the functionality of the Largo_Related class?
-
largo_home_series_stories_term
()¶ Gets the homepage’s Big Story series data and returns only the series stories’ term.
-
largo_home_series_stories
()¶ Gets the homepages Big Story series data and returns only the series stories.
-
largo_home_get_single_featured_and_series
()¶ Returns the various posts for the homepage two and three panel layouts