| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/ajax-search-lite/includes/views/ |
Upload File : |
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for one vertical result
*
* You should rather make a copy of this in this folder and use that,
* instead of modifying this one.
* It's also a good idea to use the actions to insert content instead of modifications.
*
* WARNING: Modifying anything in this file might result in search malfunctioning,
* so be careful and use your test environment.
*
* You can use any WordPress function here.
* Variables to mention:
* Object() $r - holding the result details
* Array[] $s_options - holding the search options
*
* I DO NOT RECOMMEND PUTTING ANYTHING BEFORE OR AFTER THE
* <div class='item'>..</div><div class="asl_spacer"></div> structure
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://wp-dreams.com/knowledge-base/result-templating/
*
* @since: 4.0
*/
?>
<div class='item<?php echo apply_filters('asl_result_css_class', $asl_res_css_class); ?>'>
<?php do_action('asl_res_vertical_begin_item'); ?>
<div class='asl_content'>
<?php if (!empty($r->image)): ?>
<?php do_action('asl_res_vertical_before_image'); ?>
<div class='asl_image'
style='background-image: url("<?php echo $r->image; ?>");'>
<div class='void'></div>
</div>
<?php do_action('asl_res_vertical_after_image'); ?>
<?php endif; ?>
<h3><a class="asl_res_url" href='<?php echo $r->link; ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>>
<?php echo $r->title; ?>
<?php if ($s_options['resultareaclickable'] == 1): ?>
<span class='overlap'></span>
<?php endif; ?>
</a></h3>
<?php if ( !empty($r->date) || !empty($r->author) ): ?>
<div class='etc'>
<?php if ( $s_options['showauthor'] == 1 && !empty($r->author) ): ?>
<span class='asl_author'><?php echo $r->author; ?></span>
<?php endif; ?>
<?php if ( $s_options['showdate'] == 1 && !empty($r->date) ): ?>
<span class='asl_date'><?php echo $r->date; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($s_options['showdescription'] == 1): ?>
<p class="asl_desc">
<?php echo $r->content; ?>
</p>
<?php endif; ?>
</div>
<?php do_action('asl_res_vertical_after_content'); ?>
<div class='clear'></div>
<?php do_action('asl_res_vertical_end_item'); ?>
</div>
<div class="asl_spacer"></div>