Last active
October 14, 2015 01:07
-
-
Save tmd45/4283992 to your computer and use it in GitHub Desktop.
はてなハイクブログ - View のソースコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$count = 0; | |
foreach ($articles as $a) | |
{ | |
$count++; | |
?> | |
<section class="hhblog-section"> | |
<div class="page-header"> | |
<h3>#<?php echo $count; ?></h3> | |
</div> | |
<div class="page-main"> | |
<p><?php echo $a["html"]; ?></p> | |
</div> | |
<div class="page-footer"> | |
<i class="icon-pencil"></i> <time datetime="<?php echo $a["created_at"]; ?>" pubdate><?php echo $a["created_at"]; ?></time> | |
<i class="icon-user"></i> <a href="<?php echo $a["user"]["url"]; ?>"><?php echo $a["user"]["id"]; ?></a> | |
<i class="icon-tag"></i> <a href="http://h.hatena.ne.jp/keyword/<?php echo urlencode($a['keyword']); ?>"><?php echo $a["keyword"]; ?></a> | |
<i class="icon-globe"></i> <a href="<?php echo $a["link"]; ?>">link</a> | |
</div> | |
</section> | |
<?php | |
} /* end foreach($articles) */ | |
unset($articles); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$count = 0; | |
foreach ($articles as $a) | |
{ | |
$count++; | |
?> | |
<section class="hhblog-section"> | |
<div class="page-header"> | |
<h3>#<?php echo $count; ?></h3> | |
</div> | |
<div class="page-main"> | |
<p><?php echo $a["html"]; ?></p> | |
</div> | |
<div class="page-footer"> | |
<i class="icon-pencil"></i> <time datetime="<?php echo $a["created_at"]; ?>" pubdate><?php echo $a["created_at"]; ?></time> | |
<i class="icon-user"></i> <a href="<?php echo $a["user"]["url"]; ?>"><?php echo $a["user"]["id"]; ?></a> | |
<i class="icon-tag"></i> <a>public</a> | |
<i class="icon-globe"></i> <a href="<?php echo $a["link"]; ?>">link</a> | |
</div> | |
</section> | |
<?php | |
} /* end foreach($articles) */ | |
unset($articles); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hatena-Haiku Blog</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<?php echo Asset::css('bootstrap.min.css'); ?> | |
<?php echo Asset::css('style.css'); ?> | |
<?php echo Asset::css('bootstrap-responsive.min.css'); ?> | |
<!-- HTML5 shim, for IE6-8 support of HTML5 elements --> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<!-- Fav and touch icons --> | |
<link rel="shortcut icon" href="<?php echo Asset::find_file('favicon.ico', 'img', 'ico/'); ?>"> | |
<!-- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo Asset::find_file('apple-touch-icon-144-precomposed.png', 'img', 'ico/'); ?>"> --> | |
<!-- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo Asset::find_file('apple-touch-icon-114-precomposed.png', 'img', 'ico/'); ?>"> --> | |
<!-- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo Asset::find_file('apple-touch-icon-72-precomposed.png', 'img', 'ico/'); ?>"> --> | |
<!-- <link rel="apple-touch-icon-precomposed" href="<?php echo Asset::find_file('apple-touch-icon-57-precomposed.png', 'img', 'ico/'); ?>"> --> | |
</head> | |
<body> | |
<!-- NAVBAR --> | |
<div class="navbar navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<a class="brand" href="<?php echo Uri::base(false); ?>">Hatena-Haiku Blog</a> | |
<div class="nav-collapse collapse"> | |
<ul class="nav"> | |
<li><a href="/hhblog">Home</a></li> | |
<li class="dropdown"> | |
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> | |
API <i class="icon-chevron-down icon-white"></i> | |
</a> | |
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> | |
<li class="disabled"><a>Entry</a></li> | |
<li class="dropdown-submenu"> | |
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> | |
Timeline API | |
</a> | |
<ul class="dropdown-menu" role="submenu" aria-labelledby="dLabel"> | |
<li <? if($active_api == 1) { echo 'class="active"'; } ?>><a tabindex="-1" href="public_timeline">Public Timeline</a><li> | |
<li <? if($active_api == 2) { echo 'class="active"'; } ?>><a tabindex="-1" href="keyword_timeline">Keyword Timeline</a><li> | |
<li class="disabled"><a tabindex="-1">User Timeline</a><li> | |
<li class="disabled"><a tabindex="-1">Friends Timeline</a><li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<form class="navbar-search pull-left"> | |
<input type="text" class="search-query" placeholder="Keyword(can't use)" /> | |
</form> | |
</div><!-- /nav-collapse collapse --> | |
</div><!-- /container --> | |
</div><!-- /navbar-inner --> | |
</div><!-- /navbar --> | |
<!-- /NAVBAR --> | |
<header> | |
<div class="container"> | |
<h1><?php echo $title; ?></h1> | |
<p><?php echo $description; ?></p> | |
</div> | |
</header> | |
<ul class="breadcrumb"> | |
<li><a href="#"><i class="icon-home"></i> Home</a> <span class="divider">/</span></li> | |
<li><a href="#">API</a> <span class="divider">/</span></li> | |
<li><a href="#">Timeline API</a> <span class="divider">/</span></li> | |
<?php | |
if($active_api == 1) | |
{ | |
?> | |
<li class="active">Public Timeline</li> | |
<?php | |
} | |
if($active_api == 2) | |
{ | |
?> | |
<li class="active">Keyword Timeline</li> | |
<?php | |
} | |
?> | |
</ul> | |
<div class="container main-container"> | |
<div class="row"> | |
<!-- CONTENT --> | |
<div class="span9"> | |
<?php echo $article; ?> | |
</div><!-- /span9 --> | |
<!-- /CONTENT --> | |
<!-- SIDENAV --> | |
<div class="span3 hhblog-sidebar"> | |
<div class="hhblog-sidebar-module"> | |
<h5>プロフィール</h5> | |
<div class="description"> | |
<p><img src="./assets/img/glyphicons-halflings-white.png" class="img-polaroid" style="width:200px;height:200px;" /></p> | |
<p>id:tmd45</p> | |
</div> | |
</div> | |
<div class="hhblog-sidebar-module"> | |
<h5>リンク</h5> | |
<div class="description"> | |
<ul> | |
<li><a href="http://developer.hatena.ne.jp/ja/documents/haiku/apis/rest">Hatena Haiku REST API</a></li> | |
<li><a href="https://github.com/tmd45">github</a></li> | |
<li><a href="http://tech.tmd45.in/">Hatena Blog</a></li> | |
</ul> | |
</div> | |
</div> | |
</div><!-- /span3 hhblog-sidebar --> | |
<!-- /SIDENAV --> | |
</div> <!-- /row --> | |
</div> <!-- /container --> | |
<footer> | |
<div class="container"> | |
<div class="row"> | |
<div class="span2 pull-right"> | |
<p><a href="#">Back to Top</a></p> | |
</div> | |
<div class="span10"> | |
<p>powered by <a href="http://developer.hatena.ne.jp/">Hatena API</a>, | |
<a href="http://fuelphp.com/">FuelPHP</a>, | |
and <a href="http://twitter.github.com/bootstrap/">Bootstrap</a> with | |
<a href="http://bootswatch.com/">Bootswatch</a>:United.</p> | |
</div> | |
</div> | |
</div> | |
</footer> | |
<!-- Le javascript | |
================================================== --> | |
<!-- Placed at the end of the document so the pages load faster --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<?php echo Asset::js('bootstrap.min.js'); ?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mistake! I reported as abuse myself!! 💣