Beispiel #1
0
function get_related_articles_callback($matches)
{
    return get_related_articles(isset($matches[2]) ? $matches[2] : $GLOBALS['related_keywords'], $GLOBALS['aktion'][1], $GLOBALS['template_default']["related"], $matches[1]);
}
        for(var key in params){qs+=key+"="+params[key]+"&"}
        qs=qs.substring(0,qs.length-1);
        var s = document.createElement("script");
        s.type= 'text/javascript';
        s.src = "http://api.content.ad/Scripts/widget.aspx?" + qs;
        s.async = true;
        document.getElementById("contentad46812").appendChild(s);
    })();
</script>
                        </div>
                        <div class="tfa-block tfa-block-popular">
                            <h3>Related Articles</h3>
                            <div class="row">
                              
                              <?php 
foreach (get_related_articles() as $articles) {
    $node = node_load($articles->nid);
    $files = field_get_items('node', $node, 'field_parent_list_slide_image');
    if (!empty($files)) {
        foreach ($files as $keys => $value) {
            $imageOutput = field_view_value('node', $node, 'field_parent_list_slide_image', $files[$keys], array('type' => 'image', 'settings' => array('image_style' => 'popular_thumb', 'image_link' => 'content')));
        }
    }
    ?>
                              
                                <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
                                    <article>
                                        <figure>
                                            <?php 
    print render($imageOutput);
    ?>