Example #1
0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
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;
<?php

require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php';
echo has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? birthday_title() : home_title();
<?php

require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php';
echo (has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? birthday_title() : home_title()) . ' | ' . $site_name;