From aeaf75138cf8be42d2e3935b708e1d24a97bd0a0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 13:13:13 -0400 Subject: factor out similarities in subscriptions and subscribers darcs-hash:20080618171313-84dde-3389db1f5110d3f47cd5a4ef17f6a7fc0fcf3b44.gz --- actions/subscribers.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 actions/subscribers.php (limited to 'actions/subscribers.php') diff --git a/actions/subscribers.php b/actions/subscribers.php new file mode 100644 index 000000000..f5548d653 --- /dev/null +++ b/actions/subscribers.php @@ -0,0 +1,46 @@ +. + */ + +if (!defined('LACONICA')) { exit(1); } + +require_once(INSTALLDIR.'/lib/gallery.php'); + +class SubscribersAction extends GalleryAction { + + function gallery_type() { + return _t('Subscribers'); + } + + function get_instructions(&$profile) { + $user =& common_current_user(); + if ($user && ($user->id == $profile->id)) { + return _t('These are the people who listen to your notices.'); + } else { + return _t('These are the people who listen to ') . $profile->nickname . _t('\'s notices.'); + } + } + + function define_subs(&$subs, &$profile) { + $subs->subscribed = $profile->id; + } + + function div_class() { + return 'subscribers'; + } +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf