function feedwordpress_post_edit_controls() { global $post; $frozen_values = get_post_custom_values('_syndication_freeze_updates', $post->ID); $frozen_post = (count($frozen_values) > 0 and 'yes' == $frozen_values[0]); if (is_syndicated($post->ID)) { ?> <p>This is a syndicated post, which originally appeared at <cite><?php print esc_html(get_syndication_source(NULL, $post->ID)); ?> </cite>. <a href="<?php print esc_html(get_syndication_permalink($post->ID)); ?> ">View original post</a>.</p> <p><input type="hidden" name="feedwordpress_noncename" id="feedwordpress_noncename" value="<?php print wp_create_nonce(plugin_basename(__FILE__)); ?> " /> <label><input type="checkbox" name="freeze_updates" value="yes" <?php if ($frozen_post) { ?> checked="checked"<?php } ?> /> <strong>Manual editing.</strong> If set, FeedWordPress will not overwrite the changes you make manually to this post, if the syndicated content is updated on the feed.</label></p> <?php } else { ?> <p>This post was created locally at this website.</p> <?php } }
function fwp_limit_size_of_posts_read_more_link($ellipsis) { global $id, $post; $ellipsis = ' <a href="' . htmlspecialchars(get_syndication_permalink($id)) . '">(Read more...)</a>'; return $ellipsis; }
function syndication_permalink($permalink = '') { if (get_option('feedwordpress_munge_permalink') != 'no') { $uri = get_syndication_permalink(); return strlen($uri) > 0 ? $uri : $permalink; } else { return $permalink; } }
// Check if icon has been uploaded $icon = get_feed_meta('iconpath'); if (!is_null($icon) && file_exists($icon)) { $imgurl = home_url('/') . $icon; } else { // Try gravatar // Specified email? $gravmail = get_feed_meta('email'); // Try specified email, else default to blog email, else show default image $imgurl = get_gravatar($useremail, '60'); //get_gravatar( $gravmail, '60', get_gravatar( $useremail, '60' ) ); //echo $imgurl; } // Compute link $target = is_syndicated() ? ' target="_blank"' : ''; $link = is_syndicated() ? get_syndication_permalink() : get_permalink(); $title = is_syndicated() ? get_syndication_source() : get_the_title(); ?> <div class="row"> <div class="span1"> <a href="#"><img class="thumbnail" src="<?php echo $imgurl; ?> " alt="<?php echo $title; ?> "></a> </div> <div class="span11 post-header post-header-indent"> <a href="<?php
function original_url($atts) { return get_syndication_permalink($this->id); }