Modifying wp template

Hi, i am trying to modify a wordpress template. I do it all the time, but this one i dont know how to do it. Hope somebody can help me.

I have this part

  <h2 class="cb-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
   <?php echo cb_byline(true); ?><i class="fa fa-eye"></i>&nbsp;<?php if(function_exists('the_views')) { the_views(); } ?><?php if(function_exists('the_ratings')) { the_ratings(); } ?> </div></p>
  <div class="cb-excerpt"><?php echo cb_clean_excerpt( 210, false ); ?></div>

I added this part

<i class="fa fa-eye"></i>&nbsp;<?php if(function_exists('the_views')) { the_views(); } ?><?php if(function_exists('the_ratings')) { the_ratings(); } ?> </div></p>

Now, what I need to do is tho add the same fnctions to this other code:

 $cb_posts .= ' <li class="cb-article-' . $i . ' clearfix"><div class="cb-mask" style="background-color:' . $cb_category_color . ';">' . $cb_img . cb_review_ext_box( $cb_post_id, $cb_category_color, true ) . '</div><div class="cb-meta"><h2 class="h4"><a href="' . esc_url( $cb_permalink ) . '">' . $cb_post_title . '</a></h2>' . cb_byline( false, $cb_post_id, true ) . '</div></li>';
                $i++;
            }

like… after “cb_byline” I need to add “the_views” and “the_ratings”…
I have no idea how to do it, hope I explained well

Thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service