', '' ); ?>
[ 'href' => [], 'rel' => [], 'target' => [], ], ] ); ?>
Forced Interaction!', 'popup-maker' ), 'https://wppopupmaker.com/extensions/forced-interaction/?utm_source=plugin-theme-editor&utm_medium=text-link&utm_campaign=upsell&utm_content=close-button-settings' ); $tabs['close']['button']['fi_promotion'] = $tabs['close']['forms']['fi_promotion'] = $tabs['close']['alternate_methods']['fi_promotion'] = [ 'type' => 'html', 'content' => '' . $message, 'priority' => 999, 'class' => 'pum-upgrade-tip', ]; } if ( ! pum_extension_enabled( 'advanced-targeting-conditions' ) ) { /* translators: %s url to product page. */ $message = sprintf( __( 'Need more advanced targeting options?', 'popup-maker' ), 'https://wppopupmaker.com/extensions/advanced-targeting-conditions/?utm_campaign=upsell&utm_source=plugin-popup-editor&utm_medium=text-link&utm_content=conditions-editor' ); $tabs['targeting']['main']['atc_promotion'] = [ 'type' => 'html', 'content' => '' . $message, 'priority' => 999, 'class' => 'pum-upgrade-tip', ]; } return $tabs; } /** * Adds messages throughout Popup Theme UI * * @param array $tabs The tabs/fields for popup theme. * @return array */ public static function theme_promotional_fields( $tabs = [] ) { if ( ! pum_extension_enabled( 'advanced-theme-builder' ) && ! class_exists( 'PUM_ATB' ) ) { foreach ( [ 'overlay', 'container', 'close' ] as $tab ) { /* translators: %s url to product page. */ $message = __( 'Want to use background images?', 'popup-maker' ); $tabs[ $tab ]['background']['atc_promotion'] = [ 'type' => 'html', 'content' => '' . sprintf( $message, 'https://wppopupmaker.com/extensions/advanced-theme-builder/?utm_campaign=upsell&utm_source=plugin-theme-editor&utm_medium=text-link&utm_content=' . $tab . '-settings' ), 'priority' => 999, 'class' => 'pum-upgrade-tip', ]; } } return $tabs; } /** * When the Popup or Popup Theme list table loads, call the function to view our tabs. * * @since 1.8.0 * @param array $views An array of available list table views. * @return mixed */ public static function addon_tabs( $views ) { self::display_addon_tabs(); return $views; } /** * Displays the tabs for 'Popups', 'Popup Themes' and 'Extensions and Integrations' * * @since 1.8.0 */ public static function display_addon_tabs() { $popup_labels = PUM_Types::post_type_labels( __( 'Popup', 'popup-maker' ), __( 'Popups', 'popup-maker' ) ); $theme_labels = PUM_Types::post_type_labels( __( 'Popup Theme', 'popup-maker' ), __( 'Popup Themes', 'popup-maker' ) ); ?>