File manager - Edit - /home/palg2351/public_html/wp-content/plugins/sejoli/public/partials/social-proof/iframe.php
Back
<?php /** * @since 1.5.0 * @since 1.5.1.1 Add conditional check for is_product_image_showed */ ?> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title><?php echo $product->post_title; ?></title> <link rel='stylesheet'href='<?php echo SEJOLISA_URL; ?>public/css/sejoli-social-proof-iframe.css' type='text/css' media='all' /> </head> <body> <?php $user = wp_get_current_user(); $text = safe_str_replace( array( '{{buyer_name}}', '{{product_name}}' ), array( '<span class="buyer-name">' . $user->display_name . '</span>', '<span class="product-name">' . $product->post_title . '</span>' ), $this->popup_text ); $has_photo = ( $this->is_avatar_showed || $this->is_product_image_showed ) ? 'has-photo' : ''; ?> <div class="social-proof-container <?php echo $this->position; ?>"> <input type="hidden" name="social-proof-orders" id='social-proof-orders' value=""> <section id='social-proof-holder' class="social-proof-holder <?php echo $has_photo; ?> animated"> <?php if( $this->is_avatar_showed ) : ?> <figure class='buyer-photo'> <?php echo get_avatar($user); ?> </figure> <?php endif; ?> <div class="buyer-detail"> <div class="buyer-text"><?php echo $text; ?></div> <span class='order-text'>45 menit lalu</span> </div> </section> </div> <script type="text/javascript"> (function(){ 'use strict'; let ssc_iframe = parent.getElementById('sejoli-social-proof-iframe-<?php echo $product->ID; ?>'); console.log( ssc_iframe ); })(); </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.19 |
proxy
|
phpinfo
|
Settings