├── css
└── tpl
│ ├── simple
│ ├── style.php
│ ├── img
│ │ ├── close.png
│ │ └── close@2x.png
│ ├── template.php
│ └── style.css
│ ├── cabriolet
│ ├── style.php
│ ├── img
│ │ ├── close.png
│ │ └── close@2x.png
│ └── template.php
│ ├── minimal
│ ├── style.php
│ └── template.php
│ ├── old-default
│ ├── style.php
│ ├── img
│ │ ├── opaque.png
│ │ ├── loading.gif
│ │ ├── closemessage.png
│ │ └── closemessagebland.png
│ ├── template.php
│ └── style.css
│ ├── old-fixed
│ ├── style.php
│ ├── img
│ │ ├── loading.gif
│ │ ├── opaque.png
│ │ ├── closemessage.png
│ │ └── closemessagebland.png
│ ├── template.php
│ └── style.css
│ └── old-fullbackground
│ ├── style.php
│ ├── img
│ ├── opaque.png
│ ├── loading.gif
│ ├── opaque80.png
│ ├── closemessage.png
│ └── closemessagebland.png
│ ├── template.php
│ └── style.css
├── img
├── icon.png
└── dev-team.png
├── lang
└── popover-en_US.mo
├── humans.txt
├── views
├── meta-side-ads.php
├── meta-customcss.php
├── meta-rules.php
├── network.php
├── meta-submitdiv.php
├── info-shortcodes.php
├── meta-content.php
├── meta-behavior-premium.php
├── meta-appearance.php
└── meta-behavior.php
├── inc
├── config-defaults.php
├── class-popup-help.php
├── addons
│ ├── class-popup-addon-geo-db.php
│ └── class-popup-addon-headerfooter.php
├── rules
│ ├── class-popup-rule-browser.php
│ ├── class-popup-rule-popup.php
│ ├── class-popup-rule-prosite.php
│ ├── class-popup-rule-user.php
│ ├── class-popup-rule-role.php
│ ├── class-popup-rule-advurl.php
│ ├── class-popup-rule-events.php
│ ├── class-popup-rule-datetime.php
│ ├── class-popup-rule-width.php
│ ├── class-popup-rule-url.php
│ ├── class-popup-rule-posttype.php
│ ├── class-popup-rule-protectedcontent.php
│ ├── class-popup-rule-xprofile.php
│ └── class-popup-rule-category.php
└── class-popup-posttype.php
├── js
├── theme-chrome.min.js
├── vendor
│ └── theme-chrome.js
├── theme-chrome.js
├── popup-admin.min.js
└── public.min.js
├── popover.php
└── changelog.txt
/css/tpl/simple/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Simple', 'popover' );
3 |
--------------------------------------------------------------------------------
/img/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/img/icon.png
--------------------------------------------------------------------------------
/img/dev-team.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/img/dev-team.png
--------------------------------------------------------------------------------
/lang/popover-en_US.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/lang/popover-en_US.mo
--------------------------------------------------------------------------------
/css/tpl/cabriolet/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Cabriolet', 'popover' );
3 | $info->pro = true;
--------------------------------------------------------------------------------
/css/tpl/minimal/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Minimal', 'popover' );
3 | $info->pro = true;
--------------------------------------------------------------------------------
/css/tpl/old-default/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Default', 'popover' );
3 | $info->deprecated = true;
--------------------------------------------------------------------------------
/css/tpl/simple/img/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/simple/img/close.png
--------------------------------------------------------------------------------
/css/tpl/cabriolet/img/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/cabriolet/img/close.png
--------------------------------------------------------------------------------
/css/tpl/old-fixed/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Default Fixed', 'popover' );
3 | $info->deprecated = true;
--------------------------------------------------------------------------------
/css/tpl/simple/img/close@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/simple/img/close@2x.png
--------------------------------------------------------------------------------
/css/tpl/cabriolet/img/close@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/cabriolet/img/close@2x.png
--------------------------------------------------------------------------------
/css/tpl/old-default/img/opaque.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-default/img/opaque.png
--------------------------------------------------------------------------------
/css/tpl/old-fixed/img/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fixed/img/loading.gif
--------------------------------------------------------------------------------
/css/tpl/old-fixed/img/opaque.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fixed/img/opaque.png
--------------------------------------------------------------------------------
/css/tpl/old-default/img/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-default/img/loading.gif
--------------------------------------------------------------------------------
/css/tpl/old-fixed/img/closemessage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fixed/img/closemessage.png
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/style.php:
--------------------------------------------------------------------------------
1 | name = __( 'Dark Background Fixed', 'popover' );
3 | $info->deprecated = true;
--------------------------------------------------------------------------------
/css/tpl/old-default/img/closemessage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-default/img/closemessage.png
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/img/opaque.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fullbackground/img/opaque.png
--------------------------------------------------------------------------------
/css/tpl/old-fixed/img/closemessagebland.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fixed/img/closemessagebland.png
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/img/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fullbackground/img/loading.gif
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/img/opaque80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fullbackground/img/opaque80.png
--------------------------------------------------------------------------------
/css/tpl/old-default/img/closemessagebland.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-default/img/closemessagebland.png
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/img/closemessage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fullbackground/img/closemessage.png
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/img/closemessagebland.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/popup-pro/master/css/tpl/old-fullbackground/img/closemessagebland.png
--------------------------------------------------------------------------------
/humans.txt:
--------------------------------------------------------------------------------
1 | /* TEAM */
2 | Developer: Barry
3 | Contact:
4 | Twitter: @caffeinatedwp
5 | Location:
6 |
7 | Developer: Marko Miljus
8 | Location: Novi Sad, Serbia
9 | Contact: marko [at] incsub [dot] com
10 | Twitter: @markomiljus
11 |
12 | Developer: Ve Bailovity
13 | Contact: ve [at] incsub [dot] com
14 | Twitter: @vebailovity
15 | Location: Zrenjanin, Serbia
16 |
17 | Developer: Philipp Stracker
18 | Contact: philipp [at] incsub [dot] com
19 | Twitter:
20 | Location: Götzis, Austria
--------------------------------------------------------------------------------
/views/meta-side-ads.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/views/meta-customcss.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
custom_css );
27 | ?>
28 |
29 |
30 | #popup, e.g. #popup .wdpu-text { font-family: sans }', 'popover' ); ?>
31 |
--------------------------------------------------------------------------------
/views/meta-rules.php:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
35 |
36 |
--------------------------------------------------------------------------------
/inc/config-defaults.php:
--------------------------------------------------------------------------------
1 | content );
10 | $msg_class .= 'wdpu-' . $this->id . ' ';
11 |
12 | if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
13 | $content = defined( 'PO_USE_FULL_CONTENT_FILTERING' ) && PO_USE_FULL_CONTENT_FILTERING
14 | ? apply_filters( 'the_content', stripslashes( $content ) )
15 | : wptexturize( wpautop( $content ) );
16 | }
17 |
18 | ?>
19 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | can_hide ) : ?>
31 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/css/tpl/old-default/template.php:
--------------------------------------------------------------------------------
1 | content );
10 | $msg_class .= 'wdpu-' . $this->id . ' ';
11 |
12 | if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
13 | $content = defined( 'PO_USE_FULL_CONTENT_FILTERING' ) && PO_USE_FULL_CONTENT_FILTERING
14 | ? apply_filters( 'the_content', stripslashes( $content ) )
15 | : wptexturize( wpautop( $content ) );
16 | }
17 |
18 | ?>
19 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | can_hide ) : ?>
31 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/template.php:
--------------------------------------------------------------------------------
1 | content );
10 | $msg_class .= 'wdpu-' . $this->id . ' ';
11 |
12 | if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
13 | $content = defined( 'PO_USE_FULL_CONTENT_FILTERING' ) && PO_USE_FULL_CONTENT_FILTERING
14 | ? apply_filters( 'the_content', stripslashes( $content ) )
15 | : wptexturize( wpautop( $content ) );
16 | }
17 |
18 | ?>
19 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | can_hide ) : ?>
31 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/inc/class-popup-help.php:
--------------------------------------------------------------------------------
1 | add_help_tab(
58 | array(
59 | 'id' => 'help_shortcodes',
60 | 'title' => __( 'Shortcodes', 'popover' ),
61 | 'callback' => array( $this, 'content_shortcodes' ),
62 | )
63 | );
64 |
65 | return $help_obj;
66 | }
67 |
68 | /**
69 | * Output help contents for section "Shortcodes"
70 | *
71 | * @since 4.6.1.1
72 | */
73 | public function content_shortcodes() {
74 | IncPopup::load_view( 'info-shortcodes' );
75 | }
76 | };
77 |
--------------------------------------------------------------------------------
/views/network.php:
--------------------------------------------------------------------------------
1 |
18 |
27 |
28 |
29 |
30 |
31 |
32 | We moved the global PopUp menu items ' .
36 | 'to the Main Blog of your multisite ' .
37 | 'network! The Main Blog of this network is "%1$s" - ' .
38 | 'Go to the Main Blog now !', 'popover'
39 | ),
40 | $blog_title,
41 | esc_url( $main_url )
42 | );
43 | ?>
44 |
45 |
46 |
47 |
Network Admin are not used anymore ' .
51 | 'you can hide them at any time:', 'popover'
52 | );
53 | ?>
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/css/tpl/old-fixed/style.css:
--------------------------------------------------------------------------------
1 | #messagebox {
2 | position: fixed;
3 | background: transparent url(%styleurl%img/opaque.png) repeat;
4 | padding: 10px;
5 | visibility: visible;
6 | z-index: 999999;
7 | }
8 | #messagebox .claimbutton {
9 | position: absolute;
10 | bottom: 0;
11 | right: 0;
12 | width: 100%;
13 | background: transparent url(%styleurl%img/opaque.png) repeat;
14 | text-align: right;
15 | padding-top: 5px;
16 | padding-bottom: 5px;
17 | display: none;
18 | }
19 | #messagebox .claimbutton a:visited,
20 | #messagebox .claimbutton a {
21 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
22 | color: #FFF;
23 | text-shadow: #000 1px 1px 0px;
24 | font-weight: bold;
25 | padding-right: 5px;
26 | }
27 | #messagebox .wdpu-close {
28 | position: absolute;
29 | width: 30px;
30 | height: 29px;
31 | background: transparent url(%styleurl%img/closemessagebland.png) no-repeat;
32 | top: -5px;
33 | left: -5px;
34 | z-index: 5;
35 | }
36 | #messagebox .wdpu-msg {
37 | position: relative;
38 | background: #fff;
39 | font: 0.9em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
40 | line-height: normal;
41 | height: 100%;
42 | overflow: hidden;
43 | }
44 | #messagebox .wdpu-msg.waiting {
45 | background: #fff url(%styleurl%img/loading.gif) no-repeat center center;
46 | }
47 | #messagebox .wdpu-msg p {
48 | position: relative;
49 | clear: both;
50 | }
51 | #messagebox .wdpu-msg h2 {
52 | color: #000;
53 | font: bold 1.3em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
54 | margin-top: 0px;
55 | }
56 | #messagebox .wdpu-msg h2 a {
57 | text-decoration: none;
58 | color: #000;
59 | }
60 | #messagebox .wdpu-msg blockquote {
61 | padding: 0px;
62 | font-weight: bold;
63 | border-left: 5px solid #ccc;
64 | }
65 | #messagebox .wdpu-msg blockquote p {
66 | padding: 2px 5px;
67 | }
68 | #messagebox .clear {
69 | clear: both;
70 | }
71 | #messagebox .hide {
72 | display: none;
73 | }
74 | #messagebox:hover .claimbutton {
75 | display: block;
76 | }
77 |
78 | .wp-admin #messagebox {
79 | font-size: 16px;
80 | }
81 |
--------------------------------------------------------------------------------
/css/tpl/old-default/style.css:
--------------------------------------------------------------------------------
1 | #messagebox {
2 | position: absolute;
3 | background: transparent url(%styleurl%img/opaque.png) repeat;
4 | padding: 10px;
5 | visibility: visible;
6 | z-index: 999999;
7 | }
8 | #messagebox .claimbutton {
9 | position: absolute;
10 | bottom: 0;
11 | right: 0;
12 | width: 100%;
13 | background: transparent url(%styleurl%img/opaque.png) repeat;
14 | text-align: right;
15 | padding-top: 5px;
16 | padding-bottom: 5px;
17 | display: none;
18 | }
19 | #messagebox .claimbutton a:visited,
20 | #messagebox .claimbutton a {
21 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
22 | color: #FFF;
23 | text-shadow: #000 1px 1px 0px;
24 | font-weight: bold;
25 | padding-right: 5px;
26 | }
27 | #messagebox .wdpu-close {
28 | position: absolute;
29 | width: 30px;
30 | height: 29px;
31 | background: transparent url(%styleurl%img/closemessagebland.png) no-repeat;
32 | top: -5px;
33 | left: -5px;
34 | z-index: 5;
35 | }
36 | #messagebox .wdpu-msg {
37 | position: relative;
38 | background: #fff;
39 | font: 0.9em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
40 | line-height: normal;
41 | height: 100%;
42 | overflow: hidden;
43 | }
44 | #messagebox .wdpu-msg.waiting {
45 | background: #fff url(%styleurl%img/loading.gif) no-repeat center center;
46 | }
47 | #messagebox .wdpu-msg p {
48 | position: relative;
49 | clear: both;
50 | }
51 | #messagebox .wdpu-msg h2 {
52 | color: #000;
53 | font: bold 1.3em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
54 | margin-top: 0px;
55 | }
56 | #messagebox .wdpu-msg h2 a {
57 | text-decoration: none;
58 | color: #000;
59 | }
60 | #messagebox .wdpu-msg blockquote {
61 | padding: 0px;
62 | font-weight: bold;
63 | border-left: 5px solid #ccc;
64 | }
65 | #messagebox .wdpu-msg blockquote p {
66 | padding: 2px 5px;
67 | }
68 | #messagebox .clear {
69 | clear: both;
70 | }
71 | #messagebox .hide {
72 | display: none;
73 | }
74 | #messagebox:hover .claimbutton {
75 | display: block;
76 | }
77 |
78 | .wp-admin #messagebox {
79 | font-size: 16px;
80 | }
81 |
--------------------------------------------------------------------------------
/css/tpl/simple/template.php:
--------------------------------------------------------------------------------
1 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
49 |
50 |
51 |
52 | %cta_button%
53 | %hide_forever%
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/css/tpl/minimal/template.php:
--------------------------------------------------------------------------------
1 |
31 |
32 |
33 |
34 |
37 |
38 |
39 |
40 |
%title%
41 |
%subtitle%
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | %hide_forever%
63 | %cta_button%
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/css/tpl/old-fullbackground/style.css:
--------------------------------------------------------------------------------
1 | #darkbackground {
2 | position: fixed;
3 | background: transparent url(%styleurl%img/opaque80.png) repeat;
4 | top: 0;
5 | width: 100%;
6 | left: 0;
7 | height: 100%;
8 | z-index: 99999;
9 | visibility: visible;
10 | }
11 |
12 | #messagebox {
13 | position: absolute;
14 | background: transparent url(%styleurl%img/opaque.png) repeat;
15 | padding: 10px;
16 | visibility: visible;
17 | z-index: 999999;
18 | }
19 | #messagebox .claimbutton {
20 | position: absolute;
21 | bottom: 0;
22 | right: 0;
23 | width: 100%;
24 | background: transparent url(%styleurl%img/opaque.png) repeat;
25 | text-align: right;
26 | padding-top: 5px;
27 | padding-bottom: 5px;
28 | display: none;
29 | }
30 | #messagebox .claimbutton a:visited,
31 | #messagebox .claimbutton a {
32 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
33 | color: #FFF;
34 | text-shadow: #000 1px 1px 0px;
35 | font-weight: bold;
36 | padding-right: 5px;
37 | }
38 | #messagebox .wdpu-msg {
39 | position: relative;
40 | background: #fff;
41 | font: 0.9em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
42 | line-height: normal;
43 | height: 100%;
44 | overflow: hidden;
45 | }
46 | #messagebox .wdpu-msg.waiting {
47 | background: #fff url(%styleurl%img/loading.gif) no-repeat center center;
48 | }
49 | #messagebox .wdpu-msg p {
50 | position: relative;
51 | clear: both;
52 | }
53 | #messagebox .wdpu-msg h2 {
54 | color: #000;
55 | font: bold 1.3em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
56 | margin-top: 0px;
57 | }
58 | #messagebox .wdpu-msg h2 a {
59 | text-decoration: none;
60 | color: #000;
61 | }
62 | #messagebox .wdpu-msg blockquote {
63 | padding: 0px;
64 | font-weight: bold;
65 | border-left: 5px solid #ccc;
66 | }
67 | #messagebox .wdpu-msg blockquote p {
68 | padding: 2px 5px;
69 | }
70 | #messagebox .wdpu-close {
71 | position: absolute;
72 | width: 30px;
73 | height: 29px;
74 | background: transparent url(%styleurl%img/closemessagebland.png) no-repeat;
75 | top: -5px;
76 | left: -5px;
77 | z-index: 5;
78 | }
79 | #messagebox .clear {
80 | clear: both;
81 | }
82 | #messagebox .hide {
83 | display: none;
84 | }
85 | #messagebox:hover .claimbutton {
86 | display: block;
87 | }
88 |
89 | .wp-admin #messagebox {
90 | font-size: 16px;
91 | }
92 |
--------------------------------------------------------------------------------
/css/tpl/cabriolet/template.php:
--------------------------------------------------------------------------------
1 |
31 |
32 |
33 |
34 |
35 |
36 |
%title%
37 |
%subtitle%
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
52 |
53 |
54 |
55 | %cta_button%
56 | %hide_forever%
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/inc/addons/class-popup-addon-geo-db.php:
--------------------------------------------------------------------------------
1 | prepare( $sql, POPOVER_GEOLOOKUPTABLE );
53 | $table = $wpdb->get_var( $sql );
54 |
55 | $Result = ( POPOVER_GEOLOOKUPTABLE == $table );
56 | }
57 |
58 | return $Result;
59 | }
60 |
61 | /**
62 | * Searches the local cache table for the IP address and returns the
63 | * associated country code.
64 | *
65 | * @since 1.0.0
66 | * @param string $country The default value suggested by the filter caller.
67 | * @param string $ip IP address to look up.
68 | * @return string The country code of the IP address.
69 | */
70 | static public function get_country( $country, $ip ) {
71 | global $wpdb;
72 |
73 | $sql = '
74 | SELECT ctry
75 | FROM ' . POPOVER_GEOLOOKUPTABLE . '
76 | WHERE ipfrom <= INET_ATON(%s)
77 | AND ipto >= INET_ATON(%s)
78 | ';
79 | $sql = $wpdb->prepare( $sql, $ip, $ip );
80 |
81 | $data = $wpdb->get_row( $sql );
82 |
83 | if ( ! empty( $data ) ) {
84 | if ( $data->ctry == 'ZZ' ) {
85 | $country = 'XX';
86 | } else {
87 | $country = $data->ctry;
88 | }
89 | } else {
90 | $country = 'XX';
91 | }
92 |
93 | if ( 'XX' == $country && PO_DEFAULT_COUNTRY ) {
94 | $country = PO_DEFAULT_COUNTRY;
95 | }
96 |
97 | return $country;
98 | }
99 | /* end:pro */
100 | };
101 |
--------------------------------------------------------------------------------
/inc/rules/class-popup-rule-browser.php:
--------------------------------------------------------------------------------
1 | filename = basename( __FILE__ );
26 |
27 | // 'mobile' rule.
28 | $this->add_rule(
29 | 'mobile',
30 | __( 'Only on mobile devices', 'popover' ),
31 | __( 'Shows the PopUp to visitors that are using a mobile device (Phone or Tablet).', 'popover' ),
32 | 'no_mobile',
33 | 6
34 | );
35 |
36 | // 'no_mobile' rule.
37 | $this->add_rule(
38 | 'no_mobile',
39 | __( 'Not on mobile devices', 'popover' ),
40 | __( 'Shows the PopUp to visitors that are using a normal computer or laptop (i.e. not a Phone or Tablet).', 'popover' ),
41 | 'mobile',
42 | 6
43 | );
44 | }
45 |
46 |
47 | /*============================*\
48 | ================================
49 | == ==
50 | == MOBILE ==
51 | == ==
52 | ================================
53 | \*============================*/
54 |
55 |
56 | /**
57 | * Apply the rule-logic to the specified popup
58 | *
59 | * @since 4.6
60 | * @param mixed $data Rule-data which was saved via the save_() handler.
61 | * @return bool Decission to display popup or not.
62 | */
63 | protected function apply_mobile( $data ) {
64 | return wp_is_mobile();
65 | }
66 |
67 |
68 | /*===============================*\
69 | ===================================
70 | == ==
71 | == NO_MOBILE ==
72 | == ==
73 | ===================================
74 | \*===============================*/
75 |
76 |
77 | /**
78 | * Apply the rule-logic to the specified popup
79 | *
80 | * @since 4.6
81 | * @param mixed $data Rule-data which was saved via the save_() handler.
82 | * @return bool Decission to display popup or not.
83 | */
84 | protected function apply_no_mobile( $data ) {
85 | return ! wp_is_mobile();
86 | }
87 |
88 |
89 | };
90 |
91 | IncPopupRules::register( 'IncPopupRule_Browser' );
--------------------------------------------------------------------------------
/js/theme-chrome.min.js:
--------------------------------------------------------------------------------
1 | /*! PopUp - v4.8.0
2 | * http://premium.wpmudev.org/project/the-pop-over-plugin/
3 | * Copyright (c) 2017; * Licensed GPLv2+ */
4 | ace.define("ace/theme/chrome",["require","exports","module","ace/lib/dom"],function(a,b,c){b.isDark=!1,b.cssClass="ace-chrome",b.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var d=a("../lib/dom");d.importCssString(b.cssText,b.cssClass)});
--------------------------------------------------------------------------------
/inc/rules/class-popup-rule-popup.php:
--------------------------------------------------------------------------------
1 | filename = basename( __FILE__ );
26 |
27 | // 'count' rule.
28 | $this->add_rule(
29 | 'count',
30 | __( 'PopUp shown less than', 'popover' ),
31 | __( 'Shows the PopUp if the user has only seen it less than a specific number of times.', 'popover' ),
32 | '',
33 | 5
34 | );
35 | }
36 |
37 |
38 | /*===========================*\
39 | ===============================
40 | == ==
41 | == COUNT ==
42 | == ==
43 | ===============================
44 | \*===========================*/
45 |
46 |
47 | /**
48 | * Apply the rule-logic to the specified popup
49 | *
50 | * @since 4.6
51 | * @param mixed $data Rule-data which was saved via the save_() handler.
52 | * @param IncPopupItem $popup The PopUp that is displayed.
53 | * @return bool Decission to display popup or not.
54 | */
55 | protected function apply_count( $data, $popup ) {
56 | $max_count = absint( $data );
57 | $count = absint( @$_COOKIE['po_c-' . $popup->id] );
58 | return $count < $max_count;
59 | }
60 |
61 | /**
62 | * Output the Admin-Form for the active rule.
63 | *
64 | * @since 4.6
65 | * @param mixed $data Rule-data which was saved via the save_() handler.
66 | */
67 | protected function form_count( $data ) {
68 | $count = absint( $data );
69 | if ( $count < 1 ) { $count = 1; }
70 | ?>
71 |
72 |
73 |
74 |
83 | array->equip( $data, 'count' );
95 |
96 | $count = absint( $data['count'] );
97 | if ( $count < 1 ) { $count = 1; }
98 | return $count;
99 | }
100 |
101 | };
102 |
103 | IncPopupRules::register( 'IncPopupRule_Popup' );
--------------------------------------------------------------------------------
/inc/rules/class-popup-rule-prosite.php:
--------------------------------------------------------------------------------
1 | Learn more »
6 | Author: Philipp (Incsub)
7 | Author URI: http://premium.wpmudev.org
8 | Type: Rule
9 | Rules: Site is not a Pro Site
10 | Limit: global, pro
11 | Version: 1.0
12 |
13 | NOTE: DON'T RENAME THIS FILE!!
14 | This filename is saved as metadata with each popup that uses these rules.
15 | Renaming the file will DISABLE the rules, which is very bad!
16 | */
17 |
18 | /* start:pro */
19 | class IncPopupRule_Prosite extends IncPopupRule {
20 |
21 | /**
22 | * Initialize the rule object.
23 | *
24 | * @since 4.6
25 | */
26 | protected function init() {
27 | $this->filename = basename( __FILE__ );
28 |
29 | // 'no_prosite' rule.
30 | $this->add_rule(
31 | 'no_prosite',
32 | __( 'Site is not a Pro Site', 'popover' ),
33 | __( 'Shows the PopUp if the site is not a Pro Site.', 'popover' ),
34 | '',
35 | 20
36 | );
37 |
38 | // -- Initialize rule.
39 |
40 | $this->is_active = function_exists( 'is_pro_site' );
41 | }
42 |
43 |
44 | /*================================*\
45 | ====================================
46 | == ==
47 | == NO_PROSITE ==
48 | == ==
49 | ====================================
50 | \*================================*/
51 |
52 |
53 | /**
54 | * Apply the rule-logic to the specified popup
55 | *
56 | * @since 4.6
57 | * @param mixed $data Rule-data which was saved via the save_() handler.
58 | * @return bool Decission to display popup or not.
59 | */
60 | protected function apply_no_prosite( $data ) {
61 | $prosite = function_exists( 'is_pro_site' ) && is_pro_site();
62 | return ! $prosite;
63 | }
64 |
65 | /**
66 | * Output the Admin-Form for the active rule.
67 | *
68 | * @since 4.6
69 | * @param mixed $data Rule-data which was saved via the save_() handler.
70 | */
71 | protected function form_no_prosite( $data ) {
72 | if ( ! $this->is_active ) {
73 | $this->render_plugin_inactive();
74 | }
75 | }
76 |
77 |
78 | /*======================================*\
79 | ==========================================
80 | == ==
81 | == HELPER FUNCTIONS ==
82 | == ==
83 | ==========================================
84 | \*======================================*/
85 |
86 |
87 | /**
88 | * Displays a warning message in case the Membership plugin is not active.
89 | *
90 | * @since 1.0.0
91 | */
92 | protected function render_plugin_inactive() {
93 | ?>
94 |
95 | ' .
98 | 'Pro Sites Plugin is installed and activated.', 'popover'
99 | ),
100 | 'http://premium.wpmudev.org/project/pro-sites/'
101 | );?>
102 |
103 | ID );
13 | $duplicate_url = esc_url_raw( add_query_arg( 'do', 'duplicate' ) );
14 |
15 | /* start:free */
16 | $warn = ( 0 != IncPopupDatabase::count_active( $post->ID ) );
17 | /* end:free */
18 |
19 | ?>
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
31 | data-tooltip=""
32 | data-class="status-hint"
33 | data-pos="left"
34 | data-width="250"
35 |
36 | >
37 |
38 | status, 'active' ); ?>/>
42 |
43 |
44 | Active', 'popover' ); ?>
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
70 |
71 |
72 |
73 | id ) ) : ?>
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/views/info-shortcodes.php:
--------------------------------------------------------------------------------
1 | $handler ) {
22 | if ( ! isset( $shortcodes[ $code ] ) ) {
23 | $shortcodes[ $code ] = '';
24 | }
25 |
26 | $shortcodes[ $code ] .= 'sc-admin ';
27 | }
28 |
29 | // Add Front-End Shortcodes to the list.
30 | foreach ( $theme_compat->shortcodes as $code ) {
31 | if ( ! isset( $shortcodes[ $code ] ) ) {
32 | $shortcodes[ $code ] = '';
33 | }
34 |
35 | $shortcodes[ $code ] .= 'sc-front ';
36 | }
37 |
38 | foreach ( $shortcodes as $code => $compat ) {
39 | foreach ( $limited as $pattern ) {
40 | if ( preg_match( '/^' . $pattern . '$/i', $code ) ) {
41 | $shortcodes[ $code ] = $compat . 'sc-limited ';
42 | }
43 | }
44 | }
45 |
46 |
47 | echo '';
48 | _e(
49 | 'You can use all your shortcodes inside the PopUp contents, ' .
50 | 'however some Plugins or Themes might provide shortcodes that ' .
51 | 'only work with the loading method "Page Footer". ' .
52 | 'This list explains which shortcodes can be used with each ' .
53 | 'loading method:', 'popover'
54 | );
55 | echo '
';
56 |
57 | if ( IncPopup::use_global() ) :
58 | ?>
59 | Global ' .
62 | 'PopUps: ' .
63 | 'Shortcodes can be provided by a plugin or theme, so ' .
64 | 'each blog can have a different list of shortcodes. The ' .
65 | 'following list is valid for the current blog only!', 'popover'
66 | );
67 | ?>
68 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | $classes ) : ?>
111 |
112 | []
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
--------------------------------------------------------------------------------
/inc/class-popup-posttype.php:
--------------------------------------------------------------------------------
1 | _x( 'PopUps', 'Post Type General Name', 'popover' ),
76 | 'singular_name' => _x( 'PopUp', 'Post Type Singular Name', 'popover' ),
77 | 'menu_name' => __( 'PopUp', 'popover' ),
78 | 'parent_item_colon' => __( 'Parent Item:', 'popover' ),
79 | 'all_items' => __( 'PopUps', 'popover' ),
80 | 'view_item' => __( 'View Item', 'popover' ),
81 | 'add_new_item' => __( 'Add New PopUp', 'popover' ),
82 | 'add_new' => __( 'Add New', 'popover' ),
83 | 'edit_item' => __( 'Edit PopUp', 'popover' ),
84 | 'update_item' => __( 'Update PopUp', 'popover' ),
85 | 'search_items' => __( 'Search PopUp', 'popover' ),
86 | 'not_found' => __( 'Not found', 'popover' ),
87 | 'not_found_in_trash' => __( 'No PopUp found in Trash', 'popover' ),
88 | );
89 |
90 | if ( IncPopup::use_global() ) {
91 | $labels['name'] = _x( 'Global PopUps', 'Post Type General Name', 'popover' );
92 | $labels['singular_name'] = _x( 'Global PopUp', 'Post Type Singular Name', 'popover' );
93 | $labels['all_items'] = __( 'Global PopUps', 'popover' );
94 | }
95 |
96 | $capabilities = array(
97 | 'read_post' => self::$perms,
98 | 'edit_post' => self::$perms,
99 | 'edit_posts' => self::$perms,
100 | 'delete_post' => self::$perms,
101 | 'delete_posts' => self::$perms,
102 | 'publish_posts' => self::$perms,
103 | 'edit_others_posts' => self::$perms,
104 | 'read_private_posts' => self::$perms,
105 | 'create_posts' => self::$perms,
106 | );
107 |
108 | $args = array(
109 | 'label' => __( 'PopUp', 'popover' ),
110 | 'description' => __( 'Display PopUp messages on your website!', 'popover' ),
111 | 'labels' => $labels,
112 | 'supports' => array( '' ),
113 | 'hierarchical' => false,
114 | 'public' => false,
115 | 'show_ui' => $manage_popups,
116 | 'show_in_menu' => $manage_popups,
117 | 'show_in_nav_menus' => false,
118 | 'show_in_admin_bar' => $manage_popups,
119 | 'menu_position' => self::$menu_pos,
120 | 'menu_icon' => PO_IMG_URL . 'icon.png',
121 | 'can_export' => true,
122 | 'has_archive' => false,
123 | 'exclude_from_search' => true,
124 | 'publicly_queryable' => false,
125 | 'rewrite' => false,
126 | 'capabilities' => $capabilities,
127 | );
128 | register_post_type( IncPopupItem::POST_TYPE, $args );
129 | }
130 | };
131 |
--------------------------------------------------------------------------------
/inc/addons/class-popup-addon-headerfooter.php:
--------------------------------------------------------------------------------
1 |
44 | *
45 | * @since 1.0.0
46 | */
47 | static public function test_head() {
48 | self::test_shortcodes();
49 | echo 'exists ';
50 | }
51 |
52 | /**
53 | * Echo a string that we can search for later into the footer of the document
54 | * This should end up appearing directly before