| @@ -4,41 +4,41 @@ | ||
| 4 | 4 | |
| 5 | 5 | defined( 'ABSPATH' ) || exit; |
| 6 | 6 | |
| 7 | 7 | $show = [ |
| 8 | - 'general_start' => __( 'General', 'wpcoder' ), | |
| 9 | - 'shortcode' => __( 'Shortcode', 'wpcoder' ), | |
| 10 | - 'everywhere' => __( 'Everywhere', 'wpcoder' ), | |
| 11 | - 'general_end' => __( 'General', 'wpcoder' ), | |
| 12 | - 'post_start' => __( 'Posts', 'wpcoder' ), | |
| 13 | - 'post_all' => __( 'All posts', 'wpcoder' ), | |
| 14 | - 'post_selected' => __( 'Selected posts', 'wpcoder' ), | |
| 15 | - 'post_category' => __( 'Post category', 'wpcoder' ), | |
| 16 | - 'post_end' => __( 'Posts End', 'wpcoder' ), | |
| 17 | - 'page_start' => __( 'Pages', 'wpcoder' ), | |
| 18 | - 'page_all' => __( 'All pages', 'wpcoder' ), | |
| 19 | - 'page_selected' => __( 'Selected pages', 'wpcoder' ), | |
| 20 | - 'page_type' => __( 'Page type', 'wpcoder' ), | |
| 21 | - 'page_end' => __( 'Pages End', 'wpcoder' ), | |
| 8 | + 'general_start' => __( 'General', 'wp-coder' ), | |
| 9 | + 'shortcode' => __( 'Shortcode', 'wp-coder' ), | |
| 10 | + 'everywhere' => __( 'Everywhere', 'wp-coder' ), | |
| 11 | + 'general_end' => __( 'General', 'wp-coder' ), | |
| 12 | + 'post_start' => __( 'Posts', 'wp-coder' ), | |
| 13 | + 'post_all' => __( 'All posts', 'wp-coder' ), | |
| 14 | + 'post_selected' => __( 'Selected posts', 'wp-coder' ), | |
| 15 | + 'post_category' => __( 'Post category', 'wp-coder' ), | |
| 16 | + 'post_end' => __( 'Posts End', 'wp-coder' ), | |
| 17 | + 'page_start' => __( 'Pages', 'wp-coder' ), | |
| 18 | + 'page_all' => __( 'All pages', 'wp-coder' ), | |
| 19 | + 'page_selected' => __( 'Selected pages', 'wp-coder' ), | |
| 20 | + 'page_type' => __( 'Page type', 'wp-coder' ), | |
| 21 | + 'page_end' => __( 'Pages End', 'wp-coder' ), | |
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | $post_types = get_post_types( [ 'public' => true, '_builtin' => false, ], 'objects' ); |
| 25 | 25 | |
| 26 | 26 | foreach ( $post_types as $key => $post_type ) { |
| 27 | - $show[ $key . '_start' ] = __( 'Custom Post:', 'wpcoder' ) . ' ' . $post_type->labels->singular_name; | |
| 28 | - $show[ 'custom_post_all_' . $key ] = __( 'All', 'wpcoder' ) . ' ' . $post_type->labels->name; | |
| 29 | - $show[ 'custom_post_selected_' . $key ] = __( 'Selected', 'wpcoder' ) . ' ' . $post_type->labels->name; | |
| 30 | - $show[ 'custom_post_tax_' . $key ] = $post_type->labels->name . ' ' . __( 'taxonomy', 'wpcoder' ); | |
| 31 | - $show[ $key . '_end' ] = __( 'Custom Post:', 'wpcoder' ) . ' ' . $post_type->labels->singular_name; | |
| 27 | + $show[ $key . '_start' ] = __( 'Custom Post:', 'wp-coder' ) . ' ' . $post_type->labels->singular_name; | |
| 28 | + $show[ 'custom_post_all_' . $key ] = __( 'All', 'wp-coder' ) . ' ' . $post_type->labels->name; | |
| 29 | + $show[ 'custom_post_selected_' . $key ] = __( 'Selected', 'wp-coder' ) . ' ' . $post_type->labels->name; | |
| 30 | + $show[ 'custom_post_tax_' . $key ] = $post_type->labels->name . ' ' . __( 'taxonomy', 'wp-coder' ); | |
| 31 | + $show[ $key . '_end' ] = __( 'Custom Post:', 'wp-coder' ) . ' ' . $post_type->labels->singular_name; | |
| 32 | 32 | |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $pages_type = [ |
| 36 | - 'is_front_page' => __( 'Home Page', 'wpcoder' ), | |
| 37 | - 'is_home' => __( 'Posts Page', 'wpcoder' ), | |
| 38 | - 'is_search' => __( 'Search Pages', 'wpcoder' ), | |
| 39 | - 'is_404' => __( '404 Pages', 'wpcoder' ), | |
| 40 | - 'is_archive' => __( 'Archive Page', 'wpcoder' ), | |
| 36 | + 'is_front_page' => __( 'Home Page', 'wp-coder' ), | |
| 37 | + 'is_home' => __( 'Posts Page', 'wp-coder' ), | |
| 38 | + 'is_search' => __( 'Search Pages', 'wp-coder' ), | |
| 39 | + 'is_404' => __( '404 Pages', 'wp-coder' ), | |
| 40 | + 'is_archive' => __( 'Archive Page', 'wp-coder' ), | |
| 41 | 41 | ]; |
| 42 | 42 | |
| 43 | 43 | $operator = [ |
| 44 | 44 | '1' => 'is', |
| @@ -48,9 +48,9 @@ | ||
| 48 | 48 | return [ |
| 49 | 49 | 'show' => [ |
| 50 | 50 | 'type' => 'select', |
| 51 | 51 | 'name' => '[show]', |
| 52 | - 'title' => __( 'Display', 'wpcoder' ), | |
| 52 | + 'title' => __( 'Display', 'wp-coder' ), | |
| 53 | 53 | 'options' => $show, |
| 54 | 54 | 'class' => 'display-option', |
| 55 | 55 | 'default' => '', |
| 56 | 56 | ], |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | |
| 58 | 58 | 'operator' => [ |
| 59 | 59 | 'type' => 'select', |
| 60 | 60 | 'name' => '[operator]', |
| 61 | - 'title' => __( 'Is or is not', 'wpcoder' ), | |
| 61 | + 'title' => __( 'Is or is not', 'wp-coder' ), | |
| 62 | 62 | 'options' => $operator, |
| 63 | 63 | 'class' => 'display-operator', |
| 64 | 64 | 'default' => '1', |
| 65 | 65 | ], |
| @@ -66,17 +66,17 @@ | ||
| 66 | 66 | |
| 67 | 67 | 'ids' => [ |
| 68 | 68 | 'type' => 'text', |
| 69 | 69 | 'name' => '[ids]', |
| 70 | - 'title' => __( 'Enter ID\'s', 'wpcoder' ), | |
| 70 | + 'title' => __( 'Enter ID\'s', 'wp-coder' ), | |
| 71 | 71 | 'class' => 'display-ids', |
| 72 | - 'info' => __( 'Enter IDs, separated by comma.', 'wpcoder' ), | |
| 72 | + 'info' => __( 'Enter IDs, separated by comma.', 'wp-coder' ), | |
| 73 | 73 | ], |
| 74 | 74 | |
| 75 | 75 | 'page_type' => [ |
| 76 | 76 | 'type' => 'select', |
| 77 | 77 | 'name' => '[page_type]', |
| 78 | - 'title' => __( 'Specific page types', 'wpcoder' ), | |
| 78 | + 'title' => __( 'Specific page types', 'wp-coder' ), | |
| 79 | 79 | 'options' => $pages_type, |
| 80 | 80 | 'class' => 'display-pages', |
| 81 | 81 | ], |
| 82 | 82 | |
| @@ -83,27 +83,27 @@ | ||
| 83 | 83 | |
| 84 | 84 | 'is_mobile' => [ |
| 85 | 85 | 'type' => 'checkbox', |
| 86 | 86 | 'name' => '[is_mobile]', |
| 87 | - 'title' => __( 'Mobile Devices', 'wpcoder' ), | |
| 88 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 87 | + 'title' => __( 'Mobile Devices', 'wp-coder' ), | |
| 88 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 89 | 89 | ], |
| 90 | 90 | |
| 91 | 91 | 'is_desktop' => [ |
| 92 | 92 | 'type' => 'checkbox', |
| 93 | 93 | 'name' => '[is_desktop]', |
| 94 | - 'title' => __( 'Desktop Devices', 'wpcoder' ), | |
| 95 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 94 | + 'title' => __( 'Desktop Devices', 'wp-coder' ), | |
| 95 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 96 | 96 | ], |
| 97 | 97 | |
| 98 | 98 | 'users' => [ |
| 99 | 99 | 'type' => 'select', |
| 100 | 100 | 'name' => '[item_user]', |
| 101 | - 'title' => __( 'Users', 'wpcoder' ), | |
| 101 | + 'title' => __( 'Users', 'wp-coder' ), | |
| 102 | 102 | 'options' => [ |
| 103 | - 1 => __( 'All users', 'wpcoder' ), | |
| 104 | - 2 => __( 'Authorized Users', 'wpcoder' ), | |
| 105 | - 3 => __( 'Unauthorized Users', 'wpcoder' ), | |
| 103 | + 1 => __( 'All users', 'wp-coder' ), | |
| 104 | + 2 => __( 'Authorized Users', 'wp-coder' ), | |
| 105 | + 3 => __( 'Unauthorized Users', 'wp-coder' ), | |
| 106 | 106 | ], |
| 107 | 107 | ], |
| 108 | 108 | |
| 109 | 109 | // Browsers |
| @@ -109,59 +109,59 @@ | ||
| 109 | 109 | // Browsers |
| 110 | 110 | 'opera' => [ |
| 111 | 111 | 'type' => 'checkbox', |
| 112 | 112 | 'name' => '[browsers][opera]', |
| 113 | - 'title' => __( 'Opera', 'wpcoder' ), | |
| 114 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 113 | + 'title' => __( 'Opera', 'wp-coder' ), | |
| 114 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 115 | 115 | ], |
| 116 | 116 | |
| 117 | 117 | 'edge' => [ |
| 118 | 118 | 'type' => 'checkbox', |
| 119 | 119 | 'name' => '[browsers][edge]', |
| 120 | - 'title' => __( 'Microsoft Edge', 'wpcoder' ), | |
| 121 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 120 | + 'title' => __( 'Microsoft Edge', 'wp-coder' ), | |
| 121 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 122 | 122 | ], |
| 123 | 123 | |
| 124 | 124 | 'chrome' => [ |
| 125 | 125 | 'type' => 'checkbox', |
| 126 | 126 | 'name' => '[browsers][chrome]', |
| 127 | - 'title' => __( 'Chrome', 'wpcoder' ), | |
| 128 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 127 | + 'title' => __( 'Chrome', 'wp-coder' ), | |
| 128 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 129 | 129 | ], |
| 130 | 130 | |
| 131 | 131 | 'safari' => [ |
| 132 | 132 | 'type' => 'checkbox', |
| 133 | 133 | 'name' => '[browsers][safari]', |
| 134 | - 'title' => __( 'Safari', 'wpcoder' ), | |
| 135 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 134 | + 'title' => __( 'Safari', 'wp-coder' ), | |
| 135 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 136 | 136 | ], |
| 137 | 137 | |
| 138 | 138 | 'firefox' => [ |
| 139 | 139 | 'type' => 'checkbox', |
| 140 | 140 | 'name' => '[browsers][firefox]', |
| 141 | - 'title' => __( 'Firefox', 'wpcoder' ), | |
| 142 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 141 | + 'title' => __( 'Firefox', 'wp-coder' ), | |
| 142 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 143 | 143 | ], |
| 144 | 144 | |
| 145 | 145 | 'ie' => [ |
| 146 | 146 | 'type' => 'checkbox', |
| 147 | 147 | 'name' => '[browsers][ie]', |
| 148 | - 'title' => __( 'Internet Explorer', 'wpcoder' ), | |
| 149 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 148 | + 'title' => __( 'Internet Explorer', 'wp-coder' ), | |
| 149 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 150 | 150 | ], |
| 151 | 151 | |
| 152 | 152 | 'other' => [ |
| 153 | 153 | 'type' => 'checkbox', |
| 154 | 154 | 'name' => '[browsers][other]', |
| 155 | - 'title' => __( 'Other', 'wpcoder' ), | |
| 156 | - 'text' => __( 'Disable', 'wpcoder' ), | |
| 155 | + 'title' => __( 'Other', 'wp-coder' ), | |
| 156 | + 'text' => __( 'Disable', 'wp-coder' ), | |
| 157 | 157 | ], |
| 158 | 158 | |
| 159 | 159 | 'language_on' => [ |
| 160 | 160 | 'type' => 'checkbox', |
| 161 | 161 | 'name' => '[depending_language]', |
| 162 | - 'title' => __( 'Depending on the language', 'wpcoder' ), | |
| 163 | - 'text' => __( 'Enable', 'wpcoder' ), | |
| 162 | + 'title' => __( 'Depending on the language', 'wp-coder' ), | |
| 163 | + 'text' => __( 'Enable', 'wp-coder' ), | |
| 164 | 164 | ], |
| 165 | 165 | |
| 166 | 166 | // Schedule |
| 167 | 167 | 'weekday' => [ |
| @@ -166,18 +166,18 @@ | ||
| 166 | 166 | // Schedule |
| 167 | 167 | 'weekday' => [ |
| 168 | 168 | 'type' => 'select', |
| 169 | 169 | 'name' => '[weekday]', |
| 170 | - 'title' => __( 'Weekday', 'wpcoder' ), | |
| 170 | + 'title' => __( 'Weekday', 'wp-coder' ), | |
| 171 | 171 | 'options' => [ |
| 172 | - 'none' => __( 'Everyday', 'wpcoder' ), | |
| 173 | - '1' => __( 'Monday', 'wpcoder' ), | |
| 174 | - '2' => __( 'Tuesday', 'wpcoder' ), | |
| 175 | - '3' => __( 'Wednesday', 'wpcoder' ), | |
| 176 | - '4' => __( 'Thursday', 'wpcoder' ), | |
| 177 | - '5' => __( 'Friday', 'wpcoder' ), | |
| 178 | - '6' => __( 'Saturday', 'wpcoder' ), | |
| 179 | - '7' => __( 'Sunday', 'wpcoder' ), | |
| 172 | + 'none' => __( 'Everyday', 'wp-coder' ), | |
| 173 | + '1' => __( 'Monday', 'wp-coder' ), | |
| 174 | + '2' => __( 'Tuesday', 'wp-coder' ), | |
| 175 | + '3' => __( 'Wednesday', 'wp-coder' ), | |
| 176 | + '4' => __( 'Thursday', 'wp-coder' ), | |
| 177 | + '5' => __( 'Friday', 'wp-coder' ), | |
| 178 | + '6' => __( 'Saturday', 'wp-coder' ), | |
| 179 | + '7' => __( 'Sunday', 'wp-coder' ), | |
| 180 | 180 | ], |
| 181 | 181 | ], |
| 182 | 182 | |
| 183 | 183 | 'time_start' => [ |
| @@ -182,22 +182,22 @@ | ||
| 182 | 182 | |
| 183 | 183 | 'time_start' => [ |
| 184 | 184 | 'type' => 'time', |
| 185 | 185 | 'name' => '[time_start]', |
| 186 | - 'title' => __( 'Start time', 'wpcoder' ), | |
| 186 | + 'title' => __( 'Start time', 'wp-coder' ), | |
| 187 | 187 | ], |
| 188 | 188 | |
| 189 | 189 | 'time_end' => [ |
| 190 | 190 | 'type' => 'time', |
| 191 | 191 | 'name' => '[time_end]', |
| 192 | - 'title' => __( 'End time', 'wpcoder' ), | |
| 192 | + 'title' => __( 'End time', 'wp-coder' ), | |
| 193 | 193 | ], |
| 194 | 194 | |
| 195 | 195 | 'dates' => [ |
| 196 | 196 | 'type' => 'checkbox', |
| 197 | 197 | 'name' => '[dates]', |
| 198 | - 'title' => __( 'Define Dates', 'wpcoder' ), | |
| 199 | - 'text' => __( 'Enable', 'wpcoder' ), | |
| 198 | + 'title' => __( 'Define Dates', 'wp-coder' ), | |
| 199 | + 'text' => __( 'Enable', 'wp-coder' ), | |
| 200 | 200 | 'class' => 'wowp-dates', |
| 201 | 201 | ], |
| 202 | 202 | |
| 203 | 203 | 'date_start' => [ |
| @@ -202,9 +202,9 @@ | ||
| 202 | 202 | |
| 203 | 203 | 'date_start' => [ |
| 204 | 204 | 'type' => 'date', |
| 205 | 205 | 'name' => '[date_start]', |
| 206 | - 'title' => __( 'Date From', 'wpcoder' ), | |
| 206 | + 'title' => __( 'Date From', 'wp-coder' ), | |
| 207 | 207 | 'class' => 'wowp-date-input', |
| 208 | 208 | ], |
| 209 | 209 | |
| 210 | 210 | 'date_end' => [ |
| @@ -209,8 +209,8 @@ | ||
| 209 | 209 | |
| 210 | 210 | 'date_end' => [ |
| 211 | 211 | 'type' => 'date', |
| 212 | 212 | 'name' => '[date_end]', |
| 213 | - 'title' => __( 'Date To', 'wpcoder' ), | |
| 213 | + 'title' => __( 'Date To', 'wp-coder' ), | |
| 214 | 214 | 'class' => 'wowp-date-input', |
| 215 | 215 | ], |
| 216 | 216 | ]; |