function my_cp_ad_loop_meta() {
global $post, $cp_options;
if ( is_singular( APP_POST_TYPE ) )
return;
?>
<p class="post-meta">
<span class="folder"><?php if ( $post->post_type == 'post' ) the_category(', '); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?></span> |
<span class="owner"><?php if ( $cp_options->ad_gravatar_thumb ) appthemes_get_profile_pic( get_the_author_meta('ID'), get_the_author_meta('user_email'), 16 ) ?><?php the_author_posts_link(); ?></span> |
<span class="from"><?php _e("Dal: "); echo get_post_meta( $post->ID, 'cp_datefrom', true); ?></span> |
<span class="to"><?php _e("Al: "); echo get_post_meta( $post->ID, 'cp_dateto', true); ?></span> |
<span class="clock"><span><?php echo appthemes_date_posted($post->post_date); ?></span></span>
</p>
<?php
}
add_action( 'appthemes_after_post_title', 'my_cp_ad_loop_meta');
function my_remove_action() {
remove_action( 'appthemes_after_post_title', 'cp_ad_loop_meta');
}
add_action( 'after_setup_theme', 'my_remove_action' );
There are currently 1 users browsing this thread. (0 members and 1 guests)