function plug_slides($p, $o) { $rid = randid('tpo'); $p = $p ? $p : 1; $_SESSION['nodslid'] = nod('slides_' . $p); Head::add('csscode', '.book a, .book:hover .philum{color:white;}'); $ret = slides::build($o, $rid); return divd($rid, delbr($ret, "\n")); }
// end else } return $list; } function get_slogans_array() { $slogans = array(); $query = "select * from mdl_slides "; $result = $this->db->query($query); while ($row = $result->fetch(PDO::FETCH_ASSOC)) { $slogans[] = $row['slogan1'] . "<br>" . $row['slogan2'] . "<br>" . $row['slogan3']; } return $slogans; } } $sl = new slides(); $slides = $sl->get_slides(); $banner = $sl->get_active_banner(); $logans = $sl->get_slogans_array(); ?> <div id="page" class="container-fluid"> <header id="myCarousel" class="carousel slide"> <!-- Instruction box --> <div id='instructions'> <div id="centered" style="margin: 0 auto; width:275px;"> <div> <?php echo $banner; ?>