Lines Matching refs:item
131 foreach ($media as $item) {
132 $base = !isset($params['ns']) ? getNS($item['id']) : $params['ns'];
134 if (in_array($item, $linked_media)) {
135 $item = $item + array('level' => 1, 'base' => $base, 'linked'=> 1);
137 $item = $item + array('level' => 1, 'base' => $base);
139 $items[] = $item;
173 public function _media_item($item) { argument
179 $link['url'] = ml($item['id']);
180 $link['class'] = isset($item['linked']) ? 'media linked' : 'media';
182 $link['title'] = noNS($item['id']);
185 if ($item['type'] == 'internalmedia') {
187 if (!empty($item['base'])) {
189 $link['name'] = preg_replace('/^'.$item['base'].':/','', $item['id']);
191 $link['name'] = $item['id'];
193 $mediainfo = strftime($conf['dformat'], $item['mtime']).' ';
194 $mediainfo .= filesize_h($item['size']);
197 $link['name'] = $item['id'];
202 list($ext,$mime) = mimetype($item['id']);
208 $out .= '<input type="checkbox" id="delete['.$item['id'].']" />';
209 $out .= '<label for="delete['.$item['id'].']">'.'</label>';
305 foreach ($res as $item) {
307 'id' => $item['id'],
308 'size' => $item['size'],
309 'mtime' => $item['mtime'],