| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/sticky-chat-widget/admin/templates/ |
Upload File : |
<?php
/**
* Pending messages setting functionality of the plugin.
*
* @author : Ginger Plugins <gingerplugins@gmail.com>
* @license : GPL2
* */
defined('ABSPATH') or die('Direct Access is not allowed');
?>
<?php
$defaultPendingMessageSettings = Ginger_Social_Icons::get_customize_widget_setting();
$pendingMessageSettings = get_post_meta($postId, "widget_settings", true);
$pendingMessageSettings = shortcode_atts($defaultPendingMessageSettings, $pendingMessageSettings);
?>
<div class="setting-sub-title mt-36"><?php esc_html_e("Pending Messages", "sticky-chat-widget") ?></div>
<div class="gp-form-field">
<span class="dashboard-switch in-flex on-off">
<input type="hidden" name="widget_settings[has_pending_message]" value="no">
<input type="checkbox" id="has_pending_message" name="widget_settings[has_pending_message]" value="yes" class="sr-only has-pending-message" <?php checked($pendingMessageSettings['has_pending_message'], "yes") ?>>
<label for="has_pending_message"><?php esc_html_e("Show pending message ", "sticky-chat-widget") ?><span aria-hidden="true" class="ginger-info" data-ginger-tooltip="<?php esc_html_e("Increase your click rate by displaying a pending messages (bubble) on widget button", 'sticky-chat-widget') ?>"><span class="dashicons dashicons-editor-help"></span></span></label>
</span>
</div>
<div class="pending-message-setting <?php echo ($pendingMessageSettings['has_pending_message'] == "yes") ? "active" : "" ?>">
<div class="gp-form-field">
<div class="gp-form-label">
<label for="no_of_messages"><?php esc_html_e("Number of messages:", "sticky-chat-widget") ?></label>
</div>
<div class="gp-form-input medium-input">
<input type="text" name="widget_settings[no_of_messages]" id="no_of_messages" class="only-numeric <?php echo ($pendingMessageSettings['has_pending_message'] == "yes") ? "is-required" : "" ?>" value="<?php echo esc_attr($pendingMessageSettings['no_of_messages']) ?>" data-label="No of messages">
</div>
</div>
<div class="gp-form-field in-flex">
<div class="gp-form-label">
<label for="message-bg-color-custom"><?php esc_html_e("Background color:", "sticky-chat-widget") ?></label>
</div>
<div class="gp-form-input ginger-color-list">
<input id="message-bg-color-custom" class="custom-color-picker" type="text" name="widget_settings[message_bg_color]" value="<?php echo esc_attr($pendingMessageSettings['message_bg_color']) ?>" style="background: <?php echo esc_attr($pendingMessageSettings['message_bg_color']) ?>">
</div>
</div>
<div class="gp-form-field in-flex">
<div class="gp-form-label">
<label for="message-text-color-custom"><?php esc_html_e("Text color:", "sticky-chat-widget") ?></label>
</div>
<div class="gp-form-input ginger-color-list">
<input id="message-text-color-custom" class="custom-color-picker" type="text" name="widget_settings[message_text_color]" value="<?php echo esc_attr($pendingMessageSettings['message_text_color']) ?>" style="background: <?php echo esc_attr($pendingMessageSettings['message_text_color']) ?>">
</div>
</div>
</div>