Removing short php tags
Dieser Commit ist enthalten in:
Ursprung
1aabcfbd90
Commit
d88302026b
@ -66,13 +66,6 @@ What about some code **in** a list? That's insane, right?
|
|||||||
|
|
||||||
Some people seem to like definition lists
|
Some people seem to like definition lists
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Lower cost</dt>
|
|
||||||
<dd>The new version of this product costs significantly less than the previous one!</dd>
|
|
||||||
<dt>Easier to use</dt>
|
|
||||||
<dd>We've changed the product so that it's much easier to use!</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
I am a robot
|
I am a robot
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
116
index.php
116
index.php
@ -1,4 +1,4 @@
|
|||||||
<?
|
<?php
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Daux.io
|
Daux.io
|
||||||
@ -83,15 +83,15 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?=$options['title']; ?></title>
|
<title><?php echo $options['title']; ?></title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="description" content="<?=$options['tagline'];?>" />
|
<meta name="description" content="<?php echo $options['tagline'];?>" />
|
||||||
<meta name="author" content="<?=$options['title']; ?>">
|
<meta name="author" content="<?php echo $options['title']; ?>">
|
||||||
<? if ($options['colors']) { ?>
|
<?php if ($options['colors']) { ?>
|
||||||
<link rel="icon" href="/img/favicon.png" type="image/x-icon">
|
<link rel="icon" href="/img/favicon.png" type="image/x-icon">
|
||||||
<? } else { ?>
|
<?php } else { ?>
|
||||||
<link rel="icon" href="/img/favicon-<?=$options['theme'];?>.png" type="image/x-icon">
|
<link rel="icon" href="/img/favicon-<?php echo $options['theme'];?>.png" type="image/x-icon">
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
<!-- Mobile -->
|
<!-- Mobile -->
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@ -100,17 +100,17 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<!-- LESS -->
|
<!-- LESS -->
|
||||||
<? if ($options['colors']) { ?>
|
<?php if ($options['colors']) { ?>
|
||||||
<style type="text/less">
|
<style type="text/less">
|
||||||
<? foreach($options['colors'] as $k => $v) { ?>
|
<?php foreach($options['colors'] as $k => $v) { ?>
|
||||||
@<?=$k;?>: <?=$v;?>;
|
@<?php echo $k;?>: <?php echo $v;?>;
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
@import "/less/import/daux-base.less";
|
@import "/less/import/daux-base.less";
|
||||||
</style>
|
</style>
|
||||||
<script src="/js/less.min.js"></script>
|
<script src="/js/less.min.js"></script>
|
||||||
<? } else { ?>
|
<?php } else { ?>
|
||||||
<link rel="stylesheet" href="/css/daux-<?=$options['theme'];?>.css">
|
<link rel="stylesheet" href="/css/daux-<?php echo $options['theme'];?>.css">
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<!-- hightlight.js -->
|
<!-- hightlight.js -->
|
||||||
<script src="/js/highlight.min.js"></script>
|
<script src="/js/highlight.min.js"></script>
|
||||||
@ -124,12 +124,12 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<? if ($homepage) { ?>
|
<?php if ($homepage) { ?>
|
||||||
<!-- Hompage -->
|
<!-- Hompage -->
|
||||||
<div class="navbar navbar-fixed-top">
|
<div class="navbar navbar-fixed-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="brand pull-left" href="<?=$homepage_url;?>"><?=$options['title']; ?></a>
|
<a class="brand pull-left" href="<?php echo $homepage_url;?>"><?php echo $options['title']; ?></a>
|
||||||
<p class="navbar-text pull-right">
|
<p class="navbar-text pull-right">
|
||||||
Generated by <a href="http://daux.io">Daux.io</a>
|
Generated by <a href="http://daux.io">Daux.io</a>
|
||||||
</p>
|
</p>
|
||||||
@ -141,16 +141,16 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="text-center span12">
|
<div class="text-center span12">
|
||||||
<? if ($options['tagline']) { ?>
|
<?php if ($options['tagline']) { ?>
|
||||||
<h2><?=$options['tagline'];?></h2>
|
<h2><?php echo $options['tagline'];?></h2>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span10 offset1">
|
<div class="span10 offset1">
|
||||||
<? if ($options['image']) { ?>
|
<?php if ($options['image']) { ?>
|
||||||
<img class="homepage-image" src="<?=$options['image'];?>" alt="<?=$options['title'];?>">
|
<img class="homepage-image" src="<?php echo $options['image'];?>" alt="<?php echo $options['title'];?>">
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -160,12 +160,12 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="text-center span12">
|
<div class="text-center span12">
|
||||||
<? if ($options['repo']) { ?>
|
<?php if ($options['repo']) { ?>
|
||||||
<a href="https://github.com/<?=$options['repo']; ?>" class="btn btn-secondary btn-hero">
|
<a href="https://github.com/<?php echo $options['repo']; ?>" class="btn btn-secondary btn-hero">
|
||||||
View On GitHub
|
View On GitHub
|
||||||
</a>
|
</a>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
<a href="<?=$docs_url;?>" class="btn btn-primary btn-hero">
|
<a href="<?php echo $docs_url;?>" class="btn btn-primary btn-hero">
|
||||||
View Documentation
|
View Documentation
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -177,7 +177,7 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span10 offset1">
|
<div class="span10 offset1">
|
||||||
<? echo load_page($tree); ?>
|
<?php echo load_page($tree); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -187,38 +187,38 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span5 offset1">
|
<div class="span5 offset1">
|
||||||
<? if (!empty($options['links'])) { ?>
|
<?php if (!empty($options['links'])) { ?>
|
||||||
<ul class="footer-nav">
|
<ul class="footer-nav">
|
||||||
<? foreach($options['links'] as $name => $url) { ?>
|
<?php foreach($options['links'] as $name => $url) { ?>
|
||||||
<li><a href="<?=$url;?>" target="_blank"><?=$name;?></a></li>
|
<li><a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a></li>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span5">
|
<div class="span5">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<? if (!empty($options['twitter'])) { ?>
|
<?php if (!empty($options['twitter'])) { ?>
|
||||||
<? foreach($options['twitter'] as $handle) { ?>
|
<?php foreach($options['twitter'] as $handle) { ?>
|
||||||
<div class="twitter">
|
<div class="twitter">
|
||||||
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?=$handle;?>&show_count=false"></iframe>
|
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?php echo $handle;?>&show_count=false"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<? } else { ?>
|
<?php } else { ?>
|
||||||
<!-- Docs -->
|
<!-- Docs -->
|
||||||
<? if ($options['repo']) { ?>
|
<?php if ($options['repo']) { ?>
|
||||||
<a href="https://github.com/<?=$options['repo']; ?>" target="_blank" id="github-ribbon"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
<a href="https://github.com/<?php echo $options['repo']; ?>" target="_blank" id="github-ribbon"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
<div class="container-fluid fluid-height wrapper">
|
<div class="container-fluid fluid-height wrapper">
|
||||||
<div class="navbar navbar-fixed-top">
|
<div class="navbar navbar-fixed-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<a class="brand pull-left" href="<?=$homepage_url;?>"><?=$options['title']; ?></a>
|
<a class="brand pull-left" href="<?php echo $homepage_url;?>"><?php echo $options['title']; ?></a>
|
||||||
<p class="navbar-text pull-right">
|
<p class="navbar-text pull-right">
|
||||||
Generated by <a href="http://daux.io">Daux.io</a>
|
Generated by <a href="http://daux.io">Daux.io</a>
|
||||||
</p>
|
</p>
|
||||||
@ -237,47 +237,47 @@ if ($homepage && $homepage_url !== '/') {
|
|||||||
</div>
|
</div>
|
||||||
<div id="sub-nav-collapse" class="collapse in">
|
<div id="sub-nav-collapse" class="collapse in">
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<? echo build_nav($tree); ?>
|
<?php echo build_nav($tree); ?>
|
||||||
|
|
||||||
<? if (!empty($options['links']) || !empty($options['twitter'])) { ?>
|
<?php if (!empty($options['links']) || !empty($options['twitter'])) { ?>
|
||||||
<div class="well well-sidebar">
|
<div class="well well-sidebar">
|
||||||
<!-- Links -->
|
<!-- Links -->
|
||||||
<? foreach($options['links'] as $name => $url) { ?>
|
<?php foreach($options['links'] as $name => $url) { ?>
|
||||||
<a href="<?=$url;?>" target="_blank"><?=$name;?></a><br>
|
<a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a><br>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
<!-- Twitter -->
|
<!-- Twitter -->
|
||||||
<? foreach($options['twitter'] as $handle) { ?>
|
<?php foreach($options['twitter'] as $handle) { ?>
|
||||||
<div class="twitter">
|
<div class="twitter">
|
||||||
<hr/>
|
<hr/>
|
||||||
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?=$handle;?>&show_count=false"></iframe>
|
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?php echo $handle;?>&show_count=false"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-column <?=($options['float']?'float-view':''); ?> content-area span9">
|
<div class="right-column <?php echo ($options['float']?'float-view':''); ?> content-area span9">
|
||||||
<div class="content-page">
|
<div class="content-page">
|
||||||
<article>
|
<article>
|
||||||
<? echo load_page($tree); ?>
|
<?php echo load_page($tree); ?>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<? if ($options['google_analytics']) { ?>
|
<?php if ($options['google_analytics']) { ?>
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
ga('create', '<?=$options['google_analytics'];?>', '<?=$_SERVER['HTTP_HOST'];?>');
|
ga('create', '<?php echo $options['google_analytics'];?>', '<?php echo $_SERVER['HTTP_HOST'];?>');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,4 +1,4 @@
|
|||||||
<?
|
<?php
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren