├── readme.md ├── apc_cache └── apc_cache.plugin.php └── article_filters └── article_filters.plugin.php /readme.md: -------------------------------------------------------------------------------- 1 | # Orbiter Plugin Repository 2 | 3 | Feel free to submit your plugin by doing a pull request. 4 | 5 | Find out more about Orbiter at [viaorbiter.com](http://viaorbiter.com/) 6 | -------------------------------------------------------------------------------- /apc_cache/apc_cache.plugin.php: -------------------------------------------------------------------------------- 1 | index(); 15 | $request_uri = dirname( $article['uri'] ); 16 | 17 | $children = array(); 18 | $blog_posts = array(); 19 | 20 | foreach ( $articles as $article ) 21 | if ( strstr( $article['uri'], $request_uri ) && $article['slug'] !== 'index' ) 22 | $children[] = $article; 23 | 24 | foreach ( $articles as $article ) 25 | if ( strstr( $article['uri'], 'blog/' ) && ! empty( $article['slug'] ) && $article['slug'] !== 'index' ) 26 | $blog_posts[] = $article; 27 | 28 | if ( ! empty( $children ) ) 29 | $args[ 'children' ] = $children; 30 | 31 | if ( ! empty( $blog_posts ) ) 32 | $args['blog_posts'] = $blog_posts; 33 | 34 | return $args; 35 | 36 | } 37 | 38 | } 39 | --------------------------------------------------------------------------------