File manager - Edit - /home/premiey/www/wp-includes/images/media/partials.tar
Back
preview.php 0000666 00000020755 15165377702 0006770 0 ustar 00 <?php /** * Joinchat public html template for preview * * Render all elements * * @since 5.0.0 * @package Joinchat * @subpackage Joinchat/public * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <div class="joinchat <?php echo esc_attr( join( ' ', $joinchat_classes ) ); ?>" data-settings='<?php echo Joinchat_Util::to_json( $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>'> <div class="joinchat__button"> <div class="joinchat__button__open"></div> <div class="joinchat__button__image"><?php echo $image; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> <div class="joinchat__button__sendtext"><?php echo esc_html( $settings['message_start'] ); ?></div> <svg class="joinchat__button__send" width="60" height="60" viewbox="0 0 400 400" stroke-linecap="round" stroke-width="33"> <path class="joinchat_svg__plain" d="M168.83 200.504H79.218L33.04 44.284a1 1 0 0 1 1.386-1.188L365.083 199.04a1 1 0 0 1 .003 1.808L34.432 357.903a1 1 0 0 1-1.388-1.187l29.42-99.427"/> <path class="joinchat_svg__chat" d="M318.087 318.087c-52.982 52.982-132.708 62.922-195.725 29.82l-80.449 10.18 10.358-80.112C18.956 214.905 28.836 134.99 81.913 81.913c65.218-65.217 170.956-65.217 236.174 0 42.661 42.661 57.416 102.661 44.265 157.316"/> </svg> <div class="joinchat__badge">1</div> <div class="joinchat__tooltip <?php echo $settings['button_tip'] ? '' : 'joinchat--hidden'; ?>"><div><?php echo esc_html( $settings['button_tip'] ); ?></div></div> <div class="joinchat__qr"><div><?php echo esc_html( $settings['qr_text'] ); ?></div></div> </div> <div class="joinchat__box"> <div class="joinchat__header"> <a class="joinchat__powered <?php echo '__jc__' !== $settings['header'] ? 'joinchat--hidden' : ''; ?>" href="<?php echo esc_url( $powered_link ); ?>" rel="nofollow noopener" target="_blank"> Powered by <svg width="81" height="18" viewbox="0 0 1424 318"><title>Joinchat</title><path d="m171 7 6 2 3 3v5l-1 8a947 947 0 0 0-2 56v53l1 24v31c0 22-6 43-18 63-11 19-27 35-48 48s-44 18-69 18c-14 0-24-3-32-8-7-6-11-13-11-23a26 26 0 0 1 26-27c7 0 13 2 19 6l12 12 1 1a97 97 0 0 0 10 13c4 4 7 6 10 6 4 0 7-2 10-6l6-23v-1c2-12 3-28 3-48V76l-1-3-3-1h-1l-11-2c-2-1-3-3-3-7s1-6 3-7a434 434 0 0 0 90-49zm1205 43c4 0 6 1 6 3l3 36a1888 1888 0 0 0 34 0h1l3 2 1 8-1 8-3 1h-35v62c0 14 2 23 5 28 3 6 9 8 16 8l5-1 3-1c2 0 3 1 5 3s3 4 2 6c-4 10-11 19-22 27-10 8-22 12-36 12-16 0-28-5-37-15l-8-13v1h-1c-17 17-33 26-47 26-18 0-31-13-39-39-5 12-12 22-21 29s-19 10-31 10c-11 0-21-4-29-13-7-8-11-18-11-30 0-10 2-17 5-23s9-11 17-15c13-7 35-14 67-21h1v-11c0-11-2-19-5-26-4-6-8-9-14-9-3 0-5 1-5 4v1l-2 15c-2 11-6 19-11 24-6 6-14 8-23 8-5 0-9-1-13-4-3-3-5-8-5-13 0-11 9-22 26-33s38-17 60-17c41 0 62 15 62 46v58l1 11 2 8 2 3h4l5-3 1-1-1-13v-88l-3-2-12-1c-1 0-2-3-2-7s1-6 2-6c16-4 29-9 40-15 10-6 20-15 31-25 1-2 4-3 7-3zM290 88c28 0 50 7 67 22 17 14 25 34 25 58 0 26-9 46-27 61s-42 22-71 22c-28 0-50-7-67-22a73 73 0 0 1-25-58c0-26 9-46 27-61s42-22 71-22zm588 0c19 0 34 4 45 12 11 9 17 18 17 29 0 6-3 11-7 15s-10 6-17 6c-13 0-24-8-33-25-5-11-10-18-13-21s-6-5-9-5c-8 0-11 6-11 17a128 128 0 0 0 32 81c8 8 16 12 25 12 8 0 16-3 24-10 1-1 3 0 6 2 2 2 3 3 3 5-5 12-15 23-29 32s-30 13-48 13c-24 0-43-7-58-22a78 78 0 0 1-22-58c0-25 9-45 27-60s41-23 68-23zm-402-3 5 2 3 3-1 10a785 785 0 0 0-2 53v76c1 3 2 4 4 4l11 3 11-3c3 0 4-1 4-4v-82l-1-2-3-2-11-1-2-6c0-4 1-6 2-6a364 364 0 0 0 77-44l5 2 3 3v12a393 393 0 0 0-1 21c5-10 12-18 22-25 9-8 21-11 34-11 16 0 29 5 38 14 10 9 14 22 14 39v88c0 3 2 4 4 4l11 3c1 0 2 2 2 6 0 5-1 7-2 7h-1a932 932 0 0 1-49-2 462 462 0 0 0-48 2c-2 0-3-2-3-7 0-3 1-6 3-6l8-3 3-1 1-3v-62c0-14-2-24-6-29-4-6-12-9-22-9l-7 1v99l1 3 3 1 8 3h1l2 6c0 5-1 7-3 7a783 783 0 0 1-47-2 512 512 0 0 0-51 2h-1a895 895 0 0 1-49-2 500 500 0 0 0-50 2c-1 0-2-2-2-7 0-4 1-6 2-6l11-3c2 0 3-1 4-4v-82l-1-3-3-1-11-2c-1 0-2-2-2-6l2-6a380 380 0 0 0 80-44zm539-75 5 2 3 3-1 9a758 758 0 0 0-2 55v42h1c5-9 12-16 21-22 9-7 20-10 32-10 16 0 29 5 38 14 10 9 14 22 14 39v88c0 2 2 3 4 4l11 2c1 0 2 2 2 7 0 4-1 6-2 6h-1a937 937 0 0 1-49-2 466 466 0 0 0-48 2c-2 0-3-2-3-6s1-7 3-7l8-2 3-2 1-3v-61c0-14-2-24-6-29-4-6-12-9-22-9l-7 1v99l1 2 3 2 8 2h1c1 1 2 3 2 7s-1 6-3 6a788 788 0 0 1-47-2 517 517 0 0 0-51 2c-1 0-2-2-2-6 0-5 1-7 2-7l11-2c3-1 4-2 4-5V71l-1-3-3-1-11-2c-1 0-2-2-2-6l2-6a387 387 0 0 0 81-43zm-743 90c-8 0-12 7-12 20a266 266 0 0 0 33 116c3 3 6 4 9 4 8 0 12-6 12-20 0-17-4-38-11-65-8-27-15-44-22-50-3-4-6-5-9-5zm939 65c-6 0-9 4-9 13 0 8 2 16 7 22 5 7 10 10 15 10l6-2v-22c0-6-2-11-7-15-4-4-8-6-12-6zM451 0c10 0 18 3 25 10s10 16 10 26a35 35 0 0 1-35 36c-11 0-19-4-26-10-7-7-10-16-10-26s3-19 10-26 15-10 26-10zm297 249c9 0 16-3 22-8 6-6 9-12 9-20s-3-15-9-21-13-8-22-8-16 3-22 8-9 12-9 21 3 14 9 20 13 8 22 8z"/></svg> </a> <svg class="joinchat__wa <?php echo '__wa__' !== $settings['header'] ? 'joinchat--hidden' : ''; ?>" width="120" height="28" viewBox="0 0 120 28"><title>WhatsApp</title><path d="M117.2 17c0 .4-.2.7-.4 1-.1.3-.4.5-.7.7l-1 .2c-.5 0-.9 0-1.2-.2l-.7-.7a3 3 0 0 1-.4-1 5.4 5.4 0 0 1 0-2.3c0-.4.2-.7.4-1l.7-.7a2 2 0 0 1 1.1-.3 2 2 0 0 1 1.8 1l.4 1a5.3 5.3 0 0 1 0 2.3zm2.5-3c-.1-.7-.4-1.3-.8-1.7a4 4 0 0 0-1.3-1.2c-.6-.3-1.3-.4-2-.4-.6 0-1.2.1-1.7.4a3 3 0 0 0-1.2 1.1V11H110v13h2.7v-4.5c.4.4.8.8 1.3 1 .5.3 1 .4 1.6.4a4 4 0 0 0 3.2-1.5c.4-.5.7-1 .8-1.6.2-.6.3-1.2.3-1.9s0-1.3-.3-2zm-13.1 3c0 .4-.2.7-.4 1l-.7.7-1.1.2c-.4 0-.8 0-1-.2-.4-.2-.6-.4-.8-.7a3 3 0 0 1-.4-1 5.4 5.4 0 0 1 0-2.3c0-.4.2-.7.4-1 .1-.3.4-.5.7-.7a2 2 0 0 1 1-.3 2 2 0 0 1 1.9 1l.4 1a5.4 5.4 0 0 1 0 2.3zm1.7-4.7a4 4 0 0 0-3.3-1.6c-.6 0-1.2.1-1.7.4a3 3 0 0 0-1.2 1.1V11h-2.6v13h2.7v-4.5c.3.4.7.8 1.2 1 .6.3 1.1.4 1.7.4a4 4 0 0 0 3.2-1.5c.4-.5.6-1 .8-1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.2.3.4.2.7c0 .3 0 .5-.3.6-.1.2-.4.3-.7.4l-1 .1a21.9 21.9 0 0 0-2.4.4l-1 .5c-.3.2-.6.5-.8.9-.2.3-.3.8-.3 1.3s.1 1 .3 1.3c.1.4.4.7.7 1l1 .4c.4.2.9.2 1.3.2a6 6 0 0 0 1.8-.2c.6-.2 1-.5 1.5-1a4 4 0 0 0 .2 1H70l-.3-1v-1.2zm-11-6.7c-.2-.4-.6-.6-1-.8-.5-.2-1-.3-1.8-.3-.5 0-1 .1-1.5.4a3 3 0 0 0-1.3 1.2v-5h-2.7v13.4H53v-5.1c0-1 .2-1.7.5-2.2.3-.4.9-.6 1.6-.6.6 0 1 .2 1.3.6.3.4.4 1 .4 1.8v5.5h2.7v-6c0-.6 0-1.2-.2-1.6 0-.5-.3-1-.5-1.3zm-14 4.7l-2.3-9.2h-2.8l-2.3 9-2.2-9h-3l3.6 13.4h3l2.2-9.2 2.3 9.2h3l3.6-13.4h-3l-2.1 9.2zm-24.5.2L18 15.6c-.3-.1-.6-.2-.8.2A20 20 0 0 1 16 17c-.2.2-.4.3-.7.1-.4-.2-1.5-.5-2.8-1.7-1-1-1.7-2-2-2.4-.1-.4 0-.5.2-.7l.5-.6.4-.6v-.6L10.4 8c-.3-.6-.6-.5-.8-.6H9c-.2 0-.6.1-.9.5C7.8 8.2 7 9 7 10.7c0 1.7 1.3 3.4 1.4 3.6.2.3 2.5 3.7 6 5.2l1.9.8c.8.2 1.6.2 2.2.1.6-.1 2-.8 2.3-1.6.3-.9.3-1.5.2-1.7l-.7-.4zM14 25.3c-2 0-4-.5-5.8-1.6l-.4-.2-4.4 1.1 1.2-4.2-.3-.5A11.5 11.5 0 0 1 22.1 5.7 11.5 11.5 0 0 1 14 25.3zM14 0A13.8 13.8 0 0 0 2 20.7L0 28l7.3-2A13.8 13.8 0 1 0 14 0z"/></svg> <?php if ( in_array( $settings['header'], array( '__jc__', '__wa__' ), true ) ) : ?> <span class="joinchat__header__text joinchat--hidden"></span> <?php else : ?> <span class="joinchat__header__text"><?php echo esc_html( $settings['header'] ); ?></span> <?php endif; ?> <div class="joinchat__close" title="<?php esc_attr_e( 'Close' ); ?>"></div> </div> <div class="joinchat__box__scroll"> <div class="joinchat__box__content"> <?php echo $box_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> </div> </div> <svg style="width:0;height:0;position:absolute"><defs><clipPath id="joinchat__peak_l"><path d="M17 25V0C17 12.877 6.082 14.9 1.031 15.91c-1.559.31-1.179 2.272.004 2.272C9.609 18.182 17 18.088 17 25z"/></clipPath><clipPath id="joinchat__peak_r"><path d="M0 25.68V0c0 13.23 10.92 15.3 15.97 16.34 1.56.32 1.18 2.34 0 2.34-8.58 0-15.97-.1-15.97 7Z"/></clipPath></defs></svg> </div> html.php 0000666 00000021311 15165377702 0006240 0 ustar 00 <?php /** * Joinchat public html template * * @since 4.1.5 * @package Joinchat * @subpackage Joinchat/public * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <div class="joinchat <?php echo esc_attr( join( ' ', $joinchat_classes ) ); ?>" data-settings='<?php echo Joinchat_Util::to_json( $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>'> <div class="joinchat__button"> <div class="joinchat__button__open"></div> <?php if ( $image ) : ?> <div class="joinchat__button__image"><?php echo $image; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> <?php endif; ?> <?php if ( $box_content ) : ?> <?php if ( $settings['message_start'] ) : ?> <div class="joinchat__button__sendtext"><?php echo esc_html( $settings['message_start'] ); ?></div> <?php endif; ?> <svg class="joinchat__button__send" width="60" height="60" viewbox="0 0 400 400" stroke-linecap="round" stroke-width="33"> <path class="joinchat_svg__plain" d="M168.83 200.504H79.218L33.04 44.284a1 1 0 0 1 1.386-1.188L365.083 199.04a1 1 0 0 1 .003 1.808L34.432 357.903a1 1 0 0 1-1.388-1.187l29.42-99.427"/> <path class="joinchat_svg__chat" d="M318.087 318.087c-52.982 52.982-132.708 62.922-195.725 29.82l-80.449 10.18 10.358-80.112C18.956 214.905 28.836 134.99 81.913 81.913c65.218-65.217 170.956-65.217 236.174 0 42.661 42.661 57.416 102.661 44.265 157.316"/> </svg> <?php if ( $settings['message_badge'] ) : ?> <div class="joinchat__badge">1</div> <?php endif; ?> <?php endif; ?> <?php if ( $settings['button_tip'] ) : ?> <div class="joinchat__tooltip"><div><?php echo esc_html( $settings['button_tip'] ); ?></div></div> <?php endif; ?> <?php if ( $settings['qr'] ) : ?> <div class="joinchat__qr"><div><?php echo esc_html( $settings['qr_text'] ); ?></div></div> <?php endif; ?> </div> <?php if ( $box_content ) : ?> <div class="joinchat__box"> <div class="joinchat__header"> <?php if ( '__jc__' === $settings['header'] ) : ?> <a class="joinchat__powered" href="<?php echo esc_url( $powered_link ); ?>" rel="nofollow noopener" target="_blank"> Powered by <svg width="81" height="18" viewbox="0 0 1424 318"><title>Joinchat</title><path d="m171 7 6 2 3 3v5l-1 8a947 947 0 0 0-2 56v53l1 24v31c0 22-6 43-18 63-11 19-27 35-48 48s-44 18-69 18c-14 0-24-3-32-8-7-6-11-13-11-23a26 26 0 0 1 26-27c7 0 13 2 19 6l12 12 1 1a97 97 0 0 0 10 13c4 4 7 6 10 6 4 0 7-2 10-6l6-23v-1c2-12 3-28 3-48V76l-1-3-3-1h-1l-11-2c-2-1-3-3-3-7s1-6 3-7a434 434 0 0 0 90-49zm1205 43c4 0 6 1 6 3l3 36a1888 1888 0 0 0 34 0h1l3 2 1 8-1 8-3 1h-35v62c0 14 2 23 5 28 3 6 9 8 16 8l5-1 3-1c2 0 3 1 5 3s3 4 2 6c-4 10-11 19-22 27-10 8-22 12-36 12-16 0-28-5-37-15l-8-13v1h-1c-17 17-33 26-47 26-18 0-31-13-39-39-5 12-12 22-21 29s-19 10-31 10c-11 0-21-4-29-13-7-8-11-18-11-30 0-10 2-17 5-23s9-11 17-15c13-7 35-14 67-21h1v-11c0-11-2-19-5-26-4-6-8-9-14-9-3 0-5 1-5 4v1l-2 15c-2 11-6 19-11 24-6 6-14 8-23 8-5 0-9-1-13-4-3-3-5-8-5-13 0-11 9-22 26-33s38-17 60-17c41 0 62 15 62 46v58l1 11 2 8 2 3h4l5-3 1-1-1-13v-88l-3-2-12-1c-1 0-2-3-2-7s1-6 2-6c16-4 29-9 40-15 10-6 20-15 31-25 1-2 4-3 7-3zM290 88c28 0 50 7 67 22 17 14 25 34 25 58 0 26-9 46-27 61s-42 22-71 22c-28 0-50-7-67-22a73 73 0 0 1-25-58c0-26 9-46 27-61s42-22 71-22zm588 0c19 0 34 4 45 12 11 9 17 18 17 29 0 6-3 11-7 15s-10 6-17 6c-13 0-24-8-33-25-5-11-10-18-13-21s-6-5-9-5c-8 0-11 6-11 17a128 128 0 0 0 32 81c8 8 16 12 25 12 8 0 16-3 24-10 1-1 3 0 6 2 2 2 3 3 3 5-5 12-15 23-29 32s-30 13-48 13c-24 0-43-7-58-22a78 78 0 0 1-22-58c0-25 9-45 27-60s41-23 68-23zm-402-3 5 2 3 3-1 10a785 785 0 0 0-2 53v76c1 3 2 4 4 4l11 3 11-3c3 0 4-1 4-4v-82l-1-2-3-2-11-1-2-6c0-4 1-6 2-6a364 364 0 0 0 77-44l5 2 3 3v12a393 393 0 0 0-1 21c5-10 12-18 22-25 9-8 21-11 34-11 16 0 29 5 38 14 10 9 14 22 14 39v88c0 3 2 4 4 4l11 3c1 0 2 2 2 6 0 5-1 7-2 7h-1a932 932 0 0 1-49-2 462 462 0 0 0-48 2c-2 0-3-2-3-7 0-3 1-6 3-6l8-3 3-1 1-3v-62c0-14-2-24-6-29-4-6-12-9-22-9l-7 1v99l1 3 3 1 8 3h1l2 6c0 5-1 7-3 7a783 783 0 0 1-47-2 512 512 0 0 0-51 2h-1a895 895 0 0 1-49-2 500 500 0 0 0-50 2c-1 0-2-2-2-7 0-4 1-6 2-6l11-3c2 0 3-1 4-4v-82l-1-3-3-1-11-2c-1 0-2-2-2-6l2-6a380 380 0 0 0 80-44zm539-75 5 2 3 3-1 9a758 758 0 0 0-2 55v42h1c5-9 12-16 21-22 9-7 20-10 32-10 16 0 29 5 38 14 10 9 14 22 14 39v88c0 2 2 3 4 4l11 2c1 0 2 2 2 7 0 4-1 6-2 6h-1a937 937 0 0 1-49-2 466 466 0 0 0-48 2c-2 0-3-2-3-6s1-7 3-7l8-2 3-2 1-3v-61c0-14-2-24-6-29-4-6-12-9-22-9l-7 1v99l1 2 3 2 8 2h1c1 1 2 3 2 7s-1 6-3 6a788 788 0 0 1-47-2 517 517 0 0 0-51 2c-1 0-2-2-2-6 0-5 1-7 2-7l11-2c3-1 4-2 4-5V71l-1-3-3-1-11-2c-1 0-2-2-2-6l2-6a387 387 0 0 0 81-43zm-743 90c-8 0-12 7-12 20a266 266 0 0 0 33 116c3 3 6 4 9 4 8 0 12-6 12-20 0-17-4-38-11-65-8-27-15-44-22-50-3-4-6-5-9-5zm939 65c-6 0-9 4-9 13 0 8 2 16 7 22 5 7 10 10 15 10l6-2v-22c0-6-2-11-7-15-4-4-8-6-12-6zM451 0c10 0 18 3 25 10s10 16 10 26a35 35 0 0 1-35 36c-11 0-19-4-26-10-7-7-10-16-10-26s3-19 10-26 15-10 26-10zm297 249c9 0 16-3 22-8 6-6 9-12 9-20s-3-15-9-21-13-8-22-8-16 3-22 8-9 12-9 21 3 14 9 20 13 8 22 8z"/></svg> </a> <?php elseif ( '__wa__' === $settings['header'] ) : ?> <svg class="joinchat__wa" width="120" height="28" viewBox="0 0 120 28"><title>WhatsApp</title><path d="M117.2 17c0 .4-.2.7-.4 1-.1.3-.4.5-.7.7l-1 .2c-.5 0-.9 0-1.2-.2l-.7-.7a3 3 0 0 1-.4-1 5.4 5.4 0 0 1 0-2.3c0-.4.2-.7.4-1l.7-.7a2 2 0 0 1 1.1-.3 2 2 0 0 1 1.8 1l.4 1a5.3 5.3 0 0 1 0 2.3zm2.5-3c-.1-.7-.4-1.3-.8-1.7a4 4 0 0 0-1.3-1.2c-.6-.3-1.3-.4-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20 0 0 1 16 17c-.2.2-.4.3-.7.1-.4-.2-1.5-.5-2.8-1.7-1-1-1.7-2-2-2.4-.1-.4 0-.5.2-.7l.5-.6.4-.6v-.6L10.4 8c-.3-.6-.6-.5-.8-.6H9c-.2 0-.6.1-.9.5C7.8 8.2 7 9 7 10.7c0 1.7 1.3 3.4 1.4 3.6.2.3 2.5 3.7 6 5.2l1.9.8c.8.2 1.6.2 2.2.1.6-.1 2-.8 2.3-1.6.3-.9.3-1.5.2-1.7l-.7-.4zM14 25.3c-2 0-4-.5-5.8-1.6l-.4-.2-4.4 1.1 1.2-4.2-.3-.5A11.5 11.5 0 0 1 22.1 5.7 11.5 11.5 0 0 1 14 25.3zM14 0A13.8 13.8 0 0 0 2 20.7L0 28l7.3-2A13.8 13.8 0 1 0 14 0z"/></svg> <?php elseif ( '' !== $settings['header'] ) : ?> <span class="joinchat__header__text"><?php echo esc_html( $settings['header'] ); ?></span> <?php endif; ?> <div class="joinchat__close" title="<?php esc_attr_e( 'Close' ); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain ?>"></div> </div> <div class="joinchat__box__scroll"> <div class="joinchat__box__content"> <?php echo $box_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> </div> </div> <svg style="width:0;height:0;position:absolute"><defs><clipPath id="joinchat__peak_l"><path d="M17 25V0C17 12.877 6.082 14.9 1.031 15.91c-1.559.31-1.179 2.272.004 2.272C9.609 18.182 17 18.088 17 25z"/></clipPath><clipPath id="joinchat__peak_r"><path d="M0 25.68V0c0 13.23 10.92 15.3 15.97 16.34 1.56.32 1.18 2.34 0 2.34-8.58 0-15.97-.1-15.97 7Z"/></clipPath></defs></svg> <?php endif; ?> </div> page-preview.php 0000666 00000015464 15165400405 0007666 0 ustar 00 <?php /** * Joinchat preview blank html * * @since 5.0.0 * @package Joinchat * @subpackage Joinchat/admin * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <?php // wp_head(); Don't run because only need Joinchat styles and scripts. do_action( 'joinchat_preview_header' ); ?> <style id="joinchat-preview-inline-css"> body { background: #fff; } .joinchat__tooltip.joinchat--show { opacity: 1; animation: none; transition: opacity 0.2s; } .joinchat__button__sendtext:empty, .joinchat__message:empty, .joinchat__optin:empty { display: none; } .joinchat--disabled { opacity: .2; pointer-events: none; } @media (min-width: 481px) { .joinchat.joinchat--mobile_only { opacity: .2; pointer-events: none; } .joinchat__qr.joinchat--show { display: flex; } } @media (max-width: 480px) { .joinchat__qr { display: none !important; } } </style> </head> <body> <div id="page" class="site"></div> <?php // wp_footer(); Don't run because only want Joinchat actions. do_action( 'joinchat_preview_footer' ); ?> <script> (function($, window, document, joinchat_obj) { 'use strict'; joinchat_obj = $.extend({ $div: null, settings: null, has_chatbox: false, chatbox: false, showed_at: 0, is_ready: false, // Change to true when Joinchat ends initialization is_mobile: !!navigator.userAgent.match(/Android|iPhone|BlackBerry|IEMobile|Opera Mini/i), can_qr: window.QrCreator && typeof QrCreator.render == 'function', }, joinchat_obj || {}); window.joinchat_obj = joinchat_obj; // Save global joinchat_obj.$ = function(sel) { return $(sel || this.$div, this.$div); }; // Trigger Analytics events joinchat_obj.send_event = function(params) {}; // Return WhatsApp link with optional message joinchat_obj.whatsapp_link = function(phone, message, wa_web) { message = message !== undefined ? message : this.settings.message_send || ''; wa_web = wa_web !== undefined ? wa_web : this.settings.whatsapp_web && !this.is_mobile; var link = (wa_web ? 'https://web.whatsapp.com/send?phone=' : 'https://wa.me/') + encodeURIComponent(phone || this.settings.telephone); return link + (message ? (wa_web ? '&text=' : '?text=') + encodeURIComponent(message) : ''); }; // Open Chatbox and trigger event joinchat_obj.chatbox_show = function() { if (!this.chatbox) { this.chatbox = true; this.showed_at = Date.now(); this.$div.addClass('joinchat--chatbox'); if (this.settings.message_badge && this.$('.joinchat__badge').hasClass('joinchat__badge--in')) { this.$('.joinchat__badge').toggleClass('joinchat__badge--in joinchat__badge--out'); } // Trigger custom event $(document).trigger('joinchat:show'); } }; // Close Chatbox and trigger event joinchat_obj.chatbox_hide = function() { if (this.chatbox) { this.chatbox = false; this.$div.removeClass('joinchat--chatbox joinchat--tooltip'); if (this.settings.message_badge) { this.$('.joinchat__badge').removeClass('joinchat__badge--out'); } // Trigger custom event $(document).trigger('joinchat:hide'); } }; // Open WhatsApp link with supplied phone and message or with settings defaults joinchat_obj.open_whatsapp = function(phone, message) { phone = phone || this.settings.telephone; message = message !== undefined ? message : this.settings.message_send || ''; var link = this.whatsapp_link(phone, message); var secure_link = new RegExp("^https?:\/\/(wa\.me|(api|web|chat)\.whatsapp\.com|" + location.hostname.replace('.', '\.') + ")\/.*", 'i'); // Ensure the link is safe if (secure_link.test(link)) { // Open WhatsApp link window.open(link, 'joinchat', 'noopener'); } else { console.error("Joinchat: the link doesn't seem safe, it must point to the current domain or whatsapp.com"); } }; joinchat_obj.optin = function() { return !this.$div.hasClass('joinchat--optout'); }; // Generate QR canvas joinchat_obj.qr = function(text, options) { var canvas = document.createElement('CANVAS'); QrCreator.render($.extend({ text: text, radius: 0.4, background: '#FFF', size: 200, }, joinchat_obj.settings.qr || {}, options || {}), canvas); return canvas; } joinchat_obj.update_cta = function(str) { str = str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"); // Secure str = str.replace(/(^|\W)_(.+?)_(\W|$)/gu, '$1<em>$2</em>$3'); // Italic str = str.replace(/(^|\W)\*(.+?)\*(\W|$)/gu, '$1<strong>$2</strong>$3'); // Bold str = str.replace(/(^|\W)~(.+?)~(\W|$)/gu, '$1<del>$2</del>$3'); // Strikethrough str = str.replace(/\n/g, '<br>'); // New lines this.$('.joinchat__message').html(str); } function joinchat_magic() { joinchat_obj.$div.addClass('joinchat--show'); var chatbox_hide = joinchat_obj.chatbox_hide.bind(joinchat_obj); function joinchat_click() { if (joinchat_obj.has_chatbox && !joinchat_obj.chatbox) { joinchat_obj.chatbox_show(); } else if (Date.now() > joinchat_obj.showed_at + 600) { // A bit delay to prevent open WA on auto show joinchat_obj.chatbox_hide(); joinchat_obj.open_whatsapp(); } } joinchat_obj.$('.joinchat__button').on('click', joinchat_click); joinchat_obj.$('.joinchat__close').on('click', chatbox_hide); // Opt-in toggle joinchat_obj.$('#joinchat_optin').on('change', function() { joinchat_obj.$div.toggleClass('joinchat--optout', !this.checked); }); // Add QR Code if (joinchat_obj.settings.qr && joinchat_obj.can_qr && !joinchat_obj.is_mobile) { joinchat_obj.$('.joinchat__qr').append(joinchat_obj.qr(joinchat_obj.whatsapp_link(undefined, undefined, false))); } $(document).trigger('joinchat:start'); joinchat_obj.is_ready = true; } // Simple run only once wrapper function once(fn) { return function() { fn && fn.apply(this, arguments); fn = null; }; } function on_page_ready() { joinchat_obj.$div = $('.joinchat'); joinchat_obj.settings = joinchat_obj.$div.data('settings'); joinchat_magic(); } // Ready!! (in some scenarios jQuery.ready doesn't fire, this try to ensure Joinchat initialization) var once_page_ready = once(on_page_ready); $(once_page_ready); $(window).on('load', once_page_ready); document.addEventListener('DOMContentLoaded', once_page_ready); }(jQuery, window, document, window.joinchat_obj)); </script> </body> </html> term-meta-box.php 0000666 00000005404 15165400405 0007745 0 ustar 00 <?php /** * Joinchat admin term edit from fields * * @since 4.3.0 * @package Joinchat * @subpackage Joinchat/admin * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <tr class="form-field"> <th><h2 style="margin:0"><?php esc_html_e( 'Joinchat', 'creame-whatsapp-me' ); ?></h2></th> <td><?php wp_nonce_field( 'joinchat_data', 'joinchat_nonce' ); ?></td> </tr> <tr class="form-field joinchat-metabox"> <th scope="row"><label for="joinchat_phone"><?php esc_html_e( 'Telephone', 'creame-whatsapp-me' ); ?></label></th> <td><input id="joinchat_phone" <?php echo jc_common()->get_intltel() ? 'data-' : ''; ?>name="joinchat_telephone" value="<?php echo esc_attr( $metadata['telephone'] ); ?>" type="text" placeholder="<?php echo esc_attr( $placeholders['telephone'] ); ?>"></td> </tr> <tr class="form-field joinchat-metabox"> <th scope="row"><label for="joinchat_message"><?php esc_html_e( 'Call to Action', 'creame-whatsapp-me' ); ?></label></th> <td><textarea id="joinchat_message" name="joinchat_message" rows="2" placeholder="<?php echo esc_attr( $placeholders['message_text'] ); ?>" class="large-text"><?php echo esc_textarea( $metadata['message_text'] ); ?></textarea></td> </tr> <tr class="form-field joinchat-metabox"> <th scope="row"><label for="joinchat_message_send"><?php esc_html_e( 'Message', 'creame-whatsapp-me' ); ?></label></th> <td> <textarea id="joinchat_message_send" name="joinchat_message_send" rows="2" placeholder="<?php echo esc_attr( $placeholders['message_send'] ); ?>" class="large-text"><?php echo esc_textarea( $metadata['message_send'] ); ?></textarea> <p class="description"> <?php if ( count( $metabox_vars ) ) : ?> <?php esc_html_e( 'Can use vars', 'creame-whatsapp-me' ); ?> <code>{<?php echo wp_kses( join( '}</code> <code>{', $metabox_vars ), array( 'code' => array() ) ); ?>}</code> <?php endif; ?> <?php esc_html_e( 'to leave it blank use', 'creame-whatsapp-me' ); ?> <code>{}</code> </p> </td> </tr> <tr class="form-field joinchat-metabox"> <th scope="row"><label for="joinchat_message"><?php esc_html_e( 'Visibility', 'creame-whatsapp-me' ); ?></label></th> <td> <label><input type="radio" name="joinchat_view" value="yes" <?php checked( 'yes', $metadata['view'] ); ?>> <span class="dashicons dashicons-visibility" title="<?php esc_attr_e( 'Show', 'creame-whatsapp-me' ); ?>"></span></label> <label><input type="radio" name="joinchat_view" value="no" <?php checked( 'no', $metadata['view'] ); ?>> <span class="dashicons dashicons-hidden" title="<?php esc_attr_e( 'Hide', 'creame-whatsapp-me' ); ?>"></span></label> <label><input type="radio" name="joinchat_view" value="" <?php checked( '', $metadata['view'] ); ?>> <?php esc_html_e( 'Default visibility', 'creame-whatsapp-me' ); ?></label> </td> </tr> premium.php 0000666 00000004050 15165400405 0006736 0 ustar 00 <?php /** * Joinchat premium addons * * @since 5.0.0 * @package Joinchat * @subpackage Joinchat/admin * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <table class="wp-list-table widefat plugins"> <thead> <tr> <td class="manage-column column-cb check-column"><label class="screen-reader-text" for="cb-select-all-1"><?php esc_html_e( 'Select All' ); ?></label><input id="cb-select-all-1" type="checkbox" disabled></td> <th scope="col" id="name" class="manage-column column-name column-primary"><?php esc_html_e( 'Add-on', 'creame-whatsapp-me' ); ?></th> <th scope="col" id="description" class="manage-column column-description"><?php esc_html_e( 'Description' ); ?></th> </tr> </thead> <tbody id="the-list" data-wp-lists="list:addon"> <?php foreach ( $addons as $addon ) : ?> <tr class="inactive"> <th scope="row" class="check-column"><input type="checkbox" disabled></th> <td class="plugin-title column-primary"><strong><?php echo esc_html( $addon['name'] ); ?></strong> <div class="row-actions visible"></div> </td> <td class="column-description desc"> <div class="plugin-description"><?php echo wp_kses( $addon['description'], array( 'strong' => array() ) ); ?></div> <div class="inactive second plugin-version-author-uri"> <a href="<?php echo esc_url( $addon['info'] ); ?>" target="_blank"><?php esc_html_e( 'View details' ); ?></a> | <a href="<?php echo esc_url( $addon['docs'] ); ?>" target="_blank"><?php esc_html_e( 'Documentation' ); ?></a> </div> </td> </tr> <?php endforeach; ?> </tbody> <tfoot> <tr> <td class="manage-column column-cb check-column"><label class="screen-reader-text" for="cb-select-all-2"><?php esc_html_e( 'Select All' ); ?></label><input id="cb-select-all-2" type="checkbox" disabled></td> <th scope="col" class="manage-column column-name column-primary"><?php esc_html_e( 'Add-on', 'creame-whatsapp-me' ); ?></th> <th scope="col" class="manage-column column-description"><?php esc_html_e( 'Description' ); ?></th> </tr> </tfoot> </table> post-meta-box.php 0000666 00000004466 15165400405 0007772 0 ustar 00 <?php /** * Joinchat admin post meta box * * @since 4.3.0 * @package Joinchat * @subpackage Joinchat/admin * @author Creame <hola@crea.me> */ defined( 'WPINC' ) || exit; ?> <div class="joinchat-metabox"> <?php wp_nonce_field( 'joinchat_data', 'joinchat_nonce' ); ?> <p> <label for="joinchat_phone"><?php esc_html_e( 'Telephone', 'creame-whatsapp-me' ); ?></label><br> <input id="joinchat_phone" <?php echo jc_common()->get_intltel() ? 'data-' : ''; ?>name="joinchat_telephone" value="<?php echo esc_attr( $metadata['telephone'] ); ?>" type="text" placeholder="<?php echo esc_attr( $placeholders['telephone'] ); ?>"> </p> <p> <label for="joinchat_message"><?php esc_html_e( 'Call to Action', 'creame-whatsapp-me' ); ?></label><br> <textarea id="joinchat_message" name="joinchat_message" rows="2" placeholder="<?php echo esc_attr( $placeholders['message_text'] ); ?>" class="large-text"><?php echo esc_textarea( $metadata['message_text'] ); ?></textarea> </p> <p> <label for="joinchat_message_send"><?php esc_html_e( 'Message', 'creame-whatsapp-me' ); ?></label><br> <textarea id="joinchat_message_send" name="joinchat_message_send" rows="2" placeholder="<?php echo esc_attr( $placeholders['message_send'] ); ?>" class="large-text"><?php echo esc_textarea( $metadata['message_send'] ); ?></textarea> <?php if ( count( $metabox_vars ) ) : ?> <small><?php esc_html_e( 'Can use vars', 'creame-whatsapp-me' ); ?> <code>{<?php echo wp_kses( join( '}</code> <code>{', $metabox_vars ), array( 'code' => array() ) ); ?>}</code></small> <?php endif; ?> <small><?php esc_html_e( 'to leave it blank use', 'creame-whatsapp-me' ); ?> <code>{}</code></small> </p> <p> <label><input type="radio" name="joinchat_view" value="yes" <?php checked( 'yes', $metadata['view'] ); ?>> <span class="dashicons dashicons-visibility" title="<?php esc_attr_e( 'Show', 'creame-whatsapp-me' ); ?>"></span></label> <label><input type="radio" name="joinchat_view" value="no" <?php checked( 'no', $metadata['view'] ); ?>> <span class="dashicons dashicons-hidden" title="<?php esc_attr_e( 'Hide', 'creame-whatsapp-me' ); ?>"></span></label> <label><input type="radio" name="joinchat_view" value="" <?php checked( '', $metadata['view'] ); ?>> <?php esc_html_e( 'Default visibility', 'creame-whatsapp-me' ); ?></label> </p> </div>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings