| Server IP : 43.153.74.48 / Your IP : 216.73.216.175 Web Server : LiteSpeed System : Linux VM-0-13-ubuntu 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 User : www ( 1002) PHP Version : 8.1.29 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/stainlesstint.com/wp-content/themes/woodmart/inc/shortcodes/ |
Upload File : |
<?php if ( ! defined( 'WOODMART_THEME_DIR' ) ) {
exit( 'No direct script access allowed' );}
/**
* ------------------------------------------------------------------------------------------------
* Content in popup
* ------------------------------------------------------------------------------------------------
*/
if ( ! function_exists( 'woodmart_shortcode_popup' ) ) {
function woodmart_shortcode_popup( $atts, $content = '' ) {
$parsed_atts = shortcode_atts(
array(
'id' => 'my_popup',
'title' => 'GO',
'link' => '',
'width' => 800,
'color' => 'default',
'style' => 'default',
'shape' => 'rectangle',
'size' => 'default',
'align' => 'center',
'button_inline' => 'no',
'full_width' => 'no',
'bg_color' => '',
'bg_color_hover' => '',
'color_scheme' => 'light',
'color_scheme_hover' => 'light',
'woodmart_css_id' => '',
'css_animation' => 'none',
'el_class' => '',
'content_class' => '',
'icon_type' => 'icon',
'image' => '',
'img_size' => '25x25',
'icon_fontawesome' => '',
'icon_openiconic' => '',
'icon_typicons' => '',
'icon_entypo' => '',
'icon_linecons' => '',
'icon_monosocial' => '',
'icon_material' => '',
'icon_library' => 'fontawesome',
'icon_position' => 'right',
'css' => '',
'wd_animation' => '',
'wd_animation_delay' => '',
'wd_animation_duration' => '',
),
$atts
);
extract( $parsed_atts );
ob_start();
$parsed_atts['link'] = 'url:#' . esc_attr( $id ) . '|||';
$parsed_atts['el_class'] = 'wd-open-popup ' . $el_class;
woodmart_enqueue_js_library( 'magnific' );
woodmart_enqueue_js_script( 'popup-element' );
woodmart_enqueue_inline_style( 'mfp-popup' );
echo woodmart_shortcode_button( $parsed_atts, true );
$content_classes = '';
$content_classes .= woodmart_get_old_classes( ' woodmart-content-popup' );
if ( $content_class ) {
$content_classes .= ' ' . $content_class;
}
echo '<div id="' . esc_attr( $id ) . '" class="mfp-with-anim wd-popup wd-popup-element mfp-hide' . $content_classes . '" style="max-width:' . esc_attr( $width ) . 'px;"><div class="wd-popup-inner">' . do_shortcode( $content ) . '</div></div>';
return ob_get_clean();
}
}