This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
host_danube/danube/page/default_page/default_page.php

32 lines
1.6 KiB
PHP

<?php
class default_page implements SYSTEM\PAGE\DefaultPage {
public static function js(){
return \SYSTEM\HTML\html::script( \SYSTEM\CACHE\cache_js::minify(
array( \LIB\lib_jquery::js(),
\LIB\lib_bootstrap::js(),
\LIB\lib_system::js(),
\LIB\lib_flexslider::js(),
new PPAGE('default_page/js/default_page.js')
//new PPAGE('default_page/js/galleria/galleria-1.2.9.min.js')
))).
\SYSTEM\HTML\html::script('https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js').
\SYSTEM\HTML\html::script('https://www.openstreetmap.org/openlayers/OpenStreetMap.js');
}
public static function css(){
return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()->WEBPATH(false)).
\SYSTEM\HTML\html::link(\LIB\lib_flexslider::css()->WEBPATH(false)).
\SYSTEM\HTML\html::link( \SYSTEM\CACHE\cache_css::minify(
array( new PPAGE('default_page/css/default_page.css'))));}
public function html($_escaped_fragment_ = NULL){
$vars = array();
$vars['css'] = self::css();
$vars['js'] = '';
if(!$_escaped_fragment_){
$vars['js'] = self::js();}
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('danube'));
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_page/tpl/danube.tpl'))->SERVERPATH(), $vars);
}
}