assign( 'posts', Posts::get( array( 'content_type' => 'entry', 'status' => Post::status('published') ) ) ); if ( !$this->template_engine->assigned( 'plugins' ) ) { $this->assign( 'plugins', Posts::get( array( 'content_type' => 'plugin', 'status' => Post::status('published'), 'orderby' => 'title ASC' ) ) ); } if( !$this->template_engine->assigned( 'pages' ) ) { $this->assign('pages', Posts::get( array( 'content_type' => 'page', 'status' => Post::status('published') ) ) ); } if( !$this->template_engine->assigned( 'user' ) ) { $this->assign('user', User::identify() ); } parent::add_template_vars(); } public function filter_theme_call_header( $return, $theme ) { Stack::add( 'template_header_javascript', Site::get_url('scripts') . '/jquery.js', 'jquery' ); return $return; } } ?>