/**
docs.ssmods.com
Overview
Namespaces
Classes
Source
Overview
Classes
nomidi\SeoHeroTool
SeoHeroToolDataObject
SMPreviewImage
Introduction
Synopsis
Parameter
Return
Source
nomidi\SeoHeroTool\SeoHeroToolDataObject::
SMPreviewImage
SMPreviewImage takes care for checking if an Image for Facebook and Twitter is defined. First check is if there is one uploaded in the backend, if not it will be checked if there is one set via the configuration.
Signature
public function SMPreviewImage(
[type]
$type )
Parameters
$type
— object
Either FB for Facebook or TW for Twitter, otherwise false will be returned
Returns
[type]
returns either false or the absolute path to the defined image