aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/GenericModel.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-01-11 17:13:07 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-01-11 17:13:07 +0000
commit10f51945ac703a80421f7a1d3aee36101e6485bc (patch)
treecfb08847b2b1546f506317128b0247019c750b02 /h-source/Application/Models/GenericModel.php
parent2fee8068c26773b3ff8ca1b822a5a363c6b639af (diff)
mobile version: added catalogue page for each device category
Diffstat (limited to 'h-source/Application/Models/GenericModel.php')
-rw-r--r--h-source/Application/Models/GenericModel.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/h-source/Application/Models/GenericModel.php b/h-source/Application/Models/GenericModel.php
index 64f24be..70bc816 100644
--- a/h-source/Application/Models/GenericModel.php
+++ b/h-source/Application/Models/GenericModel.php
@@ -81,13 +81,20 @@ class GenericModel extends Model_Tree {
{
$html = null;
$listArray = array('page','history_page');
+
+ $count = 0;
foreach ($viewArgs as $field => $value)
{
- if (!in_array($field,$listArray))
+ if ($count < 5)
{
- $value = getTranslationFunction($field) !== 'gtext' ? gtext(call_user_func(getTranslationFunction($field),$value)) : gtext($value);
- $html .= "<div class='viewall_popup_menu_status_item'>".$value."</div>\n";
+ if (!in_array($field,$listArray))
+ {
+ $value = getTranslationFunction($field) !== 'gtext' ? gtext(call_user_func(getTranslationFunction($field),$value)) : gtext($value);
+ $html .= "<div class='viewall_popup_menu_status_item'>".$value."</div>\n";
+
+ $count++;
+ }
}
}
return $html;