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 } }
?> ><h2><?php the_title(); ?> </h2></a> <div class="post-info"> <small>Posted on <?php the_date(); ?> by <?php the_author(); ?> <?php if (is_syndicated()) { echo 'from "' . get_syndication_source() . '"'; } ?> </small> <?php echo get_the_tags_html($post->ID); ?> </div> </div> </div> <div class="row"> <div class="span11 post post-indent"> <?php the_content(); ?> </div>
<div class="texto-portada-individual articulo-single"> <?php the_content('Leer el resto del artículo »'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php //the_tags( '<p>Tags: ', ', ', '</p>'); ?> <?php /* Nota para los artículos que importamos extenamente */ if (function_exists("is_syndicated")) { if (is_syndicated() and get_the_author() !== get_syndication_source()) { echo '<p><cite class="feed">Publicado por '; the_author(); echo ' en <a href="'; the_syndication_source_link(); echo '">'; the_syndication_source(); echo '</a></cite></p>'; } } ?> </div> <h2>Compartir artículo:</h2> <!-- Social Media buttons --> <div data-social-share-privacy='true'></div>
function the_syndication_source($original = NULL) { echo get_syndication_source($original); }
function source_name($atts) { $param = shortcode_atts(array('original' => NULL), $atts); return get_syndication_source($param['original'], $this->id); }