turned bootstrap template variants into logic

This commit is contained in:
El RIDO
2017-01-08 10:02:07 +01:00
parent 87fad1fb77
commit 67f6c4eb61
9 changed files with 25 additions and 21 deletions

View File

@@ -1,9 +1,8 @@
<?php
use PrivateBin\I18n;
if (!isset($tpl)) $tpl = 'bootstrap';
$isCpct = substr($tpl, 9, 8) === '-compact';
$isDark = substr($tpl, 9, 5) === '-dark';
$isPage = substr($tpl, -5) === '-page';
$isCpct = substr($template, 9, 8) === '-compact';
$isDark = substr($template, 9, 5) === '-dark';
$isPage = substr($template, -5) === '-page';
?><!DOCTYPE html>
<html lang="en">
<head>