HEX
Server: Apache
System: Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User: contexpert (1050)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/contexpert/public_html/site/wp-content/themes/vega/parts/frontpage-content.php
<?php
/**
 * The template part for displaying the front page content 
 *
 * @package vega
 */
?>

<?php 
$vega_wp_frontpage_content = vega_wp_get_option('vega_wp_frontpage_content'); 
$vega_wp_enable_demo = vega_wp_get_option('vega_wp_enable_demo');
?>

<?php #EXAMPLE CONTENT: If a static front page has been defined, the content from that page will be shown. Otherwise IF demo is on, the content from a random page will be displayed. ?>
<?php if($vega_wp_frontpage_content == 'Y' && get_option('show_on_front') == 'page') {  ?>
<!-- ========== Page Content ========== -->
<div class="section frontpage-content bg-white" id="welcome">
    <div class="container">
        <?php while ( have_posts() ) : the_post(); ?>
        <h2 class="block-title wow zoomIn"><?php the_title(); ?></h2>
        <div class="wow fadeInUp description"><?php the_content(); ?></div>
        <?php endwhile; ?>
    </div>
</div> 
<!-- ========== /Page Content ========== -->
<?php } else if( $vega_wp_enable_demo == 'Y') { ?>
<!-- ========== Random Page Content ========== -->
<div class="section frontpage-content bg-white" id="welcome">
    <div class="container">
        <?php vega_wp_example_frontpage_content(); ?>
    </div>
</div> 
<!-- ========== /Random Page Content ========== -->
<?php } ?>