Reducing the amount of PHP if's.

This commit is contained in:
Tom Slominski
2013-12-31 01:00:00 +00:00
parent 94bcee59ec
commit 16d0500cc5
2 changed files with 16 additions and 36 deletions

View File

@@ -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()

View File

@@ -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;