Advertisement
bactisme

Untitled

Jan 19th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1.     static function contentType(){
  2.         if (is_single()){
  3.             if (isStartup()){
  4.                 return 'startup';
  5.             }else{
  6.                 if (isFormatReport()){
  7.                     return 'report';
  8.                 }else if (isFormatVideo()){
  9.                     return 'video';
  10.                 }else{
  11.                     return 'article';                  
  12.                 }
  13.             }
  14.         }else if (is_tag() || is_category()){
  15.             return 'grouppage';
  16.         }
  17.         return null;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement