<?php header('Content-Type: text/html; charset=utf-8'); $content = (include 'content.php'); require_once 'vendor/Reminder.php'; $reminder = new \vendor\Reminder(); $activeItem = $reminder->getActiveItem(); ?> <!DOCTYPE html> <html> <head> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link href="css/animate.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.11.3.min.js"></script> <script src="js/app.js"></script> <title>Конспекты</title> </head> <body> <div id="stl_left"> <div id="stl_bg"> <div id="stl_text">Наверх</div> </div> </div> <div id="wrapper"> <?php foreach ($content['proectirovanie']['items'] as $b => $block) { $style = $activeItem[2] === $b ? $reminder->getActiveItemStyle() : $block['style']; ?> <a href="<?php echo $block['href']; ?>
<?php require_once 'vendor/Reminder.php'; //file_put_contents("public/active_item", serialize(array(1=>'linux')));die(); $reminder = new \vendor\Reminder(); var_dump($reminder->setNextItem());