aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-07 21:27:47 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-07 21:27:47 +0000
commit4c9f7458a2c6be523dc98cdb9e94af3242a16b9c (patch)
treea7cc859f6fc16f43b446a49779297f1d3536258b /views/default/object
parent28de8d490b284551867be1153747c29a8d59b13c (diff)
downloadelgg-4c9f7458a2c6be523dc98cdb9e94af3242a16b9c.tar.gz
elgg-4c9f7458a2c6be523dc98cdb9e94af3242a16b9c.tar.bz2
added option for turning off ratings
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 21ee3ff1d..ebac9c775 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -200,12 +200,15 @@ if ($photo_tags) {
<div id="tidypics_info">
<?php if (!is_null($tags)) { ?>
<div class="object_tag_string"><?php echo elgg_view('output/tags',array('value' => $tags));?></div>
-<?php } ?>
-<div id="rate_container">
+<?php }
+ if (get_plugin_setting('photo_ratings', 'tidypics') != "disabled") {
+?>
+ <div id="rate_container">
<?php echo elgg_view('rate/rate', array('entity'=> $vars['entity'])); ?>
</div>
<?
-
+ }
+
echo elgg_echo('image:by');?> <b><a href="<?php echo $vars['url']; ?>pg/profile/<?php echo $owner->username; ?>"><?php echo $owner->name; ?></a></b> <?php echo $friendlytime;
?>
</div>