<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } ?> <?php foreach ($last_news as $news) { $news_url = get_article_url($news['id']); $dateAr =& $news['date_ar']; $dateStr = $dateAr['day_str'] . ' ' . $dateAr['time'] . ', ' . $dateAr['day_nmbr'] . ' ' . $dateAr['month_str'] . ' ' . $dateAr['year_nmbr']; if (!empty($news['main_img'])) { $imgUrl = '/sbimg' . $this->unicDomainStr . '/upload/images/small/' . $news['main_img']; } else { $imgUrl = '/sbimg' . $this->unicDomainStr . '/img/default_news.jpg'; } ?> <div class="<?php echo get_rnd_cssclass('tab_inside'); ?> tab_inside"> <a href="<?php echo $news_url; ?> " > <img src="<?php echo $imgUrl; ?>
function run_article_content($catalog_data, $object_id) { global $smarty; $template_content = get_template($catalog_data['id'], 'template_content'); $url = trim(get_article_url($object_id)); if (strlen($url) != 0) { echo "\r\n\t\t<script language='JavaScript'>\r\n\t\t\t<!--\r\n\t\t\t\twindow.location.href='{$url}';\r\n\t\t\t//-->\r\n\t\t</script>\r\n\t\t"; exit; } $smarty->display($template_content, $_SERVER['QUERY_STRING']); if ($cfg['debug']) { echo "template" . $template_content; } }
private function get_rand_satellite_donor_url(&$doc_data) { $donor_domain = $this->get_donor_domain(); $seed = round($doc_data['id'] + $this->unicDomainInt / 3); mt_srand($seed); $cntAr = count($donor_domain) - 1; $rndInt = round(mt_rand(0, $cntAr * 1000) / 1000); $domain = $donor_domain[$rndInt]; mt_srand(); $host = strtolower($domain['subname'] . '.' . $domain['name']); $url = 'http://' . $host . get_article_url($doc_data['id'], $host); return $url; }
?> </span> <div class="<?php echo get_rnd_cssclass('list_category'); ?> list_category like_news_title"> <div class="<?php echo get_rnd_cssclass('heading'); ?> heading"><h2>Похожие Новости:</h2></div> </div> <?php foreach ($like_doc as $l_doc) { $news_url = get_article_url($l_doc['id']); $dateAr =& $l_doc['date_ar']; $dateStr = $dateAr['day_str'] . ' ' . $dateAr['time'] . ', ' . $dateAr['day_nmbr'] . ' ' . $dateAr['month_str'] . ' ' . $dateAr['year_nmbr']; if (!empty($l_doc['main_img'])) { $imgUrl = '/sbimg' . $this->unicDomainStr . '/upload/images/small/' . $l_doc['main_img']; } else { $imgUrl = '/sbimg' . $this->unicDomainStr . '/img/default_news.jpg'; } ?> <div class="<?php echo get_rnd_cssclass('list_post'); ?> list_post like_news_list"> <div class="<?php echo get_rnd_cssclass('image'); ?>