File manager - Edit - /home/vblioqus/y999-game.pro/wp-content/themes/infopediya/template-download.php
Back
<?php /** * Template Name: Custom Download Page * Template for individual APK download pages */ get_header(); $post_id = get_the_ID(); $download_link = get_post_meta($post_id, 'download_link', true); $file_size = get_post_meta($post_id, 'file_size', true); $version = get_post_meta($post_id, 'version', true); $requirements = get_post_meta($post_id, 'requirements', true); $password = get_post_meta($post_id, 'password', true); ?> <div class="download-page-container"> <div class="download-header"> <div class="app-icon"> <?php if (has_post_thumbnail()) : ?> <?php the_post_thumbnail('full', ['class' => 'img-fluid']); ?> <?php endif; ?> </div> <div class="app-info"> <h1><?php the_title(); ?></h1> <div class="meta-info"> <span class="version">Version: <?php echo esc_html($version); ?></span> <span class="size">Size: <?php echo esc_html($file_size); ?></span> <div class="rating"> <?php // Star rating display logic ?> </div> </div> </div> </div> <div class="download-content"> <div class="download-box"> <div class="countdown-timer"> <p>Your download will start in <span id="countdown">10</span> seconds</p> <div class="progress-bar"> <div class="progress"></div> </div> </div> <div class="download-button" style="display: none;"> <a href="<?php echo esc_url($download_link); ?>" class="btn-download" id="download-link"> Download Now </a> <?php if ($password) : ?> <div class="password-note"> <p>Password: <strong><?php echo esc_html($password); ?></strong></p> </div> <?php endif; ?> </div> </div> <div class="app-details"> <h3>App Details</h3> <?php the_content(); ?> <div class="requirements"> <h4>Requirements:</h4> <p><?php echo esc_html($requirements); ?></p> </div> </div> </div> <div class="similar-apps"> <h3>You May Also Like</h3> <?php // Similar apps query and loop ?> </div> </div> <script> // Countdown timer document.addEventListener('DOMContentLoaded', function() { let timeLeft = 10; const countdown = document.getElementById('countdown'); const progress = document.querySelector('.progress'); const downloadBtn = document.querySelector('.download-button'); const timer = setInterval(function() { timeLeft--; countdown.textContent = timeLeft; progress.style.width = (100 - (timeLeft * 10)) + '%'; if (timeLeft <= 0) { clearInterval(timer); document.querySelector('.countdown-timer').style.display = 'none'; downloadBtn.style.display = 'block'; } }, 1000); }); </script> <?php get_footer();
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings