| 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/peyco.es/wp-content/plugins/gk-nsp/article_wrappers/highlights/ |
Upload File : |
<?php
if(!class_exists('GK_NSP_Article_Wrapper_highlights')) {
class GK_NSP_Article_Wrapper_highlights {
/*
* Method used to generate the number of necessary articles
*/
static function number_of_articles($config) {
// total amount of the posts
return $config['highlights_articles'];
}
/*
* Method used to generate the article output
*/
static function article_output($i, $generator) {
//
$art_output = '';
$art_title = $generator->art_title($i, true);
$art_info = $generator->art_info($i, true);
$art_url = $generator->art_readmore($i, true);
//
$art_output .= '<li>';
$art_output .= '<h3>';
$art_output .= '<a href="'.$art_url.'" title="'.$art_title.'"> ' . $art_title .'</a>';
$art_output .= '</h3>';
$art_output .= $art_info;
$art_output .= '</li>';
//
return $art_output;
}
}
}
// EOF