XpresS7

NamelessMC - /module/pages/pravidla.php

Nov 3rd, 2018
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. <?php
  2.  
  3.  $can_view = 1; // this is becouse I wants always show this to player.
  4.  
  5. if(!isset($can_view)){
  6.     require(ROOT_PATH . '/404.php');
  7.     die();
  8. }
  9.  
  10. // Always define page name
  11. define('PAGE', "pravidla");
  12. ?>
  13. <!DOCTYPE html>
  14. <html<?php if(defined('HTML_CLASS')) echo ' class="' . HTML_CLASS . '"'; ?> lang="<?php echo (defined('HTML_LANG') ? HTML_LANG : 'en'); ?>">
  15. <head>
  16.     <!-- Standard Meta -->
  17.     <meta charset="<?php echo (defined('LANG_CHARSET') ? LANG_CHARSET : 'utf-8'); ?>">
  18.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  19.     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  20.  
  21.     <!-- Site Properties -->
  22.     <?php
  23.     $title = "Pravidla";
  24.     require(ROOT_PATH . '/core/templates/header.php');
  25.     ?>
  26.     <link rel="stylesheet" href="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/ckeditor/plugins/spoiler/css/spoiler.css">
  27.     <link rel="stylesheet" href="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/emoji/css/emojione.min.css"/>
  28.     <link rel="stylesheet" href="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/emoji/css/emojione.sprites.css"/>
  29.     <link rel="stylesheet" href="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/emojionearea/css/emojionearea.min.css"/>
  30. </head>
  31. <body>
  32. <?php
  33. require(ROOT_PATH . '/core/templates/navbar.php');
  34. require(ROOT_PATH . '/core/templates/footer.php');
  35.  
  36. $smarty->assign(array(
  37.     'CONTENT' => "Content";
  38. ));
  39.  
  40.  
  41.  
  42. // Display template
  43. $smarty->display(ROOT_PATH . '/custom/templates/' . TEMPLATE . '/pravidla.tpl');
  44.  
  45. require(ROOT_PATH . '/core/templates/scripts.php');
  46. ?>
  47. <script src="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/emoji/js/emojione.min.js"></script>
  48. <script src="<?php if(defined('CONFIG_PATH')) echo CONFIG_PATH . '/'; else echo '/'; ?>core/assets/plugins/ckeditor/plugins/spoiler/js/spoiler.js"></script>
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment