Files
iqon/server-backup-20260518/php-source/home.php
T
Sergei Vasilev 2fadc15923 feat: iqon.com full backup and design audit
- Server backup: PHP source files, theme assets, fonts, images,
  wp-config.php (masked), .htaccess, sitemaps, manifest
- Design audit: comparison with Open Design systems (Corporate,
  Clean, Modern, Bold), critical issues, SEO problems, 3-phase
  change plan, new_redesign analysis
- All files downloaded from production server via Code Snippets

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 12:58:44 +03:00

35 lines
1.3 KiB
PHP

<?php
/**
* Template Name: HOMEPAGE
*/
?>
<?php get_header(); ?>
<?php
wp_reset_query();
$args = array( 'posts_per_page' => 1, 'cat' => 1, 'post_type' => 'post', 'post_status' => 'publish' );
$latest_case = query_posts($args);
//dv($latest_case);
if ($latest_case[0]) {
$h2 = get_post_meta($latest_case[0]->ID, 'wpcf-intro', true);
$id_featured = 0;
if (has_post_thumbnail($latest_case[0]->ID)) {
$id_featured = get_post_thumbnail_id($latest_case[0]->ID);
$imagine_featured = wp_get_attachment_image_src($id_featured, 'post-thumbnail');
}
?>
<h1><a href="<?=get_permalink($latest_case[0]->ID); ?>"><?=$latest_case[0]->post_title;?></a></h1>
<?php if ($h2) { ?><h2><?=$h2?></h2><?php } ?>
<?php if ($id_featured && $imagine_featured[0]) { ?>
<div class="contentleft">
<div class="container_imagine">
<a href="<?=get_permalink($latest_case[0]->ID); ?>"><img src="<?=$imagine_featured[0];?>" /></a>
</div>
</div>
<div class="contentright">
<?php } ?>
<?php echo apply_filters('the_content',short_text($latest_case[0]->post_content, 700));?>
<?php if ($id_featured && $imagine_featured[0]) { ?></div><?php } ?>
<?php }
wp_reset_query();
?>
<?php get_footer(); ?>