<input type="text" class="inputbox search_input" size="30" maxlength="30" name="search" value="<?php echo $search_word; ?> " /> </div> <button class="search_button" type="submit">→</button> </form> </div> <?php if ($search_result) { for ($index = $pager->low; $index < $pager->high + 1; $index++) { if (isset($search_result[$index])) { $row = $search_result[$index]; $section = joosHTML::anchor(joosRoute::href('game_index'), 'Что-то'); $row->anons_image = JPATH_SITE_IMAGES . '/' . joosFile::make_file_location((int) $row->image_id) . '/image.png'; $row->view_href = joosRoute::href('opa_view', array('id' => $row->id, 'alias' => $row->game_slug)); ?> <div class="item"> <h2><?php echo $section . ' → '; echo joosHTML::anchor($row->view_href, $row->title); ?> </h2> <?php if ($row->anons_image) { ?> <a class="thumb" href="<?php echo $row->view_href; ?> ">
private static function get_filefolder($rootdir = false, $filename = false, $fileid = false) { $id = $fileid ? $fileid : joosAttached::add($filename)->id; $rootdir = $rootdir ? $rootdir : joosFile::get_mime_content_type($filename); return array('file_base_location' => JPATH_APP_BASE . DS . 'attachments' . DS . $rootdir . DS . joosFile::make_file_location((int) $id), 'file_live_location' => JPATH_SITE . '/app/attachments/' . $rootdir . '/' . joosFile::make_file_location((int) $id), 'file_id' => $id); }