Ejemplo n.º 1
1
/**
 * Post meta for above the post.
 */
function restful_post_meta_above()
{
    global $post;
    ?>

  <div class="entry__meta-item">
    <i class="fa fa-calendar"></i>
    <a href="<?php 
    esc_url(get_permalink());
    ?>
"><?php 
    the_time(get_option('date_format'));
    ?>
</a>
  </div>

  <div class="entry__meta-item">
    <i class="fa fa-user"></i>
    <a href="<?php 
    echo esc_url(get_author_posts_url($post->post_author));
    ?>
"><?php 
    the_author_meta('display_name', $post->post_author);
    ?>
</a>
  </div>

  <?php 
    if (comments_open() || have_comments()) {
        ?>
    <div class="entry__meta-item">
      <i class="fa fa-comment"></i>
      <a href="<?php 
        esc_url(comments_link());
        ?>
"><?php 
        comments_number();
        ?>
</a>
    </div>
  <?php 
    }
    ?>

<?php 
}
Ejemplo n.º 2
0
    function widget($args, $instance)
    {
        extract($args);
        $instance[width] = $grid_width;
        if (get_the_author_meta('description')) {
            ?>
				<div id="author-info">
					<div id="author-avatar">
						<?php 
            echo get_avatar(get_the_author_meta('user_email'), 60);
            ?>
					</div><!-- #author-avatar -->
					<div id="author-description">
						<h2><?php 
            printf(__('About %s', THEME_ADMIN_LANG_DOMAIN), get_the_author());
            ?>
</h2>
						<?php 
            the_author_meta('description');
            ?>
					</div><!-- #author-description	-->
				</div><!-- #entry-author-info -->
				<?php 
        }
    }
Ejemplo n.º 3
0
function post_excerpts_here()
{
    //posts with date, author, time, content excerpts, and title..
    if (have_posts()) {
        while (have_posts()) {
            echo '<div class="excerpt-div">';
            the_post();
            echo '<h2 class="post-title"><a href="';
            the_permalink();
            echo '" title="';
            the_title();
            echo '">';
            the_title();
            echo '</a></h2>';
            echo '<h4 class="post-info">';
            echo 'Created on ';
            the_date();
            echo ' at ';
            the_time();
            echo ' by ';
            the_author_meta(first_name);
            echo '.</h4>';
            echo '<p class="post-excerpt">';
            the_excerpt();
            echo '</p>';
            echo '</div>';
        }
        // end while
    }
    // end if
}
Ejemplo n.º 4
0
    public function widget($args, $instance)
    {
        // outputs the content of the widget
        global $post;
        if (!empty($post)) {
        }
        echo $args['before_widget'];
        echo get_avatar(get_the_author_meta('ID'), 40);
        ?>
		<div class="author-text">
			<div class="title"><?php 
        echo esc_html(siteorigin_setting('video_by_text', __('Video By', 'focus')));
        ?>
</div>
			<div class="author"><?php 
        the_author_meta('display_name');
        ?>
</div>
		</div>
		<div class="clear"></div>
		<div class="post-info"><?php 
        focus_posted_on();
        ?>
</div>
		<?php 
        echo $args['after_widget'];
    }
Ejemplo n.º 5
0
function contributors()
{
    $contributors = get_users('orderby=nicename&role=contributor');
    // Array of WP_User objects.
    foreach ($contributors as $user) {
        echo "<div class='author'>";
        echo "<div class='author-image'><a href='" . get_author_posts_url($user->ID) . "'>" . get_avatar($user->ID) . "</a></div>";
        echo "<div class='author-name'>" . the_author_meta('display_name', $user->ID) . "</div>";
        echo "</div>";
    }
}
Ejemplo n.º 6
0
    /**
     * Section template.
     */
    function section_template()
    {
        global $post;
        setup_postdata($post);
        ob_start();
        the_author_meta('url');
        $link = ob_get_clean();
        $default_avatar = PL_IMAGES . '/avatar_default.gif';
        $author_email = get_the_author_meta('email', $post->post_author);
        $author_name = get_the_author();
        $author_desc = get_the_author_meta('description', $post->post_author);
        $google_profile = get_the_author_meta('google_profile');
        ?>
		<div class="media author-info">
			<div class="img thumbnail author-thumb">
				<a class="thumbnail" href="<?php 
        echo $link;
        ?>
" target="_blank">
					<?php 
        echo get_avatar($author_email, '120', $default_avatar);
        ?>
				</a>
			</div>
			<div class="bd">
				<small class="author-note"><?php 
        _e('Author', 'pagelines');
        ?>
</small>
				<h2>
					<?php 
        echo $author_name;
        ?>
				</h2>
				<p><?php 
        echo $author_desc;
        ?>
</p>
				<p class="author-details">
					<?php 
        if ($link != '') {
            printf('<a href="%s" class="btn" target="_blank"><i class="icon icon-external-link"></i> %s</a> ', $link, __('Visit Authors Website &rarr;', 'pagelines'));
        }
        if ($google_profile) {
            printf('<a href="%s" class="btn" rel="me"><i class="icon icon-google-plus"></i> %s</a>', $google_profile, __('Authors Google Profile &rarr;', 'pagelines'));
        }
        ?>
				</p>
			</div>

		</div>
		<div class="clear"></div>
<?php 
    }
Ejemplo n.º 7
0
    function widget($args, $instance)
    {
        extract($args);
        if (!is_single()) {
            return;
        }
        $title = apply_filters('widget_title', $instance['title']);
        if (empty($title)) {
            $title = false;
        }
        $show_gravatar = $instance['show_gravatar'] == 1 ? true : false;
        $show_bio = $instance['show_bio'] == 1 ? true : false;
        echo $before_widget;
        if ($title) {
            echo $before_title;
            echo $title;
            echo $after_title;
        }
        ?>

	<div class="author-info cf">

		<?php 
        if ($show_gravatar) {
            echo get_avatar(get_the_author_meta('email'), '60');
        }
        ?>

		<span><?php 
        echo stripslashes(get_option('dt_lang_gen_postedby'));
        ?>
 <?php 
        the_author_posts_link();
        ?>
</span>

		<?php 
        if ($show_bio) {
            ?>
			<p><?php 
            the_author_meta('description');
            ?>
</p>
		<?php 
        }
        ?>

	</div><!-- .author-info -->
<?php 
        echo $after_widget;
    }
Ejemplo n.º 8
0
function jdh_toc_list_posts($posts)
{
    global $post;
    foreach ($posts as $post) {
        setup_postdata($post);
        echo '<p><a href="' . get_permalink() . '">' . $post->post_title . '</a><br>';
        if (function_exists('coauthors')) {
            coauthors(',<br>');
        } else {
            echo the_author_meta('first_name') . ' ' . the_author_meta('last_name');
        }
        echo '</p>';
    }
}
Ejemplo n.º 9
0
	function widget($args, $instance) {
		global $post;
		
		$posts = get_field('post', 'widget_'.$args['widget_id']);


		if( $posts ) :
			echo $args['before_widget']; 
			?>

				<?php foreach($posts as $post) : ?>
				<?php setup_postdata($post); ?>
				<?php 
					$author_id = get_the_author_meta('ID');
					$author_image = get_field('image', 'user_'. $author_id);
					$author_img_url = get_avatar_url ( $author_id, $size = '40' );
					$author_url = get_author_posts_url($author_id);
					$excerpt = get_the_excerpt();
					$excerpt = (strlen($excerpt) > 150) ? '"'.substr($excerpt,0,150).'" ...' : $excerpt;

				 ?>

					<img class="image" src="<?php echo get_image(get_post_thumbnail_id($post->ID), array(180, 180)); ?>">
					<div class="script">
						<img src="<?php bloginfo('template_directory'); ?>/images/misc/editors-letter.png" alt="">	
					</div>
					<a href="<?php echo $author_url; ?>">
						<div class="author">
								<div class="image circle">
										<img src="<?php echo $author_img_url; ?>" />
								</div>
								<span class="name"><?php echo the_author_meta( "display_name", $author_id ); ?></span>
						</div>	
					</a>
					<div class="date">
						february 01,2015
					</div>
					
					<div class="bio">
						<?php echo $excerpt; ?>	
						<a class="read-more" href="<?php the_permalink(); ?>">Read Further &raquo;</a>	
					</div>
				<?php endforeach;	?>
			<? 
			echo $args['after_widget'];	
		endif;
		
		
	}
Ejemplo n.º 10
0
 /**
  * Vendor IDs and PayPal addresses from an order
  *
  * @param object  $order
  * @param unknown $items (optional)
  *
  * @return array
  */
 public function get_vendors_from_order($order, $items = false)
 {
     if (!$items) {
         $items = $order->get_items();
     }
     $vendors = array();
     foreach ($items as $key => $product) {
         $author = PV_Vendors::get_vendor_from_product($product['product_id']);
         // Only store the vendor authors
         if (!PV_Vendors::is_vendor($author)) {
             continue;
         }
         $vendors[$author] = the_author_meta('author_paypal', $author);
     }
     return apply_filters('pv_vendors_from_order', $vendors, $order);
 }
Ejemplo n.º 11
0
function ait_type_custom_columns($column, $post_id)
{
    switch ($column) {
        case "thumbnail":
            $width = (int) 100;
            $height = (int) 100;
            // thumbnail of WP 2.9
            $thumbnail_id = get_post_meta($post_id, '_thumbnail_id', true);
            // image from gallery
            $attachments = get_children(array('post_parent' => $post_id, 'post_type' => 'attachment', 'post_mime_type' => 'image'));
            if ($thumbnail_id) {
                $thumb = @wp_get_attachment_image($thumbnail_id, array($width, $height), true);
            } elseif ($attachments) {
                foreach ($attachments as $attachment_id => $attachment) {
                    $thumb = @wp_get_attachment_image($attachment_id, array($width, $height), true);
                }
            }
            if (isset($thumb) && $thumb) {
                echo $thumb;
            } else {
                echo __('None', 'ait');
            }
            break;
        case "menu_order":
            $post = get_post($post_id);
            echo $post->menu_order;
            unset($post);
            break;
        case "content":
            $post = get_post($post_id);
            echo strip_tags($post->post_content);
            unset($post);
            break;
        case "category":
            $post_type = get_post_type($post_id);
            echo get_the_term_list($post_id, $post_type . '-category', '', ', ');
            break;
        case "author":
            $post = get_post($post_id);
            the_author_meta('user_nicename', $post->post_author);
            break;
    }
}
Ejemplo n.º 12
0
/**
 * Use to put an author box at the end/beginning of a post.  This template
 * tag should be used within The Loop.
 *
 * @since 0.1
 * @uses get_avatar() Gets the current author's avatar.
 * @uses get_the_author_meta() Grabs information about the author.
 */
function members_author_profile()
{
    ?>
	<div class="author-profile vcard">
		<?php 
    echo get_avatar(get_the_author_meta('user_email'), '100', '', get_the_author_meta('display_name'));
    ?>
		<h4 class="author-name fn n"><?php 
    the_author_posts_link();
    ?>
</h4>
		<p class="author-description author-bio">
			<?php 
    the_author_meta('description');
    ?>
		</p>
	</div>
<?php 
}
Ejemplo n.º 13
0
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     if (is_single()) {
         echo $before_widget;
         $title = apply_filters('widget_title', $instance['title']);
         if (!empty($title)) {
             echo $before_title . $title . $after_title;
         }
         echo '<div class="author-data">';
         echo get_avatar(get_the_author_meta('user_email'), 150);
         echo '<h4>' . the_author_meta('display_name') . '</h4>';
         // Is there an author description?
         if (get_the_author_meta('description')) {
             echo '<div class="description"><p>' . get_the_author_meta('description') . '</p></div>';
         }
         echo '</div>';
         echo $after_widget;
     }
 }
Ejemplo n.º 14
0
    /**
     * Prints HTML with meta information for the categories, tags and comments.
     */
    function bwpp_entry_footer()
    {
        // Hide category and tag text for pages.
        if ('post' === get_post_type()) {
            /* translators: used between list items, there is a space after the comma */
            $categories_list = get_the_category_list(esc_html__(', ', 'bwpp'));
            if ($categories_list && bwpp_categorized_blog()) {
                printf('<span class="cat-links">' . esc_html__('Posted in %1$s', 'bwpp') . '</span>', $categories_list);
                // WPCS: XSS OK.
            }
            /* translators: used between list items, there is a space after the comma */
            $tags_list = get_the_tag_list('', esc_html__(', ', 'bwpp'));
            if ($tags_list) {
                printf('<span class="tags-links">' . esc_html__('Tagged %1$s', 'bwpp') . '</span>', $tags_list);
                // WPCS: XSS OK.
            }
        }
        if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
            echo '<span class="comments-link">';
            comments_popup_link(esc_html__('Leave a comment', 'bwpp'), esc_html__('1 Comment', 'bwpp'), esc_html__('% Comments', 'bwpp'));
            echo '</span>';
        }
        if (is_single() || is_singular()) {
            ?>
		<div class="author-overview clear">
			<?php 
            echo get_avatar(get_the_author_meta('ID'), 100);
            ?>
			<div class="author-name"><?php 
            the_author_meta('display_name');
            ?>
</div>
			<p><?php 
            the_author_meta('description');
            ?>
</p>
		</div>
	<?php 
        }
        edit_post_link(sprintf(esc_html__('Edit %s', 'bwpp'), the_title('<span class="screen-reader-text">"', '"</span>', false)), '<span class="edit-link">', '</span>');
    }
Ejemplo n.º 15
0
    function section_template()
    {
        global $post;
        setup_postdata($post);
        ?>
		
		<div class="author-info">
			<div class="author-thumb">
				<?php 
        echo get_avatar(get_the_author_meta('email', $post->post_author), $size = '80', $default = CORE_IMAGES . '/avatar_default.gif');
        ?>
			</div>
			<small class="subtext"><?php 
        _e('About The Author', 'pagelines');
        ?>
</small>
			<h2>
				<?php 
        echo get_the_author();
        ?>
			</h2>
			<p><?php 
        the_author_meta('description', $post->post_author);
        ?>
</p>
			<div class="author-details">
				<a href="<?php 
        the_author_meta('url');
        ?>
" target="_blank">
				<?php 
        _e('Visit Authors Website', 'pagelines');
        ?>
 &rarr;
				</a>
			</div>
		
		</div>
		<div class="clear"></div>
<?php 
    }
Ejemplo n.º 16
0
function random_groups()
{
    global $wpdb;
    $authors = get_users('orderby=post_count&order=desc&number=4&role=contributor');
    foreach ($authors as $author) {
        echo "<li class=\"guest-entry\">";
        echo '<div><h3>';
        echo "<a href=\"" . get_bloginfo('url') . "/?author=";
        echo $author->ID;
        echo "\">";
        the_author_meta('display_name', $author->ID);
        echo "</a>";
        echo "</h3>";
        echo "<a href=\"" . get_bloginfo('url') . "/?author=";
        echo $author->ID;
        echo "\">";
        echo userphoto($author->ID);
        echo "</a></div>";
        echo "</li>";
    }
}
Ejemplo n.º 17
0
    }
}
?>
		</div><!-- .entry-content -->
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'bluth'), 'after' => '</div>'));
?>
		<footer class="entry-meta clearfix" style="padding:25px 50px;">
			<?php 
get_template_part('inc/meta-bottom');
?>
		</footer><!-- .entry-meta -->
	</div><!-- .entry-container -->
	<span class="vcard" style="display: none;">
		<span class="fn">													
			<a href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
" class="author"><?php 
the_author_meta('first_name');
?>
 <?php 
the_author_meta('last_name');
?>
</a>
		</span>
	</span>
</article><!-- #post-<?php 
the_ID();
?>
 -->
Ejemplo n.º 18
0
}
?>
		</div>		
	</div>
	
	<div class="col-md-9 col-sm-9 col-xs-12">
		<h3 class="author-name">
			<?php 
printf(__('About %s', 'moesia'), esc_html($author_name));
?>
				
		</h3>
	
		<div class="author-desc">
			<?php 
esc_html(the_author_meta('description'));
?>
		</div>
		
		<div class="view-all"><a href="<?php 
echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
?>
"><?php 
printf(__('See all posts by %s', 'moesia'), esc_html($author_name));
?>
</a>&nbsp;<i class="fa fa-long-arrow-right"></i></div>
	</div>
</div> 


Ejemplo n.º 19
0
        the_title();
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a></h2>
                    <aside class="post_author clearfix" itemscope itemtype="http://data-vocabulary.org/Person">
                        <figure itemprop="photo"><?php 
        echo get_avatar(get_the_author_meta('user_email'));
        ?>
</figure>
                        <h4 rel="author"><a target="_blank" title="Google Plus de <?php 
        echo get_the_author();
        ?>
" href="<?php 
        the_author_meta('google_plus');
        ?>
?rel=author" itemprop="contact"> de <span itemprop="name"><?php 
        echo get_the_author();
        ?>
</span></a></h4>
                        <time datetime="<?php 
        the_time('Y/m/d g:i:s A');
        ?>
" pubdate><?php 
        the_date('j F Y');
        ?>
</time>
                    </aside>
                    <?php 
        echo excerpt_count(160);
Ejemplo n.º 20
0
    ?>
</h3>

    <?php 
    if (get_the_author_meta('description')) {
        ?>
    <div class="profile-desc">
      <?php 
        the_author_meta('description');
        ?>
    </div>
    <?php 
    }
    ?>

    <?php 
    if (get_the_author_meta('user_url')) {
        ?>
    <span class="profile-url">
      <?php 
        the_author_meta('user_url');
        ?>
    </span>
    <?php 
    }
    ?>

  </div>
</div>
<?php 
}
Ejemplo n.º 21
0
</a></time>
            </span>

            <span class="post-author">
                <?php 
_e('- By ', 'bromine');
?>
<a title="<?php 
_e('See other posts by ', 'bromine');
the_author_meta('display_name');
?>
" href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
"><?php 
the_author_meta('display_name');
?>
</a>
            </span>
        </div>

        <?php 
bro_display_thumbnails();
if (is_single()) {
    the_title('<h1 class="post-title">', '</h1>');
} else {
    the_title('<h1 class="post-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
}
?>

    </header>
Ejemplo n.º 22
0
do_action('atom_head');
while (have_posts()) {
    the_post();
    ?>
	<entry>
		<author>
			<name><?php 
    the_author();
    ?>
</name>
			<?php 
    $author_url = get_the_author_meta('url');
    if (!empty($author_url)) {
        ?>
			<uri><?php 
        the_author_meta('url');
        ?>
</uri>
			<?php 
    }
    do_action('atom_author');
    ?>
		</author>
		<title type="<?php 
    html_type_rss();
    ?>
"><![CDATA[<?php 
    the_title_rss();
    ?>
]]></title>
		<link rel="alternate" type="<?php 
Ejemplo n.º 23
0
				<?php 
        if (get_the_author_meta('twitter_handle')) {
            ?>
				<a href="https://twitter.com/<?php 
            echo substr(get_the_author_meta('twitter_handle'), 1);
            ?>
" class="twitter-follow-button" data-show-count="false">Follow <?php 
            the_author_meta('twitter_handle');
            ?>
</a>
				<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
				<?php 
        }
        ?>
				<a class="author-email-inside" href="mailto:<?php 
        the_author_meta('user_email');
        ?>
"><i class="ticon-email"></i>Email</a>
			<?php 
    }
    ?>
   
          <?php 
}
?>

          <hr>
        </div><!-- end div.page-header -->
        <?php 
get_template_part('loop', 'category');
?>
            ?>
                                <span class="icon " aria-hidden="true"></span>
                            <?php 
        }
        ?>
                        </div>
                        <div class="large-11 small-11 columns">
                            <hgroup>
                                <h3>
                                    <?php 
        the_title();
        ?>
                                </h3>
                                <p class="meta">
                                    <span>Por</span> <?php 
        the_author_meta('user_login');
        ?>
 <span>em</span> <?php 
        the_time('d/m/Y');
        ?>
 
                                </p>
                            </hgroup>
                            <?php 
        the_excerpt();
        ?>
                        </div>
                    </a>
                </li>
                <?php 
    }
Ejemplo n.º 25
0
                <figure class="divide-20 post-th">
                    <?php
                        $thumb = getThumbUrl('large',$post->ID);
                        $video = get_field('post_video');
                        $link = get_permalink($post->ID);
                        if(!empty($thumb) || !empty($video)) {
                            if(!empty($video))
                                echo '<div class="flex-video no-margin">' . $video . '</div>';
                            else
                                echo "<a href=\"{$link}\"><img src=\"{$thumb}\" class=\"small-12 left\"></a>";
                        }
                    ?>
                </figure>

                <h5 class="divide-20 d-block post-author text-center text-up">Por: <?php echo the_author_meta( 'first_name' ); ?></h5>
                
                <?php
                    if(get_the_tags()):
                ?>
                <nav class="post-tags text-center">
                    <ul class="inline-list d-iblock">
                    <?php
                        $posttags = get_the_tags();
                        foreach ($posttags as $tag) {
                          $tag_link = get_tag_link($tag->term_id);
                          echo '<li><a href="'. $tag_link .'">'. $tag->name .'</a></li>';
                        }
                    ?>
                    </ul>
                </nav>
Ejemplo n.º 26
0
        <?php 
//if(mod_mobile::detect()->isPhone()) echo "Phone";
?>
        <div class="social">
            <a href="<?php 
the_author_meta('twitter', cwp_themeadmin());
?>
" target="_blank">
                <span class="social-icons font-larger">l</span></a>
            <a href="<?php 
the_author_meta('facebook', cwp_themeadmin());
?>
" target="_blank">
                <span class="social-icons font-larger">f</span></a>
            <a href="<?php 
the_author_meta('google_plus', cwp_themeadmin());
?>
" target="_blank">
                <span class="social-icons font-larger">g</span></a>
            <!-- class content -->
        </div>
        <!-- class content -->
        <div class="">
            <h3><a href="https://github.com/shawnsandy/AL-MANAGER" target="_blank" >AL.MANAGER on Github</a><br />
                <span class="label">Beta Release</span></h3>

            <!-- class content -->
        </div>
        <!-- ###### -->

Ejemplo n.º 27
0
/**
 * Display the ID of the author of the current post.
 *
 * @since 0.71
 * @deprecated 2.8
 * @deprecated Use the_author_meta('ID')
 * @see the_author_meta()
*/
function the_author_ID()
{
    _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'ID\')');
    the_author_meta('ID');
}
Ejemplo n.º 28
0
            <div class="post-block post-author clearfix">
                <h3><i class="fa fa-user"></i><?php 
    _e('Author', 'porto');
    ?>
</h3>
                <div class="img-thumbnail">
                    <?php 
    echo get_avatar(get_the_author_meta('email'), '80');
    ?>
                </div>
                <p><strong class="name"><?php 
    the_author_posts_link();
    ?>
</strong></p>
                <p><?php 
    the_author_meta("description");
    ?>
</p>
            </div>
        <?php 
}
?>

        <div class="post-gap"></div>

        <?php 
if ($porto_settings['post-comments']) {
    ?>
            <?php 
    wp_reset_postdata();
    comments_template();
Ejemplo n.º 29
0
	
					<?php 
        if (isset($woo_options['woo_post_author']) && $woo_options['woo_post_author'] == 'true') {
            ?>
					<aside id="post-author" class="fix">
						<div class="profile-image"><?php 
            echo get_avatar(get_the_author_meta('ID'), '70');
            ?>
</div>
						<div class="profile-content">
							<h3 class="title"><?php 
            printf(esc_attr__('About %s', 'woothemes'), get_the_author());
            ?>
</h3>
							<?php 
            the_author_meta('description');
            ?>
							<div class="profile-link">
								<a href="<?php 
            echo get_author_posts_url(get_the_author_meta('ID'));
            ?>
">
									<?php 
            printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>', 'woothemes'), get_the_author());
            ?>
								</a>
							</div><!-- #profile-link	-->
						</div><!-- .post-entries -->
					</aside><!-- .post-author-box -->
					<?php 
        }
Ejemplo n.º 30
0
function _set_cfs_data_column_callback($column, $post_id)
{
    switch ($column) {
        case 'donation_goal':
            echo intval(get_post_meta($post_id, '_company_goal', true)) . ' $';
            break;
        case 'owner':
            global $post;
            echo the_author_meta('display_name', $post->post_autor);
            //echo get_post_meta( $post_id , 'publisher' , true );
            break;
        case 'achieved_goal':
            $received_amount = get_donation_of_company($post_id);
            echo ($received_amount ? $received_amount : 0) . ' $';
            break;
        case 'company':
            echo get_the_title(get_post_meta($post_id, 'company_id', true));
            break;
        case 'teams':
            echo '<a href="admin.php?page=cfs_teams&cid=' . $post_id . '" title="View Teams">View Teams</a>';
            break;
    }
}