Пример #1
0
function parseArticles($atts, $iscustom = 0, $thing = null)
{
    global $pretext, $is_article_list;
    $old_ial = $is_article_list;
    $is_article_list = empty($pretext['id']) || $iscustom;
    article_push();
    $r = $is_article_list ? doArticles($atts, $iscustom, $thing) : doArticle($atts, $thing);
    article_pop();
    $is_article_list = $old_ial;
    return $r;
}
Пример #2
0
function parseArticles($atts, $iscustom = '')
{
    global $pretext, $is_article_list;
    $old_ial = $is_article_list;
    $is_article_list = $pretext['id'] && !$iscustom ? false : true;
    $r = $is_article_list ? doArticles($atts, $iscustom) : doArticle($atts);
    $is_article_list = $old_ial;
    return $r;
}
Пример #3
0
function parseArticles($atts, $iscustom = 0, $thing = NULL)
{
    global $pretext, $is_article_list;
    $old_ial = $is_article_list;
    $is_article_list = $pretext['id'] && !$iscustom ? false : true;
    article_push();
    $r = $is_article_list ? doArticles($atts, $iscustom, $thing) : doArticle($atts, $thing);
    article_pop();
    $is_article_list = $old_ial;
    return $r;
}
Пример #4
0
function article($atts)
{
    global $pretext;
    return $pretext['id'] ? doArticle($atts) : doArticles($atts);
}