我正在从默认主题开发一个新主题。
我注意到:
<?php echo $language; ?>
生成:
<div class="pull-left">
<form action="http://192.168.0.1/opencart/index.php?route=common/currency/currency" method="post" enctype="multipart/form-data" id="form-currency">
<div class="btn-group open">
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
<strong>$</strong>
<span class="hidden-xs hidden-sm hidden-md">Currency</span> <i class="fa fa-caret-down"></i></button><div class="dropdown-backdrop"></div>
<ul class="dropdown-menu">
<li><button class="currency-select btn btn-link btn-block" type="button" name="EUR">€ Euro</button></li>
<li><button class="currency-select btn btn-link btn-block" type="button" name="GBP">£ Pound Sterling</button></li>
<li><button class="currency-select btn btn-link btn-block" type="button" name="USD">$ US Dollar</button></li>
</ul>
</div>
<input type="hidden" name="code" value="">
<input type="hidden" name="redirect" value="http://192.168.0.1/opencart/index.php?route=common/home">
</form>
</div>
但我的模板使用:
<li> <span class="dropdown-title">Currency :</span>
<ul>
<li><a class="active" href="#">USD</a></li>
<li><a href="#">AUD</a></li>
<li><a href="#">EUR</a></li>
</ul>
</li>
如何使echo $language
适应新模板的需要?
答案 0 :(得分:2)
您可以通过编辑此文件来更改其html标记:
catalog\view\theme\default\template\common\language.tpl
或者如果您的主题中有该文件:
catalog\view\theme\{YOUR_THEME}\template\common\language.tpl