Changeset 894

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

plugin:plugin_directory update template and rewrite rules

Location:
plugins/plugin_directory/trunk
Files:
2 modified

Legend:

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

    r891 r894  
    8787        // put together our rule 
    8888        $rule['name'] = 'display_plugins'; 
    89         $rule['parse_regex'] = '%^explore/plugins/?$%'; 
    90         $rule['build_str'] = 'explore/plugins/'; 
     89        $rule['parse_regex'] = '%^explore/plugins(?:/page/(?P<page>\d+))?/?$%'; 
     90        $rule['build_str'] = 'explore/plugins(/page/{$page})'; 
    9191        $rule['handler'] = 'UserThemeHandler'; 
    9292        $rule['action'] = 'display_plugins'; 
     
    9696        // add our rule to the stack 
    9797        $rules[] = $rule; 
    98  
     98         
    9999        // and pass it along 
    100100        return $rules; 
    101101 
    102102    } 
    103  
     103     
    104104    /** 
    105105     * @ todo make uoe own template for these 
  • plugins/plugin_directory/trunk/templates/plugin.multiple.php

    r889 r894  
    11<?php 
     2 
    23 
    34/** 
     
    3233    <?php endforeach; ?> 
    3334 
     35    <hr> 
     36    <p><?php $theme->prev_page_link(); ?> <?php $theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php $theme->next_page_link(); ?></p> 
    3437    </div> 
    35  
     38     
    3639<?php $theme->display('footer'); ?>