blankpage.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | $app = JFactory::getApplication(); |
| 15 | $document = JFactory::getDocument(); |
| 16 | |
| 17 | $body = isset($displayData['body']) ? $displayData['body'] : ''; |
| 18 | $title = !empty($displayData['title']) ? $displayData['title'] : $app->get('sitename'); |
| 19 | |
| 20 | if (!headers_sent()) |
| 21 | { |
| 22 | $app->setHeader('Content-Type', 'text/html; charset=' . $document->getCharset()); |
| 23 | $app->sendHeaders(); |
| 24 | } |
| 25 | |
| 26 | ?> |
| 27 | |
| 28 | <!DOCTYPE html> |
| 29 | <html lang="<?php echo $document->getLanguage(); ?>" dir="<?php echo $document->getDirection(); ?>"> |
| 30 | <head> |
| 31 | <meta charset="<?php echo $document->getCharset(); ?>" /> |
| 32 | <meta http-equiv="content-type" content="text/html; charset=<?php echo $document->getCharset(); ?>" /> |
| 33 | <meta name="robots" content="nofollow" /> |
| 34 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" /> |
| 35 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| 36 | <meta name="HandheldFriendly" content="true" /> |
| 37 | <title><?php echo $title; ?></title> |
| 38 | </head> |
| 39 | <body> |
| 40 | <?php echo $body; ?> |
| 41 | </body> |
| 42 | </html> |
| 43 |