コード例 #1
0
ファイル: publish.php プロジェクト: ClaireBrione/textpattern
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
ファイル: publish.php プロジェクト: bgarrels/textpattern
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
ファイル: publish.php プロジェクト: bgarrels/textpattern
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
ファイル: publish.php プロジェクト: bgarrels/textpattern
function article($atts)
{
    global $pretext;
    return $pretext['id'] ? doArticle($atts) : doArticles($atts);
}