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 | |
Class CodeTest{ | |
public $name; | |
public function __construct($name = '名無し'){ | |
$this->name = $name; | |
} | |
public function morning(){ | |
echo $this->name."さん、おはようございます。"; |
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 | |
//####################### | |
//ショートコードを作成:gist(myGist) | |
//####################### | |
function shortCode_gist($atts,$content = null ){ | |
extract( shortcode_atts( array( | |
'id' => "" ), $atts) ); | |
$script = '<script src="https://gist.github.com/%s.js"></script>'; | |
return sprintf($script,$atts['id']); | |
} |
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 | |
//####################### | |
//ショートコードを作成:tagList | |
//特定のタグの記事一覧を表示する | |
//####################### | |
function shortCode_tagList($atts,$content = null ){ | |
//ショートコードに定義した値を取得 | |
extract( shortcode_atts( array( | |
'count' =>5, //表示数: | |
'order' => 'DESC' , //並び順:ASC/DESC, |
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 | |
/* | |
Plugin Name: paka3 AddText | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: テキストを末尾に追加するプラグイン | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
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 | |
/* | |
Plugin Name: paka3 AddImage | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 画像を末尾に追加するプラグイン | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
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 | |
/* | |
Plugin Name: paka3 New Posts | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: すべての記事に「最新の記事」のリンクを3件入れる | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
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 | |
/* | |
Plugin Name: paka3 特定カテゴリ記事に画像・文字列を追加 | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: すべての記事に「最新の記事」のリンクを3件入れる | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
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 | |
/* | |
Plugin Name: paka3 特定のタグの記事に画像・文字列を追加 | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 特定のタグの記事に文字列・画像を追加 | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
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 | |
/* | |
Plugin Name: paka3 Now Category New Posts | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 記事に「現在のカテゴリの最新記事」のリンクをカテゴリ毎に3件入れる | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ | |
function paka3_NewNowCategoryPosts($contentData) { |
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 | |
/* | |
Plugin Name: paka3 Tag New Posts | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 記事に「特定のタグの最新記事」のリンクを3件入れる | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ | |
function paka3_TagNewPosts($contentData) { |
OlderNewer