Management of social meta data tags, such as Facebook OpenGraph and Twitter Cards
This is the code documentation for the SproutCMS project
Search documentation |
class SocialMetaManagement of social meta data tags, such as Facebook OpenGraph and Twitter Cards
Variables
Functions
protected autoGenerateMissingvoid SocialMeta::autoGenerateMissing ( ); Auto-generate missing OpenGraph and Twitter cards meta data. public getarray SocialMeta::get ( ); This function does not have a description public hasTitlebool SocialMeta::hasTitle ( ); Has a page title been set? public renderstring SocialMeta::render ( ); Render the social metadata public setDescriptionvoid SocialMeta::setDescription ( string $val ); Set a short (up to two sentence) description for this page public setImagevoid SocialMeta::setImage ( string $url ); Set the image for this page - should be unique to this page; not shared across the site public setOpenGraphDatevoid SocialMeta::setOpenGraphDate ( string $property , DateTime|string $value ); Set a custom OpenGraph date property public setOpenGraphIntegervoid SocialMeta::setOpenGraphInteger ( string $property , int $value ); Set a custom OpenGraph integer property public setOpenGraphStringvoid SocialMeta::setOpenGraphString ( string $property , string $value ); Set a custom OpenGraph string property public setPageTypevoid SocialMeta::setPageType ( string $val ); The page type, i.e. "og:type" property Current options are: article, book, profile, website, music.song, music.album, music.playlist, music.radio_station, video.movie, video.episode, video.tv_show, video.other public setTitlevoid SocialMeta::setTitle ( string $val ); Set a title for this page. Don't include the site name public setTwitterCardTypevoid SocialMeta::setTwitterCardType ( string $val ); The twitter card type, i.e. "twitter:card" property Current options are: summary, summary_large_image, app, player Note that the player card requires approval from Twitter prior to use public setUrlvoid SocialMeta::setUrl ( string $url ); Set the canonical url for this page |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|