/** * Set HTML Page Headers * @param $resource */ private function setPageHeaders($resource) { $this->title = $resource->title; $this->pageTitle = $resource->category->title; $this->description = $resource->title . ' ' . $resource->summary; $this->image = ltrim(uploaded_images_url($resource->image), '/'); $this->addBreadcrumbLink($resource->category->title, $this->URLPrefix . $resource->category->url); $this->addBreadcrumbLink($resource->title, $resource->url); $this->setBanners($resource->image, $resource->title, $resource->summary); }
function image_row_link($thumb, $image = null) { return "<a target='_blank' href='" . uploaded_images_url($image ? $image : $thumb) . "'><img src='" . uploaded_images_url($thumb) . "' style='height: 50px'/></a>"; }