gte IE 8 and firefox, chrome, safari, opera latest version
<link rel="stylesheet" href="style.css" media="all">
tr, td { | |
display: block; | |
width: 100%; | |
} |
<?php | |
// exampleデータベースにfield1, field2を持つtable1テーブルを作成済みの前提 | |
// データベース接続情報 | |
$url = "localhost"; | |
$user = "root"; | |
$password = ""; | |
$database = "example"; | |
// データベース接続処理 | |
$connect = mysql_connect($url,$user,$password) or die("can't connect"); | |
$db = mysql_select_db($database,$connect) or die("can't Select database"); |
<?php | |
ini_set( 'xdebug.var_display_max_children', - 1 ); | |
ini_set( 'xdebug.var_display_max_data', - 1 ); | |
ini_set( 'xdebug.var_display_max_depth', - 1 ); | |
$records = CategoriesTree::get_records_for_category_tree( 起点となるカテゴリーID, array() ); | |
$data = CategoriesTree::set_records_for_category_tree( $records ); | |
$tree = CategoriesTree::get_category_tree( $data[0], array( $data[1][0] ) ); | |
var_dump( $tree ); | |
?> |
/** | |
* foreachを使ったサンプル | |
* | |
* reffer | |
* get_posts | |
* http://codex.wordpress.org/Template_Tags/get_posts | |
*/ | |
<?php | |
$args = array( | |
'posts_per_page' => 5, |
<?php | |
/** | |
* HEAD処理 | |
* | |
* @package InfoTown | |
* @author Hiroshi Sawai <info@info-town.jp> | |
* @copyright Hiroshi Sawai | |
*/ | |
class InfoTown_Head { |
<?php | |
/** | |
* 管理画面設定 | |
* | |
* @package InfoTown | |
* @author Hiroshi Sawai <info@info-town.jp> | |
* @copyright Hiroshi Sawai | |
*/ | |
class InfoTown_Admin { | |
// 管理者以外アップデート非表示 |
<?php | |
/** | |
* InfoTown_Categories_Utilsのテストクラス | |
* | |
* @package InfoTown | |
* @subpackage tests | |
* @author Hiroshi Sawai <info@info-town.jp> | |
* @copyright Hiroshi Sawai | |
* @version 1.0.0 | |
* @since 1.0.0 |
<?php | |
/** | |
* InfoTown_Utils_Pagesテスト | |
* | |
* @package InfoTown | |
* @author Hiroshi Sawai <info@info-town.jp> | |
* @copyright Hiroshi Sawai | |
*/ | |
class InfoTown_Utils_Pages_Test extends WP_UnitTestCase { |