public function renderPaymentsList(order $order, $template)
 {
     list($tpl_block, $tpl_item) = def_module::loadTemplates("emarket/payment/" . $template, 'payment_block', 'payment_item');
     $payementIds = payment::getList();
     $items_arr = array();
     $currentPaymentId = $order->getValue('payment_id');
     foreach ($payementIds as $paymentId) {
         $payment = payment::get($paymentId);
         if ($payment->validate($order) == false) {
             continue;
         }
         $paymentObject = $payment->getObject();
         $paymentTypeId = $paymentObject->getValue('payment_type_id');
         $paymentTypeName = umiObjectsCollection::getInstance()->getObject($paymentTypeId)->getValue('class_name');
         if ($paymentTypeName == 'social') {
             continue;
         }
         $item_arr = array('attribute:id' => $paymentObject->id, 'attribute:name' => $paymentObject->name, 'attribute:type-name' => $paymentTypeName, 'xlink:href' => $paymentObject->xlink);
         if ($paymentId == $currentPaymentId) {
             $item_arr['attribute:active'] = 'active';
         }
         $items_arr[] = def_module::parseTemplate($tpl_item, $item_arr, false, $paymentObject->id);
     }
     /*			if(cmsController::getInstance()->getCurrentTemplater() instanceof tplTemplater) {
     				return def_module::parseTemplate($tpl_block, array('items' => $items_arr));
     			} else {
     				return array('items' => array('nodes:item'	=> $items_arr));
     			}*/
     $urlPrefix = cmsController::getInstance()->getUrlPrefix() ? cmsController::getInstance()->getUrlPrefix() . '/' : '';
     $submitUrl = $this->pre_lang . '/' . $urlPrefix . 'emarket/purchase/payment/choose/do/';
     return def_module::parseTemplate($tpl_block, array('subnodes:items' => $items_arr, 'submit_url' => $submitUrl));
 }