コード例 #1
0
ファイル: article.php プロジェクト: alexbodea/globalnews
<?php

include BASE_PATH . 'app/utils/initialize.php';
$country_id = get_country_id($first);
echo $twig->render('article.html', array('data' => $data, 'utils' => $utils, 'link' => get_article_link($url), 'countries' => get_countries($first), 'translations' => get_translations($country_id)));
コード例 #2
0
ファイル: article_helper.php プロジェクト: sdgdsffdsfff/TCMKS
function render_articles_by_seg($dbc, $segment_id, $get_recycle = true)
{
    $articles = get_articles_by_seg($dbc, $segment_id, $get_recycle);
    $article_links = array();
    foreach ($articles as $article_id) {
        array_push($article_links, get_article_link($dbc, $article_id));
    }
    return implode(',&nbsp;', $article_links);
}