Reducing the amount of PHP if's.
This commit is contained in:
36
header.php
36
header.php
@@ -23,25 +23,6 @@ require_once('public/recaptchalib.php');
|
|||||||
<title><?php echo ISQ::$general['name']; ?></title> <!-- Site title defined in theme settings -->
|
<title><?php echo ISQ::$general['name']; ?></title> <!-- Site title defined in theme settings -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
||||||
<?php if (!empty(ISQ::$general['clipboard'])) { ?>
|
|
||||||
<style type="text/css">
|
|
||||||
.output label {
|
|
||||||
width: 20%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.output input {
|
|
||||||
width: 60%
|
|
||||||
}
|
|
||||||
|
|
||||||
.output button {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.output button.active {
|
|
||||||
color:#013F6D;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php } ?>
|
|
||||||
<link rel="shortcut icon" href="<?php echo YOURLS_SITE; ?>/images/favicon.gif" /> <!-- Default favicon -->
|
<link rel="shortcut icon" href="<?php echo YOURLS_SITE; ?>/images/favicon.gif" /> <!-- Default favicon -->
|
||||||
<link rel="stylesheet" href="<?php echo YOURLS_SITE; ?>/public/formalize.css" /> <!-- Formalize CSS -->
|
<link rel="stylesheet" href="<?php echo YOURLS_SITE; ?>/public/formalize.css" /> <!-- Formalize CSS -->
|
||||||
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.1.1/basic/jquery.qtip.min.css" /><!-- qTip CSS -->
|
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.1.1/basic/jquery.qtip.min.css" /><!-- qTip CSS -->
|
||||||
@@ -87,23 +68,6 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
|
||||||
.output label {
|
|
||||||
width: 20%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.output input {
|
|
||||||
width: 60%
|
|
||||||
}
|
|
||||||
|
|
||||||
.output button {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.output button.active {
|
|
||||||
color:#013F6D;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
|
|||||||
@@ -207,6 +207,22 @@ input[type="radio"] {
|
|||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.output label {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.output input {
|
||||||
|
width: 60%
|
||||||
|
}
|
||||||
|
|
||||||
|
.output button {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.output button.active {
|
||||||
|
color:#013F6D;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.footer {
|
.footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user