root/releases/0.672/_rss/blog.php

Revision 744, 1.0 kB (checked in by ben, 2 years ago)

Community resources can now be assigned to its blog.

Line 
1 <?php
2
3     require_once(dirname(dirname(__FILE__))."/includes.php");
4     
5     global $page_owner, $profile_id;
6
7     run("weblogs:init");
8     run("profile:init");
9     
10     $username = trim(optional_param('profile_name',''));
11     $user_id = user_info_username("ident", $username);
12     if (empty($user_id)) {
13         $user_id = $page_owner;
14     } else {
15         $page_owner = $user_id;
16         $profile_id = $user_id;
17     }
18     
19     run("rss:init");
20     
21     define('context','resources');
22
23     templates_page_setup();   
24
25     $title = run("profile:display:name") ." :: " . __gettext("Publish feeds to blog");
26     
27     $body = run("rss:subscriptions:publish:blog");
28     
29     $body = templates_draw(array(
30                     'context' => 'contentholder',
31                     'title' => $title,
32                     'body' => $body
33                 )
34                 );
35     
36     echo templates_page_draw( array(
37                     $title, $body
38                 )
39                 );
40
41 ?>
Note: See TracBrowser for help on using the browser.