Server IP : 172.67.216.182 / Your IP : 162.158.106.174 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 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 : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/audiomatrix.in/wp-content/plugins/popup-maker/includes/functions/popups/ |
Upload File : |
<?php /** * Functions for Popups Template * * @package PUM * @copyright Copyright (c) 2023, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Render the popup ID * * @param null|int|string $popup_id Popup ID. */ function pum_popup_ID( $popup_id = null ) { echo pum_get_popup_id( $popup_id ); } /** * Render the popup title. * * @param null|int $popup_id Popup ID. */ function pum_popup_title( $popup_id = null ) { echo esc_html( pum_get_popup_title( $popup_id ) ); } /** * Render the popup content. * * @param null|int $popup_id Popup ID. */ function pum_popup_content( $popup_id = null ) { $popup = pum_get_popup( $popup_id ); if ( ! pum_is_popup( $popup ) ) { return; } $cached_content = PUM_Site_Popups::get_cache_content( $popup->ID ); echo false !== $cached_content ? $cached_content : $popup->get_content(); } /** * Render the chose popup elements classes. * * @param null $popup_id Popup ID. * @param string $element Element to get classes for. */ function pum_popup_classes( $popup_id = null, $element = 'overlay' ) { $popup = pum_get_popup( $popup_id ); if ( ! pum_is_popup( $popup ) ) { return; } echo esc_attr( implode( ' ', $popup->get_classes( $element ) ) ); } /** * Render the popups data attribute. * * @param null|int $popup_id Popup ID. */ function pum_popup_data_attr( $popup_id = null ) { $popup = pum_get_popup( $popup_id ); if ( ! pum_is_popup( $popup ) ) { return; } echo 'data-popmake="' . esc_attr( wp_json_encode( $popup->get_data_attr() ) ) . '"'; } /** * Render the popup's content tabindex attribute to make focusable * if needed. * * @param null|int $popup_id Popup ID. */ function pum_popup_content_tabindex_attr( $popup_id = null ) { $popup = pum_get_popup( $popup_id ); if ( ! pum_is_popup( $popup ) ) { return; } // Greater or equal to 0 makes it focusable. echo 'tabindex="0"'; } /** * Render the popup close button text. * * @param null|int $popup_id Popup ID. */ function pum_popup_close_text( $popup_id = null ) { $popup = pum_get_popup( $popup_id ); if ( ! pum_is_popup( $popup ) ) { return; } $close_text = $popup->close_text(); // If the close text is a font awesome icon (E.g. "fas fa-camera"), add the icon instead of the text. if ( preg_match( '/^fa[srldb]?\s.+/i', $close_text ) || preg_match( '/^fa-((solid)|(regular)|(light)|(thin)|(duotone))?\sfa[-]?.+/i', $close_text ) ) { echo '<i class="' . esc_attr( $close_text ) . '"></i>'; } else { echo esc_html( $close_text ); } }