Exemplo n.º 1
0
 /**
  * Adds opengraph data for the group
  *
  * @since	1.2
  * @access	public
  * @param	string
  * @return
  */
 public function addGroup(SocialGroup $group)
 {
     $config = FD::config();
     // Only proceed when opengraph is enabled
     if (!$config->get('oauth.facebook.opengraph.enabled')) {
         return;
     }
     $this->properties['type'] = 'profile';
     $this->properties['title'] = $group->getName();
     $description = strip_tags($group->getDescription());
     $this->addDescription($description);
     $this->addImage($group->getAvatar(SOCIAL_AVATAR_MEDIUM), SOCIAL_AVATAR_MEDIUM_WIDTH, SOCIAL_AVATAR_MEDIUM_HEIGHT);
     $this->addUrl($group->getPermalink(true, true));
     return $this;
 }
Exemplo n.º 2
0
    echo url_rewrite(AT_SOCIAL_BASENAME . 'groups/view.php?id=' . $grp);
    ?>
"><?php 
    echo $grp_obj->getName();
    ?>
</a></h4><br/>
					<?php 
    echo _AT('group_type') . ': ' . $grp_obj->getGroupType();
    ?>
<br/>
					<?php 
    echo _AT('access') . ': ' . ($grp_obj->getPrivacy() ? _AT('private') : _AT('public'));
    ?>
<br/>
					<?php 
    echo _AT('description') . ': <br/>' . $grp_obj->getDescription();
    ?>
<br/>
				</div>
				<div style="clear:both;"></div>
			</div><br />
		</div>
		<?php 
}
?>
		<?php 
if (!$grp) {
    echo _AT('no_groups_yet');
}
?>
	</div>