Assembla home | Assembla project page
 

Changeset 138

Show
Ignore:
Timestamp:
07/25/07 17:13:45 (1 year ago)
Author:
digitalspaghetti
Message:

Started working on new theme for NHM

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/app_controller.php

    r136 r138  
    7474                 
    7575                 
    76                 $sitetheme = "default"; 
     76                $sitetheme = "950px"; 
    7777                 
    7878                $this->layout = $sitetheme; 
  • branch/config/core.php

    r137 r138  
    5555 * In development mode, you need to click the flash message to continue. 
    5656 */ 
    57         define('DEBUG', 0); 
     57        define('DEBUG', 2); 
    5858/** 
    5959 * Turn off or enable cache checking application-wide. 
  • branch/controllers/posts_controller.php

    r135 r138  
    210210                 
    211211        } 
     212         
     213        function recentPosts($max = 5) 
     214        { 
     215                $recentposts = $this->Post->findAll(array(array('Post.published'=>1), array('Post.post_date'=>'<= NOW()')),null,null,$max); 
     216                if(isset($this->params['requested'])) { 
     217                        return $recentposts; 
     218                } 
     219                $this->set('recentposts', $recentposts); 
     220        } 
    212221 
    213222}