Exemplo n.º 1
0
function trimTitle2($t)
{
    return substr(trimTitle($t), 0, 28);
}
Exemplo n.º 2
0
} elseif (in_array($artist_id, $change_order)) {
    $artistWorks = selectQuery('select * from art_works where artist = ' . $artist_id . ' ORDER BY availability desc, category, media desc');
} else {
    $artistWorks = selectQuery('select * from art_works where artist = ' . $artist_id . ' ORDER BY availability, media');
}
$thumbsHTML = "";
foreach ($artistWorks as $work) {
    if (setArtWork($work) && !in_array($work["work_id"], $ignoreListArtWorks)) {
        $thumbsHTML .= '<div class="thumbs" itemscope itemtype="http://schema.org/Painting">';
        $thumbsHTML .= '<a href="work/' . $artist_id . '/"> 
            <img src="img/Thumb/' . $work["image"] . '.jpg" alt=' . $work["title"] . '/></a>';
        if (isset($work["title"])) {
            if ($work["availability"] == "Available") {
                $thumbsHTML .= '<p itemprop="name">' . trimTitle($work["title"], 23) . '</p>';
            } else {
                $thumbsHTML .= '<p itemprop="name">' . trimTitle($work["title"], 20) . ' | <i class="fa fa-circle" aria-hidden="true"></i></p>';
            }
        }
        $thumbsHTML .= '</div>';
    }
}
include ROOT_PATH . 'php/includes/header.php';
?>
<section class="body">
   <div class="bodyContainer">
   <div class="nameHolder">
    <?php 
if (in_array($artist_id, $ukranians)) {
    echo '<h1>Ukranian Artists</h1>';
} else {
    echo '<h1 itemprop="creator">' . $title . '</h1>';