Public feed
#725243
function cx2_if_custom_field($atts, $thing)
{
global $thisarticle, $prefs;
assert_article();
extract(lAtts(array(
'name' => @$prefs['custom_1_set'],
'val' => NULL,
'like' => 0,
),$atts));
$name = strtolower($name);
if ($val !== NULL)
if($like)
{
$cond = preg_match("/$val/i", @$thisarticle[$name]);
} else {
$cond = (@$thisarticle[$name] == $val);
}
else
$cond = !empty($thisarticle[$name]);
return parse(EvalElse($thing, $cond));
}
function cx2_title($atts)
{
global $thisarticle, $prefs;
assert_article();
extract(lAtts(array(
'no_widow' => @$prefs['title_no_widow'],
), $atts));
$t = $thisarticle['title'];
if ($no_widow)
$t = noWidow($t);
return $t;
}