khufu.addons.mediaObject module ∞
-
mediaObject
(displayType='div', imagePath='', headlineText='', otherContent=False, nestedMediaObjects=False)[source] ∞ Generate an abstract object style for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
Key Arguments
displayType
– the display style of the media object [ “div” | “li” ]img
– the image to includeheadlineText
– the headline text for the objectotherContent
– other content to be displayed inside the media objectnestedMediaObjects
– nested media objects to be appended
Return
media
– the media object