HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/dooblo.cccinfotech.com/wp-content/themes/dooblo/page-products.php
<?php
/**
 * Template Name: Products
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Dooblo
 */

get_header(); ?>

<style>
    @media(max-width: 480px){
    #products-page #section1 .content{
    top: -290px !important;

    }
    .btn{
        font-size: 1.08em;
    }
</style>

<div id="products-page" class="content-area" <?php post_class(); ?>>
	<div id="top-page" ></div>
	<section id="section1" <?php if (get_field('screenshot')=="") { ?>style="margin-bottom: 0px;"<?php }?>>
		<div class="background-image" >
			<div class="image" style="background-image:url(<?php the_field('banner'); ?>);"></div>
		</div>
		<div class="content" style="text-align: center;">
			<h1 style="margin-bottom: 10px;"><?php the_field('subtitle'); ?></h1>
			<a target="_blank" style="font-size:1.2em; font-weight:500; " href="https://calendly.com/drago-vasic/45min?month=2024-07">Please schedule a demo call using this link</a>
			<div class="screenshot">
                <?php
                if( get_field('screenshot')){
                    ?>
                    <img src="<?php echo get_field('screenshot'); ?>"/>
                    <?php
                }
                ?>
			</div>
		</div>
	</section>

<?php
// check if the flexible content field has rows of data
if( have_rows('sections') ): ?>
	<?php $i = 2; ?>

	<?php while(have_rows('sections')): the_row(); ?>
		<?php
			$class1 = (get_sub_field('layout') == 'left') ? 'alignleft' : 'alignright';
			$class2 = $class1 == 'alignleft' ? 'alignright' : 'alignleft';
			$background = ($i % 2 == 0) ? '#fff' : '#f5f5f5';
		?>

		<section id="section<?php echo $i; ?>" class="section" style="background-color:<?php echo $background; ?>;">
			
			<div class="desktop">
				<div class="container clearfix">
					<div class="section-2 <?php echo $class2; ?> col-sm-5">
						<img src="<?php the_sub_field('icon'); ?>" alt=""/>
					</div>
					<div class="section-1 <?php echo $class1; ?> col-sm-7">
					    
						<h3 class="section1-1"><?php the_sub_field('title'); ?></h3>
						<div class="section1-2">
							<?php the_sub_field('content'); ?>
							<ul>
								<?php while(have_rows('list')): the_row(); ?>
									<li><?php the_sub_field('item'); ?></li>
								<?php endwhile; ?>
							</ul>
						</div>
					</div>

				</div>
			</div>		

		</section>

		<?php $i++; ?>
	<?php endwhile; ?>

	<?php $background = ($i % 2 == 0) ? '#fff' : '#f5f5f5'; ?>
	<section id="section<?php echo $i; ?>" class="section section-signup" style="background-color:<?php echo $background; ?>;">
		<?php while(have_rows('sign_up')): the_row(); ?>
			<div class="container cf">
				<div class="section-1 text-center">
					<h3 class="inline"><?php the_sub_field('text'); ?></h3>
<?php if('' != get_sub_field('button_url_absolute')) { ?>
	<a href="<?php the_sub_field('button_url_absolute'); ?>" class="btn"><?php the_sub_field('button_text'); ?></a>
<?php } else { ?>
	<a href="<?php the_sub_field('button_url'); ?>" class="btn"><?php the_sub_field('button_text'); ?></a>
<?php } ?>

				</div>
			</div>
		<?php endwhile; ?>
	</section>
<?php endif; ?>

</div>

<?php get_footer(); ?>