ze\content::isPublished()
ze\content::isPublished($statusOrCID, $cType = false, $cVersion = false)
This function allows you to check whether a content item is published.
There are three different ways of calling this function:
If you already know the status of the content item you can pass that string into this function and it will return true or false.
You can pass in the cID and cType of a content item to check if that content item has a published version.
You can pass in the cID, cType and cVersion of a content item to check if that specific version of the content item is the published version.