/home/techb158/public_html/wp-content/plugins/optinmonster/OMAPI/MemberPress
Edit: /home/techb158/public_html/wp-content/plugins/optinmonster/OMAPI/MemberPress/ProductEducation.php (4564B)
svg_path = plugin_dir_path( OMAPI_FILE ) . '/assets/images/memberpress/';
}
/**
* Registers the add_meta_box hook.
*
* @since 2.13.5
*
* @return void
*/
public function add_meta_box() {
add_action( 'add_meta_boxes', array( $this, 'meta_box' ) );
}
/**
* Adds the meta box to the post types.
*
* @since 2.13.5
*
* @return void
*/
public function meta_box() {
$output = OMAPI_ApiKey::has_credentials() ? 'meta_box_output_connected' : 'meta_box_output_not_connected';
foreach ( $this->post_types as $type ) {
add_meta_box(
'om-mp-education',
esc_html__( 'Create a Popup', 'optin-monster-api' ),
array( $this, $output ),
$type,
'side',
'default'
);
}
}
/**
* Outputs the meta box content when connected.
*
* @since 2.13.5
*
* @return void
*/
public function meta_box_output_connected() {
$explore_text = __( 'Explore Templates', 'optin-monster-api' );
$type_buttons = array(
'popup' => __( 'Create a Popup', 'optin-monster-api' ),
'floating' => __( 'Create a Floating Bar', 'optin-monster-api' ),
'slide' => __( 'Create a Slide-in', 'optin-monster-api' ),
'full' => __( 'Create a Fullscreen', 'optin-monster-api' ),
'inline' => __( 'Create a Inline', 'optin-monster-api' ),
);
?>
svg_path . 'love.svg'; ?>
svg_path . 'love.svg'; ?>