<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><?php echo PUBWICH_TITLE; ?> </title> <link rel="stylesheet" media="screen" href="<?php echo Pubwich::getThemeUrl(); ?> /style.css" type="text/css"> <?php echo Pubwich::getHeader(); ?> </head> <body> <div id="wrap"> <h1><a href="/" rel="me"><?php echo PUBWICH_TITLE; ?> </a></h1> <hr> <div class="clearfix"> <?php echo Pubwich::getLoop(); ?> </div> <div id="footer">
/** * @param SimpleXMLElement $album * @return string */ public function getImage($album) { $id = $this->buildAlbumId($album); $image = $this->albumdata[$id]->album->image[1]; return $image == '' ? Pubwich::getThemeUrl() . '/img/cover.png' : $image; }