<div class="testimonials tk-museo-slab mobile-hide"> <div class="wrap"> <?php $key = 0; $spacer_text = $quotes_text = $testimonials_text = ''; $quotes = get_objects('Testimonial', array('quote', 'image', 'name', 'position')); //Choose 3 random indexes $indexes = range(0, count($quotes) - 1); shuffle($indexes); $indexes = array_slice($indexes, 0, 3); foreach ($indexes as $index) { $quote = $quotes[$index]; $spacer_text .= '<blockquote' . ($key == 1 ? ' class="active"' : '') . '>“' . $quote['quote'] . '”</blockquote>'; $quotes_text .= '<blockquote' . ($key == 1 ? ' class="active"' : '') . '><div>“' . $quote['quote'] . '”</div></blockquote>'; $testimonials_text .= '<div class="testimonial' . ($key == 1 ? ' active' : '') . '">' . '<span><img src="' . $quote['image'] . '" alt="" /></span>' . '<div><h3>' . $quote['name'] . '</h3>' . $quote['position'] . '</div></div>'; $key++; } ?> <div class="spacer"> <div class="wrap"> <?php echo $spacer_text; ?> <div class="clear"></div> </div> </div> <?php echo $quotes_text . $testimonials_text; ?> <div class="clear"></div> </div>
$body->set('suggestdoorid', suggest_doorid()); $body->set('suggestver', suggest_version()); break; case 40: // Add doors check_authorization(); add_doors(); header("Location: index.php?editor=misc&z={$z}&zoneid={$zoneid}&action=35"); exit; case 41: // View objects $body = new Template("templates/misc/objects.tmpl.php"); $body->set('currzone', $z); $body->set('currzoneid', $zoneid); $body->set("world_containers", $world_containers); $objects = get_objects(); if ($objects) { foreach ($objects as $key => $value) { $body->set($key, $value); } } break; case 42: // Edit objects check_authorization(); $body = new Template("templates/misc/objects.edit.tmpl.php"); $body->set('currzone', $z); $body->set('currzoneid', $zoneid); $body->set("world_containers", $world_containers); $objects = objects_info(); if ($objects) {
<div class="experts mobile-hide"> <h2>Meet the Team</h2> <div> <?php $i = $r = 0; $expert_ids = explode(',', preg_replace('/[^\\d,]/', '', $params['ids'])); $experts = get_objects($expert_ids, array('name', 'education', 'expertise', 'fact', 'email', 'video_url', 'face_image'), 'id'); $c = count($experts); $show_threes = $c % 4 > 0; foreach ($expert_ids as $id) { if (!isset($experts[$id])) { continue; } $expert = $experts[$id]; $i++; if ($i == 4 && $r % 2 > 0 && $show_threes || $i == 5) { echo '<div class="clear"></div></div><div' . ($r % 2 == 0 && $show_threes ? ' class="three"' : '') . '>'; $i = 1; $r++; } ?> <div class="expert" popup="exp-bio"> <div> <img src="<?php echo $expert['face_image']; ?> " alt="" /> <b></b> </div> <h4><?php echo $expert['name'];
<?php /* This file displays the disciplines of the learning objects. */ require_once 'repository_fns.php'; session_start(); $discname = $_GET['discname']; $object_array = get_objects($discname); do_html_header_browse(); do_page_content_show_disc($object_array); do_html_footer();