- Timestamp:
- 09/03/08 16:21:08 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/plugin_directory/trunk/plugin_directory.plugin.php
r887 r888 107 107 public function filter_theme_act_display_plugins( $handled, $theme ) 108 108 { 109 $theme->posts = Posts::get( array( 'content_type' => 'plugin', 'limit' => 20 ) ); 110 $theme->display( 'home' ); 109 $default_filters= array( 110 'content_type' => Post::type( 'plugin' ), 111 ); 112 $theme->act_display_entries( $default_filters ); 111 113 return true; 112 114 } … … 114 116 public function filter_theme_act_display_plugin( $handled, $theme ) 115 117 { 116 $theme->post = Post::get( array( 'content_type' => 'plugin' ) ); 117 $theme->display( 'entry.single' ); 118 $default_filters= array( 119 'content_type' => Post::type( 'plugin' ), 120 ); 121 $theme->act_display_post( $default_filters ); 118 122 return true; 119 123 } … … 299 303 300 304 DB::register_table( 'plugin_versions' ); 301 $this->add_template( 'packages', dirname(__FILE__) . '/packages.php' ); 305 $this->add_template( 'plugin.multiple', dirname(__FILE__) . '/templates/plugin.multiple.php' ); 306 $this->add_template( 'plugin.single', dirname(__FILE__) . '/templates/plugin.single.php' ); 302 307 } 303 308
