function getPlaceholder($index = null)
    {
        if (!isset($this['meta']['media']['placeholder'])) {
            return null;
        }
        if (!$this->placeholder_pick) {
            $this->placeholder_pick = rand(0, count($this['meta']['media']['placeholder']) - 1);
        }
        return $this['meta']['media']['placeholder'][$index ?: $this->placeholder_pick];
    }
function getPlaceholder($index = null)
    {
        if (!isset($this['meta']['media']['placeholder'])) {
            return null;
        }
        if (!$this->placeholder_pick) {
            $this->placeholder_pick = rand(0, count($this['meta']['media']['placeholder']) - 1);
        }
        return $this['meta']['media']['placeholder'][$index ?: $this->placeholder_pick];
    }
function getPlaceholder ( $ index = null ) { if ( ! isset ( $ this [ 'meta' ] [ 'media' ] [ 'placeholder' ] ) ) { return null ; } if ( ! $ this -> placeholder_pick ) { $ this -> placeholder_pick = rand ( 0 , count ( $ this [ 'meta' ] [ 'media' ] [ 'placeholder' ] ) - 1 ) ; } return $ this [ 'meta' ] [ 'media' ] [ 'placeholder' ] [ $ index ? : $ this -> placeholder_pick ] ; }
Multiple placeholders can be set for a specific content-type, keep in mind that one will be
set for this session. Server-side relating a specific random placeholder as a preferred one is a WIP.
Multiple placeholders can be set for a specific content - type keep in mind that one will be set for this session . Server - side relating a specific random placeholder as a preferred one is a WIP .