Upload
michinari-odajima
View
3.992
Download
1
Embed Size (px)
Citation preview
レジュメ
プログラミングとは
プログラミング学習の心得
プログラミングの学習方法
PHPの基本
WordPressの基本
テンプレートの作成
テンプレートの分割
機能の追加(functions.php)
1から作る/*
Theme Name : テーマの名前 *必須
Theme URI : http: //example.com/
Description : テーマの説明・概要
Author : 作者の名前
Author URI : http: //example.com/about/
Version : 1.0
*/
子テーマとして作る/*
Theme Name : 子テーマの名前 *必須
Theme URI : http: //example.com/
Description : 子テーマの説明・概要
Author : 作者の名前
Author URI : http: //example.com/about/
Template : 親テーマのディレクトリ名 *必須
Version : 1.0
*/
比較演算子
A == B A と B は等しい
A > B A は B より大きい
A < B A は B より小さい
A >= B A は B 以上
A <= B A は B 以下
A != B A と B は等しくない
! A A の否定(結果を反転)
ウィジェット
register_sidebar(
array(
'before_widget' => '<div class="widget">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
)
);
functions.php
<?php dynamic_sidebar(); ?>テーマファイル
参考資料
PHP入門
http://dotinstall.com/lessons/basic_php_beginner WordPress入門
http://dotinstall.com/lessons/basic_wordpress ページとテンプレートhttp://wpdocs.sourceforge.jp/wiki/images/Template_Hierarchy.png