aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/image_menu.php
blob: dcec9b35a6dbf509c727b92acd88d811ed58d1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

	/**************************************************************************
	 *
	 *  Tidypics Image Menu
	 *
	 *  This is the menu that appears below an image. Admins can override the
	 *  menu with a different view to provide a look and feel that matches
	 *  their themes. The view can be extended to provide additional controls.
	 *
	 **************************************************************************/

	$file_guid = $vars['file_guid'];
	$viewer = $vars['viewer'];
	$owner = $vars['owner'];
	
	// only owner and friends of owner can tag
	if ($viewer && $viewer->guid == $owner->guid || user_is_friend($owner->guid, $viewer->guid)) {
?>
<li id="start_tagging"><a id="tag_control" href="javascript:void(0)" onclick="startTagging()"><?= elgg_echo('tidypics:tagthisphoto') ?></a></li>
<?php
	}
	if (get_plugin_setting('download_link', 'tidypics') != "no") { 
?>
<li id="download_image"><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li>
<?php
	} 
?>