* - $is_admin: Flags true when the current user is an administrator. * * Field variables: for each field instance attached to the node a corresponding * variable is defined; for example, $node->body becomes $body. When needing to * access a field's raw values, developers/themers are strongly encouraged to * use these variables. Otherwise they will have to explicitly specify the * desired field language; for example, $node->body['en'], thus overriding any * language negotiation rule that was previously applied. * * @see template_preprocess() * @see template_preprocess_node() * @see template_process() */ //Flags info keyed by flag name (machine name) $flags = flag_get_user_flags('node', $node->nid); $flag_counts = flag_get_counts('node', $node->nid); // like flag breakdown $likes_count = isset($flag_counts['like']) ? $flag_counts['like'] : 0; if (isset($flags['like'])) { $likes_count -= 1; } $likes = ''; if ($likes_count > 0) { $likes = $likes_count . (isset($flags['like']) ? ' other ' : ' ') . ($likes_count > 1 ? 'people like ' : 'person likes ') . 'this.'; } $bannerTitle = $title; // unset($content['links']['comment']); //dump_pre($content['links']); ?>
?> <div<?php print $content_attributes; ?> > <?php // We hide the comments and links now so that we can render them later. hide($content['comments']); hide($content['links']); print render($content); ?> <div class="follow-counter"> <?php $flags = flag_get_counts("node", $node->nid, TRUE); ?> <div class="count-left"><span class="icon-bruger"></span></div> <div class="count-right"> <span><?php print t("This group has"); ?> :</span> <strong><?php print $flags["commons_follow_group"] . " " . t('followers'); ?> </strong> </div> </div>