id, $page_content->type, $page_content->url, $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR'], gethostbyaddr($_SERVER['REMOTE_ADDR'])); $title = get_lang('title_'); $content = get_lang('content_'); $aditional_content = Get_Lang('aditional_content_'); $files = array(); $files_counter = 0; echo '

'.$page_content->$title.'

'; echo '
'; echo '
'; echo '
'; $multimedia = Multimedia::find_by_page($page_content->id); if(count($multimedia) > 0) { echo '
'.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; $text = Get_Lang('text_'); foreach ($multimedia as $multimedia) { if (!empty($multimedia->file)) { if($multimedia->type == 'youtube') { echo '
'.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'vimeo') { $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".htmlspecialchars($multimedia->file).".php")); echo '
'.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'image') { echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'file') { $files[] = array( 'counter' => ++$files_counter, 'file' => $multimedia->file, ); } } } echo '
'.PHP_EOL; } else { if($page_content->image) { echo '
'.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } } echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo $page_content->$content; echo '
'; echo '
'; if (!empty($files)) { echo '
'; $i = 0; foreach ($files as $file) { echo '
'; echo '
'; if ($i % 2 == 0 ) { echo '
'; } else { echo '
'; } @$file_extension = end(explode('.', $file['file'])); if($file_extension == 'rar' OR $file_extension == 'zip') { echo "\"".$file_extension."\"\n"; echo '   '; } else if($file_extension == 'doc' OR $file_extension == 'docx') { echo "\"".$file_extension."\"\n"; echo '   '; } else if($file_extension == 'pdf' ) { echo "\"".$file_extension."\"\n"; echo '   '; } else { echo "\"".$file_extension."\"\n"; echo '   '; } echo ''; echo $file['file']; echo ''; echo '
'; echo '
'; $i++; } } } // list posts else { //echo '

Novosti

'; $all_posts = Pages::find_all_active($_SESSION['lang'], 'offer', $start, 'order_id', 'DESC', 1, PAGINATION_PER_PAGE); @page_view('5', 'offer', 'offer', $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR'], gethostbyaddr($_SERVER['REMOTE_ADDR'])); if($all_posts) { $i = 0; foreach ($all_posts as $all_posts) { $title = Get_Lang('title_'); $content = Get_Lang('content_'); list($created_date, $created_time) = explode(" ", $all_posts->created_date); list($created_year, $created_month, $created_day) = explode("-", $created_date); echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; echo ''.dateName(date('l, j. F, Y', strtotime($all_posts->created_date))).''; echo '
'; echo shorten_text($all_posts->$content, 300, true, true); echo '
'; echo '
'; echo 'Opširnije'; echo '
'; echo '
'; echo '
'; echo '
'; } } else { echo '
'; echo '
'; echo '

Trenutno nema postova u ovoj kategoriji.

'; echo '
'; echo '
'; } echo '
'; echo '
'; echo display_pagination('offer', 'akcije', $start, PAGINATION_PER_PAGE).PHP_EOL; echo '
'; echo '
'; } ?>