* adjust for setMenu method.
This commit is contained in:
+12
-2
@@ -25,8 +25,18 @@ class qaModel extends model
|
||||
$this->loadModel('product')->setMenu($products, $productID, $branch);
|
||||
$selectHtml = $this->product->select($products, $productID, 'qa', 'index', '', $branch);
|
||||
|
||||
$productIndex = '<div class="btn-group angle-btn"><div class="btn-group">' . html::a(helper::createLink('qa', 'index', 'locate=no'), $this->lang->qa->index, '', "class='btn'") . '</div></div>';
|
||||
$productIndex .= $selectHtml;
|
||||
$productIndex = '';
|
||||
$isMobile = $this->app->viewType == 'mhtml';
|
||||
if($isMobile)
|
||||
{
|
||||
$productIndex = html::a(helper::createLink('qa', 'index'), $this->lang->qa->index) . $this->lang->colon;
|
||||
$productIndex .= $selectHtml;
|
||||
}
|
||||
else
|
||||
{
|
||||
$productIndex = '<div class="btn-group angle-btn"><div class="btn-group">' . html::a(helper::createLink('qa', 'index', 'locate=no'), $this->lang->qa->index, '', "class='btn'") . '</div></div>';
|
||||
$productIndex .= $selectHtml;
|
||||
}
|
||||
|
||||
$this->lang->modulePageNav = $productIndex;
|
||||
foreach($this->lang->qa->menu as $key => $menu)
|
||||
|
||||
Reference in New Issue
Block a user