function the_author_link() {
	if (get_the_author_url()) {
		echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s's website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
	} else {
		the_author();
	}
}
Esempio n. 2
0
    bloginfo('url');
    ?>
">&nbsp;<?php 
    bloginfo('name');
    ?>
</a></span><span class="spacer2">&nbsp;<?php 
    the_title();
    ?>
</span>
</div>	
			
     <ul class="single_post_meta">
		<li> 
        <li><strong>Autor:</strong>
		<?php 
    if (get_the_author_url()) {
        ?>
		
      <?php 
        the_author_posts_link();
        ?>
      
      <?php 
    } else {
        the_author_posts_link();
    }
    ?>
</li>
		<li><strong>Data publikacji:</strong> <?php 
    echo get_the_date();
    ?>
Esempio n. 3
0
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
<p class="post-info">
	<img src='<?php 
        author_image_path(get_the_author_ID());
        ?>
' width='16px' height='16px'>
	<?php 
        the_time('l j \\d\\e F \\d\\e Y');
        ?>
 por <a href="<?php 
        echo get_the_author_url();
        ?>
"><?php 
        the_author_firstname();
        ?>
 <?php 
        the_author_lastname();
        ?>
</a>
</p>

<?php 
        the_content('Leer más &raquo;');
        ?>

Esempio n. 4
0
	<?php 
do_action('atom_head');
?>
	<?php 
while (have_posts()) {
    the_post();
    ?>
	<entry>
		<author>
			<name><?php 
    the_author();
    ?>
</name>
			<?php 
    $author_url = get_the_author_url();
    if (!empty($author_url)) {
        ?>
			<uri><?php 
        the_author_url();
        ?>
</uri>
			<?php 
    }
    ?>
		</author>
		<title type="<?php 
    html_type_rss();
    ?>
"><![CDATA[<?php 
    the_title_rss();
    function echo_entry()
    {
        ?>
<entry xmlns="<?php 
        echo $this->ATOM_NS;
        ?>
"
       xmlns:app="<?php 
        echo $this->ATOMPUB_NS;
        ?>
" xml:lang="<?php 
        echo get_option('rss_language');
        ?>
">
	<id><?php 
        the_guid($GLOBALS['post']->ID);
        ?>
</id>
<?php 
        list($content_type, $content) = prep_atom_text_construct(get_the_title());
        ?>
	<title type="<?php 
        echo $content_type;
        ?>
"><?php 
        echo $content;
        ?>
</title>
	<updated><?php 
        echo get_post_modified_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</updated>
	<published><?php 
        echo get_post_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</published>
	<app:edited><?php 
        echo get_post_modified_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</app:edited>
	<app:control>
		<app:draft><?php 
        echo $GLOBALS['post']->post_status == 'draft' ? 'yes' : 'no';
        ?>
</app:draft>
	</app:control>
	<author>
		<name><?php 
        the_author();
        ?>
</name>
<?php 
        if (get_the_author_url() && get_the_author_url() != 'http://') {
            ?>
		<uri><?php 
            the_author_url();
            ?>
</uri>
<?php 
        }
        ?>
	</author>
<?php 
        if ($GLOBALS['post']->post_type == 'attachment') {
            ?>
	<link rel="edit-media" href="<?php 
            $this->the_media_url();
            ?>
" />
	<content type="<?php 
            echo $GLOBALS['post']->post_mime_type;
            ?>
" src="<?php 
            the_guid();
            ?>
"/>
<?php 
        } else {
            ?>
	<link href="<?php 
            the_permalink_rss();
            ?>
" />
<?php 
            if (strlen($GLOBALS['post']->post_content)) {
                list($content_type, $content) = prep_atom_text_construct(get_the_content());
                ?>
	<content type="<?php 
                echo $content_type;
                ?>
"><?php 
                echo $content;
                ?>
</content>
<?php 
            }
        }
        ?>
	<link rel="edit" href="<?php 
        $this->the_entry_url();
        ?>
" />
<?php 
        foreach (get_the_category() as $category) {
            ?>
	<category scheme="<?php 
            bloginfo_rss('home');
            ?>
" term="<?php 
            echo $category->name;
            ?>
" />
<?php 
        }
        list($content_type, $content) = prep_atom_text_construct(get_the_excerpt());
        ?>
	<summary type="<?php 
        echo $content_type;
        ?>
"><?php 
        echo $content;
        ?>
</summary>
</entry>
<?php 
    }
	function get_feed($page = 1, $post_type = 'post') {
		global $post, $wp, $wp_query, $posts, $wpdb, $blog_id, $post_cache;
		log_app('function',"get_feed($page, '$post_type')");
		ob_start();

		if(!isset($page)) {
			$page = 1;
		}
		$page = (int) $page;

		$count = get_option('posts_per_rss');
		$query = "paged=$page&posts_per_page=$count&order=DESC";
		if($post_type == 'attachment') {
			$query .= "&post_type=$post_type";
		}
		query_posts($query);
		$post = $GLOBALS['post'];
		$posts = $GLOBALS['posts'];
		$wp = $GLOBALS['wp'];
		$wp_query = $GLOBALS['wp_query'];
		$wpdb = $GLOBALS['wpdb'];
		$blog_id = (int) $GLOBALS['blog_id'];
		$post_cache = $GLOBALS['post_cache'];


		$total_count = $this->get_posts_count();
		$last_page = (int) ceil($total_count / $count);
		$next_page = (($page + 1) > $last_page) ? NULL : $page + 1;
		$prev_page = ($page - 1) < 1 ? NULL : $page - 1; 
		$last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page;
?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://purl.org/atom/app#" xml:lang="<?php echo get_option('rss_language'); ?>">
<id><?php $this->the_entries_url() ?></id>
<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
<title type="text"><?php bloginfo_rss('name') ?></title>
<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
<link rel="first" type="application/atom+xml" href="<?php $this->the_entries_url() ?>" />
<?php if(isset($prev_page)): ?>
<link rel="previous" type="application/atom+xml" href="<?php $this->the_entries_url($prev_page) ?>" />
<?php endif; ?>
<?php if(isset($next_page)): ?>
<link rel="next" type="application/atom+xml" href="<?php $this->the_entries_url($next_page) ?>" />
<?php endif; ?>
<link rel="last" type="application/atom+xml" href="<?php $this->the_entries_url($last_page) ?>" />
<link rel="self" type="application/atom+xml" href="<?php $this->the_entries_url() ?>" />
<rights type="text">Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); 
$post = $GLOBALS['post'];
?>
<entry>
		<id><?php the_guid($post->ID); ?></id>
		<title type="html"><![CDATA[<?php the_title() ?>]]></title>
		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
		<app:control>
			<app:draft><?php echo ($GLOBALS['post']->post_status == 'draft' ? 'yes' : 'no') ?></app:draft>
		</app:control>
		<author>
			<name><?php the_author()?></name>
			<email><?php the_author_email()?></email>
	<?php if (get_the_author_url() && get_the_author_url() != 'http://') { ?>
		 <uri><?php the_author_url()?></uri>
	<?php } ?>
		</author>
	<?php if($GLOBALS['post']->post_status == 'attachment') { ?>
		<link rel="edit" href="<?php $this->the_entry_url() ?>" />
		<link rel="edit-media" href="<?php $this->the_media_url() ?>" />
	<?php } else { ?>
		<link href="<?php permalink_single_rss() ?>" />
		<link rel="edit" href="<?php $this->the_entry_url() ?>" />
	<?php } ?>
	<?php foreach(get_the_category() as $category) { ?>
	 <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" />
	<?php } ?>   <summary type="html"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
	<?php if ( strlen( $GLOBALS['post']->post_content ) ) : ?>
	<content type="html"><![CDATA[<?php echo get_the_content('', 0, '') ?>]]></content>
<?php endif; ?>
	</entry>
<?php
	endwhile; 
	endif;
?></feed>
<?php 
		$feed = ob_get_contents();
		ob_end_clean();
		return $feed;
	}
function the_author_url() {
	echo get_the_author_url();
}
Esempio n. 8
0
    function author_info()
    {
        ?>
		<div class="info">
			<a title="<?php 
        _e('Subscribe to this!', 'guangzhou');
        ?>
" href="<?php 
        echo $this->archive_feed();
        ?>
"><img src="<?php 
        bloginfo('template_url');
        ?>
/image/feed.png" width="16" height="16" alt="RSS"/></a>
		</div>
		
		<h2><?php 
        _e('Author Information', 'guangzhou');
        ?>
</h2>
		
		<?php 
        if ($this->archive_total() > 0) {
            ?>
			<p><?php 
            printf(__('The author has written <strong>%s entries</strong>.', 'guangzhou'), $this->archive_total());
            ?>
</p>
		<?php 
        }
        ?>
		
		<dl>
			<dt><?php 
        _e('Name', 'guangzhou');
        ?>
</dt>
			<dd>
				<?php 
        the_author();
        ?>
				<?php 
        if (get_the_author_url()) {
            ?>
					<?php 
            printf(__('(visit <a href="%s">website</a>', 'guangzhou'), get_the_author_url());
            ?>
				<?php 
        }
        ?>
			</dd>
			
			
			<?php 
        if (get_the_author_description()) {
            ?>
			<dt><?php 
            _e('Description', 'guangzhou');
            ?>
</dt>
			<dd><?php 
            the_author_description();
            ?>
</dd>
			<?php 
        }
        ?>
			
			<?php 
        do_action('author_page_info');
        ?>
		</dl>
		
		<?php 
    }
Esempio n. 9
0
function author_microid()
{
    $hash = get_microid_hash(get_the_author_email(), get_the_author_url());
    echo 'microid-' . $hash;
}
Esempio n. 10
0
        ?>
</a></h1>
                <div class="post-datetime"><abbr class="published" title="<?php 
        the_time('Y-m-d\\TH:i:sO');
        ?>
"><?php 
        the_time('l, j F Y, G:i');
        ?>
</abbr></div>
                <div class="post-author author vcard">
                    <?php 
        printf(__('By %s'), '');
        ?>
 
                    <?php 
        if (get_the_author_url() != '') {
            ?>
                            <a class="fn" href="<?php 
            echo get_author_link(false, $authordata->ID, $authordata->user_nicename);
            ?>
" title="<?php 
            echo __('View posts') . ' ' . __('by') . ' ' . $authordata->display_name;
            ?>
"><?php 
            echo get_the_author();
            ?>
</a> <span class="post-author-web">(<a class="fn url" href="<?php 
            the_author_url();
            ?>
" title="<?php 
            echo __('Visit author homepage');
}
?>
                        <?php 
if (get_the_author_meta('instagram') != '') {
    ?>
<div><a href="<?php 
    echo get_the_author_meta('instagram');
    ?>
" target="_blank"> Instagram</a></div><?php 
}
?>
                        <?php 
if (get_the_author_url('website') != '') {
    ?>
<div><a href="<?php 
    echo get_the_author_url('website');
    ?>
" target="_blank"> Website</a></div><?php 
}
?>
                    </div>   
                </div>
            </div>    
        </div>    
    </header>
</section>        

<section class="posts">
    <div class="container">
        <div class="row lr">
            <!--start: Tab Menu -->
	<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
	<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>

	<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
	<?php the_generator( 'atom' ); ?>

	<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
	<id><?php bloginfo('atom_url'); ?></id>
	<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />

	<?php do_action('atom_head'); ?>
	<?php while (have_posts()) : the_post(); ?>
	<entry>
		<author>
			<name><?php the_author() ?></name>
			<?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?>
			<uri><?php the_author_url()?></uri>
			<?php endif; ?>
		</author>
		<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
		<link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
		<id><?php the_guid(); ?></id>
		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
		<?php the_category_rss('atom') ?>
		<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
<?php if ( !get_option('rss_use_excerpt') ) : ?>
		<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
<?php endif; ?>
<?php atom_enclosure(); ?>
<?php do_action('atom_entry'); ?>
Esempio n. 13
0
        ?>
</h1>
			<div class="post-datetime"><abbr class="published" title="<?php 
        the_time('Y-m-d\\TH:i:sO');
        ?>
"><?php 
        the_time('l, j F Y, G:i');
        ?>
</abbr></div>
            <div class="post-author author vcard">
                <?php 
        printf(__('By %s'), '');
        ?>
 
                <?php 
        if (get_the_author_url() != 'http://') {
            ?>
                        <a class="fn url" href="<?php 
            the_author_url();
            ?>
" title="<?php 
            echo __('Visit author homepage');
            ?>
"><?php 
            echo get_the_author();
            ?>
</a> 
                    <?php 
        } else {
            ?>
                        <span class="fn"><?php