Ejemplo n.º 1
0
 /**
  * Set Number of Hot Conversation Posts
  * 
  * Allows the Theme Developer to specify the number of thumbails
  * that occur in the Hot Conversation module.
  * 
  * @param int $posts_to_show
  * @return boolean
  */
 public static function SetNumberOfHotConversationPosts($posts_to_show)
 {
     $success = OnePanelDebug::Track('Setting number of Hot Conversation posts');
     if (OnePanelDebug::IsPositiveInteger($posts_to_show)) {
         self::$misc_options['HotConversationPostsNumber'] = $posts_to_show;
     } else {
         $success->Fail();
         return false;
     }
     $success->Affirm();
     return true;
 }