カテゴリ | デザイン・CSS・スキン |
---|---|
サマリ | skinにプラグインを直接埋め込む方法 |
バージョン | 1.5.1 |
投稿者 | yan |
状態 | 完了 |
投稿日 | 2016-10-06 (木) 03:54:02 |
pcommentプラグインをスキンに組み込みたいのですが、プラグイン自体は埋め込めるのですが、引数の指定方法が分かりません。
#pcomment(,10,below,reply)
出来れば上記の形でskinに埋め込みたいのですがご教授お願いいたします。
<?php if (exist_plugin('pcomment')) echo plugin_pcomment_convert(func_get_args()); ?>
現状では上記の形でスキンに埋め込む事は出来ています。
<?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?>みたいなかんじで。plugin_pcomment_init() が無いし問題なさそうだから、という事で直接plugin_pcomment_convert() を叩きたいなら、do_plugin_convert() からロジックを拝借して
csv_explode(',', ',10,below,reply')でパラメーターのarray を作成してplugin_pcomment_convert() に渡すという事も一応できるはず -- 2016-10-06 (木) 20:32:39
<?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?>上記の方法で問題なく実装できたので、今回はこれで質問を終わりたいと思います。 早い回答大変ありがとうございました。-- yan 2016-10-07 (金) 02:53:57