Пример #1
0
/**
 * add the ad meta in the loop after the ad title 
 * @since 3.1
 */
function cp_ad_loop_meta()
{
    if (is_page() || is_singular(APP_POST_TYPE)) {
        return;
    }
    // don't do ad-meta on pages
    global $post;
    if ($post->post_type == 'page') {
        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 (get_option('cp_ad_gravatar_thumb') == 'yes') {
        appthemes_get_profile_pic(get_the_author_meta('ID'), get_the_author_meta('user_email'), 16);
    }
    the_author_posts_link();
    ?>
</span> | <span class="clock"><span><?php 
    echo appthemes_date_posted($post->post_date);
    ?>
</span></span>
    </p>
<?php 
}
Пример #2
0
/**
 * add the ad meta in the loop after the ad title 
 * @since 3.1
 */
function cp_ad_loop_meta()
{
    if (is_page() || is_singular(APP_POST_TYPE)) {
        return;
    }
    // don't do ad-meta on pages
    global $post;
    ?>
	
    <p class="post-meta">
        <span class="folder"><?php 
    if (get_the_category()) {
        the_category(', ');
    } else {
        echo get_the_term_list($post->ID, APP_TAX_CAT, '', ', ', '');
    }
    ?>
</span> | <span class="owner"><?php 
    if (get_option('cp_ad_gravatar_thumb') == 'yes') {
        appthemes_get_profile_pic(get_the_author_meta('ID'), get_the_author_meta('user_email'), 16);
    }
    the_author_posts_link();
    ?>
</span> | <span class="clock"><span><?php 
    echo appthemes_date_posted($post->post_date);
    ?>
</span></span>
        
        <li class="agregadosloop">
        
        <span style="color: #F60; font-weight:bold;"><?php 
    echo get_post_meta($post->ID, 'cp_estado', true);
    ?>
 </span>
        
        | <?php 
    echo get_post_meta($post->ID, 'cp_marca', true);
    ?>
, <?php 
    echo get_post_meta($post->ID, 'cp_modelo', true);
    ?>
 
        
        | <?php 
    echo get_post_meta($post->ID, 'cp_city', true);
    ?>
, <?php 
    echo get_post_meta($post->ID, 'cp_state', true);
    ?>
  
          </li>
        
        
    </p>
<?php 
}
Пример #3
0
                <div class="shadowblock_out">

                    <div class="shadowblock">

                        <h1 class="single dotted"><?php 
_e('About', 'appthemes');
?>
 <?php 
echo $curauth->display_name;
?>
</h1>

                        <div class="post">

							<div id="user-photo"><?php 
appthemes_get_profile_pic($curauth->ID, $curauth->user_email, 96);
?>
</div>

                            <div class="author-main">

								<ul class="author-info">
									<li><strong><?php 
_e('Member Since:', 'appthemes');
?>
</strong> <?php 
echo date_i18n(get_option('date_format'), strtotime($curauth->user_registered));
?>
</li>
									
                                    <li><strong><?php 
Пример #4
0
        ?>
          
                <a href="<?php 
        echo get_option('siteurl');
        ?>
/wp-login.php?action=register" class="mbtn btn_orange"><?php 
        _e('Join Now!', 'appthemes');
        ?>
</a>

            <?php 
    } else {
        ?>

                <div class="avatar"><?php 
        appthemes_get_profile_pic($current_user->ID, $current_user->user_email, 60);
        ?>
</div>

                <div class="user">

                    <p class="welcome-back"><?php 
        _e('Welcome back,', 'appthemes');
        ?>
 <strong><?php 
        echo $display_user_name;
        ?>
</strong>.</p>
                    <p class="last-login"><?php 
        _e('You last logged in at:', 'appthemes');
        ?>
Пример #5
0
            }
            ?>

	                    <div class="clr"></div>
          
           
            <p class="post-meta"><span class="folder"><?php 
            if (get_the_category()) {
                the_category(', ');
            } else {
                echo get_the_term_list($post->ID, APP_TAX_CAT, '', ', ', '');
            }
            ?>
</span>&nbsp;<span class="owner"><?php 
            if (get_option('cp_ad_gravatar_thumb') == 'yes') {
                appthemes_get_profile_pic(get_the_author_meta('ID'), get_the_author_meta('user_email'), 16);
            }
            the_author_posts_link();
            ?>
</span>&nbsp;<span class="clock"><span><?php 
            echo appthemes_date_posted($post->post_date);
            ?>
</span></span></p>
           
        
                        
	                    <div class="clr"></div>

	                    <?php 
            appthemes_before_post_content();
            ?>
Пример #6
0
/**
 * Adds the ad meta in the loop after the ad title.
 * @since 3.1
 *
 * @return void
 */
function cp_ad_loop_meta()
{
    global $post, $cp_options;
    if (is_singular(APP_POST_TYPE)) {
        return;
    }
    ?>
	<p class="post-meta">
		<span class="dashicons-before folder"><?php 
    if ($post->post_type == 'post') {
        the_category(', ');
    } else {
        echo get_the_term_list($post->ID, APP_TAX_CAT, '', ', ', '');
    }
    ?>
</span> <span class="dashicons-before owner"><?php 
    if ($cp_options->ad_gravatar_thumb) {
        appthemes_get_profile_pic(get_the_author_meta('ID'), get_the_author_meta('user_email'), 32);
    }
    the_author_posts_link();
    ?>
</span> <span class="dashicons-before clock"><span><?php 
    echo appthemes_date_posted($post->post_date);
    ?>
</span></span>
	</p>
<?php 
}