PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 1.2.1
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v1.2.1
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
notificationx / includes / class-nx-const.php

class-nx-const.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 1.2.1, at includes/class-nx-const.php

70 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class NX_CONSTANTS {
3 public static $COMMENT_SECTIONS = array(
4 'comment_themes',
5 'comment_design',
6 'comment_image_design',
7 'comment_typography'
8 );
9 public static $COMMENT_FIELDS = array(
10 'comments_source',
11 'comment_advance_edit',
12 'comments_template_new',
13 'comments_template_new_adv',
14 'comments_template',
15 'link_options',
16 'show_avatar',
17 );
18
19 public static $CONVERSION_SECTIONS = array(
20 'themes',
21 'design',
22 'image_design',
23 'typography'
24 );
25 public static $CONVERSION_FIELDS = array(
26 'conversion_from',
27 'advance_edit',
28 'woo_template_new',
29 'woo_template_new_adv',
30 'woo_template',
31 'product_control',
32 'product_list',
33 'category_list',
34 'product_exclude_by',
35 'exclude_categories',
36 'exclude_products',
37 'conversion_link_options',
38 );
39
40 public static function is_pro() {
41 return class_exists('NotificationXPro');
42 }
43
44 public static function themeSource( $name, $type = 'press_bar' ) {
45 switch( $type ) {
46 case 'comments' :
47 $source = NotificationX_Helper::comment_colored_themes();
48 break;
49 case 'conversions' :
50 $source = NotificationX_Helper::colored_themes();
51 break;
52 case 'reviews' :
53 $source = NotificationX_Helper::designs_for_review();
54 break;
55 case 'download_stats' :
56 $source = NotificationX_Helper::designs_for_stats();
57 break;
58 case 'press_bar' :
59 $source = NotificationX_Helper::bar_colored_themes();
60 break;
61 default :
62 $source = apply_filters( 'nx_theme_source', array(), $type );
63 break;
64 }
65
66 if( ! empty( $source ) && isset( $source[ $name ] ) ) {
67 return $source[ $name ];
68 }
69 }
70 }