Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static function contentType(){
- if (is_single()){
- if (isStartup()){
- return 'startup';
- }else{
- if (isFormatReport()){
- return 'report';
- }else if (isFormatVideo()){
- return 'video';
- }else{
- return 'article';
- }
- }
- }else if (is_tag() || is_category()){
- return 'grouppage';
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement