Re: オプションを表示するテンプレートタグ
フォーラム › テンプレート(テーマ) › オプションを表示するテンプレートタグ › Re: オプションを表示するテンプレートタグ
2010年6月7日 8:16 PM
#59753

キーマスター
ループ中で以下のように記述してオプションを表示できます。
single_item.php より抜粋しています。
<?php
$html = '';
if (usces_is_options()) {
$html .= "<table class='item_option'><caption>".__('Please appoint an option.', 'usces')."</caption>n";
while (usces_have_options()) {
$html .= "<tr><th>" . $this->itemopt['key'] . '</th><td>' . usces_the_itemOption(usces_getItemOptName(),'','return') . "</td></tr>n";
}
$html .= "</table>n";
}
echo $html;
?>