1
0
mirror of https://github.com/kremalicious/krtmn.git synced 2024-12-22 09:13:25 +01:00
krtmn/index.php

86 lines
3.5 KiB
PHP
Raw Normal View History

2016-04-26 23:48:39 +02:00
<?php
2016-04-13 22:50:42 +02:00
// Start YOURLS engine
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
// Change this to match the URL of your public interface. Something like: http://your-own-domain-here.com/index.php
$page = YOURLS_SITE . '/index.php' ;
$items = yourls_api_stats( 'last', 1 );
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
2016-04-26 23:48:39 +02:00
2016-04-13 22:50:42 +02:00
<title>krt.mn</title>
2016-04-29 23:53:42 +02:00
<meta name="description" content="personal url shortener of designer &amp; developer matthias kretschmann">
2016-04-26 23:48:39 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php yourls_site_url(); ?>/user/css/h5bp.css">
<link rel="stylesheet" href="<?php yourls_site_url(); ?>/user/css/krtmn.css">
<link rel="stylesheet" href="<?php yourls_site_url(); ?>/user/css/public.css">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php yourls_site_url(); ?>/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php yourls_site_url(); ?>/apple-touch-icon-72x72-precomposed.png">
<link rel="shortcut icon" href="<?php yourls_site_url(); ?>/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" href="<?php yourls_site_url(); ?>/favicon.ico">
2016-04-13 22:50:42 +02:00
</head>
2016-04-26 23:48:39 +02:00
2016-04-13 22:50:42 +02:00
<body id="public">
2016-04-26 23:48:39 +02:00
<article class="content">
<header>
2016-04-29 23:53:42 +02:00
<svg class="logo" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="60px" height="60px" viewBox="0 0 60 60">
<g>
<line class="st0" x1="29" y1="43" x2="29" y2="59"/>
<line class="st0" x1="29" y1="1" x2="29" y2="5"/>
<line class="st0" x1="29" y1="21" x2="29" y2="27"/>
<polygon class="st0" points="51,21 7,21 7,5 51,5 59,13 "/>
<polygon class="st0" points="9,43 53,43 53,27 9,27 1,35 "/>
</g>
</svg>
<h1><a href="<?php yourls_site_url(); ?>/admin">krt.mn</a></h1>
2016-04-26 23:48:39 +02:00
</header>
<main role="main">
<?php foreach( $items['links'] as $item ) { ?>
2016-04-29 23:53:42 +02:00
<p>
<span class="label">latest short url:</span>
<a href="<?php echo $item['shorturl']; ?>">
<?php echo $item['shorturl']; ?>
<span class="title"><?php echo $item['title']; ?></span>
</a>
</p>
2016-04-26 23:48:39 +02:00
<?php } ?>
</main>
<footer>
2016-04-29 23:53:42 +02:00
<p>personal url shortener of designer &amp; developer <a href="https://matthiaskretschmann.com">matthias kretschmann</a>. you should follow me on <a href="https://twitter.com/kremalicious">twitter</a>.</p>
2016-04-26 23:48:39 +02:00
</footer>
</article>
2016-04-13 22:50:42 +02:00
2016-04-27 17:19:54 +02:00
<!-- Piwik -->
<script>
var _paq = _paq || [];
_paq.push(["setDomains", ["*.krt.mn"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.kremalicious.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 5]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//analytics.kremalicious.com/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
2016-04-13 22:50:42 +02:00
</body>
2016-04-26 23:48:39 +02:00
</html>