Template: Integrate compression on included .js and .css files, fix custom_css template variable.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/css; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap-colorpicker.min.css';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/css; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap-tempusdominus.min.css';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/css; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap.min.css';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap-colorpicker.min.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap-pwstrength.min.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap-tempusdominus.min.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'bootstrap.min.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/css; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'all.min.css';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'solid.min.js';
|
||||
|
||||
?>
|
||||
@@ -99,6 +99,7 @@
|
||||
switch($subcategory) {
|
||||
//exceptions
|
||||
case 'favicon':
|
||||
case 'custom_css':
|
||||
if ($setting['text'] != '') {
|
||||
$tmp_url = parse_url($setting['text']);
|
||||
$tmp_path = pathinfo($setting['text']);
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'jquery.autosize.input.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'jquery-3.4.1.min.js';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
ob_start('ob_gzhandler');
|
||||
header('Content-type: text/javascript; charset: UTF-8');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
|
||||
|
||||
include_once 'moment-with-locales.min.js';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user