Skip to content

Instantly share code, notes, and snippets.

<?php
echo "hello github";
?>
<?php
/*
このクラスは、プログラマが作成時に指定した文字列を、htmlコーディングをする時に、コーディングするときに
文字列や、そのブロックのデザインをプログラムに触らずに、変更できるようにしたくて、作成したしょぼいクラスです。
大きなブロックなどは、smarty等を使ったりして描けばいいと思います。このクラスは、assignする値のところなどで使います。
コードをブラウザで閲覧しながら、デザイナーの人が、ちょっと気に入らない文字列をこぴぺして、配列に追加してくれれば、プログラムに触らなくても、文字列や、そこんとこのhtmlブロックの、文字列の直後に、ちっちゃな画像も追加しておきたい。といった、表現する人の主張を、「どうぞ、どうぞ」します。
使い方
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>quickHtml5Template.html</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link ref="stylesheet" href="http://html5resetcss.googlecode.com/files/html5-reset-1.4.css" media="all">
@tenman
tenman / escape_another.php
Created February 22, 2010 00:08
It escapes in characters other than the html usage. When tidy cannot be used
<?php
/**
* It escapes in characters other than the html usage.
*
*
*
*/
$doc=<<<DOC
<html lang="ja" dir="ltr">
wordPress twenty ten theme
query なし
<h1 id="site-title"><span><a href="http://www.tenman.info/wp3/" title="the 3" rel="home">the 3</a></span></h1>
query あり
?p=39 
<div id="site-title"><span><a href="http://www.tenman.info/wp3/" title="the 3" rel="home">the 3</a></span></div>
<?php
/**
* wordPress taxonomy sample
*
* theme/functions.php
**/
register_taxonomy(
/** move first line
* webpage
* @link http://d.hatena.ne.jp/tenman/20080124/p1
*
*
*/
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.4.2");</script>
<script type="text/javascript">
<!--
/**
* wordPress3.0beta
*
* the_excerpt で プラグインが動作していない?
*
*/
標準のままだと、プラグインが効かない
<div class="entry-summary">
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
/**
* Pure CSS speech bubbles
* @see http://nicolasgallagher.com/
*
*
*/
/* Oval thought buble (empty, with border)
------------------------------------------ */
/**
* web font
* @see http://blog.petitboys.com/archives/woff_test.html
* @see http://www.fontsquirrel.com/fontface
* @see http://www.w3.org/Submission/2010/03/
*/
@font-face {
font-family: EmbossedBlackNormal;
src: url(/font/embossed_black_normal.woff) format('woff');