Changeset 888

Show
Ignore:
Timestamp:
09/03/08 16:21:08 (3 months ago)
Author:
MattRead
Message:

plugin:plugin_directory adding new templates for plugin types

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/plugin_directory/trunk/plugin_directory.plugin.php

    r887 r888  
    107107    public function filter_theme_act_display_plugins( $handled, $theme ) 
    108108    { 
    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 ); 
    111113        return true; 
    112114    } 
     
    114116    public function filter_theme_act_display_plugin( $handled, $theme ) 
    115117    { 
    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 ); 
    118122        return true; 
    119123    } 
     
    299303 
    300304        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' ); 
    302307    } 
    303308