protected function login_check() { $email = Input::post('email'); $password = Input::post('password'); if (Auth::login($email, $password)) { Response::redirect(URI::base() . '/home'); return; } else { $this->login_error(); } }
<?php $count = 0; foreach ($related_arts as $key => $art) { if (++$count > 4) { break; } ?> <div> <div class="img-top portfolio sanpham-related custom-backround" style="display: inline-block; background-image: url('<?php echo URI::base() . 'assets/img/art/' . $art['thumb']; ?> ')"> <a href="<?php echo URI::base() . $cat->slug . '/' . $art['slug'] . ".html"; ?> " class="b-link-stripe" target="_blank"> <div class="sanpham-hover-content"> <div class="box-middle" style="height: 50%; width: 100%; position: absolute; bottom: 0;"> <p class='section-subheading you-text inner_boxx' style="padding:0 15px; margin-bottom: 0px;"><?php echo Input::cut_strings(Security::strip_tags(htmlspecialchars_decode($art['desc'])), 20); ?> </p> </div> </div> </a> </div> </div>
<li><a href="<?php URI::base(); ?> /login">ログイン</a></li> <?php } else { ?> <li><a href="<?php URI::base(); ?> /logout">ログアウト</a></li> <?php } ?> <li><a href="<?php URI::base(); ?> /regist">ユーザー登録</a></li> </ul> </div> </div> </header> <div id="main_contents"> <?php echo $content; ?> </div> <footer id="footer"> <div class="inner"> <p>@2015 ReviewBooks</p> </div>
<?php foreach ($right_cats as $item) { ?> <?php if ($rght == 1) { ?> <div class="col-md-6 col-sm-6 col-6-mobile portfolio-item"> <?php } ?> <!--col right row 1--> <div class="row"> <div class="col-md-12 col-sm-12 portfolio-item custom-padding custom-margin wow animated flipInY custom-backround" style="height: 233px; background-image: url('<?php echo URI::base() . 'assets/img/cat/' . $item['bg']; ?> ')"> <a href="<?php echo Uri::base() . 'news/' . $item['slug'] . '.html'; ?> " class="portfolio-link cat-modal" data-toggle="modal" style="width: 100%; height: 100%;"> <div class="portfolio-hover"> <div class="portfolio-hover-content"> <div class="row inner_boxx news-title" style="padding-left: 55px; padding-right: 50px;"> <div class="col-lg-12 text-center"> <?php echo htmlspecialchars_decode($item['name']); ?> </div> </div>
public function root($pathonly = false, $path = null) { $root['prefix'] = URI::toString(array('scheme', 'host', 'port')); $root['path'] = URI::base(true); if (isset($path)) { $root['path'] = $path; } return $pathonly === false ? $root['prefix'] . $root['path'] . '/' : $root['path']; }
" ><?php echo __('menu.you'); ?> </h4> </div> </div> <?php if (!is_null($right_cat)) { ?> <div class="you-box-col col-md-6 col-sm-6 col-6-mobile portfolio-item"> <!--col left row 1--> <div class="row"> <div class="col-md-12 col-sm-12 portfolio-item custom-margin wow animated zoomIn custom-backround" style="padding:0px; height: 400px; background-image: url('<?php echo URI::base() . 'assets/img/cat/' . $right_cat['bg']; ?> ')"> <a href="<?php echo Uri::base() . 'you/' . $right_cat['slug'] . '.html'; ?> " class="portfolio-link cat-modal" data-toggle="modal" style="width: 100%; height: 100%;"> <div class="portfolio-hover"> <div class="portfolio-hover-content"> <div class="row inner_boxx you-title"> <div class="col-lg-12 text-center"> <?php echo htmlspecialchars_decode($right_cat['name']); ?> </div> </div>
</div> <div id="portfoliolist" class="col-md-12 not-padding-left-col not-padding-right-col box-middle" style="text-align: center; padding-bottom: 10px;"> <div> <?php foreach ($childs as $child) { ?> <div class="amthuc-cat-3col" style="display: inline-block;"> <a href="<?php echo Uri::base() . $cat->slug . '/' . $child->slug . '.html'; ?> "> <img src="<?php echo URI::base() . 'assets/img/cat/' . $child->bg; ?> " /> <div class="background_content_hover" style="border-radius: 48%;"> <div class="box-middle" style="height: 100%; width: 100%; position: absolute; bottom: 0;"> <?php echo htmlspecialchars_decode($child->name); ?> </div> </div> </a> </div> <?php
?> </div> </a> <p class='news-text-short_desc'><?php echo Input::cut_strings(Security::strip_tags(htmlspecialchars_decode($art['desc'])), 40); ?> </p> </div> <a href='<?php echo URI::base() . $cat->slug . '/' . $art['slug'] . '.html'; ?> ' class='portfolio-link art-modal' data-toggle='modal'> <div class='col-md-5 custom-backround cat-news-img' style="height: 205px; background-image: url('<?php echo URI::base() . 'assets/img/art/' . $art['thumb']; ?> ')"> </div> </a> </div> <!--hien thi dong phan cach--> <?php if (++$current_show_count != $news_count) { ?> <div class='col-md-12 news-boder-bottom-each-row cat-list-line' style="width: 96.3%; margin-left: 15px;"></div> <?php } ?>
<?php echo Asset::render('css'); ?> <script>var base_url = '<?php echo Uri::base(); ?> ';</script> <link href='<?php echo URI::base() . 'assets/'; ?> css/addition_fonts.css?family=ClearSans' rel='stylesheet' type='text/css'> <link href='<?php echo URI::base() . 'assets/'; ?> css/addition_fonts.css?family=mtcorsva' rel='stylesheet' type='text/css'> </head> <body id="page-top"> <!--menu--> <?php require_once 'menu_detail.php'; ?> <div class="container detail-article-container" style="padding-top: 80px;"> <?php echo isset($content) ? $content : ''; ?>
</td> <td> <?php if ($each_lang == 'vi') { ?> <a class="btn btn-xs btn-info" href="<?php echo URI::base() . "admin/language/edit/{$each_lang}"; ?> ">Sửa</a> <?php } else { ?> <a class="btn btn-xs btn-info" href="<?php echo URI::base() . "admin/language/edit/{$each_lang}"; ?> ">Sửa</a> <a class="btn btn-xs btn-danger delete-confirm" href="<?php echo URI::base() . "admin/language/delete/{$each_lang}"; ?> ">Xóa</a> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div>
<div class="img-top portfolio wow animated flipInX" style="<?php echo $count > 10 ? 'display:none;' : 'display: inline-block;'; ?> "> <a href="<?php echo URI::base() . "assets/img/logos/{$each_img->name}"; ?> " class="b-link-stripe b-animate-go swipebox" title="<?php echo !empty($content['info']) ? $content['info'] : '-'; ?> "> <img src="<?php echo URI::base() . "assets/img/logos/{$each_img->name}"; ?> " style="width: 130px; height: 100px;" /> <div class="b-wrapper"> <h2 class="b-animate b-from-left b-delay03 "></h2> </div> </a> </div> <?php } ?> <div class="clear"></div> </div>
public function action_index() { Auth::logout(); Response::redirect(URI::base() . '/home'); return; }