SproutCMS

This is the code documentation for the SproutCMS project

class SocialMeta

Management of social meta data tags, such as Facebook OpenGraph and Twitter Cards

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-08-16
**/
class NewClassName extends SocialMeta {
    
    /**
    * Render the social metadata
    **/
    public function render () {
        // Method code goes here
    }
    
    public function get () {
        // Method code goes here
    }
    
    /**
    * Set a title for this page. Don't include the site name
    **/
    public function setTitle (string $val) {
        // Method code goes here
    }
    
    /**
    * Has a page title been set?
    **/
    public function hasTitle () {
        // Method code goes here
    }
    
    /**
    * Set the image for this page - should be unique to this page; not shared across the site
    **/
    public function setImage (string $url) {
        // Method code goes here
    }
    
    /**
    * Set a short (up to two sentence) description for this page
    **/
    public function setDescription (string $val) {
        // Method code goes here
    }
    
    /**
    * Set the canonical url for this page
    **/
    public function setUrl (string $url) {
        // Method code goes here
    }
    
    /**
    * The page type, i.e. &quot;og:type&quot; 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 function setPageType (string $val) {
        // Method code goes here
    }
    
    /**
    * The twitter card type, i.e. &quot;twitter:card&quot; property
    * 
    * Current options are:
    *   summary, summary_large_image, app, player
    * Note that the player card requires approval from Twitter prior to use
    **/
    public function setTwitterCardType (string $val) {
        // Method code goes here
    }
    
    /**
    * Auto-generate missing OpenGraph and Twitter cards meta data.
    **/
    protected function autoGenerateMissing () {
        // Method code goes here
    }
    
    /**
    * Set a custom OpenGraph integer property
    **/
    public function setOpenGraphInteger (string $property, int $value) {
        // Method code goes here
    }
    
    /**
    * Set a custom OpenGraph date property
    **/
    public function setOpenGraphDate (string $property, DateTime|string $value) {
        // Method code goes here
    }
    
    /**
    * Set a custom OpenGraph string property
    **/
    public function setOpenGraphString (string $property, string $value) {
        // Method code goes here
    }
    
}
?>