HEX
Server: Apache
System: Linux c119.dattaweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: c1190199 (57165)
PHP: 7.4.33
Disabled: mail, system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c1190199/public_html/_alex/wp-content/themes/portada/template/widget_post_most_like.php
<?php
		$Post=new Portada_ThemePost();
		
		$query=$Post->getPostMostLike($this->data['instance']);
		
		if($query)
		{
			$id='widget_theme_widget_post_most_like_'.Portada_ThemeHelper::createId();
			
			echo $this->data['html']['start']; 
?>
			<div class="widget_theme_widget_post_most_like theme-clear-fix" id="<?php echo esc_attr($id); ?>">
				
				<ul class="theme-reset-list">
<?php
			global $post;
			$bPost=$post;

			while($query->have_posts())
			{
				$query->the_post();
				
				$likeCount=(int)get_post_meta(get_the_ID(),PORTADA_THEME_COOKIE_NAME_POST_LIKE_COUNT,true);
				$likeLabel=$likeCount==1 ? sprintf(esc_html__('1 Like','portada'),$likeCount) : sprintf(esc_html__('%s Likes','portada'),$likeCount);
?>
					<li class="theme-clear-fix">
						<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('View post "%s".','portada'),get_the_title())); ?>">
							<?php the_post_thumbnail('thumbnail'); ?>
						</a>
						<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('View post "%s".','portada'),get_the_title())); ?>">
							<?php the_title(); ?>
						</a>
						<span><?php echo $likeLabel; ?></span>
					</li>
<?php
			}
		
			$post=$bPost;
?>
				</ul>
				
			</div>
<?php
			echo $this->data['html']['stop']; 
		}