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 | |
/** | |
* Detect if the browser is Internet Explorer or not | |
* @package WordPress | |
* @param int $version optional | |
* @return Boolean | |
*/ | |
function is_IE($version = 0) | |
{ | |
$flg = false; |
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 | |
/* | |
* @pakage WordPress | |
* This file resolve external js and css loading and their chaching. | |
* Put this file in your theme foloer and | |
* write the line below in your theme's "functions.php" | |
* | |
* require_once(TEMPLATEPATH."/wp-assets.php"); | |
* | |
*/ |
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
/** | |
* Code snipet for fade in & out with MooTools. | |
* @author Takahashi Fumiki | |
* @description | |
*/ | |
Element.prototype.fadeIn = function(display){ | |
if(display == undefined) | |
display = "block"; | |
var fx = new Fx.Morph(this); |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="viewport" content="width=device-width , user-scalable=no , inicial-scale=1 , maximum-scale=1" /> | |
<title>問わずがたりの洋酒外史</title> | |
<style> | |
body{ | |
font-family:"HiraKakuProN-W3", serif; | |
font-size:12px; |
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
/** | |
* Style sheet for rendering <ruby> properly. | |
* | |
* @source | |
*/ | |
ruby{ | |
overflow:hidden; | |
display:inline-table; | |
line-height:inherit; | |
vertical-align:text-bottom; |
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
zip -X0 ../sample.epub mimetype | |
zip -rDX9 ../sample.epub * -x "*.DS_Store" -x mimetype |
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 | |
/** | |
* XMLの特定のタグにインテルを挿入する | |
* | |
* インテルとは活版印刷で用いられる活字間の隙間を挿入する金属のことです。 | |
* Webkitエンジンなど、CSSのtext-justifyプロパティに対応していないブラウザは | |
* テキストのジャスティフィケーションを半角スペースのサイズ調整で行います。 | |
* 日本語は分かち書きをしないため、半角スペースでのサイズ調整が適用されません。 | |
* このクラスでは指定されたタグの直下にあるすべてのテキストのノードに対して | |
* 空白を含むspanタグを挿入します。 |
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
/** | |
* Customize contact fields on Profile admin panel | |
* | |
* @package WordPress | |
*/ | |
/** | |
* WordPressのプロフィール画面に追加するコンタクトメソッド | |
* |
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
/* | |
* functionsフォルダにあるファイルをすべて読み込む | |
*/ | |
foreach(glob(TEMPLATEPATH."/functions/*.php") as $file){ | |
require_once $file; | |
} |
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 | |
/** | |
* 画像のURLからattachemnt_idを取得する | |
* | |
* | |
* @param string $url 画像のURL | |
* @return int attachment_id | |
*/ | |
function ri_detect_attachment_id($url){ |
OlderNewer