Beispiel #1
0
<?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)));
Beispiel #2
0
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);
}