\r
\r
*** MAKING TIDYPICS MATCH YOUR THEME ***\r
-Please check the css guid found in this directory. This will list the \r
+Please check the css guide found in this directory. This will list the \r
different css elements and where they are used.\r
\r
\r
6. photo deleted: 'delete', 'tp_image' \r
\r
*** TIDYPICS PLUGIN HOOKS ***\r
-1. album slideshow: 'tp_slideshow', 'album' - return false to not have a slideshow, otherwise return link to slideshow
\ No newline at end of file
+1. album slideshow: 'tp_slideshow', 'album' - return false to not have a slideshow, otherwise return link to slideshow\r
+2. watermark - return false to prevent default watermark\r
+ 'tp_watermark', 'gd' \r
+ 'tp_watermark', 'imagick'\r
+ 'tp_watermark', 'imagemagick'\r
+ \r
+ \r
+*** IMAGE MENU EXTENSIONS ***\r
+Below an image is a div called tidypics_controls. By default it contains controls\r
+like tagging or downloading an image. You can change what is shown there by overridding\r
+or extending the tidypics/image_menu view.\r
+\r
'album:group' => "Group albums",\r
'item:object:image' => "Photos",\r
'item:object:album' => "Albums",\r
- 'tidypics:uploading:images' => "Please wait. Uploading images",\r
+ 'tidypics:uploading:images' => "Please wait. Uploading images...",\r
'tidypics:enablephotos' => 'Enable group photo albums',\r
'tidypics:editprops' => 'Edit Image Properties',\r
'tidypics:mostcommented' => 'Most commented images',\r
if (!$watermark_text)
return;
+ // plugins can do their own watermark and return false to prevent this function from running
+ if (trigger_plugin_hook('tp_watermark', 'gd', $image, true) === false)
+ return;
+
global $CONFIG;
$owner = get_loggedin_user();
if (!$watermark_text)
return;
+ // plugins can do their own watermark and return false to prevent this function from running
+ if (trigger_plugin_hook('tp_watermark', 'imagick', $filename, true) === false)
+ return;
+
$owner = get_loggedin_user();
$watermark_text = tp_process_watermark_text($watermark_text, $owner);
if (!$watermark_text)
return;
-
+ // plugins can do their own watermark and return false to prevent this function from running
+ if (trigger_plugin_hook('tp_watermark', 'imagemagick', $filename, true) === false)
+ return;
+
$im_path = get_plugin_setting('im_path', 'tidypics');
if (!$im_path) {
$im_path = "/usr/bin/";