403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/gessing.es/wp-content/themes/advtheme/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/gessing.es/wp-content/themes/advtheme/template-parts/content-cortar.php
<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ADVtheme
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php advtheme_post_thumbnail(); ?>
		<?php
		if ( is_singular() ) :
			the_title( '<h1 class="entry-title">', '</h1>' );
		else :
			the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
		endif;

		if ( 'post' === get_post_type() ) :
			?>
			<!--<div class="entry-meta">
				<?php
				advtheme_posted_on();
				advtheme_posted_by();
				?>
			</div>--><!-- .entry-meta -->
		<?php endif; ?>
	</header><!-- .entry-header -->


	<div class="entry-content">
		<?php
		//$content = apply_filters('the_content', get_post_field('post_content', the_ID()));
		$content = get_the_content();
		$content = resumir($content, 400);
		echo $content;
		function resumir($texto, $limite, $car=".", $final="…") {
			if(strlen($texto) <= $limite) return $texto;
			  if(false !== ($breakpoint = strpos($texto, $car, $limite))) 
			  {
			   $val=strlen($texto)-1;
			   if( $breakpoint < $val)
			   {
			    $texto= substr($texto, 0, $breakpoint) . $final;
			   }
			  }
			return $texto;
		}
		?>
		<a href="<?php esc_url( get_permalink() )?>" class="btn-blog">Leer más</a>
	</div><!-- .entry-content -->

	<!--<footer class="entry-footer">
		<?php advtheme_entry_footer(); ?>
	</footer>--><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->

Youez - 2016 - github.com/yon3zu
LinuXploit