* - $fields: an array of $field objects. Each one contains:
 *   - $field->content: The output of the field.
 *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
 *   - $field->class: The safe class id to use.
 *   - $field->handler: The Views field handler object controlling this field. Do not use
 *     var_export to dump this object, as it can't handle the recursion.
 *   - $field->inline: Whether or not the field should be inline.
 *   - $field->inline_html: either div or span based on the above flag.
 *   - $field->separator: an optional separator that may appear before a field.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @ingroup views_templates
 */
global $user;
if ($user->uid) {
    $flag = flag_create_link('vote', $row->nid);
} else {
    $flag = l(t('Sign In'), 'user');
}
foreach ($fields as $id => $field) {
    ?>
  <?php 
    if (!empty($field->separator)) {
        ?>
    <?php 
        print $field->separator;
        ?>
  <?php 
    }
    ?>
    if (!empty($field->separator)) {
        ?>
      <?php 
        print $field->separator;
        ?>
    <?php 
    }
    ?>
  
    <?php 
    print $field->wrapper_prefix;
    ?>
      <?php 
    print $field->label_html;
    ?>
      <?php 
    print $field->content;
    ?>
     
    <?php 
    print $field->wrapper_suffix;
    ?>
  <?php 
}
?>
    
  <?php 
print flag_create_link("session_schedule", $row->nid);
?>
</div>
Exemplo n.º 3
0
function boinc_preprocess_comment(&$vars, $hook)
{
    global $user;
    //$vars['sample_variable'] = t('Lorem ipsum.');
    //drupal_set_message('debug: <pre>' . print_r($vars,true) . '</pre>');
    $links = array();
    $moderator_links = array();
    $cid = $vars['comment']->cid;
    $nid = $vars['comment']->nid;
    if ($hook == 'comment') {
        if (user_access('administer comments')) {
            // Reorganize links for moderators
            $vars['links'] = array();
            $links['reply'] = array('title' => bts('Reply'), 'href' => "comment/reply/{$nid}/{$cid}", 'attributes' => array('title' => bts('Reply to this comment')));
            $links['quote'] = array('title' => bts('Quote'), 'href' => "comment/reply/{$nid}/{$cid}", 'attributes' => array('title' => bts('Reply to this comment with quote')), 'fragment' => 'comment-form', 'query' => 'quote=1');
            // Move edit and delete controls into moderator links
            $moderator_links['edit'] = array('title' => bts('Edit'), 'href' => "comment/edit/{$cid}", 'attributes' => array('title' => bts('Edit this comment')));
            $moderator_links['delete'] = array('title' => bts('Delete'), 'href' => "comment/delete/{$cid}", 'attributes' => array('title' => bts('Delete this comment')));
            // Add hide link
            $comment_control = "comment_control/{$cid}";
            if ($vars['comment']->status == 0) {
                $moderator_links['hide'] = array('title' => bts('Hide'), 'href' => "{$comment_control}/hide", 'attributes' => array('title' => bts('Hide this comment')));
            } else {
                $moderator_links['unhide'] = array('title' => bts('Unhide'), 'href' => "{$comment_control}/unhide", 'attributes' => array('title' => bts('Unhide this comment')));
            }
            // Add link to convert comment into a new topic
            $reply_count = db_result(db_query('
        SELECT COUNT(*) FROM comments WHERE pid = %d', $cid));
            if ($reply_count == 0) {
                $moderator_links['convert'] = array('title' => bts('Convert'), 'href' => "{$comment_control}/convert", 'attributes' => array('title' => bts('Convert this comment to a new topic')));
            }
            $vars['moderator_links'] = theme_links($moderator_links);
        } else {
            $links = comment_links($vars['comment'], FALSE);
            if (user_access('post comments')) {
                $links['comment_quote'] = array('title' => bts('Quote'), 'href' => "comment/reply/{$nid}/{$cid}", 'attributes' => array('title' => bts('Reply to this comment with quote')), 'fragment' => 'comment-form', 'query' => 'quote=1');
            }
        }
        ksort($links);
        $vars['links'] = theme_links($links);
        if ($user->uid) {
            $abuse_link = flag_create_link('abuse_comment', $cid);
            if ($abuse_link) {
                $report_comment_link = '' . '<ul class="links">' . '<li class="first">' . $abuse_link . '</li>' . '</ul>';
                $vars['links'] = $report_comment_link . $vars['links'];
            }
        }
        // Show signatures based on user preference
        $vars['show_signatures'] = $user->hide_signatures ? FALSE : TRUE;
    }
}
?>
"/>
  <div class="user-details">
    <div class="btn btn-default">        
      <?php 
if ($account['user']->uid === $GLOBALS['user']->uid) {
    ?>
        <a href="/user/<?php 
    print $GLOBALS['user']->uid;
    ?>
/edit">Edit Profile</a>
      <?php 
} else {
    ?>
        <?php 
    print flag_create_link('cf_follow_user', $account['user']->uid);
    ?>
      <?php 
}
?>
    </div>
  </div>
</div>
<div class="col-lg-9 col-md-9 col-xs-8 user-profile-right-col">
  <?php 
$cf_user_statistics_blocks = module_invoke('community_features', 'block_view', 'cf_user_statistics');
?>
  <?php 
//dpm($cf_user_statistics_blocks);
?>
  <?php 
          </a>
          <div class="action">
              <div class="group">
                  <div class="add-to-cart"><i class="fa fa-cart-plus"></i><?php 
print $fields['add_to_cart_form']->content;
?>
</div>
                  <?php 
if (user_is_logged_in()) {
    ?>
                        <span class="wishlist"><?php 
    print flag_create_link('bookmark', $fields['nid']->content);
    ?>
</span>
                        <span class="compare"><?php 
    print flag_create_link('compare', $fields['nid']->content);
    ?>
</span>
                  <?php 
} else {
    ?>
                        <a href="<?php 
    print base_path() . 'user';
    ?>
"><i class="fa fa-heart-o"></i></a>
                        <a href="<?php 
    print base_path() . 'user';
    ?>
"><i class="fa fa-refresh"></i></a>
                  <?php 
}
    echo "<a href='/user/{$user->uid}/edit'>Edit Profile</a>";
  }
  echo flag_create_link('cf_follow_user', $account['user']->uid);*/
?>
      <?php 
if ($uid === $GLOBALS['user']->uid) {
    ?>
        <a href="/user/<?php 
    print $GLOBALS['user']->uid;
    ?>
/edit">Edit Profile</a>
      <?php 
} else {
    ?>
        <?php 
    print flag_create_link('cf_follow_user', $uid);
    ?>
      <?php 
}
?>
    </div>
  </div>
</div>


<div class="col-lg-9 col-md-9 col-xs-8 user-profile-right-col">
  <?php 
$cf_user_statistics_blocks = module_invoke('community_features', 'block_view', 'cf_user_statistics');
?>
  <?php 
//dpm($cf_user_statistics_blocks);
Exemplo n.º 7
0
        <?php 
    print $node->content['nivaria_translate_content_link']['#value'];
    ?>
    </div>
    <?php 
}
?>
    <!-- End Translate link -->

    <!-- Mark Highlighted in Newsletter -->
    <?php 
if (user_access(PERM_ADMIN_CONTESTS)) {
    ?>
    <div class="link-highlight-arquideas-newsletter">
        <?php 
    print flag_create_link('newsletter', $node->nid);
    ?>
    </div>
    <?php 
}
?>
    <!-- End Mark Highlighted in Newsletter -->


    <?php 
if ($links) {
    ?>
    <div class="links">
      <?php 
    print $links;
    ?>
	<div class="col-md-8 col-sm-11"><h2><?php 
print $title_attributes;
print render($content['field_link']);
?>
</h2> 
								<?php 
print render($content['field_description']);
?>
								<div class="hidden-md hidden-lg"><p><?php 
print flag_create_link('my_library', $node->nid);
?>
</p></div>
	</div>
	<div class="col-md-3 hidden-sm hidden-xs">
		<br><?php 
print flag_create_link('my_library', $node->nid);
?>
	</div>
 </div>
  


  <div class="content"<?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);
    include 'views-ezproxy_url.inc';
    ?>
      <div class="row" style="border-top:1px dashed #cccccc; padding:5px;">
	  <div>
	  
	  </div>
		<div class="col-md-1 col-sm-1 col-xs-3">
			<?php 
    print_r($view->style_plugin->get_field($key, 'ops_1'));
    ?>
			
		</div>
		
		<div class="col-md-1 col-sm-1 col-xs-3">
            <?php 
    print flag_create_link('my_library', $view->style_plugin->get_field($key, "nid"));
    ?>
        </div>
	  
		<div class="col-md-10 col-sm-10 col-xs-6">
            <a href="<?php 
    print $db_url;
    ?>
" target="_blank" rel="nofollow"><?php 
    print $view->style_plugin->get_field($key, "field_link_2");
    ?>
</a>  
		</div>
			
		
		
Exemplo n.º 10
0
    unset($content['links']['comment']['#links']['comment-add']);
}
// Only display the wrapper div if there are links.
$links = render($content['links']);
//if ($links):
?>
<!--		<div class="link-wrapper">-->
<!--			--><?php 
//print $links;
?>
<!--		</div>-->
<!--	--><?php 
//endif;
?>
	<?php 
print flag_create_link('favorites', $node->nid);
?>
	<?php 
print render($content['comments']);
?>
	<?php 
if (!empty($node->field_picture)) {
    ?>
	<div class="cloud-picture">
		<div class="clip"></div>
		<div class="cloud-picture-wrapper">
			<?php 
    print theme_image_style(array('style_name' => 'cloud_picture_small', 'path' => $node->field_picture['und'][0]['uri']));
    ?>
		</div>
	</div>
 * - $promote: Flag for front page promotion state.
 * - $sticky: Flags for sticky post setting.
 * - $status: Flag for published status.
 * - $comment: State of comment settings for the node.
 * - $readmore: Flags true if the teaser content of the node cannot hold the
 *   main body content.
 * - $is_front: Flags true when presented in the front page.
 * - $logged_in: Flags true when the current user is a logged-in member.
 * - $is_admin: Flags true when the current user is an administrator.
 *
 * @see template_preprocess()
 * @see template_preprocess_node()
 */
global $user;
if ($user->uid) {
    $flag = flag_create_link('vote', $node->nid);
} else {
    $flag = l(t('Sign In'), 'user', array('query' => 'destination=node/' . $node->nid));
}
$counts = flag_get_counts('node', $node->nid);
$count = $counts['vote'];
?>
<div id="node-<?php 
print $node->nid;
?>
" class="node<?php 
if ($sticky) {
    print ' sticky';
}
if (!$status) {
    print ' node-unpublished';
    global $user;
    $body = '';
    $fullurl = 'http://' . $_SERVER['HTTP_HOST'];
    $url = $fullurl . '/' . drupal_get_path_alias('node/' . $node->nid);
    if (!empty($node->body['und']) && isset($node->body['und'])) {
        $node_body = $node->body['und'][0]['value'];
        $body = strip_tags($node_body);
    }
    $flag_link = '';
    $flag_dest = '';
    $get_destination = drupal_get_destination();
    if (isset($get_destination['destination']) && !empty($get_destination['destination'])) {
        $flag_dest = $get_destination['destination'];
    }
    if ($user->uid) {
        $flag_link = flag_create_link('saved_articles', $node->nid);
    } else {
        $flag_link = '<a href="user/?destination=' . $flag_dest . '" title="Click to save content" class="flag flag-action flag-link-toggle flag-processed" rel="nofollow"><img src="' . $save_img . '"></a>';
    }
    ?>

<?php 
    // Copy to clipboard script
    ?>
<script type="text/javascript">
  function customCopyText(objId) {
    var copyTextarea = document.querySelector('#' + objId);
    copyTextarea.select();
    try {
      var successful = document.execCommand('copy');
      var msg = successful ? 'successful' : 'unsuccessful';
Exemplo n.º 13
0
    <?php 
    if (!$is_edit && isset($contest) && $contest->field_contest_state[0]['value'] == ContestState::OPEN && $node->field_inscription_state[0]['value'] == InscriptionState::PREINSCRIPTED) {
        print '<div class="open-contest-button">' . openContestButton($contest) . '</div>';
    }
    ?>
    <!-- END INSCRIPTION, PAYMENT OR PRESENTATION LINK -->

    <div class="clearfix">&nbsp;</div>

    <!-- Mark Special Arquideas Prize -->
    <?php 
    if ($contest->field_contest_state[0]['value'] == ContestState::FINISHED && user_access(PERM_ADMIN_CONTESTS)) {
        ?>
    <div class="link-special-arquideas-prize">
        <?php 
        print flag_create_link('arquideas_prize', $node->nid);
        ?>
    </div>
    <?php 
    }
    ?>
    <!-- End Mark Special Arquideas Prize -->
    </div>
    <?php 
}
?>

    <?php 
if (!$is_edit && $page == 1) {
    ?>
        <!-- Edit link -->
Exemplo n.º 14
0
print $compete_rank;
?>
</li>
                </ul>               
                
                </div><!--/source ranking-->
              
                
                <div class="source_actions clearfix">
                <ul>                
                	<li><?php 
print flag_create_link('watchlist', $node->nid);
?>
</li>
                	<li><?php 
print flag_create_link('blacklist', $node->nid);
?>
</li>                	
                </ul>              
                
                </div><!--/source actions-->
                


<?php 
// SET UP FILTERING
$sorting = check_plain($_GET['timeframe']);
if (empty($sorting)) {
    $sorting = 'all';
}
//default
  
  <?php 
if (user_access('administer tattler')) {
    $options = array('attributes' => array('rel' => '#overlay'));
    ?>
    <li class="tags">
      <?php 
    print l(t('Edit Node Essentials'), 'buzz/' . $row->nid . '/edit', $options);
    ?>
    </li>  
  <?php 
}
?>
    
  <li><?php 
print flag_create_link('watchlist', $row->node_node_data_field_source_nid);
?>
</li> 
  <li><?php 
print flag_create_link('blacklist', $row->node_node_data_field_source_nid);
?>
</li>     

  </ul>              
  
  </div><!--/source actions-->   
  <div class="close_entry_detail"><a class="mention_close_link" href="#">CLOSE</a></div>  
  
  </div><!--/entry detail--> 
  
</li><!--/entry-->
  <h2><?php 
print $row->node_title;
?>
</h2>
  
  <div class="source_and_date"><?php 
print $source_link;
?>
</div><!--/source and date-->  
  </div><!--/float left-->
  
  <div class="actions" style="display: none;">
  <ul>
    <li><?php 
print flag_create_link('watchlist', $row->nid);
?>
</li> 
    <li><?php 
print flag_create_link('blacklist', $row->nid);
?>
</li>     
    <!--li><a id="<?php 
print $row->nid;
?>
" class="buzz_icon blacklist"></a></li-->
  </ul>
  
  </div><!--/actions-->   
  </div><!--/entry summary-->         
    
</li><!--/entry-->
Exemplo n.º 17
0
</span>
      </div>
      
      <?php 
print render($content);
?>
      <?php 
print render($content['add_to_cart']);
?>
      
      <div class="actions">
        <?php 
print flag_create_link('wishlist', $node->nid);
?>
        <?php 
print flag_create_link('compare', $node->nid);
?>
      </div><!-- .actions -->
    </div>
  </div>

    <div class="product-tab">
      <ul class="nav nav-tabs">
        <li class="active"><a href="#description"><?php 
print $content['body']['#title'];
?>
</a></li>
        <li><a href="#reviews"><?php 
print t('Reviews');
?>
</a></li>
<?php

/**
 * @file
 * Default simple view template to display a single comment.
 *
 * Rather than doing anything with this particular template, it is more
 * efficient to use a variant of the comment.tpl.php based upon the view,
 * which will be named comment-view-VIEWNAME.tpl.php. This isn't actually
 * a views template, which is why it's not used here, but is a template
 * 'suggestion' given to the comment template, and is used exactly
 * the same as any other variant of the comment template file, such as
 * node-nodeTYPE.tpl.php
 *
 * @ingroup views_templates
 */
print $comment;
print flag_create_link('ranking', $row->cid);
Exemplo n.º 19
0
    ?>
        <div class="user-signature clear-block">
          <?php 
    print $signature;
    ?>
        </div>
      <?php 
}
?>
    </div>

    <?php 
if ($links) {
    ?>
      <div class="links"><?php 
    print $links;
    ?>
</div>
    <?php 
} else {
    ?>
      <div class="links"><?php 
    print flag_create_link('report_comment', $comment->cid);
    ?>
</div>
    <?php 
}
?>
  </div>
</div>
        }
        /*if ($keuzevrijheid) $where .= " AND vc.field_keuzevrijheid_value = '$keuzevrijheid'";*/
        //, vc.field_keuzevrijheid_value
        $query = db_query("SELECT DISTINCT vc.field_maandpremie_value, vc.nid, n2.title FROM {node} n INNER JOIN {content_type_contract} vc ON (n.nid = vc.field_verzekeraar_nid) LEFT JOIN {node} n2 ON (vc.vid = n2.vid) WHERE " . $where, $node->nid);
    }
    $vcontracts = array();
    while ($row = db_fetch_array($query)) {
        $pr = (int) number_format(str_replace(",", ".", $row['field_maandpremie_value']), 2, '', '');
        $vcontracts[$pr] = array('nid' => $row['nid'], 'title' => $row['title'], 'maandpremie' => number_format(str_replace(",", ".", $row['field_maandpremie_value']), 2, ',', ''), 'keuzevrijheid' => 'Beperkte zorgkeuze');
    }
    ksort($vcontracts);
    $vcontracts = current($vcontracts);
    $contract_price = !empty($node->field_insurance_premie_from[0]['value']) ? $node->field_insurance_premie_from[0]['value'] : $vcontracts['maandpremie'];
    $contract_title = $vcontracts['title'];
    $contract_zorgkeuze = !empty($node->field_keuzevrijheid[0]['value']) ? $node->field_keuzevrijheid[0]['value'] : $vcontracts['keuzevrijheid'];
    $link = flag_create_link('compare', $vcontracts['nid']);
    if ($contract_title == '<none>') {
        $contract_title = '';
    }
    /*foreach($vcontracts as $vcontract){
         $contract_price = $vcontract['maandpremie'];
         $contract_title = $vcontract['title'];
         $contract_zorgkeuze = $vcontract['keuzevrijheid'];
      $link = flag_create_link('compare', $vcontract['nid']);
         break;
       }*/
    ?>
<table>
	<tr>
		<td class="row-0 no_text first"></td>
		<td class="no_text first"></td>
Exemplo n.º 21
0
print $avatar;
?>
      <?php 
hide($content['field_reply_subject']);
?>
      <h3><?php 
print $reply->field_reply_subject[LANGUAGE_NONE][0]['safe_value'];
?>
</h3>
      <span class="submitted">Posted by <?php 
print $author;
?>
 on <?php 
print $created;
?>
</span>
    </div>
    <div class="reply-body"><?php 
print render($content);
?>
</div>
    <?php 
print flag_create_link('spam_reply', $reply->id);
?>
    <div class="reply-links pull-left"><?php 
print render($links);
?>
</div>
  </div>
</div>
Exemplo n.º 22
0
function dewey_node_submitted($node)
{
    // Generate group's string.
    $groups = og_get_node_groups($node);
    $group_str = "";
    foreach ($groups as $gid => $title) {
        $group_str .= l($title, "node/" . $gid, array('purl' => array('disabled' => TRUE))) . ", ";
    }
    // Generate timestamp. If posted < 48 hours, use x ago sytax.
    // Else use regular date.
    if (time() - $node->created < 172800) {
        $time = "about " . format_interval(time() - $node->created, 1) . " ago";
    } else {
        $time = "on " . format_date($node->created, 'custom', "j M Y");
    }
    $group_str = trim($group_str, ", ");
    return t('In !group_name by !username <span class="date">!datetime</span> &bull; @replies &bull; !follow', array('!group_name' => $group_str, '!username' => theme('username', $node), '!datetime' => $time, '@replies' => format_plural($node->comment_count, '1 Reply', '@count Replies'), '!follow' => flag_create_link('follow_node', $node->nid)));
}
        <div class="portfolio-info">
            <div class="portfolio-tools">
                <a href="<?php 
print $node_url;
?>
"><span class="fa fa-link"></span></a> <a title="<?php 
print $title;
?>
" rel="lightbox[portfolio]" href="<?php 
print $first_image;
?>
"><span class="fa fa-search"></span></a>
            </div>
        </div>
    </div>

</div>
<div class="dexp-animate item-description" data-animate-delay="500" data-animate="fadeInUp">
  <div><a href="<?php 
print $node_url;
?>
"><?php 
print $title;
?>
</a></div>
  <div class="like-portfolio"><?php 
print flag_create_link("like", $node->nid);
?>
</div>
</div>
</div>
?>
</p>
            
            <div class="shop-divider"></div>
            
            <?php 
print render($content['field_product']);
?>
            <div class='wishlist'>
            <?php 
if (isset($node->field_product[$node->language])) {
    $product = $node->field_product[$node->language][0]['product_id'];
} else {
    $product = $node->field_product['und'][0]['product_id'];
}
print flag_create_link('wishlist', $product);
?>
            </div>  
            <div class="shop-divider"></div>
        </div>
    </div>
    
    <div class="dexp_tab_wrapper default clearfix" id="dexp_tab_wrapper_product_detail" style="padding-top:20px"> 
        <ul class="nav nav-tabs">
            <li class="first active"><a data-toggle="tab" href="#product_description">
                <i class="tab-icon fa "></i>Description</a></li>
            <li class=""><a data-toggle="tab" href="#product_additional">
                <i class="tab-icon fa "></i>Specification</a></li>
            <li class="last"><a data-toggle="tab" href="#product_review">
                <i class="tab-icon fa "></i>Review (<?php 
print $comment_count;
print $content;
// @TODO render the user node for my profile in a module or in template.php
// We need the user for this profile
$node_user = user_load(array('uid' => $node->uid));
print '<p> </p><div class="field"><div class="field-label">Neighbour since:</div><div class="field-items"><div class="field-item">' . format_date($node_user->created) . '<p> </p></div></div>';
print '<div class="field-label">Last login:</div><div class="field-items"><div class="field-item">' . format_date($node_user->login) . '<p> </p></div></div>';
$no_posts = $stats['online'] = db_result(db_query("SELECT COUNT(nid) AS count FROM {node} WHERE uid = %d AND ( type = 'task_discussion' OR type = 'news' OR type = 'comment')", $node->uid));
print '<div class="field-label">I have posted on NABUUR:</div><div class="field-items"><div class="field-item">' . $no_posts . ' Posts<p> </p></div></div></div>';
//print_r($user);
?>
  </div>

  <div class="meta">
  <?php 
if ($taxonomy) {
    ?>
    <div class="terms"><?php 
    print $terms;
    ?>
</div>
  <?php 
}
?>
  </div>
  <div class="block_user">
    <?php 
print flag_create_link('block_user', $node_user->uid);
?>
  </div>
</div>
 <?php 
    print t('Review(s)');
    ?>
</a>
                    </div>
                    <span class="price"><?php 
    print $rows[$i]['commerce_price'];
    ?>
</span>
                    <div class="compare-action">
                        <span class="btn btn-1 add-to-cart"><?php 
    print $rows[$i]['add_to_cart_form'];
    ?>
</span>
                        <span class="btn btn btn-17"><?php 
    print flag_create_link('bookmark', $rows[$i]['nid']);
    ?>
</span>
                    </div>
                </td>
            <?php 
}
?>
        </tr>
        <tr>
            <td class="td-caption"><?php 
print t('Short Description');
?>
</td>
            <?php 
for ($i = 0; $i < $total; $i++) {
Exemplo n.º 27
0
<?php

global $base_url;
$register_link = '';
$flag_dest = '';
$get_destination = drupal_get_destination();
if (isset($get_destination['destination']) && !empty($get_destination['destination'])) {
    $flag_dest = $get_destination['destination'];
}
if ($user->uid) {
    $register_link = flag_create_link('company_follow_unflollow', arg(2));
} else {
    $register_link = l(t('REGISTER (free)'), 'user/register', array('query' => array('destination' => $flag_dest)));
}
?>

<div class="register-container login-form">
	<div class="register-text login-text">Welcome to MortgageSpeak.com!</div>
		<div class="login-left">			
			<span class="login-title">Log in</span>
			<?php 
print $name;
// Display username field
?>
			<?php 
print $pass;
// Display Password field
?>
			<?php 
print $rendered;
// Display hidden elements (required for successful login)
<?php

// $Id: views-view-field.tpl.php,v 1.1 2008/05/16 22:22:32 merlinofchaos Exp $
/**
 * This template is used to print a single field in a view. It is not
 * actually used in default Views, as this is registered as a theme
 * function which has better performance. For single overrides, the
 * template is perfectly okay.
 *
 * Variables available:
 * - $view: The view object
 * - $field: The field handler object that can process the input
 * - $row: The raw SQL result that can be used
 * - $output: The processed output that will normally be used.
 *
 * When fetching output from the $row, this construct should be used:
 * $data = $row->{$field->field_alias}
 *
 * The above will guarantee that you'll always get the correct data,
 * regardless of any changes in the aliasing that might happen if
 * the view is modified.
 */
echo flag_create_link('featured_speaker', $row->uid);
Exemplo n.º 29
0
      </div>
      <div class="video hide"><div class="close-button">✖</div><?php 
print render($content['field_videos']);
?>
</div>
      <div class="map hide"><div class="close-button">✖</div><?php 
print render($content['field_map']);
?>
</div>
    </div>
      <?php 
print flag_create_link('favorite_property', $node->nid);
?>
      <?php 
print render($content['body']);
print flag_create_link('bookmarks', $node->nid);
?>
      <div class="sharing">
      <h2><?php 
print t("share");
?>
</h2>
	  <div class="addthis_sharing_toolbox"></div>
    <?php 
global $language;
if ($language->name == "English") {
    ?>
          <a class="print" target="_blank" href="/en/print/<?php 
    print $node->nid;
    ?>
"><img src="/sites/all/themes/barel/images/print.png"></a> 
    ?>
    <div class="attachment attachment-before">
      <?php 
    print $attachment_before;
    ?>
    </div>
  <?php 
}
?>

  <?php 
if ($rows) {
    ?>
    <div class="view-content">
        <?php 
    print flag_create_link('ucalgary_program_compare_flag', $view->args[0]);
    ?>
      <?php 
    print $rows;
    ?>
    </div>
  <?php 
} elseif ($empty) {
    ?>
    <div class="view-empty">
      <?php 
    print $empty;
    ?>
    </div>
  <?php 
}