| Server IP : 212.183.175.188 / Your IP : 216.73.217.18 Web Server : Apache System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 User : cvevolpi ( 10022) 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/cvevolpi.it/httpdocs/wp-content/themes/sentinel/printers/ |
Upload File : |
<?php
//require_once dirname(__FILE__).'/htmlPrinterPost.php';
if( ! class_exists( 'htmlPrinterPost' ) ){
locate_template( 'printers/htmlPrinterPost.php', true, true );
}
class htmlPrinterHome extends htmlPrinterPost {
public function the_homepage_content() {
$post= get_post( ffSP::get('page id'));
echo $this->get_the_content( $post->post_content );
}
public function the_title() {
if( ffWP::get('general title disable') ) {
return;
}
echo '<h2 class="post_title">';
echo '<a href="';
the_permalink();
echo '">';
the_title();
echo '</a>';
echo '</h2>';
}
public function the_content() {
echo '<div class="post_content">';
the_content();
echo '</div>';
}
public function featured_image() {
$gallery = ffGalleryCollection::getGallery();
$featuredImage = $gallery->getFeaturedImage();
if( null == $featuredImage ) {
return;
}
echo '<div class="featured_area">';
echo '<div class="featured_image_container">';
echo '<a class="featured_image_wrapper" href="'.$featuredImage->image->url.'" data-effect="mfp-zoom-in">';
echo '<img class="featured_image" src="'.$featuredImage->image->url.'" alt="">';
echo '</a>';
echo '</div>';
echo '</div>';
}
////////////////////////////////////////////////////////////////////////////////
// CLASS END
////////////////////////////////////////////////////////////////////////////////
}