'tidypics:mostviewedlastmonth' => 'Most viewed last month',\r
'tidypics:mostviewedtoday' => 'Most viewed today',\r
'tidypics:recentlyviewed' => 'Recently viewed images',\r
+ 'tidypics:recentlycommented' => 'Recently commented images',\r
'tidypics:mostrecent' => 'Most recent images',\r
'tidypics:yourmostviewed' => 'Your most viewed images',\r
'tidypics:yourmostrecent' => 'Your most recent images',\r
$CONFIG->wwwroot . 'pg/photos/recentlyviewed',\r
'tidypics-z');\r
}\r
+ add_submenu_item( elgg_echo('tidypics:recentlycommented'),\r
+ $CONFIG->wwwroot . 'pg/photos/recentlycommented',\r
+ 'tidypics-z');\r
\r
}\r
\r
add_submenu_item(elgg_echo('tidypics:mostcommented'), $CONFIG->url . "mod/tidypics/mostcommentedimages.php");\r
add_submenu_item(elgg_echo('tidypics:mostcommentedthismonth'), $CONFIG->url . "mod/tidypics/mostcommentedimagesthismonth.php");\r
add_submenu_item(elgg_echo('tidypics:mostcommentedtoday'), $CONFIG->url . "mod/tidypics/mostcommentedimagestoday.php");\r
+ add_submenu_item(elgg_echo('tidypics:recentlycommented'), $CONFIG->wwwroot . 'pg/photos/recentlycommented');\r
}\r
/**\r
* Sets up tidypics admin menu. Triggered on pagesetup.\r
include($CONFIG->pluginspath . "tidypics/recentlyviewed.php");\r
break;\r
\r
+ case "recentlycommented":\r
+ if (isset($page[1])) set_input('guid',$page[1]);\r
+ include($CONFIG->pluginspath . "tidypics/recentlycommented.php");\r
+ break;\r
+ \r
case "highestrated":\r
if (isset($page[1])) set_input('guid',$page[1]);\r
include($CONFIG->pluginspath . "tidypics/highestrated.php");\r
return $CONFIG->url . "pg/photos/album/" . $entity->getGUID() . "/" . $title;\r
}\r
\r
+ function tp_mostrecentimages($max = 8, $pagination = true) {\r
+ return list_entities("object", "image", 0, $max, false, false, $pagination); \r
+ }\r
\r
// Make sure tidypics_init is called on initialisation\r
register_elgg_event_handler('init','system','tidypics_init');\r
$view_count = $plugin->view_count;\r
if(!$view_count) $view_count = "enabled";\r
$form_body .= '<p class="admin_debug">' . elgg_view("input/checkboxes", array('options' => array(elgg_echo('tidypics:settings:view_count') => 'enabled'), 'internalname' => 'view_count', 'value' => $view_count )) . "</p>";\r
-/*\r
+
// Watermark Text\r
$form_body .= "<p>" . elgg_echo('tidypics:settings:watermark') . "<br />";\r
$form_body .= elgg_view("input/text",array('internalname' => 'params[watermark_text]', 'value' => $plugin->watermark_text)) . "</p>";\r
-*/\r
+
// Max Image Size\r
$maxfilesize = $plugin->maxfilesize;\r
if (!$maxfilesize) $maxfilesize = (int)5; // 5 MB\r
\r
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));\r
\r
- echo elgg_view('input/form', array('action' => $action, 'body' => $form_body));
\ No newline at end of file
+ echo elgg_view('input/form', array('action' => $action, 'body' => $form_body));