File manager - Edit - /home/vblioqus/bingo-patti.cc/wp-content/themes/infopediya/template-parts/content-single-header.php
Back
<?php $post_id = get_the_ID(); $star_rattings_obj = infopediya_get_star_rattings($post_id); $star_rating = $star_rattings_obj['average_ratting']; $file_version = infopediya_get_file_version($post_id); $file_size = infopediya_get_file_size($post_id); // $file_download_link = infopediya_get_file_dl_link($post_id); ?> <header class="single-app-header col-md-12 mb-20"> <div class="row"> <div class="app-icon-single col-md-3 col-sm-12 d-flex justify-content-center align-items-center"> <span id="postimg"><?php the_post_thumbnail('thumbnail') ?></span> </div> <div class="app-title-single mt-4 col-lg-6 col-md-9 col-sm-12"> <h1><?php the_title() ?></h1> <div class="my-2"> <span class="single-star-icons"> <?php $ratting = $star_rating ?> <?php $star_rating_dark = 5 - (int)$star_rating ?> <?php while ($star_rating != 0) : ?> <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 9 8"> <path fill="#F7B500" fill-rule="evenodd" d="M4.5 6.633L1.719 8 2.25 5.106 0 3.056 3.109 2.633 4.5 0 5.891 2.633 9 3.056 6.75 5.106 7.281 8z" /> </svg> <?php $star_rating = (int)$star_rating - 1 ?> <?php endwhile ?> <?php while ($star_rating_dark != 0) : ?> <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 9 8"> <path fill="#ddd" fill-rule="evenodd" d="M4.5 6.633L1.719 8l.531-2.894L0 3.056l3.11-.423L4.5 0l1.39 2.633L9 3.056l-2.25 2.05L7.281 8z" /> </svg> <?php $star_rating_dark = $star_rating_dark - 1 ?> <?php endwhile ?> </span> </div> <div id="app-info-icons" class="shadow-sm shadow-sm-none"> <span class="app-info-row app-stats d-flex justify-content-start align-items-center "> <span class="app-info-item"> <span class="info-text d-flex align-items-center gap-1"><svg width="15" height="15" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"> <path fill="<?php echo infopediya_get_theme_color() ?>" d="M288 376.4l.1-.1 26.4 14.1 85.2 45.5-16.5-97.6-4.8-28.7 20.7-20.5 70.1-69.3-96.1-14.2-29.3-4.3-12.9-26.6L288.1 86.9l-.1 .3V376.4zm175.1 98.3c2 12-3 24.2-12.9 31.3s-23 8-33.8 2.3L288.1 439.8 159.8 508.3C149 514 135.9 513.1 126 506s-14.9-19.3-12.9-31.3L137.8 329 33.6 225.9c-8.6-8.5-11.7-21.2-7.9-32.7s13.7-19.9 25.7-21.7L195 150.3 259.4 18c5.4-11 16.5-18 28.8-18s23.4 7 28.8 18l64.3 132.3 143.6 21.2c12 1.8 22 10.2 25.7 21.7s.7 24.2-7.9 32.7L438.5 329l24.6 145.7z" /> </svg> <?php echo number_format((float)$ratting, 1, '.', '') ?> </span> </span> <span class="app-info-item d-flex align-items-center gap-1"> <svg width="15" height="15" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path fill="<?php echo infopediya_get_theme_color() ?>" d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z" /> </svg> <?php if($file_version){ echo $file_version;}else{echo '---';} ?> </span> <span class="app-info-item d-flex align-items-center gap-1"> <svg width="15" height="15" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"> <path fill="<?php echo infopediya_get_theme_color() ?>" d="M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z" /> </svg> <?php if($file_size){ echo $file_size;}else{ echo '---';} ?> </span> </span> </div> </div><!-- //App Title --> <div class="app-downloadbtn-single col-lg-3 mt-md-4 col-md-9 col-sm-12 d-flex align-items-center justify-content-center "> <?php if (infopediya_show_share_btn()): ?> <button type="button" data-bs-toggle="modal" aria-label="share-modal-button" data-bs-target="#exampleModal" class="bg-white mx-3 share-button selected-border-color"> <img width="16" height="16" src="<?php echo get_template_directory_uri() . '/icons/share.svg' ?>" alt="share-icon"> </button> <?php endif; ?> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Share</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="container"> <div> <small id="copy-success-msg" class='text-success'></small> </div> <form class="form-group"> <input type="url" class="form-control my-2 rounded-pill py-2 px-4" id="the_link_ico" value="<?php the_permalink() ?>"> </form> </div> <div class="d-flex justify-content-center my-3 gap-3"> <a class="border p-2 rounded-circle" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink() ?>" target="_blank"> <img width="30" src="<?php echo get_template_directory_uri() . '/icons/facebook.svg' ?>" alt="facebook icon"> </a> <a class="border p-2 rounded-circle" href="http://www.twitter.com/intent/tweet?url=<?php the_permalink() ?>&text=<?php the_title() ?>" target="_blank" class="share-popup mx-4"> <img width="30" src="<?php echo get_template_directory_uri() . '/icons/twitter.svg' ?>" alt="twitter icon"> </a> <a class="border p-2 rounded-circle" href="javascript:" class="share-popup"> <img id="copy_link_btn" title="copy the link" width="30" src="<?php echo get_template_directory_uri() . '/icons/link.svg' ?>" alt="facebook icon"> </a> <script type="text/javascript"> let copy_link_btn = document.getElementById('copy_link_btn'); copy_link_btn.addEventListener('click', function() { let link_ico = document.getElementById('the_link_ico'); link_ico.select(); document.execCommand('copy'); document.getElementById('copy-success-msg').innerText = 'Link Copied!'; }); </script> </div> </div> <div class="modal-footer"> <button type="button" class="btn text-white gradient border-0 px-4" data-bs-dismiss="modal"> Close </button> </div> </div> </div> </div> <?php if (infopediya_show_dl_btn_top()): ?> <a href="<?php echo get_the_permalink().'/download/'; ?>" class="btn text-white py-2 px-3 gradient border-0"> <img width="16" height="16" src="<?php echo get_template_directory_uri() . '/icons/cloud.svg' ?>" alt="download-icon"> Download </a> <?php endif; ?> </div> </div> </header>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings