Пример #1
0
                            $data[$count]['image'] = INFUSIONS . "news/images/" . $row['image'];
                        }
                    }
                }
                break;
            case DB_BLOG:
                if ($row['image'] || $row['cat_image']) {
                    if ($row['cat_image']) {
                        $data[$count]['image'] = INFUSIONS . "blog/blog_cats/" . $row['cat_image'];
                    }
                    if ($row['image']) {
                        $data[$count]['image'] = INFUSIONS . "blog/images/" . $row['image'];
                    }
                }
                break;
            case DB_DOWNLOADS:
                if ($row['image']) {
                    $data[$count]['image'] = INFUSIONS . "downloads/images/" . $row['image'];
                }
                // end switch
        }
        $count++;
    }
    $contents[$table]['data'] = $data;
}
if (!$contents) {
    display_no_item();
} else {
    display_home($contents);
}
require_once THEMES . "templates/footer.php";
Пример #2
0
            $end = $perf['endDate'];
            list($date, $date_year) = extract_date($file, $end);
            // if ($date_year != $current_year) { echo "<h3>" . $date_year . "</h3>"; }
            // $current_year = $date_year;
            // if($display == 'full') {
            home_json_perf($date, $perf);
            //}
            // elseif($display == 'short') {
            // short_json_perf($date, $perf); }
        }
    }
}
if (count($upcoming_json) > 0) {
    echo "<div class='6u 12u\$(2) 12u\$(3)'>";
    echo "<h2><a href='performances/'>Upcoming</a></h2>";
    display_home(array_slice($upcoming_json, 0, 2));
    // show next TWO performances
    echo "</div>";
} else {
    echo "\n\t\t\t<div class='6u 12u\$(2) 12u\$(3)'>\n\t\t\t<!-- <div class='4u 6u(2) 12u\$(3)'> -->\n\t\t\t\t<header>\n\t\t\t\t\t<h2>Featured Work</h2>\n\t\t\t\t</header>\n\t\t\t\t<div class='embed'>\n\t\t\t\t\t<iframe src='http://player.vimeo.com/video/103194193?byline=0&amp;portrait=0&amp;color=B3B3B3' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t";
}
?>
				</div><!-- end row -->
<script>
	$(window).scroll(function() {
	    if ($(document).scrollTop() > 85 && !(skel.isActive('medium')))
	    {
	        $('#logo').addClass("min").addClass("anim");
	        $('#nav').addClass("min").addClass("anim").removeClass("animdown");
	    }
	    else {