Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function cg_get_title($single){
- global $cg_url;
- if($this->params['title']){
- $title_array = get_post_meta($single->ID, $this->params['title']);
- $title = $title_array[0];
- if(!$title){$title = $single->post_title;}
- }
- else { $title = $single->post_title;}
- $returnlink = ($this->params['lightbox'])? ('"'.$cg_url.'/includes/CatGridPost.php?ID='.$single->ID.'" class="cgpost"') : ('"'.get_permalink($single->ID)).'"';
- $cgfontsize=$this->cg_get_font_size();
- $excerpt = apply_filters('get_the_excerpt', $post->post_excerpt);
- $post = get_post($single->ID); // unless $single is already a complete object
- $cgtitle='<div class="cgback cgnojs '.$this->params['showtitle'].'"></div><div class="cgtitle cgnojs '.$this->params['showtitle'].'"><p style="font-size:'.$cgfontsize.'px;line-height:'.(1.2*$cgfontsize).'px;"><a href='.$returnlink.'>'.$title.'</a></p>
- <div id="lol">'.$excerpt.' </div></div>';
- return $cgtitle;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement