blob: 4d3affeb622cc2166275b0cb934abf45d73f5415 (
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
|
<?php
/**
* Photo tag view
*
* @uses $vars['tag'] Tag object
*/
$coords = json_decode('{' . $vars['tag']->coords . '}');
$attributes = elgg_format_attributes(array(
'class' => 'tidypics-tag',
'data-x1' => $coords->x1,
'data-y1' => $coords->y1,
'data-width' => $coords->width,
'data-height' => $coords->height,
));
//var_dump($vars['tag']);
//$text = "This is a something";
echo <<<HTML
<div $attributes>
</div>
HTML;
|