diff --git a/client/scripts/custom.js b/client/scripts/custom.js deleted file mode 100644 index c7e2848..0000000 --- a/client/scripts/custom.js +++ /dev/null @@ -1,1382 +0,0 @@ -$(window).on('load',function(){ - $('.menu').css('display','block'); - $('#preloader').addClass('preloader-hide'); -}) - -$(document).ready(function(){ - 'use strict' - - var isPWA = true; //Enables PWA.js which loads manifest & service worker. - var isAJAX = true; //Enables or disable AJAX page transitions and loading. - var isDevelopment = false; // Enables development mode. Clean cache & Stops BG & Highlights from changing defaults. - - function init_template(){ - - //ADD YOUR CUSTOM JAVASCRIPT CODES HERE! - //Do not put inside HTML files. - //The init_template() function will be triggered when pages open. - - - //Generating Dynamic Styles to decrease CSS size and execute faster loading times. - var colorsArray = [ - //colors must be in HEX format. - // use the color scheme as bellow this will automatically generate CSS for - // bg-colorName-dark bg-colorName-light color-colorName-dark color-colorName-light - //["colorName","light_hex","dark_hex","darker_hex_for_gradient"], - ["none","","",""], - ["plum","#6772A4","#6772A4","#3D3949"], - ["violet","#673c58","#673c58","#492D3D"], - ["magenta3","#413a65","#413a65","#2b2741"], - ["red3","#c62f50","#6F1025","#6F1025"], - ["green3","#6eb148","#2d7335","#2d7335"], - ["pumpkin","#E96A57","#C15140","#C15140"], - ["dark3","#535468","#535468","#343341"], - ["red1","#D8334A","#BF263C","#9d0f23"], - ["red2","#ED5565","#DA4453","#a71222"], - ["orange","#FC6E51","#E9573F","#ce3319"], - ["yellow1","#FFCE54","#F6BB42","#e6a00f"], - ["yellow2","#E8CE4D","#E0C341","#dbb50c"], - ["yellow3","#CCA64F","#996A22","#996A22"], - ["green1","#A0D468","#8CC152","#5ba30b"], - ["green2","#2ECC71","#2ABA66","#0da24b"], - ["mint","#48CFAD","#37BC9B","#0fa781"], - ["teal","#A0CECB","#7DB1B1","#158383"], - ["aqua","#4FC1E9","#3BAFDA","#0a8ab9"], - ["sky","#188FB6","#0F5F79","#0F5F79"], - ["blue1","#4FC1E9","#3BAFDA","#0b769d"], - ["blue2","#5D9CEC","#4A89DC","#1a64c6"], - ["magenta1","#AC92EC","#967ADC","#704dc9"], - ["magenta2","#8067B7","#6A50A7","#4e3190"], - ["pink1","#EC87C0","#D770AD","#c73c8e"], - ["pink2","#fa6a8e","#fb3365","#d30e3f"], - ["brown1","#BAA286","#AA8E69","#896b43"], - ["brown2","#8E8271","#7B7163","#584934"], - ["gray1","#F5F7FA","#E6E9ED","#c2c5c9"], - ["gray2","#CCD1D9","#AAB2BD","#88919d"], - ["dark1","#656D78","#434A54","#242b34"], - ["dark2","#3C3B3D","#323133","#1c191f"] - ]; - var socialColorArray = [ - ["facebook","#3b5998"], - ["linkedin","#0077B5"], - ["twitter","#4099ff"], - ["google","#d34836"], - ["whatsapp","#34AF23"], - ["pinterest","#C92228"], - ["sms","#27ae60"], - ["mail","#3498db"], - ["dribbble","#EA4C89"], - ["phone","#27ae60"], - ["skype","#12A5F4"], - ["instagram","#e1306c"] - ]; - - - //Back Button Scroll Stop - if ('scrollRestoration' in history) {history.scrollRestoration = 'manual';} - - //Disable Page Jump on Empty Links. - $('a').on('click', function(){var attrs = $(this).attr('href'); if(attrs === '#'){return false;}}); - - //Adding Background for Gradient - if(!$('.menu-hider').length){$('#page').append(' diff --git a/server/page/menus.php b/server/page/menus.php new file mode 100644 index 0000000..fb062c3 --- /dev/null +++ b/server/page/menus.php @@ -0,0 +1,132 @@ + + + + + + + + + + \ No newline at end of file diff --git a/server/page/wrapper.php b/server/page/wrapper.php index b645b26..b21492a 100644 --- a/server/page/wrapper.php +++ b/server/page/wrapper.php @@ -10,162 +10,27 @@ - + - +
- -
- Regatten.net - '; - else - echo ''; - } ?> - -
- +
-
+
- - - - - - - - + @@ -176,11 +41,14 @@ ?> - + - + + + + \ No newline at end of file diff --git a/server/templates.php b/server/templates.php new file mode 100644 index 0000000..2e82919 --- /dev/null +++ b/server/templates.php @@ -0,0 +1,37 @@ +path = $path; + $this->templates = []; + } + + function load($name, $params = []) { + if (!isset($this->templates[$name])) { + $filename = $this->path . $name . '.html'; + if (file_exists($filename) and is_file($filename)) { + $this->templates[$name] = file_get_contents($filename); + } else { + return "

Template '$name' not found!

"; + } + } + + $template = $this->templates[$name]; + while (($pos = strpos($template, '$')) !== false) { + $pos ++; + $pos2 = strpos($template, ';', $pos); + if ($pos2 === false) return "

Syntax error in template '$name'!

"; + $ph = substr($template, $pos, $pos2 - $pos); + if (!isset($params[$ph])) $params[$ph] = ''; + $template = str_replace('$' . $ph . ';', $params[$ph], $template); + } + return $template; + } + } + +?> \ No newline at end of file diff --git a/server/templates/button.html b/server/templates/button.html new file mode 100644 index 0000000..4753861 --- /dev/null +++ b/server/templates/button.html @@ -0,0 +1,3 @@ + + $0; + \ No newline at end of file diff --git a/server/templates/card.html b/server/templates/card.html new file mode 100644 index 0000000..ba875fe --- /dev/null +++ b/server/templates/card.html @@ -0,0 +1,5 @@ +
+
+ $0; +
+
\ No newline at end of file diff --git a/server/templates/error.html b/server/templates/error.html new file mode 100644 index 0000000..c49f48c --- /dev/null +++ b/server/templates/error.html @@ -0,0 +1,3 @@ + +

$0;

+

$1;

\ No newline at end of file diff --git a/server/templates/table.html b/server/templates/table.html new file mode 100644 index 0000000..eb07be2 --- /dev/null +++ b/server/templates/table.html @@ -0,0 +1,10 @@ +
+ + + $0; + + + $1; + +
+
\ No newline at end of file