getNumberOfAttachments() > 0) { $show_all_download = true; } } class CollectionView extends FieldsView { public function generate_view($obj, $parts = null) { global $show_all_download, $CONFIG; $c = ""; /*description begin*/ // TODO: if desc in current lang is empty but filled in some other... $ed = $obj->get("educationalDescription", get_current_language()); $trans = elgg_echo("koolielu:educationalDescription"); if ( $trans == "koolielu:educationalDescription" ) $trans = 'Educational description'; $c .= '
'; /*description end*/ $c .= ' '; if ($show_all_download) { /*translation:Download collection*/ $c .= "url."mod/waramu/download.php?rid=".$obj->uid."&all=1\" title=\"".elgg_echo("koolielu:download_collection")."\">"; $c .= elgg_echo("koolielu:download_collection").""; } /* keywords begin */ $kws = $obj->get("keywords", get_current_language()); $trans = elgg_echo("koolielu:keywords"); if ( $trans == "koolielu:keywords" ) $trans = 'Keywords'; $c .= ' '; /* keywords end */ /* curriculumSubject begin */ $name = 'curriculumSubject'; $w = waramu_get(); $ftype = 'MultiInteger'; $fixedVoc = 0; $voc = 0; $lang = null; $c .= ' '; /*curriculumSubject end*/ /*agerange begins */ $fname = 'minmax'; $viewParams = array( 'object' => $obj, 'left' => waramu_getField('min'), 'right' => waramu_getField('max'), 'mode' => 'view' ); $c .= '" . elgg_view('koolielu/ke_review_object', array('action' => 'waramu/reviewPending', 'resourceid' => $obj->uid)) . "
"; } } } ?>