| 1 |
<?php |
| 2 |
|
| 3 |
namespace UltimatePostKit\Admin; |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
if (!defined('ABSPATH')) { |
| 8 |
exit; |
| 9 |
} // Exit if accessed directly |
| 10 |
|
| 11 |
if (!function_exists('is_plugin_active')) { |
| 12 |
include_once(ABSPATH . 'wp-admin/includes/plugin.php'); |
| 13 |
} |
| 14 |
|
| 15 |
class ModuleService { |
| 16 |
|
| 17 |
public static function get_widget_settings($callable) { |
| 18 |
|
| 19 |
$settings_fields = [ |
| 20 |
'ultimate_post_kit_active_modules' => [ |
| 21 |
[ |
| 22 |
'name' => 'alex-grid', |
| 23 |
'label' => esc_html__('Alex Grid', 'ultimate-post-kit'), |
| 24 |
'type' => 'checkbox', |
| 25 |
'default' => "on", |
| 26 |
'widget_type' => 'free', |
| 27 |
'content_type' => 'grid', |
| 28 |
'demo_url' => 'https://postkit.pro/demo/alex-grid/', |
| 29 |
'video_url' => 'https://youtu.be/criKI7Mm-5g', |
| 30 |
], |
| 31 |
[ |
| 32 |
'name' => 'alex-carousel', |
| 33 |
'label' => esc_html__('Alex Carousel', 'ultimate-post-kit'), |
| 34 |
'type' => 'checkbox', |
| 35 |
'default' => "on", |
| 36 |
'widget_type' => 'free', |
| 37 |
'content_type' => 'carousel', |
| 38 |
'demo_url' => 'https://postkit.pro/demo/alex-carousel/', |
| 39 |
'video_url' => 'https://youtu.be/nmMajegrTiM', |
| 40 |
], |
| 41 |
[ |
| 42 |
'name' => 'alice-grid', |
| 43 |
'label' => esc_html__('Alice Grid', 'ultimate-post-kit'), |
| 44 |
'type' => 'checkbox', |
| 45 |
'default' => "on", |
| 46 |
'widget_type' => 'free', |
| 47 |
'content_type' => 'grid', |
| 48 |
'demo_url' => 'https://postkit.pro/demo/alice-grid/', |
| 49 |
'video_url' => 'https://youtu.be/E7W5WSAvxbA', |
| 50 |
], |
| 51 |
[ |
| 52 |
'name' => 'alice-carousel', |
| 53 |
'label' => esc_html__('Alice Carousel', 'ultimate-post-kit'), |
| 54 |
'type' => 'checkbox', |
| 55 |
'default' => "on", |
| 56 |
'widget_type' => 'free', |
| 57 |
'content_type' => 'carousel', |
| 58 |
'demo_url' => 'https://postkit.pro/demo/alice-carousel/', |
| 59 |
'video_url' => 'https://youtu.be/I0i6q45j6Ps', |
| 60 |
], |
| 61 |
[ |
| 62 |
'name' => 'alter-grid', |
| 63 |
'label' => esc_html__('Alter Grid', 'ultimate-post-kit'), |
| 64 |
'type' => 'checkbox', |
| 65 |
'default' => "on", |
| 66 |
'widget_type' => 'free', |
| 67 |
'content_type' => 'grid', |
| 68 |
'demo_url' => 'https://postkit.pro/demo/alter-grid/', |
| 69 |
'video_url' => 'https://youtu.be/lJdoW-aPAe8', |
| 70 |
], |
| 71 |
[ |
| 72 |
'name' => 'alter-carousel', |
| 73 |
'label' => esc_html__('Alter Carousel', 'ultimate-post-kit'), |
| 74 |
'type' => 'checkbox', |
| 75 |
'default' => "on", |
| 76 |
'widget_type' => 'free', |
| 77 |
'content_type' => 'carousel', |
| 78 |
'demo_url' => 'https://postkit.pro/demo/alter-carousel/', |
| 79 |
'video_url' => 'https://youtu.be/KInlL05e_lk', |
| 80 |
], |
| 81 |
[ |
| 82 |
'name' => 'amox-grid', |
| 83 |
'label' => esc_html__('Amox Grid', 'ultimate-post-kit'), |
| 84 |
'type' => 'checkbox', |
| 85 |
'default' => "on", |
| 86 |
'widget_type' => 'free', |
| 87 |
'content_type' => 'grid', |
| 88 |
'demo_url' => 'https://postkit.pro/demo/amox-grid/', |
| 89 |
'video_url' => 'https://youtu.be/BeJ77OLErAk', |
| 90 |
], |
| 91 |
[ |
| 92 |
'name' => 'amox-carousel', |
| 93 |
'label' => esc_html__('Amox Carousel', 'ultimate-post-kit'), |
| 94 |
'type' => 'checkbox', |
| 95 |
'default' => "on", |
| 96 |
'widget_type' => 'free', |
| 97 |
'content_type' => 'carousel', |
| 98 |
'demo_url' => 'https://postkit.pro/demo/amox-carousel/', |
| 99 |
'video_url' => 'https://youtu.be/3FoLaHsyB0g', |
| 100 |
], |
| 101 |
|
| 102 |
[ |
| 103 |
'name' => 'atlas-slider', |
| 104 |
'label' => esc_html__('Atlas Slider', 'ultimate-post-kit'), |
| 105 |
'type' => 'checkbox', |
| 106 |
'default' => "on", |
| 107 |
'widget_type' => 'pro', |
| 108 |
'content_type' => 'slider', |
| 109 |
'demo_url' => 'https://postkit.pro/demo/atlas-slider/', |
| 110 |
'video_url' => 'https://youtu.be/kM1G84F5Pb4', |
| 111 |
], |
| 112 |
[ |
| 113 |
'name' => 'author', |
| 114 |
'label' => esc_html__('Author', 'ultimate-post-kit'), |
| 115 |
'type' => 'checkbox', |
| 116 |
'default' => "on", |
| 117 |
'widget_type' => 'free', |
| 118 |
'content_type' => 'others', |
| 119 |
'demo_url' => 'https://postkit.pro/demo/author/', |
| 120 |
'video_url' => 'https://youtu.be/rW8rTtw62ko', |
| 121 |
], |
| 122 |
|
| 123 |
[ |
| 124 |
'name' => 'banner', |
| 125 |
'label' => esc_html__('Banner', 'ultimate-post-kit'), |
| 126 |
'type' => 'checkbox', |
| 127 |
'default' => "off", |
| 128 |
'widget_type' => 'free', |
| 129 |
'content_type' => 'others', |
| 130 |
'demo_url' => 'https://postkit.pro/demo/banner/', |
| 131 |
'video_url' => 'https://youtu.be/ESZvXD-knVQ', |
| 132 |
], |
| 133 |
|
| 134 |
[ |
| 135 |
'name' => 'berlin-slider', |
| 136 |
'label' => esc_html__('Berlin Slider', 'ultimate-post-kit'), |
| 137 |
'type' => 'checkbox', |
| 138 |
'default' => "on", |
| 139 |
'widget_type' => 'pro', |
| 140 |
'content_type' => 'slider', |
| 141 |
'demo_url' => 'https://postkit.pro/demo/berlin-slider/', |
| 142 |
'video_url' => 'https://youtu.be/VErUARoiMKo', |
| 143 |
], |
| 144 |
[ |
| 145 |
'name' => 'buzz-list', |
| 146 |
'label' => esc_html__('Buzz List', 'ultimate-post-kit'), |
| 147 |
'type' => 'checkbox', |
| 148 |
'default' => "on", |
| 149 |
'widget_type' => 'free', |
| 150 |
'content_type' => 'list', |
| 151 |
'demo_url' => 'https://postkit.pro/demo/buzz-list/', |
| 152 |
'video_url' => 'https://youtu.be/fxjL-ugL_Ls', |
| 153 |
], |
| 154 |
[ |
| 155 |
'name' => 'buzz-list-carousel', |
| 156 |
'label' => esc_html__('Buzz List Carousel', 'ultimate-post-kit'), |
| 157 |
'type' => 'checkbox', |
| 158 |
'default' => "on", |
| 159 |
'widget_type' => 'free', |
| 160 |
'content_type' => 'carousel', |
| 161 |
'demo_url' => 'https://postkit.pro/demo/buzz-list-carousel/', |
| 162 |
'video_url' => 'https://youtu.be/fxjL-ugL_Ls', |
| 163 |
], |
| 164 |
[ |
| 165 |
'name' => 'camux-slider', |
| 166 |
'label' => esc_html__('Camux Slider', 'ultimate-post-kit'), |
| 167 |
'type' => 'checkbox', |
| 168 |
'default' => "on", |
| 169 |
'widget_type' => 'free', |
| 170 |
'content_type' => 'slider', |
| 171 |
'demo_url' => 'https://postkit.pro/demo/camux-slider/', |
| 172 |
'video_url' => 'https://youtu.be/3IFFXN69IgQ', |
| 173 |
], |
| 174 |
[ |
| 175 |
'name' => 'candy-list', |
| 176 |
'label' => esc_html__('Candy List', 'ultimate-post-kit'), |
| 177 |
'type' => 'checkbox', |
| 178 |
'default' => "on", |
| 179 |
'widget_type' => 'pro', |
| 180 |
'content_type' => 'list', |
| 181 |
'demo_url' => 'https://postkit.pro/demo/candy-list/', |
| 182 |
'video_url' => 'https://youtu.be/kolpoGg8uLA?si=OiXtr2eHb_b4pqCm', |
| 183 |
], |
| 184 |
[ |
| 185 |
'name' => 'checkerboard', |
| 186 |
'label' => esc_html__('Checkerboard', 'ultimate-post-kit'), |
| 187 |
'type' => 'checkbox', |
| 188 |
'default' => "off", |
| 189 |
'widget_type' => 'pro', |
| 190 |
'content_type' => 'timeline', |
| 191 |
'demo_url' => 'https://postkit.pro/demo/checkerboard/', |
| 192 |
'video_url' => 'https://youtu.be/nqB_bGNPSts?si=KTWQOARPuL5lTdjM', |
| 193 |
], |
| 194 |
[ |
| 195 |
'name' => 'classic-list', |
| 196 |
'label' => esc_html__('Classic List', 'ultimate-post-kit'), |
| 197 |
'type' => 'checkbox', |
| 198 |
'default' => "on", |
| 199 |
'widget_type' => 'pro', |
| 200 |
'content_type' => 'list', |
| 201 |
'demo_url' => 'https://postkit.pro/demo/classic-list/', |
| 202 |
'video_url' => 'https://youtu.be/A6z4z_Ki1kw', |
| 203 |
], |
| 204 |
[ |
| 205 |
'name' => 'crystal-slider', |
| 206 |
'label' => esc_html__('Crystal Slider', 'ultimate-post-kit'), |
| 207 |
'type' => 'checkbox', |
| 208 |
'default' => "on", |
| 209 |
'widget_type' => 'free', |
| 210 |
'content_type' => 'slider', |
| 211 |
'demo_url' => 'https://postkit.pro/demo/crystal-slider/', |
| 212 |
'video_url' => 'https://youtu.be/wZNw_prt-uI', |
| 213 |
], |
| 214 |
[ |
| 215 |
'name' => 'carbon-slider', |
| 216 |
'label' => esc_html__('Carbon Slider', 'ultimate-post-kit'), |
| 217 |
'type' => 'checkbox', |
| 218 |
'default' => "on", |
| 219 |
'widget_type' => 'free', |
| 220 |
'content_type' => 'slider', |
| 221 |
'demo_url' => 'https://postkit.pro/demo/carbon-slider/', |
| 222 |
'video_url' => 'https://youtu.be/1NNnJRZxxpc', |
| 223 |
], |
| 224 |
[ |
| 225 |
'name' => 'dynamic-grid', |
| 226 |
'label' => esc_html__('Dynamic Grid', 'ultimate-post-kit'), |
| 227 |
'type' => 'checkbox', |
| 228 |
'default' => "off", |
| 229 |
'widget_type' => 'pro', |
| 230 |
'content_type' => 'loop grid', |
| 231 |
'demo_url' => 'https://postkit.pro/demo/dynamic-grid/', |
| 232 |
'video_url' => '', |
| 233 |
], |
| 234 |
[ |
| 235 |
'name' => 'dynamic-carousel', |
| 236 |
'label' => esc_html__('Dynamic Carousel', 'ultimate-post-kit'), |
| 237 |
'type' => 'checkbox', |
| 238 |
'default' => "off", |
| 239 |
'widget_type' => 'pro', |
| 240 |
'content_type' => 'loop carousel', |
| 241 |
'demo_url' => 'https://postkit.pro/demo/dynamic-carousel/', |
| 242 |
'video_url' => '', |
| 243 |
], |
| 244 |
[ |
| 245 |
'name' => 'dynamic-accordion', |
| 246 |
'label' => esc_html__('Dynamic Accordion', 'ultimate-post-kit'), |
| 247 |
'type' => 'checkbox', |
| 248 |
'default' => "off", |
| 249 |
'widget_type' => 'pro', |
| 250 |
'content_type' => 'loop', |
| 251 |
'demo_url' => 'https://postkit.pro/demo/dynamic-accordion/', |
| 252 |
'video_url' => '', |
| 253 |
], |
| 254 |
[ |
| 255 |
'name' => 'dynamic-tabs', |
| 256 |
'label' => esc_html__('Dynamic Tabs', 'ultimate-post-kit'), |
| 257 |
'type' => 'checkbox', |
| 258 |
'default' => "off", |
| 259 |
'widget_type' => 'pro', |
| 260 |
'content_type' => 'loop', |
| 261 |
'demo_url' => 'https://postkit.pro/demo/dynamic-tabs/', |
| 262 |
'video_url' => '', |
| 263 |
], |
| 264 |
[ |
| 265 |
'name' => 'eldora-carousel', |
| 266 |
'label' => esc_html__('Eldora Carousel', 'ultimate-post-kit'), |
| 267 |
'type' => 'checkbox', |
| 268 |
'default' => "on", |
| 269 |
'widget_type' => 'pro', |
| 270 |
'content_type' => 'carousel', |
| 271 |
'demo_url' => 'https://postkit.pro/demo/eldora-carousel/', |
| 272 |
'video_url' => 'https://youtu.be/oJXRzQpowJo', |
| 273 |
], |
| 274 |
[ |
| 275 |
'name' => 'elite-grid', |
| 276 |
'label' => esc_html__('Elite Grid', 'ultimate-post-kit'), |
| 277 |
'type' => 'checkbox', |
| 278 |
'default' => "on", |
| 279 |
'widget_type' => 'free', |
| 280 |
'content_type' => 'grid', |
| 281 |
'demo_url' => 'https://postkit.pro/demo/elite-grid/', |
| 282 |
'video_url' => 'https://youtu.be/J0AfZvRWClw', |
| 283 |
], |
| 284 |
[ |
| 285 |
'name' => 'elite-carousel', |
| 286 |
'label' => esc_html__('Elite Carousel', 'ultimate-post-kit'), |
| 287 |
'type' => 'checkbox', |
| 288 |
'default' => "on", |
| 289 |
'widget_type' => 'free', |
| 290 |
'content_type' => 'carousel', |
| 291 |
'demo_url' => 'https://postkit.pro/demo/elite-carousel/', |
| 292 |
'video_url' => 'https://youtu.be/iod230fVndQ', |
| 293 |
], |
| 294 |
[ |
| 295 |
'name' => 'exotic-list', |
| 296 |
'label' => esc_html__('Exotic List', 'ultimate-post-kit'), |
| 297 |
'type' => 'checkbox', |
| 298 |
'default' => "on", |
| 299 |
'widget_type' => 'free', |
| 300 |
'content_type' => 'list', |
| 301 |
'demo_url' => 'https://postkit.pro/demo/exotic-list/', |
| 302 |
'video_url' => 'https://youtu.be/WROTolCKOmE', |
| 303 |
], |
| 304 |
[ |
| 305 |
'name' => 'fanel-list', |
| 306 |
'label' => esc_html__('Fanel List', 'ultimate-post-kit'), |
| 307 |
'type' => 'checkbox', |
| 308 |
'default' => "on", |
| 309 |
'widget_type' => 'free', |
| 310 |
'content_type' => 'list', |
| 311 |
'demo_url' => 'https://postkit.pro/demo/fanel-list/', |
| 312 |
'video_url' => 'https://youtu.be/nGAoLOoNYk4', |
| 313 |
], |
| 314 |
[ |
| 315 |
'name' => 'featured-list', |
| 316 |
'label' => esc_html__('Featured List', 'ultimate-post-kit'), |
| 317 |
'type' => 'checkbox', |
| 318 |
'default' => "on", |
| 319 |
'widget_type' => 'free', |
| 320 |
'content_type' => 'list', |
| 321 |
'demo_url' => 'https://postkit.pro/demo/featured-list/', |
| 322 |
'video_url' => 'https://youtu.be/Q-Pm-6Kkmr4', |
| 323 |
], |
| 324 |
[ |
| 325 |
'name' => 'featured-gallery', |
| 326 |
'label' => esc_html__('Featured Gallery', 'ultimate-post-kit'), |
| 327 |
'type' => 'checkbox', |
| 328 |
'default' => "off", |
| 329 |
'widget_type' => 'pro', |
| 330 |
'content_type' => 'list', |
| 331 |
'demo_url' => 'https://postkit.pro/demo/featured-gallery/', |
| 332 |
'video_url' => '', |
| 333 |
], |
| 334 |
[ |
| 335 |
'name' => 'forbes-tabs', |
| 336 |
'label' => esc_html__('Forbes Tabs', 'ultimate-post-kit'), |
| 337 |
'type' => 'checkbox', |
| 338 |
'default' => "on", |
| 339 |
'widget_type' => 'pro', |
| 340 |
'content_type' => 'tabs', |
| 341 |
'demo_url' => 'https://postkit.pro/demo/forbes-tabs/', |
| 342 |
'video_url' => 'https://youtu.be/lc0WNMtjP_k', |
| 343 |
], |
| 344 |
[ |
| 345 |
'name' => 'foxico-slider', |
| 346 |
'label' => esc_html__('Foxico Slider', 'ultimate-post-kit'), |
| 347 |
'type' => 'checkbox', |
| 348 |
'default' => "on", |
| 349 |
'widget_type' => 'pro', |
| 350 |
'content_type' => 'slider', |
| 351 |
'demo_url' => 'https://postkit.pro/demo/foxico-slider/', |
| 352 |
'video_url' => 'https://youtu.be/pxCXF5UblQk', |
| 353 |
], |
| 354 |
[ |
| 355 |
'name' => 'gratis-carousel', |
| 356 |
'label' => esc_html__('Gratis Carousel', 'ultimate-post-kit'), |
| 357 |
'type' => 'checkbox', |
| 358 |
'default' => "off", |
| 359 |
'widget_type' => 'pro', |
| 360 |
'content_type' => 'carousel', |
| 361 |
'demo_url' => 'https://postkit.pro/demo/gratis-carousel/', |
| 362 |
'video_url' => 'https://youtu.be/D1OqHYn6w-o', |
| 363 |
], |
| 364 |
[ |
| 365 |
'name' => 'gratis-grid', |
| 366 |
'label' => esc_html__('Gratis Grid', 'ultimate-post-kit'), |
| 367 |
'type' => 'checkbox', |
| 368 |
'default' => "off", |
| 369 |
'widget_type' => 'free', |
| 370 |
'content_type' => 'grid', |
| 371 |
'demo_url' => 'https://postkit.pro/demo/gratis-grid/', |
| 372 |
'video_url' => 'https://youtu.be/jLBLAqxEOwQ', |
| 373 |
], |
| 374 |
[ |
| 375 |
'name' => 'grove-timeline', |
| 376 |
'label' => esc_html__('Grove Timeline', 'ultimate-post-kit'), |
| 377 |
'type' => 'checkbox', |
| 378 |
'default' => "on", |
| 379 |
'widget_type' => 'pro', |
| 380 |
'content_type' => 'timeline', |
| 381 |
'demo_url' => 'https://postkit.pro/demo/grove-timeline/', |
| 382 |
'video_url' => 'https://youtu.be/FPkHDXCMrjk', |
| 383 |
], |
| 384 |
[ |
| 385 |
'name' => 'hansel-slider', |
| 386 |
'label' => esc_html__('Hansel Slider', 'ultimate-post-kit'), |
| 387 |
'type' => 'checkbox', |
| 388 |
'default' => "on", |
| 389 |
'widget_type' => 'pro', |
| 390 |
'content_type' => 'slider', |
| 391 |
'demo_url' => 'https://postkit.pro/demo/hansel-slider/', |
| 392 |
'video_url' => 'https://youtu.be/tC7WGeMQkSQ', |
| 393 |
], |
| 394 |
[ |
| 395 |
'name' => 'harold-list', |
| 396 |
'label' => esc_html__('Harold List', 'ultimate-post-kit'), |
| 397 |
'type' => 'checkbox', |
| 398 |
'default' => "on", |
| 399 |
'widget_type' => 'free', |
| 400 |
'content_type' => 'list', |
| 401 |
'demo_url' => 'https://postkit.pro/demo/harold-list/', |
| 402 |
'video_url' => 'https://youtu.be/gmMpNuw4LD8', |
| 403 |
], |
| 404 |
[ |
| 405 |
'name' => 'harold-carousel', |
| 406 |
'label' => esc_html__('Harold List carousel', 'ultimate-post-kit'), |
| 407 |
'type' => 'checkbox', |
| 408 |
'default' => "on", |
| 409 |
'widget_type' => 'free', |
| 410 |
'content_type' => 'carousel', |
| 411 |
'demo_url' => 'https://postkit.pro/demo/harold-carousel/', |
| 412 |
'video_url' => 'https://youtu.be/M9GruY3beAk', |
| 413 |
], |
| 414 |
[ |
| 415 |
'name' => 'hazel-grid', |
| 416 |
'label' => esc_html__('Hazel Grid', 'ultimate-post-kit'), |
| 417 |
'type' => 'checkbox', |
| 418 |
'default' => "on", |
| 419 |
'widget_type' => 'free', |
| 420 |
'content_type' => 'grid', |
| 421 |
'demo_url' => 'https://postkit.pro/demo/hazel-grid/', |
| 422 |
'video_url' => 'https://youtu.be/Uy_rOg8lQJM', |
| 423 |
], |
| 424 |
[ |
| 425 |
'name' => 'hazel-carousel', |
| 426 |
'label' => esc_html__('Hazel Carousel', 'ultimate-post-kit'), |
| 427 |
'type' => 'checkbox', |
| 428 |
'default' => "on", |
| 429 |
'widget_type' => 'free', |
| 430 |
'content_type' => 'carousel', |
| 431 |
'demo_url' => 'https://postkit.pro/demo/hazel-carousel/', |
| 432 |
'video_url' => 'https://youtu.be/N1f6AanD3gM', |
| 433 |
], |
| 434 |
[ |
| 435 |
'name' => 'holux-tabs', |
| 436 |
'label' => esc_html__('Holux Tabs', 'ultimate-post-kit'), |
| 437 |
'type' => 'checkbox', |
| 438 |
'default' => "on", |
| 439 |
'widget_type' => 'pro', |
| 440 |
'content_type' => 'tabs', |
| 441 |
'demo_url' => 'https://postkit.pro/demo/holux-tabs/', |
| 442 |
'video_url' => 'https://youtu.be/P-y7v3RRP1M', |
| 443 |
], |
| 444 |
[ |
| 445 |
'name' => 'iconic-slider', |
| 446 |
'label' => esc_html__('Iconic Slider', 'ultimate-post-kit'), |
| 447 |
'type' => 'checkbox', |
| 448 |
'default' => "off", |
| 449 |
'widget_type' => 'pro', |
| 450 |
'content_type' => 'slider', |
| 451 |
'demo_url' => 'https://postkit.pro/demo/iconic-slider/', |
| 452 |
'video_url' => 'https://youtu.be/vsqsA_iwMU4?si=cnHyH-dOvGRgfvPX', |
| 453 |
], |
| 454 |
[ |
| 455 |
'name' => 'instagram-gallery', |
| 456 |
'label' => esc_html__('Instagram Gallery', 'ultimate-post-kit'), |
| 457 |
'type' => 'checkbox', |
| 458 |
'default' => "off", |
| 459 |
'widget_type' => 'pro', |
| 460 |
'content_type' => 'instagram', |
| 461 |
'demo_url' => 'https://postkit.pro/demo/instagram-gallery/', |
| 462 |
'video_url' => '', |
| 463 |
], |
| 464 |
[ |
| 465 |
'name' => 'kalon-grid', |
| 466 |
'label' => esc_html__('Kalon Grid', 'ultimate-post-kit'), |
| 467 |
'type' => 'checkbox', |
| 468 |
'default' => "on", |
| 469 |
'widget_type' => 'pro', |
| 470 |
'content_type' => 'grid', |
| 471 |
'demo_url' => 'https://postkit.pro/demo/kalon-grid/', |
| 472 |
'video_url' => 'https://youtu.be/sxePbXHbVdw', |
| 473 |
], |
| 474 |
[ |
| 475 |
'name' => 'kalon-carousel', |
| 476 |
'label' => esc_html__('Kalon Carousel', 'ultimate-post-kit'), |
| 477 |
'type' => 'checkbox', |
| 478 |
'default' => "on", |
| 479 |
'widget_type' => 'pro', |
| 480 |
'content_type' => 'carousel', |
| 481 |
'demo_url' => 'https://postkit.pro/demo/kalon-carousel/', |
| 482 |
'video_url' => 'https://youtu.be/zTS25x7KWTA', |
| 483 |
], |
| 484 |
[ |
| 485 |
'name' => 'post-card', |
| 486 |
'label' => esc_html__('Post Card', 'ultimate-post-kit'), |
| 487 |
'type' => 'checkbox', |
| 488 |
'default' => "off", |
| 489 |
'widget_type' => 'pro', |
| 490 |
'content_type' => 'grid new', |
| 491 |
'demo_url' => 'https://postkit.pro/demo/post-card/', |
| 492 |
'video_url' => 'https://youtu.be/VKtQCjnEJvE', |
| 493 |
], |
| 494 |
[ |
| 495 |
'name' => 'post-grid', |
| 496 |
'label' => esc_html__('Post Grid', 'ultimate-post-kit'), |
| 497 |
'type' => 'checkbox', |
| 498 |
'default' => "off", |
| 499 |
'widget_type' => 'pro', |
| 500 |
'content_type' => 'grid new', |
| 501 |
'demo_url' => 'https://postkit.pro/demo/post-grid/', |
| 502 |
'video_url' => 'https://youtu.be/z3gWwPIsCkg', |
| 503 |
], |
| 504 |
[ |
| 505 |
'name' => 'post-block', |
| 506 |
'label' => esc_html__('Post Block', 'ultimate-post-kit'), |
| 507 |
'type' => 'checkbox', |
| 508 |
'default' => "off", |
| 509 |
'widget_type' => 'pro', |
| 510 |
'content_type' => 'grid new', |
| 511 |
'demo_url' => 'https://postkit.pro/demo/post-block/', |
| 512 |
'video_url' => 'https://youtu.be/_KPAns0zjAo', |
| 513 |
], |
| 514 |
[ |
| 515 |
'name' => 'post-block-modern', |
| 516 |
'label' => esc_html__('Post Block Modern', 'ultimate-post-kit'), |
| 517 |
'type' => 'checkbox', |
| 518 |
'default' => "off", |
| 519 |
'widget_type' => 'pro', |
| 520 |
'content_type' => 'grid new', |
| 521 |
'demo_url' => 'https://postkit.pro/demo/post-block-modern/', |
| 522 |
'video_url' => 'https://youtu.be/bFEyizMaPmw', |
| 523 |
], |
| 524 |
[ |
| 525 |
'name' => 'post-list', |
| 526 |
'label' => esc_html__('Post List', 'ultimate-post-kit'), |
| 527 |
'type' => 'checkbox', |
| 528 |
'default' => "off", |
| 529 |
'widget_type' => 'pro', |
| 530 |
'content_type' => 'list new', |
| 531 |
'demo_url' => 'https://postkit.pro/demo/post-list/', |
| 532 |
'video_url' => 'https://youtu.be/5aQTAsLRF0o', |
| 533 |
], |
| 534 |
[ |
| 535 |
'name' => 'post-grid-tab', |
| 536 |
'label' => esc_html__('Post Grid Tab', 'ultimate-post-kit'), |
| 537 |
'type' => 'checkbox', |
| 538 |
'default' => "off", |
| 539 |
'widget_type' => 'pro', |
| 540 |
'content_type' => 'tabs new', |
| 541 |
'demo_url' => 'https://postkit.pro/demo/post-grid-tab/', |
| 542 |
'video_url' => 'https://youtu.be/kFEL4AGnIv4', |
| 543 |
], |
| 544 |
[ |
| 545 |
'name' => 'post-slider', |
| 546 |
'label' => esc_html__('Post Slider', 'ultimate-post-kit'), |
| 547 |
'type' => 'checkbox', |
| 548 |
'default' => "off", |
| 549 |
'widget_type' => 'pro', |
| 550 |
'content_type' => 'slider new', |
| 551 |
'demo_url' => 'https://postkit.pro/demo/post-slider/', |
| 552 |
'video_url' => 'https://youtu.be/oPYzWVLPF7A', |
| 553 |
], |
| 554 |
[ |
| 555 |
'name' => 'post-gallery', |
| 556 |
'label' => esc_html__('Post Gallery', 'ultimate-post-kit'), |
| 557 |
'type' => 'checkbox', |
| 558 |
'default' => "off", |
| 559 |
'widget_type' => 'pro', |
| 560 |
'content_type' => 'grid new', |
| 561 |
'demo_url' => 'https://postkit.pro/demo/post-gallery/', |
| 562 |
'video_url' => 'https://youtu.be/iScykjTKlNA', |
| 563 |
], |
| 564 |
[ |
| 565 |
'name' => 'post-carousel', |
| 566 |
'label' => esc_html__('Post Carousel', 'ultimate-post-kit'), |
| 567 |
'type' => 'checkbox', |
| 568 |
'default' => "off", |
| 569 |
'widget_type' => 'pro', |
| 570 |
'content_type' => 'carousel new', |
| 571 |
'demo_url' => 'https://postkit.pro/demo/post-carousel/', |
| 572 |
'video_url' => 'https://youtu.be/biF3GtBf0qc', |
| 573 |
], |
| 574 |
[ |
| 575 |
'name' => 'post-timeline', |
| 576 |
'label' => esc_html__('Post Timeline', 'ultimate-post-kit'), |
| 577 |
'type' => 'checkbox', |
| 578 |
'default' => "off", |
| 579 |
'widget_type' => 'pro', |
| 580 |
'content_type' => 'timeline new', |
| 581 |
'demo_url' => 'https://postkit.pro/demo/post-timeline/', |
| 582 |
'video_url' => 'https://youtu.be/lp4Zqn6niXU', |
| 583 |
], |
| 584 |
[ |
| 585 |
'name' => 'single-post', |
| 586 |
'label' => esc_html__('Single Post', 'ultimate-post-kit'), |
| 587 |
'type' => 'checkbox', |
| 588 |
'default' => "off", |
| 589 |
'widget_type' => 'pro', |
| 590 |
'content_type' => 'others new', |
| 591 |
'demo_url' => 'https://postkit.pro/demo/single-post/', |
| 592 |
'video_url' => 'https://youtu.be/32g-F4_Avp4', |
| 593 |
], |
| 594 |
[ |
| 595 |
'name' => 'maple-grid', |
| 596 |
'label' => esc_html__('Maple Grid', 'ultimate-post-kit'), |
| 597 |
'type' => 'checkbox', |
| 598 |
'default' => "on", |
| 599 |
'widget_type' => 'free', |
| 600 |
'content_type' => 'grid', |
| 601 |
'demo_url' => 'https://postkit.pro/demo/maple-grid/', |
| 602 |
'video_url' => 'https://youtu.be/teraPP36sgQ', |
| 603 |
], |
| 604 |
[ |
| 605 |
'name' => 'maple-carousel', |
| 606 |
'label' => esc_html__('Maple Carousel', 'ultimate-post-kit'), |
| 607 |
'type' => 'checkbox', |
| 608 |
'default' => "on", |
| 609 |
'widget_type' => 'free', |
| 610 |
'content_type' => 'carousel', |
| 611 |
'demo_url' => 'https://postkit.pro/demo/maple-carousel/', |
| 612 |
'video_url' => 'https://youtu.be/h9KTG-DIbm4', |
| 613 |
], |
| 614 |
[ |
| 615 |
'name' => 'news-ticker', |
| 616 |
'label' => esc_html__('News Ticker', 'ultimate-post-kit'), |
| 617 |
'type' => 'checkbox', |
| 618 |
'default' => "on", |
| 619 |
'widget_type' => 'free', |
| 620 |
'content_type' => 'others', |
| 621 |
'demo_url' => 'https://postkit.pro/demo/news-ticker/', |
| 622 |
'video_url' => 'https://youtu.be/xiKwQActvwk', |
| 623 |
], |
| 624 |
[ |
| 625 |
'name' => 'newsletter', |
| 626 |
'label' => esc_html__('Newsletter', 'ultimate-post-kit'), |
| 627 |
'type' => 'checkbox', |
| 628 |
'default' => "on", |
| 629 |
'widget_type' => 'free', |
| 630 |
'content_type' => 'others', |
| 631 |
'demo_url' => 'https://postkit.pro/demo/newsletter/', |
| 632 |
'video_url' => 'https://youtu.be/8ZgQVoSPEyw', |
| 633 |
], |
| 634 |
[ |
| 635 |
'name' => 'noxe-slider', |
| 636 |
'label' => esc_html__('Noxe Slider', 'ultimate-post-kit'), |
| 637 |
'type' => 'checkbox', |
| 638 |
'default' => "on", |
| 639 |
'widget_type' => 'free', |
| 640 |
'content_type' => 'slider', |
| 641 |
'demo_url' => 'https://postkit.pro/demo/noxe-slider/', |
| 642 |
'video_url' => 'https://youtu.be/CyhG4NK8_lo', |
| 643 |
], |
| 644 |
[ |
| 645 |
'name' => 'optick-slider', |
| 646 |
'label' => esc_html__('Optick Slider', 'ultimate-post-kit'), |
| 647 |
'type' => 'checkbox', |
| 648 |
'default' => "on", |
| 649 |
'widget_type' => 'pro', |
| 650 |
'content_type' => 'slider', |
| 651 |
'demo_url' => 'https://postkit.pro/demo/optick-slider/', |
| 652 |
'video_url' => 'https://youtu.be/gqTNcaH7Qy4', |
| 653 |
], |
| 654 |
[ |
| 655 |
'name' => 'timeline', |
| 656 |
'label' => esc_html__('Oras Timeline', 'ultimate-post-kit'), |
| 657 |
'type' => 'checkbox', |
| 658 |
'default' => "on", |
| 659 |
'widget_type' => 'free', |
| 660 |
'content_type' => 'timeline', |
| 661 |
'demo_url' => 'https://postkit.pro/demo/timeline/', |
| 662 |
'video_url' => 'https://youtu.be/2iYuNgP4K0A', |
| 663 |
], |
| 664 |
[ |
| 665 |
'name' => 'paradox-slider', |
| 666 |
'label' => esc_html__('Paradox Slider', 'ultimate-post-kit'), |
| 667 |
'type' => 'checkbox', |
| 668 |
'default' => "on", |
| 669 |
'widget_type' => 'free', |
| 670 |
'content_type' => 'slider', |
| 671 |
'demo_url' => 'https://postkit.pro/demo/paradox-slider/', |
| 672 |
'video_url' => 'https://youtu.be/2ZYnLz__uA4', |
| 673 |
], |
| 674 |
[ |
| 675 |
'name' => 'pholox-slider', |
| 676 |
'label' => esc_html__('Pholox Slider', 'ultimate-post-kit'), |
| 677 |
'type' => 'checkbox', |
| 678 |
'default' => "on", |
| 679 |
'widget_type' => 'free', |
| 680 |
'content_type' => 'slider', |
| 681 |
'demo_url' => 'https://postkit.pro/demo/pholox-slider/', |
| 682 |
'video_url' => 'https://youtu.be/Et_-wFgOn0M', |
| 683 |
], |
| 684 |
[ |
| 685 |
'name' => 'pixina-grid', |
| 686 |
'label' => esc_html__('Pixina Grid', 'ultimate-post-kit'), |
| 687 |
'type' => 'checkbox', |
| 688 |
'default' => "on", |
| 689 |
'widget_type' => 'pro', |
| 690 |
'content_type' => 'grid', |
| 691 |
'demo_url' => 'https://postkit.pro/demo/pixina-grid/', |
| 692 |
'video_url' => 'https://youtu.be/oCPys6NyKDo', |
| 693 |
], |
| 694 |
[ |
| 695 |
'name' => 'pixina-carousel', |
| 696 |
'label' => esc_html__('Pixina Carousel', 'ultimate-post-kit'), |
| 697 |
'type' => 'checkbox', |
| 698 |
'default' => "on", |
| 699 |
'widget_type' => 'pro', |
| 700 |
'content_type' => 'carousel', |
| 701 |
'demo_url' => 'https://postkit.pro/demo/pixina-carousel/', |
| 702 |
'video_url' => 'https://youtu.be/ebSyK__cMhw', |
| 703 |
], |
| 704 |
[ |
| 705 |
'name' => 'post-accordion', |
| 706 |
'label' => esc_html__('Post Accordion', 'ultimate-post-kit'), |
| 707 |
'type' => 'checkbox', |
| 708 |
'default' => "on", |
| 709 |
'widget_type' => 'free', |
| 710 |
'content_type' => 'others', |
| 711 |
'demo_url' => 'https://postkit.pro/demo/post-accordion/', |
| 712 |
'video_url' => 'https://youtu.be/lxGeTthE_lA', |
| 713 |
], |
| 714 |
[ |
| 715 |
'name' => 'post-calendar', |
| 716 |
'label' => esc_html__('Post Calendar', 'ultimate-post-kit'), |
| 717 |
'type' => 'checkbox', |
| 718 |
'default' => "on", |
| 719 |
'widget_type' => 'pro', |
| 720 |
'content_type' => 'others', |
| 721 |
'demo_url' => 'https://postkit.pro/demo/post-calendar/', |
| 722 |
'video_url' => 'https://youtu.be/_MhyGAgj8yw', |
| 723 |
], |
| 724 |
[ |
| 725 |
'name' => 'post-category', |
| 726 |
'label' => esc_html__('Category', 'ultimate-post-kit'), |
| 727 |
'type' => 'checkbox', |
| 728 |
'default' => "on", |
| 729 |
'widget_type' => 'free', |
| 730 |
'content_type' => 'others', |
| 731 |
'demo_url' => 'https://postkit.pro/demo/post-category/', |
| 732 |
'video_url' => 'https://youtu.be/3S5hRqxTDTo', |
| 733 |
], |
| 734 |
[ |
| 735 |
'name' => 'post-comments', |
| 736 |
'label' => esc_html__('Post Comments', 'ultimate-post-kit'), |
| 737 |
'type' => 'checkbox', |
| 738 |
'default' => "on", |
| 739 |
'widget_type' => 'pro', |
| 740 |
'content_type' => 'template-builder', |
| 741 |
'demo_url' => 'https://postkit.pro/archive/', |
| 742 |
], |
| 743 |
[ |
| 744 |
'name' => 'post-content', |
| 745 |
'label' => esc_html__('Post Content', 'ultimate-post-kit'), |
| 746 |
'type' => 'checkbox', |
| 747 |
'default' => "on", |
| 748 |
'widget_type' => 'pro', |
| 749 |
'content_type' => 'template-builder', |
| 750 |
'demo_url' => 'https://postkit.pro/archive/', |
| 751 |
'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM', |
| 752 |
], |
| 753 |
[ |
| 754 |
'name' => 'post-featured-image', |
| 755 |
'label' => esc_html__('Post Featured Image', 'ultimate-post-kit'), |
| 756 |
'type' => 'checkbox', |
| 757 |
'default' => "on", |
| 758 |
'widget_type' => 'pro', |
| 759 |
'content_type' => 'template-builder', |
| 760 |
'demo_url' => 'https://postkit.pro/archive/', |
| 761 |
'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM', |
| 762 |
], |
| 763 |
[ |
| 764 |
'name' => 'post-info', |
| 765 |
'label' => esc_html__('Post Info', 'ultimate-post-kit'), |
| 766 |
'type' => 'checkbox', |
| 767 |
'default' => "on", |
| 768 |
'widget_type' => 'pro', |
| 769 |
'content_type' => 'template-builder', |
| 770 |
'demo_url' => 'https://postkit.pro/archive/', |
| 771 |
'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM', |
| 772 |
], |
| 773 |
[ |
| 774 |
'name' => 'post-title', |
| 775 |
'label' => esc_html__('Post Title', 'ultimate-post-kit'), |
| 776 |
'type' => 'checkbox', |
| 777 |
'default' => "on", |
| 778 |
'widget_type' => 'pro', |
| 779 |
'content_type' => 'template-builder', |
| 780 |
'demo_url' => 'https://postkit.pro/archive/', |
| 781 |
'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM', |
| 782 |
], |
| 783 |
[ |
| 784 |
'name' => 'category-carousel', |
| 785 |
'label' => esc_html__('Category Carousel', 'ultimate-post-kit'), |
| 786 |
'type' => 'checkbox', |
| 787 |
'default' => "on", |
| 788 |
'widget_type' => 'free', |
| 789 |
'content_type' => 'carousel', |
| 790 |
'demo_url' => 'https://postkit.pro/demo/category-carousel/', |
| 791 |
'video_url' => 'https://youtu.be/kNA3mYIMkLM', |
| 792 |
], |
| 793 |
[ |
| 794 |
'name' => 'ramble-grid', |
| 795 |
'label' => esc_html__('Ramble Grid', 'ultimate-post-kit'), |
| 796 |
'type' => 'checkbox', |
| 797 |
'default' => "on", |
| 798 |
'widget_type' => 'free', |
| 799 |
'content_type' => 'grid', |
| 800 |
'demo_url' => 'https://postkit.pro/demo/ramble-grid/', |
| 801 |
'video_url' => 'https://youtu.be/mKdxqk3M2qI', |
| 802 |
], |
| 803 |
[ |
| 804 |
'name' => 'ramble-carousel', |
| 805 |
'label' => esc_html__('Ramble Carousel', 'ultimate-post-kit'), |
| 806 |
'type' => 'checkbox', |
| 807 |
'default' => "on", |
| 808 |
'widget_type' => 'free', |
| 809 |
'content_type' => 'carousel', |
| 810 |
'demo_url' => 'https://postkit.pro/demo/ramble-carousel/', |
| 811 |
'video_url' => 'https://youtu.be/vv10IM0pCHA', |
| 812 |
], |
| 813 |
[ |
| 814 |
'name' => 'reading-progress', |
| 815 |
'label' => esc_html__('Reading Progress Bar', 'ultimate-post-kit'), |
| 816 |
'type' => 'checkbox', |
| 817 |
'default' => "on", |
| 818 |
'widget_type' => 'free', |
| 819 |
'content_type' => 'others', |
| 820 |
'demo_url' => 'https://postkit.pro/demo/reading-progress/', |
| 821 |
'video_url' => 'https://youtu.be/9N_2WDXUjo0', |
| 822 |
], |
| 823 |
[ |
| 824 |
'name' => 'reading-progress-circle', |
| 825 |
'label' => esc_html__('Reading Progress Circle', 'ultimate-post-kit'), |
| 826 |
'type' => 'checkbox', |
| 827 |
'default' => "on", |
| 828 |
'widget_type' => 'pro', |
| 829 |
'content_type' => 'others', |
| 830 |
'demo_url' => 'https://postkit.pro/demo/reading-progress-circle/', |
| 831 |
'video_url' => 'https://youtu.be/yiC3w8cphJE', |
| 832 |
], |
| 833 |
[ |
| 834 |
'name' => 'recent-comments', |
| 835 |
'label' => esc_html__('Recent Comments', 'ultimate-post-kit'), |
| 836 |
'type' => 'checkbox', |
| 837 |
'default' => "on", |
| 838 |
'widget_type' => 'free', |
| 839 |
'content_type' => 'others', |
| 840 |
'demo_url' => 'https://postkit.pro/demo/recent-comments/', |
| 841 |
'video_url' => 'https://youtu.be/_RFwr9Lx7Gs', |
| 842 |
], |
| 843 |
[ |
| 844 |
'name' => 'remote-arrows', |
| 845 |
'label' => esc_html__('Remote Arrows', 'ultimate-post-kit'), |
| 846 |
'type' => 'checkbox', |
| 847 |
'default' => 'off', |
| 848 |
'widget_type' => 'pro', |
| 849 |
'content_type' => 'carousel', |
| 850 |
'demo_url' => 'https://postkit.pro/demo/remote-arrows/', |
| 851 |
'video_url' => 'https://youtu.be/w0CEROpvjjA', |
| 852 |
], |
| 853 |
[ |
| 854 |
'name' => 'remote-fraction', |
| 855 |
'label' => esc_html__('Remote Fraction', 'ultimate-post-kit'), |
| 856 |
'type' => 'checkbox', |
| 857 |
'default' => 'off', |
| 858 |
'widget_type' => 'pro', |
| 859 |
'content_type' => 'carousel', |
| 860 |
'demo_url' => 'https://postkit.pro/demo/remote-fraction/', |
| 861 |
'video_url' => 'https://youtu.be/UfmwcTjX7L8', |
| 862 |
], |
| 863 |
[ |
| 864 |
'name' => 'remote-pagination', |
| 865 |
'label' => esc_html__('Remote Pagination', 'ultimate-post-kit'), |
| 866 |
'type' => 'checkbox', |
| 867 |
'default' => 'off', |
| 868 |
'widget_type' => 'pro', |
| 869 |
'content_type' => 'carousel', |
| 870 |
'demo_url' => 'https://postkit.pro/demo/remote-pagination/', |
| 871 |
'video_url' => 'https://youtu.be/eZWSkb7HeUA', |
| 872 |
], |
| 873 |
[ |
| 874 |
'name' => 'remote-thumbs', |
| 875 |
'label' => esc_html__('Remote Thumbs', 'ultimate-post-kit'), |
| 876 |
'type' => 'checkbox', |
| 877 |
'default' => 'off', |
| 878 |
'widget_type' => 'pro', |
| 879 |
'content_type' => 'carousel', |
| 880 |
'demo_url' => 'https://postkit.pro/demo/remote-thumbs/', |
| 881 |
'video_url' => 'https://youtu.be/PKKnqB0vhzE', |
| 882 |
], |
| 883 |
[ |
| 884 |
'name' => 'scott-list', |
| 885 |
'label' => esc_html__('Scott List', 'ultimate-post-kit'), |
| 886 |
'type' => 'checkbox', |
| 887 |
'default' => "on", |
| 888 |
'widget_type' => 'free', |
| 889 |
'content_type' => 'list', |
| 890 |
'demo_url' => 'https://postkit.pro/demo/scott-list/', |
| 891 |
'video_url' => 'https://youtu.be/twaysnvoWkM', |
| 892 |
], |
| 893 |
[ |
| 894 |
'name' => 'skide-slider', |
| 895 |
'label' => esc_html__('Skide Slider', 'ultimate-post-kit'), |
| 896 |
'type' => 'checkbox', |
| 897 |
'default' => "on", |
| 898 |
'widget_type' => 'free', |
| 899 |
'content_type' => 'slider', |
| 900 |
'demo_url' => 'https://postkit.pro/demo/skide-slider/', |
| 901 |
'video_url' => 'https://youtu.be/7-7PbdFi_Ks', |
| 902 |
], |
| 903 |
[ |
| 904 |
'name' => 'soft-timeline', |
| 905 |
'label' => esc_html__('Soft Timeline', 'ultimate-post-kit'), |
| 906 |
'type' => 'checkbox', |
| 907 |
'default' => "on", |
| 908 |
'widget_type' => 'pro', |
| 909 |
'content_type' => 'timeline', |
| 910 |
'demo_url' => 'https://postkit.pro/demo/soft-timeline/', |
| 911 |
'video_url' => 'https://youtu.be/5scXg5bsGDc', |
| 912 |
], |
| 913 |
[ |
| 914 |
'name' => 'sline-slider', |
| 915 |
'label' => esc_html__('Sline Slider', 'ultimate-post-kit'), |
| 916 |
'type' => 'checkbox', |
| 917 |
'default' => "on", |
| 918 |
'widget_type' => 'pro', |
| 919 |
'content_type' => 'slider', |
| 920 |
'demo_url' => 'https://postkit.pro/demo/sline-slider/', |
| 921 |
'video_url' => 'https://youtu.be/CevH3uPjuGI', |
| 922 |
], |
| 923 |
[ |
| 924 |
'name' => 'stone-hover', |
| 925 |
'label' => esc_html__('Stone Hover', 'ultimate-post-kit'), |
| 926 |
'type' => 'checkbox', |
| 927 |
'default' => "off", |
| 928 |
'widget_type' => 'pro', |
| 929 |
'content_type' => 'others', |
| 930 |
'demo_url' => 'https://postkit.pro/demo/stone-hover/', |
| 931 |
'video_url' => 'https://youtu.be/7Gz3ElKbb2Q', |
| 932 |
], |
| 933 |
[ |
| 934 |
'name' => 'snog-slider', |
| 935 |
'label' => esc_html__('Snog Slider', 'ultimate-post-kit'), |
| 936 |
'type' => 'checkbox', |
| 937 |
'default' => "off", |
| 938 |
'widget_type' => 'free', |
| 939 |
'content_type' => 'slider', |
| 940 |
'demo_url' => 'https://postkit.pro/demo/snog-slider/', |
| 941 |
'video_url' => 'https://youtu.be/UKZIEgYg0gs?si=exkIDYa-j2c7E34t', |
| 942 |
], |
| 943 |
[ |
| 944 |
'name' => 'snap-timeline', |
| 945 |
'label' => esc_html__('Snap Timeline', 'ultimate-post-kit'), |
| 946 |
'type' => 'checkbox', |
| 947 |
'default' => "on", |
| 948 |
'widget_type' => 'pro', |
| 949 |
'content_type' => 'timeline', |
| 950 |
'demo_url' => 'https://postkit.pro/demo/snap-timeline/', |
| 951 |
'video_url' => 'https://youtu.be/KCBjzS_1lE0', |
| 952 |
], |
| 953 |
[ |
| 954 |
'name' => 'static-social-count', |
| 955 |
'label' => esc_html__('Social Count(Static)', 'ultimate-post-kit'), |
| 956 |
'type' => 'checkbox', |
| 957 |
'default' => "on", |
| 958 |
'widget_type' => 'free', |
| 959 |
'content_type' => 'others', |
| 960 |
'demo_url' => 'https://postkit.pro/demo/static-social-count/', |
| 961 |
'video_url' => 'https://youtu.be/MmbdYPee9qw', |
| 962 |
], |
| 963 |
[ |
| 964 |
'name' => 'social-share', |
| 965 |
'label' => esc_html__('Social Share', 'ultimate-post-kit'), |
| 966 |
'type' => 'checkbox', |
| 967 |
'default' => "on", |
| 968 |
'widget_type' => 'free', |
| 969 |
'content_type' => 'others', |
| 970 |
'demo_url' => 'https://postkit.pro/demo/social-share/', |
| 971 |
'video_url' => 'https://youtu.be/77S087dzK3Q', |
| 972 |
], |
| 973 |
[ |
| 974 |
'name' => 'social-link', |
| 975 |
'label' => esc_html__('Social Link', 'ultimate-post-kit'), |
| 976 |
'type' => 'checkbox', |
| 977 |
'default' => "on", |
| 978 |
'widget_type' => 'pro', |
| 979 |
'content_type' => 'others', |
| 980 |
'demo_url' => 'https://postkit.pro/demo/social-link/', |
| 981 |
'video_url' => 'https://youtu.be/MCH3v8iwrTw', |
| 982 |
], |
| 983 |
[ |
| 984 |
'name' => 'tag-cloud', |
| 985 |
'label' => esc_html__('Tag Cloud', 'ultimate-post-kit'), |
| 986 |
'type' => 'checkbox', |
| 987 |
'default' => "on", |
| 988 |
'widget_type' => 'free', |
| 989 |
'content_type' => 'others', |
| 990 |
'demo_url' => 'https://postkit.pro/demo/tag-cloud/', |
| 991 |
'video_url' => 'https://youtu.be/DLl_bqh_E2M', |
| 992 |
], |
| 993 |
[ |
| 994 |
'name' => 'tiny-list', |
| 995 |
'label' => esc_html__('Tiny List', 'ultimate-post-kit'), |
| 996 |
'type' => 'checkbox', |
| 997 |
'default' => "on", |
| 998 |
'widget_type' => 'free', |
| 999 |
'content_type' => 'list', |
| 1000 |
'demo_url' => 'https://postkit.pro/demo/tiny-list/', |
| 1001 |
'video_url' => 'https://youtu.be/PZlXofIOy68', |
| 1002 |
], |
| 1003 |
[ |
| 1004 |
'name' => 'wixer-grid', |
| 1005 |
'label' => esc_html__('Wixer Grid', 'ultimate-post-kit'), |
| 1006 |
'type' => 'checkbox', |
| 1007 |
'default' => "on", |
| 1008 |
'widget_type' => 'pro', |
| 1009 |
'content_type' => 'grid', |
| 1010 |
'demo_url' => 'https://postkit.pro/demo/wixer-grid/', |
| 1011 |
'video_url' => 'https://youtu.be/MeR0jXdpYc0', |
| 1012 |
], |
| 1013 |
[ |
| 1014 |
'name' => 'wixer-carousel', |
| 1015 |
'label' => esc_html__('Wixer Carousel', 'ultimate-post-kit'), |
| 1016 |
'type' => 'checkbox', |
| 1017 |
'default' => "on", |
| 1018 |
'widget_type' => 'pro', |
| 1019 |
'content_type' => 'carousel', |
| 1020 |
'demo_url' => 'https://postkit.pro/demo/wixer-carousel/', |
| 1021 |
'video_url' => 'https://youtu.be/NxelaRS-a9o', |
| 1022 |
], |
| 1023 |
[ |
| 1024 |
'name' => 'welsh-list', |
| 1025 |
'label' => esc_html__('Welsh List', 'ultimate-post-kit'), |
| 1026 |
'type' => 'checkbox', |
| 1027 |
'default' => "on", |
| 1028 |
'widget_type' => 'pro', |
| 1029 |
'content_type' => 'list', |
| 1030 |
'demo_url' => 'https://postkit.pro/demo/welsh-list/', |
| 1031 |
'video_url' => 'https://youtu.be/f_sXqkUMfDg', |
| 1032 |
] |
| 1033 |
], |
| 1034 |
|
| 1035 |
'ultimate_post_kit_elementor_extend' => [ |
| 1036 |
[ |
| 1037 |
'name' => 'animations', |
| 1038 |
'label' => esc_html__('Animations', 'ultimate-post-kit'), |
| 1039 |
'type' => 'checkbox', |
| 1040 |
'default' => "on", |
| 1041 |
'widget_type' => 'free', |
| 1042 |
'demo_url' => '', |
| 1043 |
'video_url' => '', |
| 1044 |
], |
| 1045 |
[ |
| 1046 |
'name' => 'multicolor-item', |
| 1047 |
'label' => esc_html__('MultiColor Item', 'ultimate-post-kit'), |
| 1048 |
'type' => 'checkbox', |
| 1049 |
'default' => "off", |
| 1050 |
'widget_type' => 'pro', |
| 1051 |
'content_type' => 'new', |
| 1052 |
'demo_url' => '', |
| 1053 |
'video_url' => 'https://youtu.be/U_UaEQA1cqU', |
| 1054 |
] |
| 1055 |
], |
| 1056 |
'ultimate_post_kit_api_settings' => [ |
| 1057 |
[ |
| 1058 |
'name' => 'mailchimp_group_start', |
| 1059 |
'label' => esc_html__('Mailchimp Access', 'ultimate-post-kit'), |
| 1060 |
'desc' => __('Go to your Mailchimp > Website > Domains > Extras > API Keys (<a href="http://prntscr.com/xqo78x" target="_blank">http://prntscr.com/xqo78x</a>) then create a key and paste here. You will get the audience ID here: <a href="http://prntscr.com/xqnt5z" target="_blank">http://prntscr.com/xqnt5z</a>', 'ultimate-post-kit'), |
| 1061 |
'type' => 'start_group', |
| 1062 |
|
| 1063 |
], |
| 1064 |
[ |
| 1065 |
'name' => 'mailchimp_api_key', |
| 1066 |
'label' => esc_html__('Mailchimp API Key', 'ultimate-post-kit'), |
| 1067 |
'placeholder' => '', |
| 1068 |
'type' => 'text', |
| 1069 |
'sanitize_callback' => 'sanitize_text_field' |
| 1070 |
|
| 1071 |
], |
| 1072 |
[ |
| 1073 |
'name' => 'mailchimp_list_id', |
| 1074 |
'label' => esc_html__('Audience ID', 'ultimate-post-kit'), |
| 1075 |
'placeholder' => '', |
| 1076 |
'type' => 'text', |
| 1077 |
'sanitize_callback' => 'sanitize_text_field' |
| 1078 |
|
| 1079 |
], |
| 1080 |
[ |
| 1081 |
'name' => 'mailchimp_group_end', |
| 1082 |
'type' => 'end_group', |
| 1083 |
], |
| 1084 |
|
| 1085 |
|
| 1086 |
[ |
| 1087 |
'name' => 'instagram_group_start', |
| 1088 |
'label' => esc_html__('Instagram Access', 'ultimate-post-kit'), |
| 1089 |
'desc' => __('Go to <a href="https://developers.facebook.com/docs/instagram-basic-display-api/getting-started" target="_blank">https://developers.facebook.com/docs/instagram-basic-display-api/getting-started</a> for create your Consumer key and Access Token.', 'ultimate-post-kit'), |
| 1090 |
'type' => 'start_group', |
| 1091 |
'video_url' => 'https://youtu.be/IrQVteaaAow', |
| 1092 |
], |
| 1093 |
|
| 1094 |
[ |
| 1095 |
'name' => 'instagram_app_id', |
| 1096 |
'label' => esc_html__('Instagram App ID', 'ultimate-post-kit'), |
| 1097 |
'placeholder' => '---------------', |
| 1098 |
'type' => 'text', |
| 1099 |
'sanitize_callback' => 'sanitize_text_field' |
| 1100 |
], |
| 1101 |
[ |
| 1102 |
'name' => 'instagram_app_secret', |
| 1103 |
'label' => esc_html__('Instagram App Secret', 'ultimate-post-kit'), |
| 1104 |
'placeholder' => '---------------', |
| 1105 |
'type' => 'text', |
| 1106 |
'sanitize_callback' => 'sanitize_text_field' |
| 1107 |
], |
| 1108 |
|
| 1109 |
[ |
| 1110 |
'name' => 'instagram_access_token', |
| 1111 |
'label' => esc_html__('Instagram Access Token', 'ultimate-post-kit'), |
| 1112 |
'desc' => __('Go to <a href="https://developers.facebook.com/docs/instagram-basic-display-api/getting-started" target="_blank">This Link</a> and Generate the access token then copy and paste here.', 'ultimate-post-kit'), |
| 1113 |
'placeholder' => '---------------', |
| 1114 |
'type' => 'text', |
| 1115 |
'sanitize_callback' => 'sanitize_text_field' |
| 1116 |
], |
| 1117 |
|
| 1118 |
[ |
| 1119 |
'name' => 'instagram_group_end', |
| 1120 |
'type' => 'end_group', |
| 1121 |
], |
| 1122 |
|
| 1123 |
], |
| 1124 |
'ultimate_post_kit_other_settings' => [ |
| 1125 |
|
| 1126 |
[ |
| 1127 |
'name' => 'dynamic-content', |
| 1128 |
'label' => esc_html__('Dynamic Content', 'ultimate-post-kit'), |
| 1129 |
'tooltip' => __('The Dynamic Content feature allows users to automatically populate Elementor widgets with real-time data from WordPress.', 'ultimate-post-kit'), |
| 1130 |
'type' => 'checkbox', |
| 1131 |
'default' => 'off', |
| 1132 |
'widget_type' => 'pro', |
| 1133 |
'content_type' => 'new', |
| 1134 |
'demo_url' => 'https://postkit.pro/demo/dynamic-content/', |
| 1135 |
'video_url' => 'https://youtu.be/JEqXbIETdDE', |
| 1136 |
|
| 1137 |
], |
| 1138 |
|
| 1139 |
[ |
| 1140 |
'name' => 'category_image', |
| 1141 |
'label' => esc_html__('Category Image', 'ultimate-post-kit'), |
| 1142 |
'tooltip' => __('Display exclusive category avatar by turning on this switcher. The Category image will be visible for all post widgets if the category is turned on from the widget controls.', 'ultimate-post-kit'), |
| 1143 |
'type' => 'checkbox', |
| 1144 |
'default' => "off", |
| 1145 |
'widget_type' => 'free', |
| 1146 |
], |
| 1147 |
|
| 1148 |
[ |
| 1149 |
'name' => 'duplicator', |
| 1150 |
'label' => esc_html__('Duplicator', 'ultimate-post-kit'), |
| 1151 |
'tooltip' => __('Just hit the button below to enable the duplicator. It can duplicate anything like posts,pages and elementor templates. A masterclass duplication with just one click.', 'ultimate-post-kit'), |
| 1152 |
'type' => 'checkbox', |
| 1153 |
'default' => 'off', |
| 1154 |
'widget_type' => 'free', |
| 1155 |
'demo_url' => 'https://www.ultimatepostkit.pro/knowledge-base/how-to-use-ultimate-post-kit-duplicator/', |
| 1156 |
'video_url' => '', |
| 1157 |
], |
| 1158 |
|
| 1159 |
[ |
| 1160 |
'name' => 'live-copy', |
| 1161 |
'label' => esc_html__('Live Copy Paste', 'ultimate-post-kit'), |
| 1162 |
'tooltip' => __('Live copy is a copy feature that allow you to copy and paste content from one domain to another. For example you can copy demo content directly from our demo website.', 'ultimate-post-kit'), |
| 1163 |
'type' => 'checkbox', |
| 1164 |
'default' => 'off', |
| 1165 |
'widget_type' => 'free', |
| 1166 |
'demo_url' => 'https://www.ultimatepostkit.pro/knowledge-base/how-to-use-live-copy-option/', |
| 1167 |
'video_url' => 'https://youtu.be/jOdWVw2TCmo', |
| 1168 |
|
| 1169 |
], |
| 1170 |
|
| 1171 |
[ |
| 1172 |
'name' => 'audio_link', |
| 1173 |
'label' => esc_html__('Audio Link', 'ultimate-post-kit'), |
| 1174 |
'tooltip' => __('If you need to display Audio features in your website so please enable this option.', 'ultimate-post-kit'), |
| 1175 |
'type' => 'checkbox', |
| 1176 |
'default' => "off", |
| 1177 |
'widget_type' => 'free', |
| 1178 |
'content_type' => 'new', |
| 1179 |
], |
| 1180 |
|
| 1181 |
[ |
| 1182 |
'name' => 'video_link', |
| 1183 |
'label' => esc_html__('Video Link', 'ultimate-post-kit'), |
| 1184 |
'tooltip' => __('If you need to display video features in your website so please enable this option.', 'ultimate-post-kit'), |
| 1185 |
'type' => 'checkbox', |
| 1186 |
'default' => "off", |
| 1187 |
'widget_type' => 'free', |
| 1188 |
], |
| 1189 |
|
| 1190 |
[ |
| 1191 |
'name' => 'news_feed', |
| 1192 |
'label' => esc_html__('BdThemes News & Updates', 'ultimate-post-kit'), |
| 1193 |
'tooltip' => __('Opt in to show BdThemes news and updates as a widget on your WordPress dashboard. This is off by default; turning it on lets the plugin request the public news feed from bdthemes.com when you open the dashboard. No personal or site data is sent.', 'ultimate-post-kit'), |
| 1194 |
'type' => 'checkbox', |
| 1195 |
'default' => "off", |
| 1196 |
'widget_type' => 'free', |
| 1197 |
], |
| 1198 |
|
| 1199 |
] |
| 1200 |
]; |
| 1201 |
|
| 1202 |
$settings = []; |
| 1203 |
$settings['settings_fields'] = $settings_fields; |
| 1204 |
|
| 1205 |
return $callable($settings); |
| 1206 |
} |
| 1207 |
|
| 1208 |
private static function _is_plugin_installed($plugin, $plugin_path) { |
| 1209 |
$installed_plugins = get_plugins(); |
| 1210 |
return isset($installed_plugins[$plugin_path]); |
| 1211 |
} |
| 1212 |
|
| 1213 |
public static function is_module_active($module_id, $options, $module_path = BDTUPK_MODULES_PATH) { |
| 1214 |
if (!isset($options[$module_id])) { |
| 1215 |
if (file_exists($module_path . $module_id . '/module.info.php')) { |
| 1216 |
$module_data = require $module_path . $module_id . '/module.info.php'; |
| 1217 |
return $module_data['default_activation']; |
| 1218 |
} |
| 1219 |
} else { |
| 1220 |
return $options[$module_id] == 'on'; |
| 1221 |
} |
| 1222 |
} |
| 1223 |
|
| 1224 |
public static function is_plugin_active($plugin_path) { |
| 1225 |
if ($plugin_path) { |
| 1226 |
return is_plugin_active($plugin_path); |
| 1227 |
} |
| 1228 |
} |
| 1229 |
|
| 1230 |
public static function has_module_style($module_id, $module_path = BDTUPK_MODULES_PATH) { |
| 1231 |
if (file_exists($module_path . $module_id . '/module.info.php')) { |
| 1232 |
$module_data = require $module_path . $module_id . '/module.info.php'; |
| 1233 |
|
| 1234 |
if (isset($module_data['has_style'])) { |
| 1235 |
return $module_data['has_style']; |
| 1236 |
} |
| 1237 |
} |
| 1238 |
} |
| 1239 |
|
| 1240 |
public static function has_module_script($module_id, $module_path = BDTUPK_MODULES_PATH) { |
| 1241 |
if (file_exists($module_path . $module_id . '/module.info.php')) { |
| 1242 |
$module_data = require $module_path . $module_id . '/module.info.php'; |
| 1243 |
|
| 1244 |
if (isset($module_data['has_script'])) { |
| 1245 |
return $module_data['has_script']; |
| 1246 |
} |
| 1247 |
} |
| 1248 |
} |
| 1249 |
} |
| 1250 |
|