function birthday_comment() { ?> <div class="mdl-card mdl-shadow--4dp mdl-cell mdl-cell--12-col"> <style> .demo-blog--blogpost .demo-blog__posts > .mdl-card .mdl-card__media { /*background-image: url('images/road_big.jpg');*/ height: 100px; } </style> <div class="mdl-card__media mdl-color-text--grey-50"> <h3><?php echo "Wish your Friend"; ?> </h3> </div> <div class="mdl-color-text--primary-contrast mdl-card__supporting-text comments"> <?php // including the birthday_wish forum if (islogin()) { $comment = $_POST['comment']; if (isset($comment) && !empty($comment)) { $comobj = new birthday(); $comobj->get_comment($uid, $comment); $comobj->check_exist(); $comobj->add_comment(); } } include 'core.php'; include 'birthday_wish.form.php'; // including the comments include 'birthday_wish.func.php'; include 'dbms/dbms_imp.php'; $today = date('Y-m-d'); $resultc = $connection->query("SELECT * FROM `bd_comments` WHERE `date`='{$today}' ORDER BY `bcid` DESC"); if (!$resultc) { echo "Comment loading failed" . mysqli_error($connection) . "<br/> Report it to Developers"; } while ($rows = $resultc->fetch_array()) { $comm = new birthday($rows[0]); birthday_wish($comm); } mysqli_close($connection); ?> </div> </div> <?php }
<div id="img_desc"> <?php if (has_dob() && is_birthday()) { ?> <img src="<?php echo $cdn_url; ?> /img/img_desc_birthday.png" alt="<?php echo birthday_wish(); ?> " /> <?php } else { ?> <img src="<?php echo $cdn_url; ?> /img/img_desc_logo.png" alt="<?php echo head_description(); ?> " /> <?php } ?> </div>
} } } } } } } } } } if (has_dob() && date('m-d', strtotime($dob)) == date('m-d')) { $h1 = birthday_title(); $title = birthday_title(); } $site_name = site_name(); $birthday_wish = birthday_wish(); switch ($p) { case 'bmi': $meta_description = 'Tính chỉ số BMI dựa trên cân nặng và chiều cao của bạn.'; break; case 'lunar': $meta_description = 'Xem ngày tốt xấu, xem ngày cưới, xem ngày khai trương, xem ngày động thổ.'; break; case 'pong': $meta_description = 'Trò chơi bóng bàn 3D hấp dẫn.'; break; default: $meta_description = (can_wish() ? birthday_title() : $title) . (has_dob() ? ' - ' . $chart->render_meta_description() : '') . ' - ' . head_description(); } $head_title = (can_wish() ? birthday_title() : $title) . ' | ' . $site_name; $head_description = can_wish() ? $birthday_wish : $meta_description;