Submit
Path:
~
/
home
/
getwphos
/
public_html
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
subscribe-popup
/
File Content:
helper.php
<?php if ( ! function_exists( 'hiroshi_core_get_subscribe_popup' ) ) { /** * Loads subscribe popup HTML */ function hiroshi_core_get_subscribe_popup() { if ( 'yes' === hiroshi_core_get_option_value( 'admin', 'qodef_enable_subscribe_popup' ) && ! empty( hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_contact_form' ) ) ) { hiroshi_core_load_subscribe_popup_template(); } } // Get subscribe popup HTML add_action( 'hiroshi_action_before_wrapper_close_tag', 'hiroshi_core_get_subscribe_popup' ); } if ( ! function_exists( 'hiroshi_core_load_subscribe_popup_template' ) ) { /** * Loads HTML template with params */ function hiroshi_core_load_subscribe_popup_template() { $params = array(); $params['title'] = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_title' ); $params['subtitle'] = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_subtitle' ); $background_image = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_background_image' ); $params['content_style'] = ! empty( $background_image ) ? 'background-image: url(' . esc_url( wp_get_attachment_url( $background_image ) ) . ')' : ''; $params['contact_form'] = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_contact_form' ); $params['enable_prevent'] = hiroshi_core_get_option_value( 'admin', 'qodef_enable_subscribe_popup_prevent' ); $params['prevent_behavior'] = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_prevent_behavior' ); $holder_classes = array(); $holder_classes[] = ! empty( $params['prevent_behavior'] ) ? 'qodef-sp-prevent-' . $params['prevent_behavior'] : 'qodef-sp-prevent-session'; $params['holder_classes'] = implode( ' ', $holder_classes ); echo hiroshi_core_get_template_part( 'subscribe-popup', 'templates/subscribe-popup', '', $params ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
dashboard
---
0755
templates
---
0755
helper.php
1938 bytes
0644
include.php
176 bytes
0644
N4ST4R_ID | Naxtarrr