{@ $misol_contents = array(); $misol_contents_count = 0; } {$widget_info->content_type} {@$misol_contents_count = $widget_info->list_count * $widget_info->page_count} {@$misol_contents_count = $widget_info->list_count} {@ $contents_key = ''; } {@ $contents_key = intval(preg_replace("/[^0-9]*/s", '', $item->getLink())); $misol_contents[$contents_key] = $item; } {@ krsort($misol_contents);} {@$i = 0;} {@$i = $i + 1;} {@ unset($misol_contents[$key])} {@ $tab = new stdClass(); $tab->content_items = $misol_contents; $tab->title = $lang->all; $tab->url = getUrl('mid',Context::get('mid')); $tab->tab_type = 'all'; } {@ array_unshift($widget_info->tab, $tab) }