CMS  Version 3.9
blog_subscribers.inc
Go to the documentation of this file.
1 <?php
2 
3 Fakoli::using("blog");
4 Fakoli::usingFeature("data_view", "data_tabs");
5 
6 $menu_item = "Blog Subscribers";
7 
8 $blog_id = checkNumeric($_GET["blog_id"]);
9 
10 $blogs = query(Blog, " WHERE published=1 ORDER BY title");
11 
12 if (!count($blogs))
13 {
14  echo "<p><em>There are no published blogs.</em></p>";
15  return;
16 }
17 
18 if (!$blog_id) $blog_id = $blogs[0]->blog_id;
19 
20 $tabs = new DataItemTabBar("tabs", $blogs);
21 
23 
24 $script .= $tabs->writeScript();
25 
26 $tabs->writeHTML();
27 ?>
28 <div id="tab_border">
29 <?
30 $blogSubscriberListView->drawView();
31 ?>
32 </div>
$blog_id
$menu_item
$blogSubscriberListView
Definition: blog.inc:41
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116