| Server IP : 216.238.66.20 / Your IP : 216.73.216.199 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/themes/rosemary/ |
Upload File : |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-header">
<?php if(!get_theme_mod('sp_post_cat')) : ?>
<span class="cat"><?php sp_category(' '); ?></span>
<?php endif; ?>
<?php if(is_single()) : ?>
<h1><?php the_title(); ?></h1>
<?php else : ?>
<h2><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
<?php /*
<?php if(!get_theme_mod('sp_post_date')) : ?>
<span class="date"> el <?php the_time( get_option('date_format') ); ?></span>
<?php endif; ?>
*/ ?>
<span class="write-by">Escrito por <?php the_author() ?></span>
</div>
<?php if(has_post_format('gallery')) : ?>
<?php $images = get_post_meta( $post->ID, '_format_gallery_images', true ); ?>
<?php if($images) : ?>
<div class="post-img">
<ul class="bxslider">
<?php foreach($images as $image) : ?>
<?php $the_image = wp_get_attachment_image_src( $image, 'full-thumb' ); ?>
<?php $the_caption = get_post_field('post_excerpt', $image); ?>
<li><img src="<?php echo esc_url($the_image[0]); ?>" <?php if($the_caption) : ?>title="<?php echo $the_caption; ?>"<?php endif; ?> /></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php elseif(has_post_format('video')) : ?>
<div class="post-img">
<?php $sp_video = get_post_meta( $post->ID, '_format_video_embed', true ); ?>
<?php if(wp_oembed_get( $sp_video )) : ?>
<?php echo wp_oembed_get($sp_video); ?>
<?php else : ?>
<?php echo $sp_video; ?>
<?php endif; ?>
</div>
<?php elseif(has_post_format('audio')) : ?>
<div class="post-img audio">
<?php $sp_audio = get_post_meta( $post->ID, '_format_audio_embed', true ); ?>
<?php if(wp_oembed_get( $sp_audio )) : ?>
<?php echo wp_oembed_get($sp_audio); ?>
<?php else : ?>
<?php echo $sp_audio; ?>
<?php endif; ?>
</div>
<?php else : ?>
<?php if(has_post_thumbnail()) : ?>
<?php if(!get_theme_mod('sp_post_thumb')) : ?>
<div class="post-img">
<a href="<?php echo get_permalink() ?>"><?php the_post_thumbnail('full-thumb'); ?></a>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<div class="post-entry">
<?php if(is_single()) : ?>
<?php the_content(__('<span class="more-button">Continue Reading</span>', 'solopine')); ?>
<?php else : ?>
<?php if(get_theme_mod('sp_post_summary') == 'excerpt') : ?>
<p><?php echo sp_string_limit_words(get_the_excerpt(), 80); ?>…</p>
<p><a href="<?php echo get_permalink() ?>" class="more-link"><span class="more-button"><?php _e( 'Continue Reading', 'solopine' ); ?></span></a>
<?php else : ?>
<?php the_content(__('<span class="more-button">Continue Reading</span>', 'solopine')); ?>
<?php endif; ?>
<?php endif; ?>
<?php wp_link_pages(); ?>
<?php /*
<?php if(!get_theme_mod('sp_post_tags')) : ?>
<?php if(is_single()) : ?>
<?php if(has_tag()) : ?>
<div class="post-tags">
<?php // the_tags("",""); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
*/ ?>
</div>
<?php if(!get_theme_mod('sp_post_author')) : ?>
<?php if(is_single()) : ?>
<?php get_template_part('inc/templates/about_author'); ?>
<?php endif; ?>
<?php endif; ?>
<?php if( is_single() ) : ?>
<?php get_template_part('ad', 'footer') ?>
<?php endif ?>
<?php if(get_theme_mod('sp_post_comment_link') && get_theme_mod('sp_post_share')) : else : ?>
<div class="post-meta">
<?php /*if(!get_theme_mod('sp_post_comment_link')) : */?><!--
<div class="meta-comments">
<?php /*comments_popup_link( '0 Comments', '1 Comments', '% Comments', '', ''); */?>
</div>
--><?php /*endif; */?>
<?php /*if(!get_theme_mod('sp_post_share')) : */?><!--
<div class="meta-share">
<span class="share-text">Compartir:</span>
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php /*the_permalink(); */?>"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/home?status=Revisa%20este%20articulo:%20<?php /*the_title(); */?>%20-%20<?php /*the_permalink(); */?>"><i class="fa fa-twitter"></i></a>
<?php /*$pin_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); */?>
<a data-pin-do="skipLink" target="_blank" href="https://pinterest.com/pin/create/button/?url=<?php /*the_permalink(); */?>&media=<?php /*echo $pin_image; */?>&description=<?php /*the_title(); */?>"><i class="fa fa-pinterest"></i></a>
<a target="_blank" href="https://plus.google.com/share?url=<?php /*the_permalink(); */?>"><i class="fa fa-google-plus"></i></a>
</div>
--><?php /*endif; */?>
</div>
<?php endif; ?>
<?php if(!get_theme_mod('sp_post_related')) : ?>
<?php if(is_single()) : ?>
<?php get_template_part('inc/templates/related_posts'); ?>
<?php endif; ?>
<?php endif; ?>
<?php comments_template( '', true ); ?>
</article>