soo_if_frontpage Page 2 of 2

soo_if_frontpage source code

 1 : function soo_if_frontpage $atts$thing )
 2 : {
 3 :     $atts lAtts(array(
 4 :         'section'   =>  '',
 5 :         'pg'        => false,
 6 :     ), $atts);
 7 : 
 8 :     global $s$pg$c$q$author$month$id$p;
 9 : 
10 :     if ( ! $section $atts['section'] )
11 :         $section 'default';
12 : 
13 :     return parse(EvalElse($thing,
14 :         ( $section == '*' or in_list($s$section) ) and
15 :         ( ! $atts['pg'] or $pg ) and
16 :         ! ( $c or $q or $author or $month or $id or $p )
17 :     ));
18 : }