{{indexmenu_n>100}} ====== CP-Class if (FE-User) ====== **Defines a class for the CP when a FE user ([[english/phpwcms-system/article/contentparts/frontend-login]]) is logged on.**\\ -> ##%%
'.LF.$text.LF.'';
}
return $text;
}
register_cp_trigger('CLASS_for_logged_in_user');
/* ------- and the next one
function CP_Other_CP($text, & $data) {
if($data['acontent_type'] == XX) { // XX is CP Other CP
$text = custom processing ;
}
return $text;
}
register_cp_trigger('CP_Other_CP');
---------- and so on */
?>
\\
**Short form:**
'.LF.$text.LF.'': $text;
}
register_cp_trigger('CLASS_for_logged_in_user');
?>
\\