aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-08-04 14:15:23 +0000
committerGreg Froese <greg.froese@gmail.com>2009-08-04 14:15:23 +0000
commit8b25b9c804013af2d0a7eb87fc9606279f7cc775 (patch)
tree9d8b1309a193d980cf3adfd50faa0b1b703eb0cd /start.php
parent9686e8d077d01924776a42526fec5f1379f8ef3a (diff)
downloadelgg-8b25b9c804013af2d0a7eb87fc9606279f7cc775.tar.gz
elgg-8b25b9c804013af2d0a7eb87fc9606279f7cc775.tar.bz2
recently commented support
Diffstat (limited to 'start.php')
-rw-r--r--start.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/start.php b/start.php
index 5a225e053..9c27cb854 100644
--- a/start.php
+++ b/start.php
@@ -175,6 +175,9 @@
$CONFIG->wwwroot . 'pg/photos/recentlyviewed',
'tidypics-z');
}
+ add_submenu_item( elgg_echo('tidypics:recentlycommented'),
+ $CONFIG->wwwroot . 'pg/photos/recentlycommented',
+ 'tidypics-z');
}
@@ -195,6 +198,7 @@
add_submenu_item(elgg_echo('tidypics:mostcommented'), $CONFIG->url . "mod/tidypics/mostcommentedimages.php");
add_submenu_item(elgg_echo('tidypics:mostcommentedthismonth'), $CONFIG->url . "mod/tidypics/mostcommentedimagesthismonth.php");
add_submenu_item(elgg_echo('tidypics:mostcommentedtoday'), $CONFIG->url . "mod/tidypics/mostcommentedimagestoday.php");
+ add_submenu_item(elgg_echo('tidypics:recentlycommented'), $CONFIG->wwwroot . 'pg/photos/recentlycommented');
}
/**
* Sets up tidypics admin menu. Triggered on pagesetup.
@@ -309,6 +313,11 @@
include($CONFIG->pluginspath . "tidypics/recentlyviewed.php");
break;
+ case "recentlycommented":
+ if (isset($page[1])) set_input('guid',$page[1]);
+ include($CONFIG->pluginspath . "tidypics/recentlycommented.php");
+ break;
+
case "highestrated":
if (isset($page[1])) set_input('guid',$page[1]);
include($CONFIG->pluginspath . "tidypics/highestrated.php");
@@ -387,6 +396,9 @@
return $CONFIG->url . "pg/photos/album/" . $entity->getGUID() . "/" . $title;
}
+ function tp_mostrecentimages($max = 8, $pagination = true) {
+ return list_entities("object", "image", 0, $max, false, false, $pagination);
+ }
// Make sure tidypics_init is called on initialisation
register_elgg_event_handler('init','system','tidypics_init');