Removing short php tags
Cette révision appartient à :
Parent
1aabcfbd90
révision
d88302026b
@ -66,13 +66,6 @@ What about some code **in** a list? That's insane, right?
|
||||
|
||||
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
|
||||
------------
|
||||
|
||||
|
116
index.php
116
index.php
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/*
|
||||
|
||||
Daux.io
|
||||
@ -83,15 +83,15 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
<html>
|
||||
<head>
|
||||
<title><?=$options['title']; ?></title>
|
||||
<title><?php echo $options['title']; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="description" content="<?=$options['tagline'];?>" />
|
||||
<meta name="author" content="<?=$options['title']; ?>">
|
||||
<? if ($options['colors']) { ?>
|
||||
<meta name="description" content="<?php echo $options['tagline'];?>" />
|
||||
<meta name="author" content="<?php echo $options['title']; ?>">
|
||||
<?php if ($options['colors']) { ?>
|
||||
<link rel="icon" href="/img/favicon.png" type="image/x-icon">
|
||||
<? } else { ?>
|
||||
<link rel="icon" href="/img/favicon-<?=$options['theme'];?>.png" type="image/x-icon">
|
||||
<? } ?>
|
||||
<?php } else { ?>
|
||||
<link rel="icon" href="/img/favicon-<?php echo $options['theme'];?>.png" type="image/x-icon">
|
||||
<?php } ?>
|
||||
<!-- Mobile -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<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'>
|
||||
|
||||
<!-- LESS -->
|
||||
<? if ($options['colors']) { ?>
|
||||
<?php if ($options['colors']) { ?>
|
||||
<style type="text/less">
|
||||
<? foreach($options['colors'] as $k => $v) { ?>
|
||||
@<?=$k;?>: <?=$v;?>;
|
||||
<? } ?>
|
||||
<?php foreach($options['colors'] as $k => $v) { ?>
|
||||
@<?php echo $k;?>: <?php echo $v;?>;
|
||||
<?php } ?>
|
||||
@import "/less/import/daux-base.less";
|
||||
</style>
|
||||
<script src="/js/less.min.js"></script>
|
||||
<? } else { ?>
|
||||
<link rel="stylesheet" href="/css/daux-<?=$options['theme'];?>.css">
|
||||
<? } ?>
|
||||
<?php } else { ?>
|
||||
<link rel="stylesheet" href="/css/daux-<?php echo $options['theme'];?>.css">
|
||||
<?php } ?>
|
||||
|
||||
<!-- hightlight.js -->
|
||||
<script src="/js/highlight.min.js"></script>
|
||||
@ -124,12 +124,12 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<? if ($homepage) { ?>
|
||||
<?php if ($homepage) { ?>
|
||||
<!-- Hompage -->
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<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">
|
||||
Generated by <a href="http://daux.io">Daux.io</a>
|
||||
</p>
|
||||
@ -141,16 +141,16 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="text-center span12">
|
||||
<? if ($options['tagline']) { ?>
|
||||
<h2><?=$options['tagline'];?></h2>
|
||||
<? } ?>
|
||||
<?php if ($options['tagline']) { ?>
|
||||
<h2><?php echo $options['tagline'];?></h2>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span10 offset1">
|
||||
<? if ($options['image']) { ?>
|
||||
<img class="homepage-image" src="<?=$options['image'];?>" alt="<?=$options['title'];?>">
|
||||
<? } ?>
|
||||
<?php if ($options['image']) { ?>
|
||||
<img class="homepage-image" src="<?php echo $options['image'];?>" alt="<?php echo $options['title'];?>">
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -160,12 +160,12 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="text-center span12">
|
||||
<? if ($options['repo']) { ?>
|
||||
<a href="https://github.com/<?=$options['repo']; ?>" class="btn btn-secondary btn-hero">
|
||||
<?php if ($options['repo']) { ?>
|
||||
<a href="https://github.com/<?php echo $options['repo']; ?>" class="btn btn-secondary btn-hero">
|
||||
View On GitHub
|
||||
</a>
|
||||
<? } ?>
|
||||
<a href="<?=$docs_url;?>" class="btn btn-primary btn-hero">
|
||||
<?php } ?>
|
||||
<a href="<?php echo $docs_url;?>" class="btn btn-primary btn-hero">
|
||||
View Documentation
|
||||
</a>
|
||||
</div>
|
||||
@ -177,7 +177,7 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span10 offset1">
|
||||
<? echo load_page($tree); ?>
|
||||
<?php echo load_page($tree); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -187,38 +187,38 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span5 offset1">
|
||||
<? if (!empty($options['links'])) { ?>
|
||||
<?php if (!empty($options['links'])) { ?>
|
||||
<ul class="footer-nav">
|
||||
<? foreach($options['links'] as $name => $url) { ?>
|
||||
<li><a href="<?=$url;?>" target="_blank"><?=$name;?></a></li>
|
||||
<? } ?>
|
||||
<?php foreach($options['links'] as $name => $url) { ?>
|
||||
<li><a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="span5">
|
||||
<div class="pull-right">
|
||||
<? if (!empty($options['twitter'])) { ?>
|
||||
<? foreach($options['twitter'] as $handle) { ?>
|
||||
<?php if (!empty($options['twitter'])) { ?>
|
||||
<?php foreach($options['twitter'] as $handle) { ?>
|
||||
<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>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<!-- Docs -->
|
||||
<? 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>
|
||||
<? } ?>
|
||||
<?php if ($options['repo']) { ?>
|
||||
<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="navbar navbar-fixed-top">
|
||||
<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">
|
||||
Generated by <a href="http://daux.io">Daux.io</a>
|
||||
</p>
|
||||
@ -237,47 +237,47 @@ if ($homepage && $homepage_url !== '/') {
|
||||
</div>
|
||||
<div id="sub-nav-collapse" class="collapse in">
|
||||
<!-- 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">
|
||||
<!-- Links -->
|
||||
<? foreach($options['links'] as $name => $url) { ?>
|
||||
<a href="<?=$url;?>" target="_blank"><?=$name;?></a><br>
|
||||
<? } ?>
|
||||
<?php foreach($options['links'] as $name => $url) { ?>
|
||||
<a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a><br>
|
||||
<?php } ?>
|
||||
<!-- Twitter -->
|
||||
<? foreach($options['twitter'] as $handle) { ?>
|
||||
<?php foreach($options['twitter'] as $handle) { ?>
|
||||
<div class="twitter">
|
||||
<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>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</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">
|
||||
<article>
|
||||
<? echo load_page($tree); ?>
|
||||
<?php echo load_page($tree); ?>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<? if ($options['google_analytics']) { ?>
|
||||
<?php if ($options['google_analytics']) { ?>
|
||||
<script>
|
||||
(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),
|
||||
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');
|
||||
|
||||
ga('create', '<?=$options['google_analytics'];?>', '<?=$_SERVER['HTTP_HOST'];?>');
|
||||
ga('create', '<?php echo $options['google_analytics'];?>', '<?php echo $_SERVER['HTTP_HOST'];?>');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</body>
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user