chevereto-free/app/content/system/template.php

58 lines
2.4 KiB
PHP
Raw Normal View History

2016-08-18 20:39:31 +00:00
<?php
/* --------------------------------------------------------------------
Chevereto
http://chevereto.com/
@author Rodolfo Berrios A. <http://rodolfoberrios.com/>
2018-11-28 21:19:46 +00:00
<inbox@rodolfoberrios.com>
2016-08-18 20:39:31 +00:00
Copyright (C) Rodolfo Berrios A. All rights reserved.
2018-11-28 21:19:46 +00:00
2016-08-18 20:39:31 +00:00
BY USING THIS SOFTWARE YOU DECLARE TO ACCEPT THE CHEVERETO EULA
http://chevereto.com/license
--------------------------------------------------------------------- */
2018-11-28 21:19:46 +00:00
if (!defined('access') or !access) {
die('This file cannot be directly accessed.');
} ?>
2016-08-18 20:39:31 +00:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $doctitle; ?></title>
<link rel="stylesheet" href="<?php echo G\absolute_to_url(CHV_PATH_PEAFOWL . 'peafowl.css'); ?>">
2017-11-09 19:02:18 +00:00
<link rel="stylesheet" href="<?php echo G\absolute_to_url(CHV_APP_PATH_CONTENT_SYSTEM . 'style.css'); ?>">
<link rel="shortcut icon" href="<?php echo G\absolute_to_url(CHV_APP_PATH_CONTENT_SYSTEM . 'favicon.png'); ?>">
2016-08-18 20:39:31 +00:00
<script>(function(w,d,u){w.readyQ=[];w.bindReadyQ=[];function p(x,y){if(x=="ready"){w.bindReadyQ.push(y);}else{w.readyQ.push(x);}};var a={ready:p,bind:p};w.$=w.jQuery=function(f){if(f===d||f===u){return a}else{p(f)}}})(window,document);</script>
</head>
<body>
<div class="c20 center-box">
<header id="header">
2017-11-09 19:02:18 +00:00
<div id="logo"><img src="<?php echo G\absolute_to_url(CHV_APP_PATH_CONTENT_SYSTEM . 'chevereto.png'); ?>" alt=""></div>
2016-08-18 20:39:31 +00:00
</header>
<div id="content">
<?php echo $html; ?>
</div>
<div id="powered">&copy; <a href="http://chevereto.com">Chevereto image hosting script</a></div>
</div>
</body>
<script src="<?php echo G\absolute_to_url(CHV_PATH_PEAFOWL . 'js/jquery.min.js'); ?>"></script>
<script src="<?php echo G\absolute_to_url(CHV_PATH_PEAFOWL . 'js/scripts.js'); ?>"></script>
<script>(function($,d){$.each(readyQ,function(i,f){$(f)});$.each(bindReadyQ,function(i,f){$(d).bind("ready",f)})})(jQuery,document)</script>
<script src="<?php echo G\absolute_to_url(CHV_PATH_PEAFOWL . 'peafowl.js'); ?>"></script>
<script>
PF.obj.config.base_url = "<?php echo G\get_base_url(); ?>";
PF.obj.l10n = <?php echo json_encode(CHV\get_translation_table()) ;?>;
</script>
2016-11-06 02:19:47 +00:00
<?php
2018-11-28 21:19:46 +00:00
if (method_exists('CHV\Settings', 'getChevereto')) {
echo '<script>var CHEVERETO = ' . json_encode(CHV\Settings::getChevereto()) . '</script>';
2016-11-06 02:19:47 +00:00
}
?>
2016-08-18 20:39:31 +00:00
<script src="<?php echo CHV\Render\versionize_src(G\Render\get_app_lib_file_url('chevereto.js')); ?>"></script>
</html>