| 1 |
<?php |
| 2 |
|
| 3 |
////////////////////////////////////////////////////////////// |
| 4 |
//=========================================================== |
| 5 |
// premium.php |
| 6 |
//=========================================================== |
| 7 |
// PAGELAYER |
| 8 |
// Inspired by the DESIRE to be the BEST OF ALL |
| 9 |
// ---------------------------------------------------------- |
| 10 |
// Started by: Pulkit Gupta |
| 11 |
// Date: 23rd Jan 2017 |
| 12 |
// Time: 23:00 hrs |
| 13 |
// Site: http://pagelayer.com/wordpress (PAGELAYER) |
| 14 |
// ---------------------------------------------------------- |
| 15 |
// Please Read the Terms of use at http://pagelayer.com/tos |
| 16 |
// ---------------------------------------------------------- |
| 17 |
//=========================================================== |
| 18 |
// (c)Pagelayer Team |
| 19 |
//=========================================================== |
| 20 |
////////////////////////////////////////////////////////////// |
| 21 |
|
| 22 |
// Are we being accessed directly ? |
| 23 |
if(!defined('PAGELAYER_VERSION')) { |
| 24 |
exit('Hacking Attempt !'); |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
// Image Hotspot |
| 30 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_hotspot', array( |
| 31 |
'name' => __pl('Image Hotspot'), |
| 32 |
'group' => 'image', |
| 33 |
'func' => 'pagelayer_sc_image_hotspot', |
| 34 |
'params' => array( |
| 35 |
'elements' => array( |
| 36 |
'type' => 'group', |
| 37 |
'sc' => PAGELAYER_SC_PREFIX.'_image_hotspot', |
| 38 |
'items' => array( |
| 39 |
'label' => array( |
| 40 |
'default' => __pl('hotspot'), |
| 41 |
), |
| 42 |
'count' => 0 |
| 43 |
), |
| 44 |
'text' => __pl('Add New Hotspot'), |
| 45 |
'rules' => array( |
| 46 |
'rootSelector' => '.pagelayer-tooltip', // css selector of the internal object |
| 47 |
'activeSelector' => '.pagelayer-hotspot', // css selector of the active element |
| 48 |
'activeClass' => 'active' // css class name of the active element |
| 49 |
), |
| 50 |
'events' => array( |
| 51 |
'onActive' => array( // javascript event when item is activated |
| 52 |
'selector' => '.pagelayer-hotspot', // css selector of the element |
| 53 |
'event' => 'click' // event name |
| 54 |
), |
| 55 |
'onInactive' => array( // javascript event when item is de-activated |
| 56 |
'selector' => '.pagelayer-hotspot', // css selector of the element |
| 57 |
'event' => 'click' // event name |
| 58 |
) |
| 59 |
) |
| 60 |
), |
| 61 |
'img' => array( |
| 62 |
'type' => 'image', |
| 63 |
'label' => __pl('Main Image'), |
| 64 |
'default' => '', |
| 65 |
'desc' => __pl('Choose an image from Media Library'), |
| 66 |
), |
| 67 |
'common_hotspot_color' => array( |
| 68 |
'type' => 'color', |
| 69 |
'label' => __pl('Hotspot Theme'), |
| 70 |
'default' => 'mp-text-color-red', |
| 71 |
'list' => array( |
| 72 |
'mp-text-color-red' => __pl('red'), |
| 73 |
'mp-text-color-dark-grey' => __pl('grey'), |
| 74 |
'mp-text-color-black' => __pl('black'), |
| 75 |
'custom' => __pl('custom'), |
| 76 |
), |
| 77 |
), |
| 78 |
'common_hotspot_custom_color' => array( |
| 79 |
'type' => 'color', |
| 80 |
'label' => __pl('Hotspot Color'), |
| 81 |
'default' => '#e25441', |
| 82 |
'req' => array( |
| 83 |
'common_hotspot_color' => 'custom' |
| 84 |
) |
| 85 |
), |
| 86 |
'common_plus_color' => array( |
| 87 |
'type' => 'color', |
| 88 |
'label' => __pl('Hotspot Icon Color'), |
| 89 |
'default' => '#ffffff', |
| 90 |
'req' => array( |
| 91 |
'common_hotspot_color' => 'custom' |
| 92 |
) |
| 93 |
), |
| 94 |
'common_hotspot_size' => array( |
| 95 |
'type' => 'radio', |
| 96 |
'label' => __pl('Hotspot Size'), |
| 97 |
'default' => 'normal', |
| 98 |
'list' => array( |
| 99 |
'small' => __pl('small'), |
| 100 |
'normal' => __pl('middle'), |
| 101 |
'big' => __pl('large'), |
| 102 |
) |
| 103 |
), |
| 104 |
'common_tip_theme' => array( |
| 105 |
'type' => 'select', |
| 106 |
'label' => __pl('Tooltip Theme'), |
| 107 |
'default' => 'tooltipster-shadow', |
| 108 |
'list' => array( |
| 109 |
'tooltipster-default' => __pl('dark'), |
| 110 |
'tooltipster-light' => __pl('silver'), |
| 111 |
'tooltipster-noir' => __pl('noir'), |
| 112 |
'tooltipster-shadow' => __pl('shadow'), |
| 113 |
'tooltipster-dark' => __pl('black'), |
| 114 |
'custom' => __pl('custom'), |
| 115 |
), |
| 116 |
), |
| 117 |
'common_custom_bg_theme' => array( |
| 118 |
'type' => 'color', |
| 119 |
'label' => __pl('Tooltip Background Color'), |
| 120 |
'default' => '#eb002c', |
| 121 |
'req' => array( |
| 122 |
'common_tip_theme' => 'custom' |
| 123 |
) |
| 124 |
), |
| 125 |
'common_custom_font_theme' => array( |
| 126 |
'type' => 'color', |
| 127 |
'label' => __pl('Tooltip Font Color'), |
| 128 |
'default' => '#ffffff', |
| 129 |
'req' => array( |
| 130 |
'common_tip_theme' => 'custom' |
| 131 |
) |
| 132 |
), |
| 133 |
'common_tip_position' => array( |
| 134 |
'type' => 'select', |
| 135 |
'label' => 'Tooltip Position', |
| 136 |
'default' => 'top', |
| 137 |
'list' => array( |
| 138 |
'top' => __pl('top'), |
| 139 |
'right' => __pl('right'), |
| 140 |
'bottom' => __pl('bottom'), |
| 141 |
'left' => __pl('left'), |
| 142 |
) |
| 143 |
), |
| 144 |
'common_tip_show' => array( |
| 145 |
'type' => 'select', |
| 146 |
'label' => 'Display', |
| 147 |
'default' => 'hover', |
| 148 |
'list' => array( |
| 149 |
'hover' => __pl('On Hover'), |
| 150 |
'always' => __pl('always'), |
| 151 |
'click' => __pl('On Click'), |
| 152 |
) |
| 153 |
), |
| 154 |
) |
| 155 |
) |
| 156 |
); |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
// Audio |
| 162 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_audio', array( |
| 163 |
'name' => __pl('audio'), |
| 164 |
'group' => 'media', |
| 165 |
'func' => 'pagelayer_sc_audio', |
| 166 |
'html' => '<div class="pagelayer-audio-container"> |
| 167 |
<audio controls> |
| 168 |
<source src="{{{src-url}}}"></source> |
| 169 |
</audio> |
| 170 |
</div>', |
| 171 |
'params' => array( |
| 172 |
'src' => array( |
| 173 |
'type' => 'audio', |
| 174 |
'label' => __pl('wp_audio_source_title'), |
| 175 |
'desc' => __pl('wp_audio_source_desc'), |
| 176 |
'default' => 'http://wpcom.files.wordpress.com/2007/01/mattmullenweg-interview.mp3', |
| 177 |
), |
| 178 |
'autoplay' => array( |
| 179 |
'type' => 'checkbox', |
| 180 |
'label' => __pl('wp_audio_autoplay_title'), |
| 181 |
'desc' => __pl('wp_audio_autoplay_desc'), |
| 182 |
'default' => '', |
| 183 |
'addAttr' => ['{{element}} audio' => 'autoplay="autoplay"'], |
| 184 |
), |
| 185 |
'loop' => array( |
| 186 |
'type' => 'checkbox', |
| 187 |
'label' => __pl('wp_audio_loop_title'), |
| 188 |
'desc' => __pl('wp_audio_loop_desc'), |
| 189 |
'default' => '', |
| 190 |
'addAttr' => ['{{element}} audio' => 'loop="loop"'], |
| 191 |
) |
| 192 |
) |
| 193 |
) |
| 194 |
); |
| 195 |
|
| 196 |
|
| 197 |
// Video Slider |
| 198 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video_slider', array( |
| 199 |
'name' => __pl('Video Slider'), |
| 200 |
'group' => 'media', |
| 201 |
'func' => 'pagelayer_sc_video_slider', |
| 202 |
'holder' => '.pagelayer-video-slider-holder', |
| 203 |
'html' => '<div class="pagelayer-video-slider-holder"></div>', |
| 204 |
'params' => array( |
| 205 |
'elements' => array( |
| 206 |
'type' => 'group', |
| 207 |
'label' => __pl('Videos'), |
| 208 |
'sc' => PAGELAYER_SC_PREFIX.'_video', |
| 209 |
'item_label' => array( |
| 210 |
'default' => __pl('video'), |
| 211 |
'param' => 'video_type' |
| 212 |
), |
| 213 |
'count' => 2, |
| 214 |
'text' => __pl('Add Media'), |
| 215 |
), |
| 216 |
'slideshow' => array( |
| 217 |
'type' => 'checkbox', |
| 218 |
'label' => __pl('Enable slideshow'), |
| 219 |
'desc' => '', |
| 220 |
), |
| 221 |
'autoplay' => array( |
| 222 |
'type' => 'checkbox', |
| 223 |
'label' => __pl('Autoplay slider'), |
| 224 |
'desc' => '', |
| 225 |
'default' => 'true', |
| 226 |
'req' => array( |
| 227 |
'slideshow' => 'true' |
| 228 |
) |
| 229 |
), |
| 230 |
'slideshow_speed' => array( |
| 231 |
'type' => 'spinner', |
| 232 |
'label' => __pl('Slideshow speed in seconds'), |
| 233 |
'default' => 800, |
| 234 |
'min' => 100, |
| 235 |
'max' => 10000, |
| 236 |
'step' => 100, |
| 237 |
'req' => array( |
| 238 |
'slideshow' => 'true' |
| 239 |
) |
| 240 |
), |
| 241 |
'slideshow_start' => array( |
| 242 |
'type' => 'spinner', |
| 243 |
'label' => __pl('Slideshow start with slide'), |
| 244 |
'default' => 1, |
| 245 |
'step' => 1, |
| 246 |
), |
| 247 |
'slider_transition' => array( |
| 248 |
'type' => 'select', |
| 249 |
'label' => __pl('Transition'), |
| 250 |
'desc' => '', |
| 251 |
'default' => 'fade', |
| 252 |
'list' => [ |
| 253 |
'fade' => __pl('fade'), |
| 254 |
'horizontal' => __pl('horizontal'), |
| 255 |
'vertical' => __pl('vertical'), |
| 256 |
'kenburns' => __pl('kenburns'), |
| 257 |
'false' => __pl('none'), |
| 258 |
], |
| 259 |
), |
| 260 |
'slider_preload' => array( |
| 261 |
'type' => 'select', |
| 262 |
'label' => __pl('Preload slides'), |
| 263 |
'default' => 'visible', |
| 264 |
'list' => [ |
| 265 |
'visible' => __pl('visible'), |
| 266 |
'all' => __pl('all'), |
| 267 |
], |
| 268 |
), |
| 269 |
'slider_pager' => array( |
| 270 |
'type' => 'checkbox', |
| 271 |
'label' => __pl('Pager'), |
| 272 |
'desc' => '', |
| 273 |
'default' => 'true', |
| 274 |
), |
| 275 |
'slider_loop' => array( |
| 276 |
'type' => 'checkbox', |
| 277 |
'label' => __pl('Slider loop'), |
| 278 |
'desc' => '', |
| 279 |
'default' => 'true', |
| 280 |
), |
| 281 |
) |
| 282 |
) |
| 283 |
); |
| 284 |
|
| 285 |
// Button Group |
| 286 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn_grp', array( |
| 287 |
'name' => __pl('Button Group'), |
| 288 |
'group' => 'button', |
| 289 |
'func' => 'pagelayer_sc_btn_grp', |
| 290 |
'params' => array( |
| 291 |
'elements' => array( |
| 292 |
'type' => 'group', |
| 293 |
'label' => __pl('buttons'), |
| 294 |
'sc' => PAGELAYER_SC_PREFIX.'_btn', |
| 295 |
'item_label' => array( |
| 296 |
'default' => __pl('button'), |
| 297 |
'param' => 'text' |
| 298 |
), |
| 299 |
'count' => 2, |
| 300 |
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('button_name'))), |
| 301 |
), |
| 302 |
'align' => array( |
| 303 |
'type' => 'radio', |
| 304 |
'label' => __pl('obj_align_label'), |
| 305 |
'default' => 'left', |
| 306 |
'css' => 'text-align: {{val}}', |
| 307 |
'list' => array( |
| 308 |
'left' => __pl('left'), |
| 309 |
'center' => __pl('center'), |
| 310 |
'right' => __pl('right') |
| 311 |
) |
| 312 |
), |
| 313 |
'group_layout' => array( |
| 314 |
'type' => 'radio', |
| 315 |
'label' => __pl('layout'), |
| 316 |
'default' => 'pagelayer-btn-grp-horizontal', |
| 317 |
'css' => ['{{element}} .pagelayer-btn' => 'display: inline-block;'], |
| 318 |
'list' => array( |
| 319 |
'pagelayer-btn-grp-horizontal' => __pl('horizontal'), |
| 320 |
'' => __pl('vertical') |
| 321 |
) |
| 322 |
), |
| 323 |
'indent' => array( |
| 324 |
'type' => 'spinner', |
| 325 |
'label' => __pl('button_group_indent_label'), |
| 326 |
'default' => '5', |
| 327 |
'css' => ['{{element}} .pagelayer-btn' => 'padding-left: {{val}}px; padding-right: {{val}}px;'], |
| 328 |
'min' => 0, |
| 329 |
'step' => 1, |
| 330 |
'max' => 50, |
| 331 |
'default' => 3, |
| 332 |
) |
| 333 |
) |
| 334 |
) |
| 335 |
); |
| 336 |
// Download Button |
| 337 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_download', array( |
| 338 |
'name' => __pl('Download Button'), |
| 339 |
'group' => 'button', |
| 340 |
'func' => 'pagelayer_sc_download', |
| 341 |
'html' => '<a href="{{{attachment-url}}}" target="_blank" class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}" download> |
| 342 |
<i class="fa fa-{{icon}} pagelayer-btn-icon"></i> |
| 343 |
<span class="pagelayer-btn-text">{{text}}</span> |
| 344 |
<i class="fa fa-{{icon}} pagelayer-btn-icon"></i> |
| 345 |
</a>', |
| 346 |
'params' => array( |
| 347 |
'attachment' => array( |
| 348 |
'type' => 'media', |
| 349 |
'label' => __pl('media_file'), |
| 350 |
'desc' => __pl('media_description'), |
| 351 |
'default' => '', |
| 352 |
), |
| 353 |
'text' => array( |
| 354 |
'type' => 'text', |
| 355 |
'label' => __pl('button_text_label'), |
| 356 |
'default' => 'Download' |
| 357 |
), |
| 358 |
'type' => array( |
| 359 |
'type' => 'select', |
| 360 |
'label' => __pl('button_type_label'), |
| 361 |
'default' => 'pagelayer-btn-default', |
| 362 |
'list' => array( |
| 363 |
'pagelayer-btn-default' => __pl('btn_type_default'), |
| 364 |
'pagelayer-btn-primary' => __pl('btn_type_primary'), |
| 365 |
'pagelayer-btn-secondary' => __pl('btn_type_secondary'), |
| 366 |
'pagelayer-btn-success' => __pl('btn_type_success'), |
| 367 |
'pagelayer-btn-info' => __pl('btn_type_info'), |
| 368 |
'pagelayer-btn-warning' => __pl('btn_type_warning'), |
| 369 |
'pagelayer-btn-danger' => __pl('btn_type_danger'), |
| 370 |
'pagelayer-btn-dark' => __pl('btn_type_dark'), |
| 371 |
'pagelayer-btn-light' => __pl('btn_type_light'), |
| 372 |
'pagelayer-btn-link' => __pl('btn_type_link') |
| 373 |
), |
| 374 |
), |
| 375 |
'size' => array( |
| 376 |
'type' => 'radio', |
| 377 |
'label' => __pl('button_size_label'), |
| 378 |
'default' => 'pagelayer-btn-large', |
| 379 |
'list' => array( |
| 380 |
'pagelayer-btn-mini' => __pl('mini'), |
| 381 |
'pagelayer-btn-small' => __pl('small'), |
| 382 |
'pagelayer-btn-large' => __pl('large'), |
| 383 |
'pagelayer-btn-extra-large' => __pl('extra_large'), |
| 384 |
'pagelayer-btn-double-large' => __pl('double_large'), |
| 385 |
'pagelayer-btn-custom' => __pl('custom'), |
| 386 |
) |
| 387 |
), |
| 388 |
'btn_custom_size' => array( |
| 389 |
'type' => 'spinner', |
| 390 |
'label' => __pl('btn_custom_size'), |
| 391 |
'min' => 1, |
| 392 |
'step' => 1, |
| 393 |
'max' => 100, |
| 394 |
'default' => 5, |
| 395 |
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val}}px calc({{val}}px *2)'], |
| 396 |
'req' => array( |
| 397 |
'size' => 'pagelayer-btn-custom' |
| 398 |
), |
| 399 |
), |
| 400 |
'icon' => array( |
| 401 |
'type' => 'icon', |
| 402 |
'label' => __pl('service_box_font_icon_label'), |
| 403 |
'default' => 'download', |
| 404 |
), |
| 405 |
'icon_position' => array( |
| 406 |
'type' => 'radio', |
| 407 |
'label' => __pl('icon_alignment'), |
| 408 |
'default' => 'pagelayer-btn-icon-left', |
| 409 |
'list' => array( |
| 410 |
'pagelayer-btn-icon-left' => __pl('left'), |
| 411 |
'pagelayer-btn-icon-right' => __pl('right') |
| 412 |
), |
| 413 |
'req' => array( |
| 414 |
'!icon' => 'none' |
| 415 |
) |
| 416 |
), |
| 417 |
'icon_spacing' => array( |
| 418 |
'type' => 'spinner', |
| 419 |
'label' => __pl('icon_spacing'), |
| 420 |
'min' => 1, |
| 421 |
'step' => 1, |
| 422 |
'max' => 100, |
| 423 |
'default' => 5, |
| 424 |
'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], |
| 425 |
'req' => array( |
| 426 |
'!icon' => 'none' |
| 427 |
), |
| 428 |
), |
| 429 |
'full_width' => array( |
| 430 |
'type' => 'checkbox', |
| 431 |
'label' => __pl('stretch'), |
| 432 |
'css' => ['{{element}} a' => 'width: 100%; text-align: center;'] |
| 433 |
), |
| 434 |
'align' => array( |
| 435 |
'type' => 'radio', |
| 436 |
'label' => __pl('obj_align_label'), |
| 437 |
'default' => 'left', |
| 438 |
'list' => array( |
| 439 |
'left' => __pl('left'), |
| 440 |
'center' => __pl('center'), |
| 441 |
'right' => __pl('right') |
| 442 |
), |
| 443 |
'req' => array( |
| 444 |
'full_width' => '' |
| 445 |
) |
| 446 |
) |
| 447 |
) |
| 448 |
) |
| 449 |
); |
| 450 |
|
| 451 |
// Social Share Button |
| 452 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_share', array( |
| 453 |
'name' => __pl('Share'), |
| 454 |
'group' => 'button', |
| 455 |
'not_visible' => 1, |
| 456 |
'func' => 'pagelayer_sc_share', |
| 457 |
'html' => ' |
| 458 |
<a class="pagelayer-ele-link pagelayer-share-{{icon}}" title="{{icon}}" href="{{social_url}}" target="_blank"> |
| 459 |
<div class="pagelayer-share-content pagelayer-{{icon}}-icon"> |
| 460 |
<div class="pagelayer-icon-holder pagelayer-share-buttons"> |
| 461 |
<i class="fa fa-{{icon}}"></i> |
| 462 |
</div> |
| 463 |
<div class="pagelayer-icon-name"> |
| 464 |
<span>{{icon_label}}</span> |
| 465 |
</div> |
| 466 |
</div> |
| 467 |
</a>', |
| 468 |
'params' => array( |
| 469 |
'icon' => array( |
| 470 |
'type' => 'icon', |
| 471 |
'label' => __pl('list_icon_label'), |
| 472 |
'default' => 'facebook-official', |
| 473 |
'list' => ['facebook', 'facebook-official', 'facebook-square', 'twitter', 'twitter-square', 'google-plus', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'skype', 'stumbleupon', 'telegram', 'tumblr', 'tumblr-square', 'vk', 'weibo', 'whatsapp', 'wordpress', 'xing', 'xing-square', 'delicious', 'dribbble'], |
| 474 |
), |
| 475 |
'text' => array( |
| 476 |
'type' => 'text', |
| 477 |
'label' => __pl('share_text_label') |
| 478 |
) |
| 479 |
) |
| 480 |
) |
| 481 |
); |
| 482 |
|
| 483 |
// Social Share Group |
| 484 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_share_grp', array( |
| 485 |
'name' => __pl('Social Share'), |
| 486 |
'group' => 'button', |
| 487 |
'func' => 'pagelayer_sc_share_grp', |
| 488 |
'params' => array( |
| 489 |
'elements' => array( |
| 490 |
'type' => 'group', |
| 491 |
'label' => __pl('social_share_grp'), |
| 492 |
'sc' => PAGELAYER_SC_PREFIX.'_share', |
| 493 |
'item_label' => array( |
| 494 |
'default' => __pl('share_item'), |
| 495 |
'param' => 'text' |
| 496 |
), |
| 497 |
'count' => 3, |
| 498 |
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('share_name'))), |
| 499 |
), |
| 500 |
'icon_size' => array( |
| 501 |
'type' => 'spinner', |
| 502 |
'label' => __pl('social_grp_size_label'), |
| 503 |
'css' => ['{{element}} i' => 'font-size: {{val}}px;', |
| 504 |
'{{element}} .pagelayer-icon-holder' => 'font-size: {{val}}px;'], |
| 505 |
'min' => 1, |
| 506 |
'step' => 1, |
| 507 |
'max' => 500, |
| 508 |
'default' => 40, |
| 509 |
), |
| 510 |
'align' => array( |
| 511 |
'type' => 'radio', |
| 512 |
'label' => __pl('obj_align_label'), |
| 513 |
'default' => 'center', |
| 514 |
'css' => 'text-align: {{val}};', |
| 515 |
'list' => array( |
| 516 |
'left' => __pl('left'), |
| 517 |
'center' => __pl('center'), |
| 518 |
'right' => __pl('right') |
| 519 |
) |
| 520 |
), |
| 521 |
'bg_shape' => array( |
| 522 |
'type' => 'radio', |
| 523 |
'label' => __pl('icon_background_shape'), |
| 524 |
'default' => 'pagelayer-social-shape-square', |
| 525 |
//'css' => ['{{element}} .fa' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);', |
| 526 |
//'{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'], |
| 527 |
'addClass' => '{{val}}', |
| 528 |
'list' => array( |
| 529 |
'pagelayer-social-bg-none' => __pl('icon_shape_none'), |
| 530 |
'pagelayer-social-shape-circle' => __pl('icon_shape_circle'), |
| 531 |
'pagelayer-social-shape-square' => __pl('icon_shape_square'), |
| 532 |
'pagelayer-social-shape-rounded' => __pl('icon_shape_rounded'), |
| 533 |
'pagelayer-social-outline-border' => __pl('icon_shape_outline') |
| 534 |
), |
| 535 |
), |
| 536 |
'bg_size' => array( |
| 537 |
'type' => 'spinner', |
| 538 |
'label' => __pl('social_grp_size_label'), |
| 539 |
'css' => ['{{element}} .pagelayer-icon-holder' => 'height: {{val}}em; width: {{val}}em;'], |
| 540 |
'min' => 1, |
| 541 |
'step' => 0.1, |
| 542 |
'max' => 5, |
| 543 |
'default' => 1.7, |
| 544 |
'req' => array( |
| 545 |
'!bg_shape' => '' |
| 546 |
) |
| 547 |
), |
| 548 |
'group_layout' => array( |
| 549 |
'type' => 'radio', |
| 550 |
'label' => __pl('layout'), |
| 551 |
'default' => 'pagelayer-btn-grp-horizontal', |
| 552 |
'css' => ['{{element}} .pagelayer-share' => 'display: inline-block;'], |
| 553 |
'list' => array( |
| 554 |
'' => __pl('vertical'), |
| 555 |
'pagelayer-btn-grp-horizontal' => __pl('horizontal') |
| 556 |
) |
| 557 |
), |
| 558 |
'show_name' => array( |
| 559 |
'type' => 'checkbox', |
| 560 |
'label' => __pl('share_icon_name_label'), |
| 561 |
'default' => 'true', |
| 562 |
'css' => ['{{element}} .pagelayer-icon-name span' => 'display: block;'], |
| 563 |
), |
| 564 |
) |
| 565 |
) |
| 566 |
); |
| 567 |
|
| 568 |
// Table |
| 569 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_table', array( |
| 570 |
'name' => __pl('table'), |
| 571 |
'group' => 'other', |
| 572 |
'func' => 'pagelayer_sc_table', |
| 573 |
'params' => array( |
| 574 |
'table' => array( |
| 575 |
'type' => 'textarea', |
| 576 |
'label' => __pl('obj_table_data_label'), |
| 577 |
'default' => 'Year,Sales,Expenses<br />2004,1000,400<br />2005,1170,460<br />2006,660,1120<br />2007,1030,540', |
| 578 |
'desc' => __pl('obj_table_data_desc'), |
| 579 |
) |
| 580 |
) |
| 581 |
) |
| 582 |
); |
| 583 |
|
| 584 |
// Call To Action |
| 585 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_call', array( |
| 586 |
'name' => __pl('Call To Action'), |
| 587 |
'group' => 'other', |
| 588 |
'func' => 'pagelayer_sc_call', |
| 589 |
'html' => '<span if={{show_ribbon}} class="pagelayer-cta-ribbon">{{ribbon_text}}</span> |
| 590 |
<div if="{{cta_image}}" class="pagelayer-cta-image" style="background-image:url({{{cta_image-url}}});"> |
| 591 |
</div> |
| 592 |
<div class="pagelayer-cta-content-holder"> |
| 593 |
<div class="pagelayer-cta-content"> |
| 594 |
<div if="{{heading}}" class="pagelayer-cta-heading">{{heading}}</div> |
| 595 |
<div if="{{subheading}}" class="pagelayer-cta-subheading">{{subheading}}</div> |
| 596 |
<div if="{{content}}" class="pagelayer-cta-text">{{content}}</div> |
| 597 |
<a if={{button_text}} class="pagelayer-btn-holder pagelayer-ele-link {{btn_type}} {{btn_size}}" href="{{button_link}}">{{button_text}}</a> |
| 598 |
</div> |
| 599 |
</div>', |
| 600 |
'params' => array( |
| 601 |
'layout' => array( |
| 602 |
'type' => 'select', |
| 603 |
'label' => __pl('cta_layout_label'), |
| 604 |
'default' => 'classic', |
| 605 |
'addClass' => 'pagelayer-cta-layout-{{val}}', |
| 606 |
'list' => array( |
| 607 |
'normal' => __pl('Normal'), |
| 608 |
'overlay' => __pl('Overlay') |
| 609 |
) |
| 610 |
), |
| 611 |
'align' => array( |
| 612 |
'type' => 'radio', |
| 613 |
'label' => __pl('cta_align_label'), |
| 614 |
'default' => '', |
| 615 |
'screen' => 1, |
| 616 |
'addClass' => 'pagelayer-cta-align-{{val}}', |
| 617 |
'list' => array( |
| 618 |
'left' => __pl('left'), |
| 619 |
'' => __pl('center'), |
| 620 |
'right' => __pl('right'), |
| 621 |
), |
| 622 |
'req' => array( |
| 623 |
'layout' => 'normal' |
| 624 |
) |
| 625 |
), |
| 626 |
'cta_image' => array( |
| 627 |
'type' => 'image', |
| 628 |
'label' => __pl('cta_image_label'), |
| 629 |
), |
| 630 |
'height' => array( |
| 631 |
'type' => 'slider', |
| 632 |
'label' => __pl('cta_img_height_label'), |
| 633 |
'css' => ['{{element}} .pagelayer-cta-image' => 'min-height: {{val}}px;'], |
| 634 |
'default' => 300, |
| 635 |
'min' => 0, |
| 636 |
'max' => 1000, |
| 637 |
'step' => 1, |
| 638 |
), |
| 639 |
'width' => array( |
| 640 |
'type' => 'slider', |
| 641 |
'label' => __pl('cta_img_width_label'), |
| 642 |
'css' => ['{{element}} .pagelayer-cta-image' => 'flex-basis: {{val}}%;', |
| 643 |
'{{element}} .pagelayer-cta-content-holder' => 'flex-basis: calc(100% - {{val}}%);'], |
| 644 |
'default' => 50, |
| 645 |
'min' => 0, |
| 646 |
'max' => 100, |
| 647 |
'step' => 1, |
| 648 |
'req' => array( |
| 649 |
'layout' => 'normal', |
| 650 |
'!align' => '' |
| 651 |
) |
| 652 |
), |
| 653 |
'heading' => array( |
| 654 |
'type' => 'text', |
| 655 |
'label' => __pl('heading_name'), |
| 656 |
'default' => 'Lorem ipsum dolor', |
| 657 |
'edit' => '.pagelayer-cta-heading', |
| 658 |
), |
| 659 |
'heading_typo' => array( |
| 660 |
'type' => 'typography', |
| 661 |
'label' => __pl('heading_typo'), |
| 662 |
'css' => ['{{element}} .pagelayer-cta-heading' => 'font-size: {{val[0]}}px; font-style: {{val[1]}}; font-weight: {{val[2]}}; font-variant: {{val[3]}}; text-decoration-line: {{val[4]}}; text-decoration-style: {{val[5]}}; line-height: {{val[6]}}em; text-transform: {{val[7]}}; letter-spacing: {{val[8]}}px; word-spacing: {{val[9]}}px;'], |
| 663 |
), |
| 664 |
'heading_shadow' => array( |
| 665 |
'type' => 'shadow', |
| 666 |
'label' => __pl('heading_shadow'), |
| 667 |
'css' => ['{{element}} .pagelayer-cta-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], |
| 668 |
), |
| 669 |
'subheading' => array( |
| 670 |
'type' => 'text', |
| 671 |
'label' => __pl('subheading_name'), |
| 672 |
'default' => 'Lorem ipsum dolor sit amet', |
| 673 |
'edit' => '.pagelayer-cta-subheading', |
| 674 |
), |
| 675 |
'content' => array( |
| 676 |
'type' => 'editor', |
| 677 |
'label' => __pl('text'), |
| 678 |
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.', |
| 679 |
'edit' => '.pagelayer-cta-text', |
| 680 |
), |
| 681 |
'content_spacing' => array( |
| 682 |
'type' => 'slider', |
| 683 |
'label' => __pl('cta_content_spacing_label'), |
| 684 |
'css' => ['{{element}} .pagelayer-cta-content' => 'padding: {{val}}px;'], |
| 685 |
'default' => 15, |
| 686 |
'min' => 0, |
| 687 |
'max' => 100, |
| 688 |
'step' => 1 |
| 689 |
), |
| 690 |
'content-align' => array( |
| 691 |
'type' => 'radio', |
| 692 |
'label' => __pl('cta_content_align_label'), |
| 693 |
'default' => 'center', |
| 694 |
'css' => ['{{element}} .pagelayer-cta-content-holder' => 'text-align: {{val}};'], |
| 695 |
'list' => array( |
| 696 |
'left' => __pl('left'), |
| 697 |
'center' => __pl('center'), |
| 698 |
'right' => __pl('right'), |
| 699 |
) |
| 700 |
), |
| 701 |
'content_valign' => array( |
| 702 |
'type' => 'radio', |
| 703 |
'label' => __pl('cta_valign_label'), |
| 704 |
'default' => 'center', |
| 705 |
'screen' => 1, |
| 706 |
'addClass' => 'pagelayer-cta-align-{{val}}', |
| 707 |
'css' => ['{{element}} .pagelayer-cta-content-holder' => 'align-items: {{val}};'], |
| 708 |
'list' => array( |
| 709 |
'flex-start' => __pl('top'), |
| 710 |
'center' => __pl('center'), |
| 711 |
'flex-end' => __pl('bottom'), |
| 712 |
), |
| 713 |
/* 'req' => array( |
| 714 |
'layout' => 'normal', |
| 715 |
'!align' => '', |
| 716 |
) */ |
| 717 |
), |
| 718 |
'content_bg' => array( |
| 719 |
'type' => 'color', |
| 720 |
'label' => __pl('cta_content_bg_label'), |
| 721 |
'default' => '#eeeeee', |
| 722 |
'css' => ['{{element}} .pagelayer-cta-content-holder' => 'background-color: {{val}}'], |
| 723 |
), |
| 724 |
'heading_color' => array( |
| 725 |
'type' => 'color', |
| 726 |
'label' => __pl('cta_content_bg_label'), |
| 727 |
'default' => '#333333', |
| 728 |
'css' => ['{{element}} .pagelayer-cta-heading' => 'color: {{val}}'], |
| 729 |
), |
| 730 |
'subheading_color' => array( |
| 731 |
'type' => 'color', |
| 732 |
'label' => __pl('cta_content_bg_label'), |
| 733 |
'default' => '#555555', |
| 734 |
'css' => ['{{element}} .pagelayer-cta-subheading' => 'color: {{val}}'], |
| 735 |
), |
| 736 |
'content_color' => array( |
| 737 |
'type' => 'color', |
| 738 |
'label' => __pl('cta_content_bg_label'), |
| 739 |
'default' => '#999999', |
| 740 |
'css' => ['{{element}} .pagelayer-cta-text' => 'color: {{val}}'], |
| 741 |
), |
| 742 |
'button_text' => array( |
| 743 |
'type' => 'text', |
| 744 |
'label' => __pl('button_text_label'), |
| 745 |
'default' => __pl('button_name'), |
| 746 |
), |
| 747 |
'button_link' => array( |
| 748 |
'type' => 'link', |
| 749 |
'label' => __pl('ctaobj_button_link_label'), |
| 750 |
'desc' => __pl('button_link_desc'), |
| 751 |
), |
| 752 |
'btn_type' => array( |
| 753 |
'type' => 'select', |
| 754 |
'label' => __pl('button_type_label'), |
| 755 |
'default' => 'pagelayer-btn-default', |
| 756 |
'list' => array( |
| 757 |
'pagelayer-btn-default' => __pl('btn_type_default'), |
| 758 |
'pagelayer-btn-primary' => __pl('btn_type_primary'), |
| 759 |
'pagelayer-btn-secondary' => __pl('btn_type_secondary'), |
| 760 |
'pagelayer-btn-success' => __pl('btn_type_success'), |
| 761 |
'pagelayer-btn-info' => __pl('btn_type_info'), |
| 762 |
'pagelayer-btn-warning' => __pl('btn_type_warning'), |
| 763 |
'pagelayer-btn-danger' => __pl('btn_type_danger'), |
| 764 |
'pagelayer-btn-dark' => __pl('btn_type_dark'), |
| 765 |
'pagelayer-btn-light' => __pl('btn_type_light'), |
| 766 |
'pagelayer-btn-link' => __pl('btn_type_link') |
| 767 |
), |
| 768 |
), |
| 769 |
'btn_size' => array( |
| 770 |
'type' => 'radio', |
| 771 |
'label' => __pl('button_size_label'), |
| 772 |
'default' => 'pagelayer-btn-large', |
| 773 |
'list' => array( |
| 774 |
'pagelayer-btn-mini' => __pl('mini'), |
| 775 |
'pagelayer-btn-small' => __pl('small'), |
| 776 |
'pagelayer-btn-large' => __pl('large'), |
| 777 |
'pagelayer-btn-extra-large' => __pl('extra_large'), |
| 778 |
'pagelayer-btn-double-large' => __pl('double_large'), |
| 779 |
'pagelayer-btn-custom' => __pl('custom'), |
| 780 |
) |
| 781 |
), |
| 782 |
'btn_custom_size' => array( |
| 783 |
'type' => 'spinner', |
| 784 |
'label' => __pl('btn_custom_size'), |
| 785 |
'min' => 1, |
| 786 |
'step' => 1, |
| 787 |
'max' => 100, |
| 788 |
'default' => 5, |
| 789 |
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val}}px {{val}}px;'], |
| 790 |
'req' => array( |
| 791 |
'btn_size' => 'pagelayer-btn-custom' |
| 792 |
), |
| 793 |
), |
| 794 |
'btn_spacing' => array( |
| 795 |
'type' => 'slider', |
| 796 |
'label' => __pl('cta_btn_spacing_label'), |
| 797 |
'css' => ['{{element}} .pagelayer-btn-holder' => 'margin-top: {{val}}px;'], |
| 798 |
'default' => 15, |
| 799 |
'min' => 0, |
| 800 |
'max' => 100, |
| 801 |
'step' => 1, |
| 802 |
), |
| 803 |
'hover_anim' => array( |
| 804 |
'type' => 'select', |
| 805 |
'label' => __pl('cta_hover_anim_label'), |
| 806 |
'default' => 'pagelayer-btn-default', |
| 807 |
'addClass' => '{{val}}', |
| 808 |
'list' => array( |
| 809 |
'' => __pl('cta_anim_none'), |
| 810 |
'pagelayer-cta-zoomin' => __pl('cta_anim_zoomin'), |
| 811 |
'pagelayer-cta-zoomout' => __pl('cta_anim_zoomout'), |
| 812 |
'pagelayer-cta-moveup' => __pl('cta_anim_moveup'), |
| 813 |
'pagelayer-cta-movedown' => __pl('cta_anim_movedown'), |
| 814 |
'pagelayer-cta-moveleft' => __pl('cta_anim_moveleft'), |
| 815 |
'pagelayer-cta-moveright' => __pl('cta_anim_moveright'), |
| 816 |
), |
| 817 |
), |
| 818 |
'show_ribbon' => array( |
| 819 |
'type' => 'checkbox', |
| 820 |
'label' => __pl('cta_show_ribbon'), |
| 821 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'position: absolute; z-index: 2;'], |
| 822 |
'default' => 'false' |
| 823 |
), |
| 824 |
'ribbon_text' => array( |
| 825 |
'type' => 'text', |
| 826 |
'label' => __pl('cta_ribbon_text_label'), |
| 827 |
'default' => __pl('This is Ribbon!'), |
| 828 |
'req' => array( |
| 829 |
'show_ribbon' => 'true' |
| 830 |
), |
| 831 |
), |
| 832 |
'ribbon_bg' => array( |
| 833 |
'type' => 'color', |
| 834 |
'label' => __pl('cta_ribbon_bg_label'), |
| 835 |
'default' => '#999999', |
| 836 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'background-color: {{val}}'], |
| 837 |
'req' => array( |
| 838 |
'show_ribbon' => 'true' |
| 839 |
), |
| 840 |
), |
| 841 |
'ribbon_color' => array( |
| 842 |
'type' => 'color', |
| 843 |
'label' => __pl('cta_ribbon_color_label'), |
| 844 |
'default' => '#ffffff', |
| 845 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'color: {{val}}'], |
| 846 |
'req' => array( |
| 847 |
'show_ribbon' => 'true' |
| 848 |
), |
| 849 |
), |
| 850 |
'ribbon_spacing' => array( |
| 851 |
'type' => 'padding', |
| 852 |
'label' => __pl('cta_ribbon_spacing'), |
| 853 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 854 |
'req' => [ |
| 855 |
'show_ribbon' => 'true' |
| 856 |
] |
| 857 |
), |
| 858 |
'ribbon_pos' => array( |
| 859 |
'type' => 'select', |
| 860 |
'label' => __pl('ribbon_pos_label'), |
| 861 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'right: 0px;'], |
| 862 |
'default' => '', |
| 863 |
'list' => array( |
| 864 |
'' => __pl('Left'), |
| 865 |
'right' => __pl('Right') |
| 866 |
), |
| 867 |
'req' => [ |
| 868 |
'show_ribbon' => 'true' |
| 869 |
] |
| 870 |
), |
| 871 |
'ribbon_top' => array( |
| 872 |
'type' => 'slider', |
| 873 |
'label' => __pl('cta_btn_spacing_label'), |
| 874 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'top: {{val}}%;'], |
| 875 |
'default' => 3, |
| 876 |
'min' => 0, |
| 877 |
'max' => 100, |
| 878 |
'step' => 1, |
| 879 |
'req' => [ |
| 880 |
'show_ribbon' => 'true', |
| 881 |
] |
| 882 |
), |
| 883 |
'ribbon_shadow' => array( |
| 884 |
'type' => 'shadow', |
| 885 |
'label' => __pl('heading_shadow'), |
| 886 |
'css' => ['{{element}} .pagelayer-cta-ribbon' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], |
| 887 |
'req' => [ |
| 888 |
'show_ribbon' => 'true', |
| 889 |
] |
| 890 |
), |
| 891 |
) |
| 892 |
) |
| 893 |
); |
| 894 |
|
| 895 |
// Modal |
| 896 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_modal', array( |
| 897 |
'name' => __pl('modal'), |
| 898 |
'group' => 'other', |
| 899 |
'func' => 'pagelayer_sc_modal', |
| 900 |
'innerHTML' => 'content', |
| 901 |
'html' => '<div class="pagelayer-modal-container"> |
| 902 |
<div class="pagelayer-modal-button"> |
| 903 |
<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{button_icon_position}}" onclick="pagelayer_render_pl_modal(this)" if="{{button_text}}"> |
| 904 |
<i class="fa fa-{{button_icon}} pagelayer-btn-icon pagelayer-icon-left"></i> |
| 905 |
<span class="pagelayer-btn-text">{{button_text}}</span> |
| 906 |
<i class="fa fa-{{button_icon}} pagelayer-btn-icon pagelayer-icon-right"></i> |
| 907 |
</a> |
| 908 |
</div> |
| 909 |
<div class="pagelayer-modal-content {{modal_style}}"> |
| 910 |
<div class="pagelayer-modal-close" onclick="pagelayer_pl_modal_close(this)"></div> |
| 911 |
<div class="pagelayer-modal-body {{modal_popup_width}}"> |
| 912 |
<div if="{{modal_title}}"class="pagelayer-modal-title">{{modal_title}}</div> |
| 913 |
<div class="pagelayer-modal-bottom-content" if-ext="{{content}}">{{content}}</div> |
| 914 |
</div> |
| 915 |
</div> |
| 916 |
</div>', |
| 917 |
'params' => array( |
| 918 |
'modal_title' => array( |
| 919 |
'type' => 'textarea', |
| 920 |
'label' => __pl('title'), |
| 921 |
'text' => __pl('modal_name') . ' ' . __pl('title'), |
| 922 |
'default' => __pl('modal_title_content_default'), |
| 923 |
), |
| 924 |
'title_align' => array( |
| 925 |
'type' => 'radio', |
| 926 |
'label' => __pl('title') . ' ' . __pl('obj_align_label'), |
| 927 |
'default' => 'left', |
| 928 |
'css' => ['{{element}} .pagelayer-modal-title' => 'text-align: {{val}}'], |
| 929 |
'list' => array( |
| 930 |
'left' => __pl('left'), |
| 931 |
'center' => __pl('center'), |
| 932 |
'right' => __pl('right') |
| 933 |
), |
| 934 |
'req' => [ |
| 935 |
'!modal_title' => '' |
| 936 |
], |
| 937 |
), |
| 938 |
'padding' => array( |
| 939 |
'type' => 'padding', |
| 940 |
'label' => __pl('title') . ' ' . __pl('padding'), |
| 941 |
'default' => 'padding: 35px', |
| 942 |
'css' => ['{{element}} .pagelayer-modal-title' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], |
| 943 |
'req' => [ |
| 944 |
'!modal_title' => '' |
| 945 |
], |
| 946 |
), |
| 947 |
'content' => array( |
| 948 |
'type' => 'editor', |
| 949 |
'label' => __pl('obj_content'), |
| 950 |
'text' => __pl('edit') . ' ' . __pl('modal_name'), |
| 951 |
'default' => __pl('content_with_tags_default'), |
| 952 |
'css' => ['{{element}} .pagelayer-modal-content' => 'display: none'], |
| 953 |
), |
| 954 |
'modal_popup_width' => array( |
| 955 |
'type' => 'slider', |
| 956 |
'label' => __pl('modal_popup_width'), |
| 957 |
'default' => 70, |
| 958 |
'min' => 20, |
| 959 |
'max' => 100, |
| 960 |
'step' => 10, |
| 961 |
'css' => ['{{element}} .pagelayer-modal-body' => 'width: {{val}}%'], |
| 962 |
), |
| 963 |
'button_text' => array( |
| 964 |
'type' => 'text', |
| 965 |
'label' => __pl('button_text_label'), |
| 966 |
'default' => 'Open Modal Box', |
| 967 |
'edit' => '.pagelayer-modal-bottom-content', |
| 968 |
), |
| 969 |
'type' => array( |
| 970 |
'type' => 'select', |
| 971 |
'label' => __pl('button_type_label'), |
| 972 |
'default' => 'pagelayer-btn-default', |
| 973 |
'list' => array( |
| 974 |
'pagelayer-btn-default' => __pl('btn_type_default'), |
| 975 |
'pagelayer-btn-primary' => __pl('btn_type_primary'), |
| 976 |
'pagelayer-btn-secondary' => __pl('btn_type_secondary'), |
| 977 |
'pagelayer-btn-success' => __pl('btn_type_success'), |
| 978 |
'pagelayer-btn-info' => __pl('btn_type_info'), |
| 979 |
'pagelayer-btn-warning' => __pl('btn_type_warning'), |
| 980 |
'pagelayer-btn-danger' => __pl('btn_type_danger'), |
| 981 |
'pagelayer-btn-dark' => __pl('btn_type_dark'), |
| 982 |
'pagelayer-btn-light' => __pl('btn_type_light'), |
| 983 |
'pagelayer-btn-link' => __pl('btn_type_link') |
| 984 |
), |
| 985 |
), |
| 986 |
'size' => array( |
| 987 |
'type' => 'radio', |
| 988 |
'label' => __pl('button_size_label'), |
| 989 |
'default' => 'pagelayer-btn-large', |
| 990 |
'list' => array( |
| 991 |
'pagelayer-btn-mini' => __pl('mini'), |
| 992 |
'pagelayer-btn-small' => __pl('small'), |
| 993 |
'pagelayer-btn-large' => __pl('large'), |
| 994 |
'pagelayer-btn-extra-large' => __pl('extra_large'), |
| 995 |
'pagelayer-btn-double-large' => __pl('double_large'), |
| 996 |
'pagelayer-btn-custom' => __pl('custom'), |
| 997 |
) |
| 998 |
), |
| 999 |
'btn_custom_size' => array( |
| 1000 |
'type' => 'spinner', |
| 1001 |
'label' => __pl('btn_custom_size'), |
| 1002 |
'min' => 1, |
| 1003 |
'step' => 1, |
| 1004 |
'max' => 100, |
| 1005 |
'default' => 5, |
| 1006 |
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val}}px {{val}}px;'], |
| 1007 |
'req' => array( |
| 1008 |
'size' => 'pagelayer-btn-custom' |
| 1009 |
) |
| 1010 |
), |
| 1011 |
'button_text' => array( |
| 1012 |
'type' => 'text', |
| 1013 |
'label' => __pl('button_text_label'), |
| 1014 |
'default' => 'Open Modal Box' |
| 1015 |
), |
| 1016 |
'button_full_width' => array( |
| 1017 |
'type' => 'checkbox', |
| 1018 |
'label' => __pl('stretch') . ' ' . __pl('button_name'), |
| 1019 |
'css' => ['{{element}} a' => 'width: 100%; text-align: center;'] |
| 1020 |
), |
| 1021 |
'button_align' => array( |
| 1022 |
'type' => 'radio', |
| 1023 |
'label' => __pl('button_name') . ' ' . __pl('obj_align_label'), |
| 1024 |
'default' => 'left', |
| 1025 |
'css' => ['{{element}} .pagelayer-modal-button' => 'text-align: {{val}}'], |
| 1026 |
'list' => array( |
| 1027 |
'left' => __pl('left'), |
| 1028 |
'center' => __pl('center'), |
| 1029 |
'right' => __pl('right') |
| 1030 |
), |
| 1031 |
'req' => array( |
| 1032 |
'!button_full_width' => 'true' |
| 1033 |
) |
| 1034 |
), |
| 1035 |
'button_icon' => array( |
| 1036 |
'type' => 'icon', |
| 1037 |
'label' => __pl('button_name') . ' ' . __pl('service_box_font_icon_label'), |
| 1038 |
'default' => 'none', |
| 1039 |
'list' => pagelayer_icon_class_list(true) |
| 1040 |
), |
| 1041 |
'icon_spacing' => array( |
| 1042 |
'type' => 'spinner', |
| 1043 |
'label' => __pl('icon_spacing'), |
| 1044 |
'min' => 1, |
| 1045 |
'step' => 1, |
| 1046 |
'max' => 100, |
| 1047 |
'default' => 5, |
| 1048 |
'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], |
| 1049 |
'req' => array( |
| 1050 |
'!button_icon' => 'none' |
| 1051 |
), |
| 1052 |
), |
| 1053 |
'button_icon_position' => array( |
| 1054 |
'type' => 'radio', |
| 1055 |
'label' => __pl('icon_alignment'), |
| 1056 |
'default' => 'pagelayer-btn-icon-left', |
| 1057 |
'list' => array( |
| 1058 |
'pagelayer-btn-icon-left' => __pl('left'), |
| 1059 |
'pagelayer-btn-icon-right' => __pl('right') |
| 1060 |
), |
| 1061 |
'req' => array( |
| 1062 |
'!button_icon' => 'none' |
| 1063 |
), |
| 1064 |
), |
| 1065 |
/* 'show_animation' => array( |
| 1066 |
'type' => 'select', |
| 1067 |
'label' => __pl('obj_show_animation_label'), |
| 1068 |
'default' => '', |
| 1069 |
'list' => array( |
| 1070 |
'' => 'None', |
| 1071 |
'bounce' => 'Bounce', |
| 1072 |
'pulse' => 'Pulse', |
| 1073 |
'rubberBand' => 'Rubber Band', |
| 1074 |
'shake' => 'Shake', |
| 1075 |
'swing' => 'Swing', |
| 1076 |
'tada' => 'Tada', |
| 1077 |
'wobble' => 'Wobble', |
| 1078 |
'jello' => 'Jello', |
| 1079 |
'bounceIn' => 'Bounce In', |
| 1080 |
'bounceInDown' => 'Bounce In Down', |
| 1081 |
'bounceInLeft' => 'Bounce In Left', |
| 1082 |
'bounceInRight' => 'Bounce In Right', |
| 1083 |
'bounceInUp' => 'Bounce In Up', |
| 1084 |
'fadeIn' => 'Fade In', |
| 1085 |
'fadeInDown' => 'Fade In Down', |
| 1086 |
'fadeInDownBig' => 'Fade In Down Big', |
| 1087 |
'fadeInLeft' => 'Fade In Left', |
| 1088 |
'fadeInLeftBig' => 'Fade In Left Big', |
| 1089 |
'fadeInRight' => 'Fade In Right', |
| 1090 |
'fadeInRightBig' => 'Fade In Right Big', |
| 1091 |
'fadeInUp' => 'Fade In Up', |
| 1092 |
'fadeInUpBig' => 'Fade In Up Big', |
| 1093 |
'flip' => 'Flip', |
| 1094 |
'flipInX' => 'Flip In X', |
| 1095 |
'flipInY' => 'Flip In Y', |
| 1096 |
'lightSpeedIn' => 'Light Speed In', |
| 1097 |
'rotateIn' => 'Rotate In', |
| 1098 |
'rotateInDownLeft' => 'Rotate In Down Left', |
| 1099 |
'rotateInDownRight' => 'Rotate In Down Right', |
| 1100 |
'rotateInUpLeft' => 'Rotate In Up Left', |
| 1101 |
'rotateInUpRight' => 'Rotate In Up Right', |
| 1102 |
'rollIn' => 'Roll In', |
| 1103 |
'zoomIn' => 'Zoom In', |
| 1104 |
'zoomInDown' => 'Zoom In Down', |
| 1105 |
'zoomInLeft' => 'Zoom In Left', |
| 1106 |
'zoomInRight' => 'Zoom In Right', |
| 1107 |
'zoomInUp' => 'Zoom In Up', |
| 1108 |
'slideInDown' => 'Slide In Down', |
| 1109 |
'slideInLeft' => 'Slide In Left', |
| 1110 |
'slideInRight' => 'Slide In Right', |
| 1111 |
'slideInUp' => 'Slide In Up', |
| 1112 |
) |
| 1113 |
), |
| 1114 |
'hide_animation' => array( |
| 1115 |
'type' => 'select', |
| 1116 |
'label' => __pl('obj_hide_animation_label'), |
| 1117 |
'default' => '', |
| 1118 |
'list' => array( |
| 1119 |
'' => 'None', |
| 1120 |
'auto' => 'Auto', |
| 1121 |
'bounce' => 'Bounce', |
| 1122 |
'pulse' => 'Pulse', |
| 1123 |
'rubberBand' => 'Rubber Band', |
| 1124 |
'shake' => 'Shake', |
| 1125 |
'swing' => 'Swing', |
| 1126 |
'tada' => 'Tada', |
| 1127 |
'wobble' => 'Wobble', |
| 1128 |
'jello' => 'Jello', |
| 1129 |
'bounceOut' => 'Bounce Out', |
| 1130 |
'bounceOutDown' => 'Bounce Out Down', |
| 1131 |
'bounceOutLeft' => 'Bounce Out Left', |
| 1132 |
'bounceOutRight' => 'Bounce Out Right', |
| 1133 |
'bounceOutUp' => 'Bounce Out Up', |
| 1134 |
'fadeOut' => 'Fade Out', |
| 1135 |
'fadeOutDown' => 'Fade Out Down', |
| 1136 |
'fadeOutDownBig' => 'Fade Out Down Big', |
| 1137 |
'fadeOutLeft' => 'Fade Out Left', |
| 1138 |
'fadeOutLeftBig' => 'Fade Out Left Big', |
| 1139 |
'fadeOutRight' => 'Fade Out Right', |
| 1140 |
'fadeOutRightBig' => 'Fade Out Right Big', |
| 1141 |
'fadeOutUp' => 'Fade Out Up', |
| 1142 |
'fadeOutUpBig' => 'Fade Out Up Big', |
| 1143 |
'flip' => 'Flip', |
| 1144 |
'flipOutX' => 'Flip Out X', |
| 1145 |
'flipOutY' => 'Flip Out Y', |
| 1146 |
'lightSpeedOut' => 'Light Speed Out', |
| 1147 |
'rotateOut' => 'Rotate Out', |
| 1148 |
'rotateOutDownLeft' => 'Rotate Out Down Left', |
| 1149 |
'rotateOutDownRight' => 'Rotate Out Down Right', |
| 1150 |
'rotateOutUpLeft' => 'Rotate Out Up Left', |
| 1151 |
'rotateOutUpRight' => 'Rotate Out Up Right', |
| 1152 |
'rollOut' => 'Roll Out', |
| 1153 |
'zoomOut' => 'Zoom Out', |
| 1154 |
'zoomOutDown' => 'Zoom Out Down', |
| 1155 |
'zoomOutLeft' => 'Zoom Out Left', |
| 1156 |
'zoomOutRight' => 'Zoom Out Right', |
| 1157 |
'zoomOutUp' => 'Zoom Out Up', |
| 1158 |
'slideOutDown' => 'Slide Out Down', |
| 1159 |
'slideOutLeft' => 'Slide Out Left', |
| 1160 |
'slideOutRight' => 'Slide Out Right', |
| 1161 |
'slideOutUp' => 'Slide Out Up', |
| 1162 |
) |
| 1163 |
) */ |
| 1164 |
), |
| 1165 |
'modal_container_style' => [ |
| 1166 |
'modal_style' => array( |
| 1167 |
'type' => 'radio', |
| 1168 |
'label' => __pl('obj_style'), |
| 1169 |
'default' => 'modal-dark', |
| 1170 |
'list' => array( |
| 1171 |
'modal-dark' => __pl('dark'), |
| 1172 |
'modal-light' => __pl('light'), |
| 1173 |
'custom' => __pl('custom') |
| 1174 |
) |
| 1175 |
), |
| 1176 |
'modal_shadow_color' => array( |
| 1177 |
'type' => 'color', |
| 1178 |
'label' => __pl('obj_shadow_color_label'), |
| 1179 |
'default' => '#0b0b0b', |
| 1180 |
'req' => array( |
| 1181 |
'modal_style' => 'custom' |
| 1182 |
), |
| 1183 |
'css' => ['{{element}} .pagelayer-modal-content' => 'background-color: {{val}}'], |
| 1184 |
), |
| 1185 |
'modal_content_body_color' => array( |
| 1186 |
'type' => 'color', |
| 1187 |
'label' => __pl('obj_content_color_label'), |
| 1188 |
'default' => '#000000', |
| 1189 |
'req' => array( |
| 1190 |
'modal_style' => 'custom' |
| 1191 |
), |
| 1192 |
'css' => ['{{element}} .pagelayer-modal-body' => 'color: {{val}}'], |
| 1193 |
), |
| 1194 |
'modal_content_color' => array( |
| 1195 |
'type' => 'color', |
| 1196 |
'label' => __pl('content body bg color'), |
| 1197 |
'default' => '#ffffff', |
| 1198 |
'req' => array( |
| 1199 |
'modal_style' => 'custom' |
| 1200 |
), |
| 1201 |
'css' => ['{{element}} .pagelayer-modal-body' => 'background-color: {{val}}'], |
| 1202 |
), |
| 1203 |
'modal_close_color' => array( |
| 1204 |
'type' => 'color', |
| 1205 |
'label' => __pl('Close button color'), |
| 1206 |
'default' => '#ffffff', |
| 1207 |
'css' => ['{{element}} .pagelayer-modal-close::before' => 'background-color:{{val}}', '{{element}} .pagelayer-modal-close::after' => 'background-color:{{val}}'], |
| 1208 |
'req' => array( |
| 1209 |
'modal_style' => 'custom', |
| 1210 |
) |
| 1211 |
), |
| 1212 |
], |
| 1213 |
'modal_title_style' => [ |
| 1214 |
'modal_title_bgcolor' => array( |
| 1215 |
'type' => 'color', |
| 1216 |
'label' => __pl('title') . ' ' .__pl('obj_shadow_color_label'), |
| 1217 |
'default' => '#3D54DF', |
| 1218 |
'css' => ['{{element}} .pagelayer-modal-title' => 'background-color: {{val}}'], |
| 1219 |
'req' => [ |
| 1220 |
'!modal_title' => '' |
| 1221 |
], |
| 1222 |
), |
| 1223 |
'modal_title_color' => array( |
| 1224 |
'type' => 'color', |
| 1225 |
'label' => __pl('title') . ' ' . __pl('list_text_color_label'), |
| 1226 |
'default' => '#ffffff', |
| 1227 |
'css' => ['{{element}} .pagelayer-modal-title' => 'color: {{val}}'], |
| 1228 |
'req' => [ |
| 1229 |
'!modal_title' => '' |
| 1230 |
], |
| 1231 |
) |
| 1232 |
], |
| 1233 |
'styles' => [ |
| 1234 |
'modal_container_style' => __pl('modal_container_style'), |
| 1235 |
'modal_title_style' => __pl('modal_title_style'), |
| 1236 |
] |
| 1237 |
) |
| 1238 |
); |
| 1239 |
|
| 1240 |
// Splash Screen |
| 1241 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_splash', array( |
| 1242 |
'name' => __pl('Splash Screen'), |
| 1243 |
'group' => 'other', |
| 1244 |
'func' => 'pagelayer_sc_splash', |
| 1245 |
'innerHTML' => 'content', |
| 1246 |
'html' => '<div class="pagelayer-splash-container pagelayer-splash-{{modal_style}}"> |
| 1247 |
<span class="pagelayer-splash-close"></span> |
| 1248 |
<div class="pagelayer-splash-content"> |
| 1249 |
{{content}} |
| 1250 |
</div> |
| 1251 |
</div>', |
| 1252 |
'params' => array( |
| 1253 |
'content' => array( |
| 1254 |
'type' => 'editor', |
| 1255 |
'label' => __pl('obj_content'), |
| 1256 |
'text' => __pl('edit') . ' ' . __pl('popup_name'), |
| 1257 |
'default' => __pl('content_with_tags_default'), |
| 1258 |
), |
| 1259 |
'delay' => array( |
| 1260 |
'type' => 'text', |
| 1261 |
'label' => __pl('popup_delay_label'), |
| 1262 |
'default' => '1000' |
| 1263 |
), |
| 1264 |
'display' => array( |
| 1265 |
'type' => 'select', |
| 1266 |
'label' => __pl('display'), |
| 1267 |
'default' => 'once', |
| 1268 |
'list' => array( |
| 1269 |
'always' => __pl('always'), |
| 1270 |
'once' => __pl('once') |
| 1271 |
) |
| 1272 |
), |
| 1273 |
'modal_style' => array( |
| 1274 |
'type' => 'radio', |
| 1275 |
'label' => __pl('obj_style'), |
| 1276 |
'default' => 'dark', |
| 1277 |
'list' => array( |
| 1278 |
'dark' => __pl('dark'), |
| 1279 |
'light' => __pl('light'), |
| 1280 |
'custom' => __pl('custom') |
| 1281 |
) |
| 1282 |
), |
| 1283 |
'modal_shadow_color' => array( |
| 1284 |
'type' => 'color', |
| 1285 |
'label' => __pl('obj_shadow_color_label'), |
| 1286 |
'default' => '#0b0b0b', |
| 1287 |
'css' => ['{{element}} .pagelayer-splash-container ' => 'background:{{val}}'], |
| 1288 |
'req' => array( |
| 1289 |
'modal_style' => 'custom' |
| 1290 |
) |
| 1291 |
), |
| 1292 |
'modal_content_color' => array( |
| 1293 |
'type' => 'color', |
| 1294 |
'label' => __pl('obj_content_color_label'), |
| 1295 |
'default' => '#0b0b0b', |
| 1296 |
'css' => ['{{element}} .pagelayer-splash-container ' => 'color:{{val}}'], |
| 1297 |
'req' => array( |
| 1298 |
'modal_style' => 'custom' |
| 1299 |
) |
| 1300 |
), |
| 1301 |
'modal_close_color' => array( |
| 1302 |
'type' => 'color', |
| 1303 |
'label' => __pl('Close button color'), |
| 1304 |
'default' => '#ffffff', |
| 1305 |
'css' => ['{{element}} .pagelayer-splash-close::after, {{element}} .pagelayer-splash-close::before ' => 'background-color:{{val}}'], |
| 1306 |
'req' => array( |
| 1307 |
'modal_style' => 'custom' |
| 1308 |
) |
| 1309 |
), |
| 1310 |
'modal_content_width' => array( |
| 1311 |
'type' => 'slider', |
| 1312 |
'label' => __pl('Splash content width'), |
| 1313 |
'default' => '90', |
| 1314 |
'css' => ['{{element}} .pagelayer-splash-content' => 'width:{{val}}%'], |
| 1315 |
), |
| 1316 |
'modal_content_padding' => array( |
| 1317 |
'type' => 'padding', |
| 1318 |
'label' => __pl('Splash content padding'), |
| 1319 |
'screen' => 1, |
| 1320 |
'units' => ['px', 'em', '%'], |
| 1321 |
'css' => ['{{element}} .pagelayer-splash-content' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'], |
| 1322 |
), |
| 1323 |
) |
| 1324 |
) |
| 1325 |
); |
| 1326 |
|
| 1327 |
// Chart |
| 1328 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_chart', array( |
| 1329 |
'name' => __pl('chart'), |
| 1330 |
'group' => 'other', |
| 1331 |
'func' => 'pagelayer_sc_chart', |
| 1332 |
'params' => array( |
| 1333 |
'title' => array( |
| 1334 |
'type' => 'text', |
| 1335 |
'label' => __pl('obj_title_label'), |
| 1336 |
'default' => 'Company Performance' |
| 1337 |
), |
| 1338 |
'type' => array( |
| 1339 |
'type' => 'select', |
| 1340 |
'label' => __pl('google_charts_type_label'), |
| 1341 |
'desc' => __pl('google_charts_type_desc'), |
| 1342 |
'default' => 'ColumnChart', |
| 1343 |
'list' => array( |
| 1344 |
'ColumnChart' => __pl('google_charts_type_list_column'), |
| 1345 |
'BarChart' => __pl('google_charts_type_list_bar'), |
| 1346 |
'AreaChart' => __pl('google_charts_type_list_area'), |
| 1347 |
'SteppedAreaChart' => __pl('google_charts_type_list_stepped'), |
| 1348 |
'PieChart' => __pl('google_charts_type_list_pie'), |
| 1349 |
'PieChart3D' => __pl('google_charts_type_list3d'), |
| 1350 |
'LineChart' => __pl('google_charts_type_list_line'), |
| 1351 |
'Histogram' => __pl('google_charts_type_list_histogram') |
| 1352 |
) |
| 1353 |
), |
| 1354 |
'donut' => array( |
| 1355 |
'type' => 'checkbox', |
| 1356 |
'label' => __pl('google_charts_donut_label'), |
| 1357 |
'default' => '', |
| 1358 |
'req' => array( |
| 1359 |
'type', |
| 1360 |
'val' =>'PieChart' |
| 1361 |
) |
| 1362 |
), |
| 1363 |
'colors' => array( |
| 1364 |
'type' => 'text', |
| 1365 |
'label' => __pl('google_charts_colors_label'), |
| 1366 |
'desc' => __pl('google_charts_colors_desc'), |
| 1367 |
), |
| 1368 |
'transparency' => array( |
| 1369 |
'type' => 'checkbox', |
| 1370 |
'label' => __pl('google_charts_transparency_label'), |
| 1371 |
), |
| 1372 |
'table' => array( |
| 1373 |
'type' => 'textarea', |
| 1374 |
'label' => __pl('obj_table_data_label'), |
| 1375 |
'desc' => __pl('google_charts_data_desc'), |
| 1376 |
'default' => 'Year,Sales,Expenses<br />2004,1000,400<br />2005,1170,460<br />2006,660,1120<br />2007,1030,540', |
| 1377 |
) |
| 1378 |
) |
| 1379 |
) |
| 1380 |
); |
| 1381 |
|
| 1382 |
// Countdown Timer |
| 1383 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_countdown', array( |
| 1384 |
'name' => __pl('Countdown Timer'), |
| 1385 |
'group' => 'other', |
| 1386 |
'func' => 'pagelayer_sc_countdown', |
| 1387 |
'html' => '<div class="pagelayer-countdown-container"> |
| 1388 |
<center> |
| 1389 |
<div class="pagelayer-countdown-days pagelayer-countdown-item"> |
| 1390 |
<div class="pagelayer-days-count pagelayer-count" /> |
| 1391 |
<span class="pagelayer-countdown-name">Days</span> |
| 1392 |
</div> |
| 1393 |
<div class="pagelayer-countdown-hours pagelayer-countdown-item"> |
| 1394 |
<div class="pagelayer-hours-count pagelayer-count" /> |
| 1395 |
<span class="pagelayer-countdown-name">Hours</span> |
| 1396 |
</div> |
| 1397 |
<div class="pagelayer-countdown-minutes pagelayer-countdown-item"> |
| 1398 |
<div class="pagelayer-minutes-count pagelayer-count" /> |
| 1399 |
<span class="pagelayer-countdown-name">Minutes</span> |
| 1400 |
</div> |
| 1401 |
<div class="pagelayer-countdown-seconds pagelayer-countdown-item"> |
| 1402 |
<div class="pagelayer-seconds-count pagelayer-count" /> |
| 1403 |
<span class="pagelayer-countdown-name">Seconds</span> |
| 1404 |
</div> |
| 1405 |
</center> |
| 1406 |
</div>', |
| 1407 |
'params' => array( |
| 1408 |
'date' => array( |
| 1409 |
'type' => 'datetime', |
| 1410 |
'displayMode' => 'datetime', // date | datetime (default) |
| 1411 |
'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s ) |
| 1412 |
'label' => __pl('date_picker_label'), |
| 1413 |
'default' => '', |
| 1414 |
), |
| 1415 |
'time_zone' => array( |
| 1416 |
'type' => 'select', |
| 1417 |
'label' => __pl('countdown_time_zone'), |
| 1418 |
'default' => 'server_time', |
| 1419 |
'list' => array( |
| 1420 |
'server_time' => __pl('server_time'), |
| 1421 |
'user_local' => __pl('user_local') |
| 1422 |
), |
| 1423 |
), |
| 1424 |
'format' => array( |
| 1425 |
'type' => 'text', |
| 1426 |
'label' => __pl('format'), |
| 1427 |
'default' => 'yowdHMS', |
| 1428 |
'desc' => __pl('countdown_format_description') |
| 1429 |
), |
| 1430 |
'block_color' => array( |
| 1431 |
'type' => 'color', |
| 1432 |
'label' => __pl('bg_color'), |
| 1433 |
'default' => '#eeeeee', |
| 1434 |
), |
| 1435 |
'font_color' => array( |
| 1436 |
'type' => 'color', |
| 1437 |
'label' => __pl('text_color'), |
| 1438 |
'default' => '#333333', |
| 1439 |
), |
| 1440 |
'blocks_size' => array( |
| 1441 |
'type' => 'spinner', |
| 1442 |
'label' => __pl('countdown_blocks_size'), |
| 1443 |
'min' => 1, |
| 1444 |
'step' => 1, |
| 1445 |
'max' => 480, |
| 1446 |
'default' => 130, |
| 1447 |
), |
| 1448 |
'digits_font_size' => array( |
| 1449 |
'type' => 'slider', |
| 1450 |
'label' => __pl('countdown_digits_size'), |
| 1451 |
'min' => 8, |
| 1452 |
'step' => 1, |
| 1453 |
'max' => 300, |
| 1454 |
'default' => 40 |
| 1455 |
), |
| 1456 |
'labels_font_size' => array( |
| 1457 |
'type' => 'slider', |
| 1458 |
'label' => __pl('countdown_labels_size'), |
| 1459 |
'min' => 6, |
| 1460 |
'step' => 1, |
| 1461 |
'max' => 96, |
| 1462 |
'default' => 11 |
| 1463 |
), |
| 1464 |
'blocks_space' => array( |
| 1465 |
'type' => 'spinner', |
| 1466 |
'label' => __pl('countdown_block_space'), |
| 1467 |
'min' => 0, |
| 1468 |
'step' => 1, |
| 1469 |
'max' => 160, |
| 1470 |
'default' => 10, |
| 1471 |
), |
| 1472 |
) |
| 1473 |
) |
| 1474 |
); |
| 1475 |
|
| 1476 |
// Pricing Table |
| 1477 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_pricing', array( |
| 1478 |
'name' => __pl('Pricing Table'), |
| 1479 |
'group' => 'other', |
| 1480 |
'func' => 'pagelayer_sc_pricing', |
| 1481 |
'holder' => '.pagelayer-pricing-ul', |
| 1482 |
'html' => '<div class="pagelayer-pricing-details"> |
| 1483 |
<div if="{{ribbon_text}}" class="pagelayer-pricing-ribbon"> |
| 1484 |
{{ribbon_text}} |
| 1485 |
</div> |
| 1486 |
<h3 if="{{plan_title}}" class="pagelayer-pricing-type">{{plan_title}}</h3> |
| 1487 |
<h4 if="{{plan_sub_title}}" class="pagelayer-pricing-sub-title">{{plan_sub_title}}</h4> |
| 1488 |
<div class="pagelayer-pricing-rate-section"> |
| 1489 |
<h4 if="{{original_price}}" class="pagelayer-pricing-price pagelayer-pricing-original"> |
| 1490 |
<span if="{{currency}}" class="pagelayer-pricing-currency pagelayer-pricing-currency-{{currency_position}}">{{currency}}</span> |
| 1491 |
<span class="pagelayer-pricing-rate" >{{original_price}}</span> |
| 1492 |
</h4> |
| 1493 |
<h2 class="pagelayer-pricing-price"> |
| 1494 |
<span if="{{currency}}" class="pagelayer-pricing-currency pagelayer-pricing-currency-{{currency_position}}">{{currency}}</span> |
| 1495 |
<span if="{{price}}" class="pagelayer-pricing-rate">{{price}}</span> |
| 1496 |
</h2> |
| 1497 |
</div> |
| 1498 |
<p if="{{period}}" class="pagelayer-pricing-duration">per {{period}}</p> |
| 1499 |
</div> |
| 1500 |
<div class="pagelayer-pricing-features"> |
| 1501 |
<ul class="pagelayer-pricing-ul"></ul> |
| 1502 |
<a if="{{button_url}}" href="{{button_url}}" class="pagelayer-pricing-btn pagelayer-button pagelayer-ele-link">{{button_text}}</a> |
| 1503 |
<p if="{{additional_info}}" class="pagelayer-pricing-additional">{{additional_info}}</p> |
| 1504 |
</div>', |
| 1505 |
'params' => array( |
| 1506 |
'plan_title' => array( |
| 1507 |
'type' => 'text', |
| 1508 |
'label' => __pl('pricing_type_label'), |
| 1509 |
'default' => 'Standard', |
| 1510 |
), |
| 1511 |
'plan_sub_title' => array( |
| 1512 |
'type' => 'text', |
| 1513 |
'label' => __pl('pricing_subtitle_label'), |
| 1514 |
'default' => 'For beginners', |
| 1515 |
), |
| 1516 |
'currency' => array( |
| 1517 |
'type' => 'text', |
| 1518 |
'label' => __pl('pricing_currency_type_label'), |
| 1519 |
'default' => '$', |
| 1520 |
), |
| 1521 |
'price' => array( |
| 1522 |
'type' => 'text', |
| 1523 |
'label' => __pl('pricing_value_label'), |
| 1524 |
'default' => '49', |
| 1525 |
), |
| 1526 |
'sale' => array( |
| 1527 |
'type' => 'checkbox', |
| 1528 |
'label' => __pl('sale'), |
| 1529 |
), |
| 1530 |
'original_price' => array( |
| 1531 |
'type' => 'text', |
| 1532 |
'label' => __pl('pricing_old_value_label'), |
| 1533 |
'default' => '100', |
| 1534 |
'css' => ['{{element}} .pagelayer-pricing-original '=> 'display:inline-block;'], |
| 1535 |
'req' => array( |
| 1536 |
'sale' => 'true' |
| 1537 |
) |
| 1538 |
), |
| 1539 |
'period' => array( |
| 1540 |
'type' => 'text', |
| 1541 |
'label' => __pl('pricing_period_label'), |
| 1542 |
'default' => 'month', |
| 1543 |
), |
| 1544 |
'elements' => array( |
| 1545 |
'type' => 'group', |
| 1546 |
'label' => __pl('Features Item'), |
| 1547 |
'sc' => PAGELAYER_SC_PREFIX.'_list_item', |
| 1548 |
'item_label' => array( |
| 1549 |
'default' => __pl('Features Item'), |
| 1550 |
'param' => 'text' |
| 1551 |
), |
| 1552 |
'count' => 2, |
| 1553 |
'text' => __pl('Add Feature'), |
| 1554 |
), |
| 1555 |
'button_text' => array( |
| 1556 |
'type' => 'text', |
| 1557 |
'label' => __pl('button_text_label'), |
| 1558 |
'default' => 'Buy', |
| 1559 |
), |
| 1560 |
'button_url' => array( |
| 1561 |
'type' => 'link', |
| 1562 |
'label' => __pl('pricing_btn_url_label'), |
| 1563 |
), |
| 1564 |
'additional_info' => array( |
| 1565 |
'type' => 'textarea', |
| 1566 |
'label' => __pl('additional_info'), |
| 1567 |
'default' => 'Any Additional Info', |
| 1568 |
), |
| 1569 |
'ribbon' => array( |
| 1570 |
'type' => 'checkbox', |
| 1571 |
'label' => __pl('ribbion_display_label'), |
| 1572 |
), |
| 1573 |
'ribbon_text' => array( |
| 1574 |
'type' => 'text', |
| 1575 |
'label' => __pl('pricing_ribbion_text'), |
| 1576 |
'default' => 'popular', |
| 1577 |
'css' => ['{{element}} .pagelayer-pricing-ribbon'=> 'display:inline-block;'], |
| 1578 |
'req' => array( |
| 1579 |
'ribbon' => 'true' |
| 1580 |
) |
| 1581 |
), |
| 1582 |
), |
| 1583 |
//styles |
| 1584 |
'currency_style' => [ |
| 1585 |
'currency_color' => array( |
| 1586 |
'type' => 'color', |
| 1587 |
'label' => __pl('price_currency_color'), |
| 1588 |
'default' => '#ffffff', |
| 1589 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'color:{{val}}'], |
| 1590 |
), |
| 1591 |
'currency_size' => array( |
| 1592 |
'label' => __pl('price_currency_size'), |
| 1593 |
'type' => 'slider', |
| 1594 |
'min' => 0, |
| 1595 |
'max' => 60, |
| 1596 |
'default' => 20, |
| 1597 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'font-size:{{val}}px;'], |
| 1598 |
), |
| 1599 |
'currency_position' => array( |
| 1600 |
'type' => 'radio', |
| 1601 |
'label' => __pl('currency_position_label'), |
| 1602 |
'default' => 'top', |
| 1603 |
'list' => array( |
| 1604 |
'top' => __pl('top'), |
| 1605 |
'middle' => __pl('middle'), |
| 1606 |
'bottom' => __pl('bottom'), |
| 1607 |
), |
| 1608 |
), |
| 1609 |
], |
| 1610 |
'price_style' => [ |
| 1611 |
'price_size' => array( |
| 1612 |
'label' => __pl('plan_price_size'), |
| 1613 |
'type' => 'slider', |
| 1614 |
'min' => 0, |
| 1615 |
'max' => 60, |
| 1616 |
'default' => 45, |
| 1617 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'font-size:{{val}}px;'], |
| 1618 |
), |
| 1619 |
'price_sale_size' => array( |
| 1620 |
'label' => __pl('old_price_size'), |
| 1621 |
'type' => 'slider', |
| 1622 |
'min' => 0, |
| 1623 |
'max' => 60, |
| 1624 |
'default' => 20, |
| 1625 |
'css' => ['{{element}} .pagelayer-pricing-original .pagelayer-pricing-rate' => 'font-size:{{val}}px;'], |
| 1626 |
), |
| 1627 |
'price_margin' => array( |
| 1628 |
'type' => 'padding', |
| 1629 |
'label' => __pl('price_margin'), |
| 1630 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'margin: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 1631 |
), |
| 1632 |
'price_padding' => array( |
| 1633 |
'type' => 'padding', |
| 1634 |
'label' => __pl('price_padding'), |
| 1635 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 1636 |
), |
| 1637 |
'price_state' => array( |
| 1638 |
'type' => 'radio', |
| 1639 |
'label' => __pl('price_state_label'), |
| 1640 |
'default' => 'normal', |
| 1641 |
'list' => array( |
| 1642 |
'normal' => __pl('Normal'), |
| 1643 |
'hover' => __pl('Hover'), |
| 1644 |
), |
| 1645 |
), |
| 1646 |
'price_line_height' => array( |
| 1647 |
'label' => __pl('price_line_height'), |
| 1648 |
'type' => 'slider', |
| 1649 |
'min' => 0, |
| 1650 |
'max' => 500, |
| 1651 |
'default' => 30, |
| 1652 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'line-height:{{val}}%;'], |
| 1653 |
), |
| 1654 |
'price_color' => array( |
| 1655 |
'type' => 'color', |
| 1656 |
'label' => __pl('price_value_color'), |
| 1657 |
'default' => '#ffffff', |
| 1658 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate ' => 'color:{{val}}'], |
| 1659 |
'req' => ['price_state' => 'normal'], |
| 1660 |
), |
| 1661 |
'old_price_color' => array( |
| 1662 |
'type' => 'color', |
| 1663 |
'label' => __pl('old_price_value_color'), |
| 1664 |
'default' => '#ffffff', |
| 1665 |
'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate ' => 'color:{{val}}'], |
| 1666 |
'req' => ['price_state' => 'normal'], |
| 1667 |
), |
| 1668 |
'price_background_color' => array( |
| 1669 |
'type' => 'color', |
| 1670 |
'label' => __pl('price_background_color'), |
| 1671 |
'default' => '#ffffff01', |
| 1672 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'background-color:{{val}}'], |
| 1673 |
'req' => ['price_state' => 'normal'], |
| 1674 |
), |
| 1675 |
'price_color_hover' => array( |
| 1676 |
'type' => 'color', |
| 1677 |
'label' => __pl('price_value_color_hover'), |
| 1678 |
'default' => '#000000', |
| 1679 |
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'color:{{val}}'], |
| 1680 |
'req' => ['price_state' => 'hover'], |
| 1681 |
), |
| 1682 |
'price_background_color_hover' => array( |
| 1683 |
'type' => 'color', |
| 1684 |
'label' => __pl('price_background_color_hover'), |
| 1685 |
'default' => '#ffffff01', |
| 1686 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'background-color:{{val}}'], |
| 1687 |
'req' => ['price_state' => 'hover'], |
| 1688 |
), |
| 1689 |
'price_border_type' => array( |
| 1690 |
'type' => 'select', |
| 1691 |
'label' => __pl('price_border_type'), |
| 1692 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-style: {{val}};'], |
| 1693 |
'list' => [ |
| 1694 |
'' => __pl('none'), |
| 1695 |
'solid' => __pl('solid'), |
| 1696 |
'double' => __pl('double'), |
| 1697 |
'dotted' => __pl('dotted'), |
| 1698 |
'dashed' => __pl('dashed'), |
| 1699 |
'groove' => __pl('groove'), |
| 1700 |
], |
| 1701 |
), |
| 1702 |
'price_border_color' => array( |
| 1703 |
'type' => 'color', |
| 1704 |
'label' => __pl('price_value_border_color'), |
| 1705 |
'default' => '#42414f', |
| 1706 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-color: {{val}};'], |
| 1707 |
'req' => ['!price_border_type' => ''] |
| 1708 |
), |
| 1709 |
'price_border_width' => array( |
| 1710 |
'type' => 'padding', |
| 1711 |
'label' => __pl('price_value_border_width'), |
| 1712 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], |
| 1713 |
'req' => ['!price_border_type' => ''] |
| 1714 |
), |
| 1715 |
'price_border_radius' => array( |
| 1716 |
'type' => 'padding', |
| 1717 |
'label' => __pl('price_value_border_radius'), |
| 1718 |
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 1719 |
'req' => ['!price_border_type' => ''] |
| 1720 |
), |
| 1721 |
], |
| 1722 |
'title_style' => [ |
| 1723 |
'title_color' => array( |
| 1724 |
'type' => 'color', |
| 1725 |
'label' => __pl('plan_title_color'), |
| 1726 |
'default' => '#ffffff', |
| 1727 |
'css' => ['{{element}} .pagelayer-pricing-type' => 'color:{{val}}'], |
| 1728 |
), |
| 1729 |
'subtitle_color' => array( |
| 1730 |
'type' => 'color', |
| 1731 |
'label' => __pl('plan_subtitle_color'), |
| 1732 |
'default' => '#ffffff', |
| 1733 |
'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'color:{{val}}'], |
| 1734 |
), |
| 1735 |
'title_size' => array( |
| 1736 |
'label' => __pl('plan_title_size'), |
| 1737 |
'type' => 'slider', |
| 1738 |
'min' => 0, |
| 1739 |
'max' => 50, |
| 1740 |
'default' => 18, |
| 1741 |
'css' => ['{{element}} .pagelayer-pricing-type' => 'font-size:{{val}}px;'], |
| 1742 |
), |
| 1743 |
], |
| 1744 |
'period_style' => [ |
| 1745 |
'period_color' => array( |
| 1746 |
'type' => 'color', |
| 1747 |
'label' => __pl('plan_period_color'), |
| 1748 |
'default' => '#ffffff', |
| 1749 |
'css' => ['{{element}} .pagelayer-pricing-duration' => 'color:{{val}}'], |
| 1750 |
), |
| 1751 |
'period_size' => array( |
| 1752 |
'label' => __pl('plan_period_size'), |
| 1753 |
'type' => 'slider', |
| 1754 |
'min' => 0, |
| 1755 |
'max' => 50, |
| 1756 |
'default' => 18, |
| 1757 |
'css' => ['{{element}} .pagelayer-pricing-duration' => 'font-size:{{val}}px;'], |
| 1758 |
), |
| 1759 |
], |
| 1760 |
'header_style' => [ |
| 1761 |
'header_background_color' => array( |
| 1762 |
'type' => 'color', |
| 1763 |
'label' => __pl('plan_header_background_color'), |
| 1764 |
'default' => '#1e1558', |
| 1765 |
'css' => ['{{element}} .pagelayer-pricing-details' => 'background-color:{{val}}'], |
| 1766 |
), |
| 1767 |
'header_padding' => array( |
| 1768 |
'label' => __pl('plan_price_padding'), |
| 1769 |
'type' => 'slider', |
| 1770 |
'min' => 0, |
| 1771 |
'max' => 200, |
| 1772 |
'default' => 10, |
| 1773 |
'css' => ['{{element}} .pagelayer-pricing-details' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'], |
| 1774 |
), |
| 1775 |
], |
| 1776 |
'feature_style' => [ |
| 1777 |
'features_background_color' => array( |
| 1778 |
'type' => 'color', |
| 1779 |
'label' => __pl('plan_features_background_color'), |
| 1780 |
'default' => '#f3f6f6ff', |
| 1781 |
'css' => ['{{element}} .pagelayer-pricing-features' => 'background-color:{{val}}'], |
| 1782 |
), |
| 1783 |
'features_text_color' => array( |
| 1784 |
'type' => 'color', |
| 1785 |
'label' => __pl('plan_features_text_color'), |
| 1786 |
'default' => '#e5e5e5', |
| 1787 |
'css' => ['{{element}} .pagelayer-pricing-details' => 'color:{{val}}'], |
| 1788 |
), |
| 1789 |
'features_padding' => array( |
| 1790 |
'label' => __pl('plan_features_padding'), |
| 1791 |
'type' => 'slider', |
| 1792 |
'min' => 0, |
| 1793 |
'max' => 200, |
| 1794 |
'default' => 10, |
| 1795 |
'css' => ['{{element}} .pagelayer-pricing-features' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'], |
| 1796 |
), |
| 1797 |
], |
| 1798 |
'button_style' => [ |
| 1799 |
'btn-state' => array( |
| 1800 |
'type' => 'radio', |
| 1801 |
'label' => __pl('price_state_label'), |
| 1802 |
'default' => 'normal', |
| 1803 |
'list' => array( |
| 1804 |
'normal' => __pl('Normal'), |
| 1805 |
'hover' => __pl('Hover'), |
| 1806 |
), |
| 1807 |
), |
| 1808 |
'button_text_color' => array( |
| 1809 |
'type' => 'color', |
| 1810 |
'label' => __pl('plan_button_text_color'), |
| 1811 |
'default' => '#ffffff', |
| 1812 |
'css' => ['{{element}} .pagelayer-pricing-btn' => 'color:{{val}}'], |
| 1813 |
'req' => ['btn-state' => 'normal'], |
| 1814 |
), |
| 1815 |
'button_background_color' => array( |
| 1816 |
'type' => 'color', |
| 1817 |
'label' => __pl('plan_button_background_color'), |
| 1818 |
'default' => '#1e1558', |
| 1819 |
'css' => ['{{element}} .pagelayer-pricing-btn' => 'background-color:{{val}}'], |
| 1820 |
'req' => ['btn-state' => 'normal'], |
| 1821 |
), |
| 1822 |
'button_text_color_hover' => array( |
| 1823 |
'type' => 'color', |
| 1824 |
'label' => __pl('plan_button_text_color_hover'), |
| 1825 |
'default' => '#ffffff', |
| 1826 |
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'color:{{val}}'], |
| 1827 |
'req' => ['btn-state' => 'hover'], |
| 1828 |
), |
| 1829 |
'button_background_color_hover' => array( |
| 1830 |
'type' => 'color', |
| 1831 |
'label' => __pl('plan_button_background_color_hover'), |
| 1832 |
'default' => '#1e1558', |
| 1833 |
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'background-color:{{val}}'], |
| 1834 |
'req' => ['btn-state' => 'hover'], |
| 1835 |
), |
| 1836 |
'button_border_type' => array( |
| 1837 |
'type' => 'select', |
| 1838 |
'label' => __pl('price_btn_border_type'), |
| 1839 |
'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-style: {{val}};'], |
| 1840 |
'list' => [ |
| 1841 |
'' => __pl('none'), |
| 1842 |
'solid' => __pl('solid'), |
| 1843 |
'double' => __pl('double'), |
| 1844 |
'dotted' => __pl('dotted'), |
| 1845 |
'dashed' => __pl('dashed'), |
| 1846 |
'groove' => __pl('groove'), |
| 1847 |
], |
| 1848 |
), |
| 1849 |
'button_border_color' => array( |
| 1850 |
'type' => 'color', |
| 1851 |
'label' => __pl('price_btn_border_color'), |
| 1852 |
'default' => '#42414f', |
| 1853 |
'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-color: {{val}};'], |
| 1854 |
'req' => ['!button_border_type' => ''] |
| 1855 |
), |
| 1856 |
'button_border_width' => array( |
| 1857 |
'type' => 'padding', |
| 1858 |
'label' => __pl('price_btn_border_width'), |
| 1859 |
'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], |
| 1860 |
'req' => ['!button_border_type' => ''] |
| 1861 |
), |
| 1862 |
'button_border_radius' => array( |
| 1863 |
'type' => 'padding', |
| 1864 |
'label' => __pl('price_btn_border_radius'), |
| 1865 |
'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 1866 |
'req' => ['!button_border_type' => ''] |
| 1867 |
), |
| 1868 |
'button_padding' => array( |
| 1869 |
'type' => 'padding', |
| 1870 |
'label' => __pl('price_btn_padding'), |
| 1871 |
'css' => ['{{element}} .pagelayer-pricing-btn' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 1872 |
), |
| 1873 |
], |
| 1874 |
'ribbon_style' => [ |
| 1875 |
'ribbon_text_size' => array( |
| 1876 |
'type' => 'slider', |
| 1877 |
'label' => __pl('ribbon_text_size'), |
| 1878 |
'min' => '0', |
| 1879 |
'max' => '50', |
| 1880 |
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'font-size:{{val}}px;'], |
| 1881 |
), |
| 1882 |
'ribbon_background' => array( |
| 1883 |
'type' => 'color', |
| 1884 |
'label' => __pl('ribbon_background_color'), |
| 1885 |
'default' => '#ce4210ff', |
| 1886 |
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'background-color:{{val}}'], |
| 1887 |
), |
| 1888 |
'ribbon_text_color' => array( |
| 1889 |
'type' => 'color', |
| 1890 |
'label' => __pl('ribbon_text_color'), |
| 1891 |
'default' => '#ffffff', |
| 1892 |
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'color:{{val}}'], |
| 1893 |
), |
| 1894 |
], |
| 1895 |
'styles' => [ |
| 1896 |
'currency_style' => __pl('currency_style'), |
| 1897 |
'price_style' => __pl('price_style'), |
| 1898 |
'title_style' => __pl('title_style'), |
| 1899 |
'period_style' => __pl('period_style'), |
| 1900 |
'header_style' => __pl('header_style'), |
| 1901 |
'feature_style' => __pl('feature_style'), |
| 1902 |
'button_style' => __pl('button_style'), |
| 1903 |
'ribbon_style' => __pl('ribbon_style'), |
| 1904 |
], |
| 1905 |
) |
| 1906 |
); |
| 1907 |
|
| 1908 |
// Contact Form |
| 1909 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_contact', array( |
| 1910 |
'name' => __pl('Contact Form'), |
| 1911 |
'group' => 'other', |
| 1912 |
'func' => 'pagelayer_sc_contact', |
| 1913 |
'params' => array( |
| 1914 |
'elements' => array( |
| 1915 |
'type' => 'group', |
| 1916 |
'sc' => PAGELAYER_SC_PREFIX.'_contact_item', |
| 1917 |
'items' => array( |
| 1918 |
'label' => array( |
| 1919 |
'default' => __pl('label'), |
| 1920 |
'param' => 'title' |
| 1921 |
), |
| 1922 |
'count' => 1 |
| 1923 |
), |
| 1924 |
'text' => __pl('Add New Field'), |
| 1925 |
), |
| 1926 |
'customize_input_filed' => array( |
| 1927 |
'type' => 'checkbox', |
| 1928 |
'label' => __pl('customize_style_fields'), |
| 1929 |
), |
| 1930 |
'label_color' => array( |
| 1931 |
'type' => 'color', |
| 1932 |
'label' => __pl('label_color'), |
| 1933 |
'default' => '', |
| 1934 |
'req' => array( |
| 1935 |
'customize_input_filed' => 'true' |
| 1936 |
) |
| 1937 |
), |
| 1938 |
'placeholder_color' => array( |
| 1939 |
'type' => 'color', |
| 1940 |
'label' => __pl('placeholder_color'), |
| 1941 |
'default' => '', |
| 1942 |
'req' => array( |
| 1943 |
'customize_input_filed' => 'true' |
| 1944 |
) |
| 1945 |
), |
| 1946 |
'input_height' => array( |
| 1947 |
'type' => 'spinner', |
| 1948 |
'label' => __pl('text_field_height'), |
| 1949 |
'default' => '', |
| 1950 |
'min' => 1, |
| 1951 |
'max' => 1000, |
| 1952 |
'step' => 1, |
| 1953 |
'req' => array( |
| 1954 |
'customize_input_filed' => 'true' |
| 1955 |
) |
| 1956 |
), |
| 1957 |
'input_color' => array( |
| 1958 |
'type' => 'color', |
| 1959 |
'label' => __pl('text_color'), |
| 1960 |
'default' => '', |
| 1961 |
'req' => array( |
| 1962 |
'customize_input_filed' => 'true' |
| 1963 |
) |
| 1964 |
), |
| 1965 |
'border_width' => array( |
| 1966 |
'type' => 'spinner', |
| 1967 |
'label' => __pl('border_width'), |
| 1968 |
'default' => '', |
| 1969 |
'min' => 1, |
| 1970 |
'max' => 1000, |
| 1971 |
'step' => 1, |
| 1972 |
'req' => array( |
| 1973 |
'customize_input_filed' => 'true' |
| 1974 |
) |
| 1975 |
), |
| 1976 |
'border_color' => array( |
| 1977 |
'type' => 'color', |
| 1978 |
'label' => __pl('border_color'), |
| 1979 |
'default' => '', |
| 1980 |
'req' => array( |
| 1981 |
'customize_input_filed' => 'true' |
| 1982 |
) |
| 1983 |
), |
| 1984 |
'border_radius' => array( |
| 1985 |
'type' => 'spinner', |
| 1986 |
'label' => __pl('border_radius'), |
| 1987 |
'default' => '', |
| 1988 |
'min' => 1, |
| 1989 |
'max' => 1000, |
| 1990 |
'step' => 1, |
| 1991 |
'req' => array( |
| 1992 |
'customize_input_filed' => 'true' |
| 1993 |
) |
| 1994 |
), |
| 1995 |
'input_hover' => array( |
| 1996 |
'type' => 'checkbox', |
| 1997 |
'label' => __pl('focus_fields_label'), |
| 1998 |
), |
| 1999 |
'hover_border_color' => array( |
| 2000 |
'type' => 'color', |
| 2001 |
'label' => __pl('border_color'), |
| 2002 |
'default' => '', |
| 2003 |
'req' => array( |
| 2004 |
'input_hover' => 'true' |
| 2005 |
) |
| 2006 |
), |
| 2007 |
'box_checked' => array( |
| 2008 |
'type' => 'checkbox', |
| 2009 |
'label' => __pl('checkbox_selected_style'), |
| 2010 |
), |
| 2011 |
'box_color' => array( |
| 2012 |
'type' => 'color', |
| 2013 |
'label' => __pl('color'), |
| 2014 |
'default' => '', |
| 2015 |
'req' => array( |
| 2016 |
'box_checked' => 'true' |
| 2017 |
) |
| 2018 |
), |
| 2019 |
'box_bg_color' => array( |
| 2020 |
'type' => 'color', |
| 2021 |
'label' => __pl('bg_color'), |
| 2022 |
'default' => '', |
| 2023 |
'req' => array( |
| 2024 |
'box_checked' => 'true' |
| 2025 |
) |
| 2026 |
), |
| 2027 |
'submit' => array( |
| 2028 |
'type' => 'text', |
| 2029 |
'label' => __pl('Submit button label'), |
| 2030 |
'default' => __pl('submit'), |
| 2031 |
), |
| 2032 |
'submit_font_family' => array( |
| 2033 |
'type' => 'select', |
| 2034 |
'label' => __pl('opt_google_fonts_family'), |
| 2035 |
'default' => 'default', |
| 2036 |
'list' => pagelayer_font_family(), |
| 2037 |
), |
| 2038 |
'submit_color' => array( |
| 2039 |
'type' => 'color', |
| 2040 |
'label' => __pl('button_text_color'), |
| 2041 |
'default' => '' |
| 2042 |
), |
| 2043 |
'submit_bg_color' => array( |
| 2044 |
'type' => 'color', |
| 2045 |
'label' => __pl('button_background_color'), |
| 2046 |
'default' => '' |
| 2047 |
), |
| 2048 |
'submit_hover' => array( |
| 2049 |
'type' => 'checkbox', |
| 2050 |
'label' => __pl('hover_effect_button_label'), |
| 2051 |
), |
| 2052 |
'submit_hover_color' => array( |
| 2053 |
'type' => 'color', |
| 2054 |
'label' => __pl('button_text_color'), |
| 2055 |
'default' => '', |
| 2056 |
'req' => array( |
| 2057 |
'submit_hover' => 'true' |
| 2058 |
) |
| 2059 |
), |
| 2060 |
'submit_hover_bg_color' => array( |
| 2061 |
'type' => 'color', |
| 2062 |
'label' => __pl('button_background_color'), |
| 2063 |
'default' => '', |
| 2064 |
'req' => array( |
| 2065 |
'submit_hover' => 'true' |
| 2066 |
) |
| 2067 |
), |
| 2068 |
'stretch' => array( |
| 2069 |
'type' => 'checkbox', |
| 2070 |
'label' => __pl('stretch_button_label'), |
| 2071 |
), |
| 2072 |
'redirect_show' => array( |
| 2073 |
'type' => 'checkbox', |
| 2074 |
'label' => __pl('redirect_url'), |
| 2075 |
), |
| 2076 |
'redirecturl' => array( |
| 2077 |
'type' => 'link', |
| 2078 |
'label' => __pl('redirect_urllabel'), |
| 2079 |
'desc' => __pl('redirect_urldesc'), |
| 2080 |
'req' => array( |
| 2081 |
'redirect_show' => 'true' |
| 2082 |
) |
| 2083 |
), |
| 2084 |
'captcha' => array( |
| 2085 |
'type' => 'checkbox', |
| 2086 |
'label' => __pl('Use reCAPTCHA'), |
| 2087 |
'default' => 'true', |
| 2088 |
'desc' => __pl('Protect this form from spam and abuse. Configure Google reCAPTCHA in plugin settings first.'), |
| 2089 |
), |
| 2090 |
'position' => array( |
| 2091 |
'type' => 'radio', |
| 2092 |
'label' => __pl('alignment'), |
| 2093 |
'default' => 'default', |
| 2094 |
'list' => array( |
| 2095 |
'default' => __pl('default'), |
| 2096 |
'left' => __pl('left'), |
| 2097 |
'right' => __pl('right') |
| 2098 |
), |
| 2099 |
), |
| 2100 |
'form' => array( |
| 2101 |
'type' => 'text', |
| 2102 |
'label' => __pl('Form ID'), |
| 2103 |
'desc' => __pl('Is used in e-mail template'), |
| 2104 |
), |
| 2105 |
'name' => array( |
| 2106 |
'type' => 'text', |
| 2107 |
'label' => __pl('Form name'), |
| 2108 |
'default' => __pl('Contact Form'), |
| 2109 |
'desc' => __pl('Is used in e-mail subject'), |
| 2110 |
), |
| 2111 |
) |
| 2112 |
) |
| 2113 |
); |
| 2114 |
|
| 2115 |
// Site Title |
| 2116 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_title', array( |
| 2117 |
'name' => __pl('Site Title'), |
| 2118 |
'group' => 'wordpress', |
| 2119 |
'func' => 'pagelayer_sc_wp_title', |
| 2120 |
'html' => '<div class="pagelayer-site-title"> |
| 2121 |
<a href="'.get_site_url().'" class="pagelayer-site-title-link pagelayer-ele-link"> |
| 2122 |
<img if="{{logo_img}}" src="{{{logo_img-url}}}" class="pagelayer-site-title-img" /> |
| 2123 |
<span class="pagelayer-site-title-name">{{site_name}}</span> |
| 2124 |
</a> |
| 2125 |
<div>', |
| 2126 |
'params' => array( |
| 2127 |
'site_name' => array( |
| 2128 |
'type' => 'text', |
| 2129 |
'label' => __pl('site_title'), |
| 2130 |
'desc' => __pl('site_title_desc'), |
| 2131 |
'default' => get_bloginfo( 'name' ), |
| 2132 |
), |
| 2133 |
'align' => array( |
| 2134 |
'type' => 'radio', |
| 2135 |
'label' => __pl('obj_align_label'), |
| 2136 |
'default' => 'center', |
| 2137 |
'list' => array( |
| 2138 |
'left' => __pl('left'), |
| 2139 |
'center' => __pl('center'), |
| 2140 |
'right' => __pl('right') |
| 2141 |
), |
| 2142 |
'css' => ['{{element}} div' => 'text-align:{{val}};'], |
| 2143 |
), |
| 2144 |
'font_size' => array( |
| 2145 |
'type' => 'spinner', |
| 2146 |
'label' => 'Font Size', |
| 2147 |
'default' => '', |
| 2148 |
'min' => 1, |
| 2149 |
'max' => 1000, |
| 2150 |
'step' => 1, |
| 2151 |
'css' => ['{{element}} span' => 'font-size:{{val}}px;'], |
| 2152 |
), |
| 2153 |
'color' => array( |
| 2154 |
'type' => 'color', |
| 2155 |
'label' => 'Font Color', |
| 2156 |
'default' => '', |
| 2157 |
'css' => ['{{element}} span' => 'color:{{val}};'], |
| 2158 |
), |
| 2159 |
'site_logo' => array( |
| 2160 |
'type' => 'checkbox', |
| 2161 |
'label' => __pl('site_logo'), |
| 2162 |
'desc' => __pl('site_logo_desc'), |
| 2163 |
), |
| 2164 |
'logo_img' => array( |
| 2165 |
'type' => 'image', |
| 2166 |
'label' => __pl('site_logo_select'), |
| 2167 |
'default' => '', |
| 2168 |
'req' => array( |
| 2169 |
'site_logo' => 'true' |
| 2170 |
) |
| 2171 |
), |
| 2172 |
'logo_img_size' => array( |
| 2173 |
'type' => 'dimension', |
| 2174 |
'label' => __pl('site_logo_size'), |
| 2175 |
'desc' => __pl('site_logo_size_desc'), |
| 2176 |
'default' => '', |
| 2177 |
'req' => array( |
| 2178 |
'site_logo' => 'true' |
| 2179 |
), |
| 2180 |
'css' => ['{{element}} img' => 'height:{{val[0]}}px; width:{{val[1]}}px;'], |
| 2181 |
) |
| 2182 |
), |
| 2183 |
'font_style' => [ |
| 2184 |
'site_title_font_family' => array( |
| 2185 |
'type' => 'select', |
| 2186 |
'label' => __pl('opt_google_fonts_family'), |
| 2187 |
'default' => 'default', |
| 2188 |
'list' => pagelayer_font_family(), |
| 2189 |
'css' => ['{{element}} span' => 'font-family: {{val}};'], |
| 2190 |
), |
| 2191 |
'site_title_valign' => array( |
| 2192 |
'type' => 'radio', |
| 2193 |
'label' => __pl('site_title_position'), |
| 2194 |
'default' => 'middle', |
| 2195 |
'css' => ['{{element}} .pagelayer-site-title-name' => 'vertical-align: {{val}}'], |
| 2196 |
'list' => array( |
| 2197 |
'top' => __pl('top'), |
| 2198 |
'middle' => __pl('middle'), |
| 2199 |
'bottom' => __pl('bottom') |
| 2200 |
), |
| 2201 |
'req' => array( |
| 2202 |
'site_logo' => 'true', |
| 2203 |
'logo_position' => array('','row-reverse') |
| 2204 |
) |
| 2205 |
), |
| 2206 |
'site_title_align' => array( |
| 2207 |
'type' => 'radio', |
| 2208 |
'label' => __pl('site_title_position'), |
| 2209 |
'default' => 'center', |
| 2210 |
'css' => ['{{element}} .pagelayer-site-title-name' => 'text-align: {{val}}'], |
| 2211 |
'list' => array( |
| 2212 |
'left' => __pl('left'), |
| 2213 |
'center' => __pl('center'), |
| 2214 |
'right' => __pl('right') |
| 2215 |
), |
| 2216 |
'req' => array( |
| 2217 |
'site_logo' => 'true', |
| 2218 |
'logo_position' => array('column','column-reverse') |
| 2219 |
) |
| 2220 |
) |
| 2221 |
], |
| 2222 |
'logo_style' => [ |
| 2223 |
'logo_position' => array( |
| 2224 |
'type' => 'radio', |
| 2225 |
'label' => __pl('site_logo_position'), |
| 2226 |
'default' => 'left', |
| 2227 |
'css' => ['{{element}} a' => 'flex-direction: {{val}}'], |
| 2228 |
'list' => array( |
| 2229 |
'' => __pl('left'), |
| 2230 |
'row-reverse' => __pl('right'), |
| 2231 |
'column' => __pl('top'), |
| 2232 |
'column-reverse' => __pl('bottom') |
| 2233 |
), |
| 2234 |
'req' => array( |
| 2235 |
'site_logo' => 'true' |
| 2236 |
) |
| 2237 |
), |
| 2238 |
'space_logo' => array( |
| 2239 |
'type' => 'padding', |
| 2240 |
'label' => __pl('site_logo_margin'), |
| 2241 |
'desc' => __pl('site_logo_margin_desc'), |
| 2242 |
'req' => array( |
| 2243 |
'site_logo' => 'true' |
| 2244 |
), |
| 2245 |
'css' => ['{{element}} img' => 'margin:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], |
| 2246 |
) |
| 2247 |
], |
| 2248 |
'styles' => [ |
| 2249 |
'logo_style' => __pl('logo_style'), |
| 2250 |
'font_style' => __pl('font_style'), |
| 2251 |
] |
| 2252 |
) |
| 2253 |
); |
| 2254 |
|
| 2255 |
// Primary Menu |
| 2256 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_menu', array( |
| 2257 |
'name' => __pl('Primary Menu'), |
| 2258 |
'group' => 'wordpress', |
| 2259 |
'func' => 'pagelayer_sc_wp_menu', |
| 2260 |
'html' => '<div class="pagelayer-wp-menu-container pagelayer-menu-alignment-{{align}}"> |
| 2261 |
</div>', |
| 2262 |
'params' => array( |
| 2263 |
'align' => array( |
| 2264 |
'type' => 'radio', |
| 2265 |
'label' => 'Alignment', |
| 2266 |
'default' => 'right', |
| 2267 |
'list' => array( |
| 2268 |
'left' => 'Left', |
| 2269 |
'center' => 'Center', |
| 2270 |
'right' => 'Right' |
| 2271 |
) |
| 2272 |
), |
| 2273 |
'font_size' => array( |
| 2274 |
'type' => 'spinner', |
| 2275 |
'label' => 'Font Size', |
| 2276 |
'default' => '', |
| 2277 |
'min' => 1, |
| 2278 |
'max' => 1000, |
| 2279 |
'step' => 1 |
| 2280 |
), |
| 2281 |
'color' => array( |
| 2282 |
'type' => 'color', |
| 2283 |
'label' => 'Color', |
| 2284 |
'default' => '' |
| 2285 |
), |
| 2286 |
'background_color' => array( |
| 2287 |
'type' => 'color', |
| 2288 |
'label' => 'Background Color', |
| 2289 |
'default' => '' |
| 2290 |
), |
| 2291 |
'font_family' => array( |
| 2292 |
'type' => 'select', |
| 2293 |
'label' => 'Font Family', |
| 2294 |
'default' => 'default', |
| 2295 |
'list' => pagelayer_font_family(), |
| 2296 |
), |
| 2297 |
'item_spacing' => array( |
| 2298 |
'type' => 'spinner', |
| 2299 |
'label' => 'Menu Item Spacing', |
| 2300 |
'default' => '', |
| 2301 |
'min' => 0, |
| 2302 |
'max' => 1000, |
| 2303 |
'step' => 0.5 |
| 2304 |
), |
| 2305 |
'line_height' => array( |
| 2306 |
'type' => 'spinner', |
| 2307 |
'label' => 'Menu Item Height', |
| 2308 |
'default' => '', |
| 2309 |
'min' => 0, |
| 2310 |
'max' => 1000, |
| 2311 |
'step' => 1 |
| 2312 |
), |
| 2313 |
'li_submenu' => array( |
| 2314 |
'type' => 'checkbox', |
| 2315 |
'label' => 'Style for Dropdown Menu', |
| 2316 |
'desc' => 'Check this to add style for dropdown menu items', |
| 2317 |
), |
| 2318 |
'dd_font_size' => array( |
| 2319 |
'type' => 'spinner', |
| 2320 |
'label' => 'Font Size', |
| 2321 |
'default' => '', |
| 2322 |
'min' => 1, |
| 2323 |
'max' => 1000, |
| 2324 |
'step' => 1, |
| 2325 |
'req' => array( |
| 2326 |
'li_submenu' => 'true' |
| 2327 |
) |
| 2328 |
), |
| 2329 |
'dd_color' => array( |
| 2330 |
'type' => 'color', |
| 2331 |
'label' => 'Color', |
| 2332 |
'default' => '', |
| 2333 |
'req' => array( |
| 2334 |
'li_submenu' => 'true' |
| 2335 |
) |
| 2336 |
), |
| 2337 |
'dd_background_color' => array( |
| 2338 |
'type' => 'color', |
| 2339 |
'label' => 'Background Color', |
| 2340 |
'default' => '', |
| 2341 |
'req' => array( |
| 2342 |
'li_submenu' => 'true' |
| 2343 |
) |
| 2344 |
), |
| 2345 |
'dd_line_height' => array( |
| 2346 |
'type' => 'spinner', |
| 2347 |
'label' => 'Menu Item Height', |
| 2348 |
'default' => '', |
| 2349 |
'min' => 0, |
| 2350 |
'max' => 1000, |
| 2351 |
'step' => 1, |
| 2352 |
'req' => array( |
| 2353 |
'li_submenu' => 'true' |
| 2354 |
) |
| 2355 |
), |
| 2356 |
'active_page' => array( |
| 2357 |
'type' => 'checkbox', |
| 2358 |
'label' => 'Active Page Effect', |
| 2359 |
'desc' => 'Check this to add style for active menu item', |
| 2360 |
), |
| 2361 |
'active_page_bg' => array( |
| 2362 |
'type' => 'color', |
| 2363 |
'label' => 'Active Page Background', |
| 2364 |
'default' => '', |
| 2365 |
'req' => array( |
| 2366 |
'active_page' => 'true' |
| 2367 |
) |
| 2368 |
), |
| 2369 |
'active_page_color' => array( |
| 2370 |
'type' => 'color', |
| 2371 |
'label' => 'Active Page Color', |
| 2372 |
'default' => '', |
| 2373 |
'req' => array( |
| 2374 |
'active_page' => 'true' |
| 2375 |
) |
| 2376 |
) |
| 2377 |
) |
| 2378 |
) |
| 2379 |
); |
| 2380 |
|
| 2381 |
// Posts Grid |
| 2382 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_grid', array( |
| 2383 |
'name' => __pl('Posts Grid'), |
| 2384 |
'group' => 'wordpress', |
| 2385 |
'func' => 'pagelayer_sc_wp_posts_grid', |
| 2386 |
'html' => '<div class="pagelayer-wp-posts-grid-container"></div>', |
| 2387 |
'params' => array( |
| 2388 |
'query_type' => array( |
| 2389 |
'type' => 'radio', |
| 2390 |
'label' => __pl('posts_grid_query_type_label'), |
| 2391 |
'desc' => __pl('posts_grid_query_type_desc'), |
| 2392 |
'default' => 'simple', |
| 2393 |
'list' => array( |
| 2394 |
'simple' => __pl('simple'), |
| 2395 |
'custom' => __pl('posts_grid_custom_query_label'), |
| 2396 |
'ids' => __pl('ids'), |
| 2397 |
) |
| 2398 |
), |
| 2399 |
'post_type' => array( |
| 2400 |
'type' => 'select', |
| 2401 |
'label' => __pl('posts_grid_post_type_label'), |
| 2402 |
'desc' => __pl('posts_grid_post_type_desc'), |
| 2403 |
'list' => pagelayer_post_types(), |
| 2404 |
'req' => array( |
| 2405 |
'query_type' => 'simple' |
| 2406 |
) |
| 2407 |
), |
| 2408 |
'category' => array( |
| 2409 |
'type' => 'text', |
| 2410 |
'label' => __pl('posts_grid_category_label'), |
| 2411 |
'desc' => __pl('posts_grid_category_desc'), |
| 2412 |
'req' => array( |
| 2413 |
'post_type' => 'post' |
| 2414 |
) |
| 2415 |
), |
| 2416 |
'tag' => array( |
| 2417 |
'type' => 'text', |
| 2418 |
'label' => __pl('posts_grid_tag_label'), |
| 2419 |
'desc' => __pl('posts_grid_tag_desc'), |
| 2420 |
'req' => array( |
| 2421 |
'post_type' => 'post' |
| 2422 |
) |
| 2423 |
), |
| 2424 |
'custom_tax' => array( |
| 2425 |
'type' => 'text', |
| 2426 |
'label' => __pl('posts_grid_custom_tax_label'), |
| 2427 |
'req' => array( |
| 2428 |
'query_type' => 'simple' |
| 2429 |
) |
| 2430 |
), |
| 2431 |
'custom_tax_field' => array( |
| 2432 |
'type' => 'select', |
| 2433 |
'label' => __pl('posts_grid_custom_tax_field_label'), |
| 2434 |
'default' => 'slug', |
| 2435 |
'list' => array( |
| 2436 |
'term_id' => __pl('term_id'), |
| 2437 |
'slug' => __pl('slug'), |
| 2438 |
'name' => __pl('name') |
| 2439 |
), |
| 2440 |
'req' => array( |
| 2441 |
'query_type' => 'simple' |
| 2442 |
) |
| 2443 |
), |
| 2444 |
'custom_tax_terms' => array( |
| 2445 |
'type' => 'text', |
| 2446 |
'label' => __pl('posts_grid_custom_tax_term_label'), |
| 2447 |
'desc' => __pl('posts_grid_custom_tax_term_desc'), |
| 2448 |
'req' => array( |
| 2449 |
'query_type' => 'simple' |
| 2450 |
) |
| 2451 |
), |
| 2452 |
'posts_per_page' => array( |
| 2453 |
'type' => 'spinner', |
| 2454 |
'label' => __pl('posts_grid_posts_per_page_label'), |
| 2455 |
'default' => 4, // For backward compatibility in lite version must be 3 posts per page |
| 2456 |
'min' => 1, |
| 2457 |
'max' => 40, |
| 2458 |
'step' => 1, |
| 2459 |
'req' => array( |
| 2460 |
'query_type' => 'simple' |
| 2461 |
) |
| 2462 |
), |
| 2463 |
'posts_order' => array( |
| 2464 |
'type' => 'radio', |
| 2465 |
'label' => __pl('posts_grid_sort_order'), |
| 2466 |
'default' => 'DESC', |
| 2467 |
'list' => array( |
| 2468 |
'ASC' => __pl('posts_grid_sort_order_ascending'), |
| 2469 |
'DESC' => __pl('posts_grid_sort_order_descending') |
| 2470 |
), |
| 2471 |
'req' => array( |
| 2472 |
'query_type' => 'simple' |
| 2473 |
) |
| 2474 |
), |
| 2475 |
'custom_query' => array( |
| 2476 |
'type' => 'textarea', |
| 2477 |
'label' => __pl('posts_grid_custom_query_label'), |
| 2478 |
'desc' => __pl('posts_grid_custom_query_desc'), |
| 2479 |
'req' => array( |
| 2480 |
'query_type' => 'custom' |
| 2481 |
) |
| 2482 |
), |
| 2483 |
'ids' => array( |
| 2484 |
'type' => 'text', |
| 2485 |
'label' => __pl('posts_grid_ids_label'), |
| 2486 |
'desc' => __pl('posts_grid_ids_desc'), |
| 2487 |
'req' => array( |
| 2488 |
'query_type' => 'ids' |
| 2489 |
) |
| 2490 |
), |
| 2491 |
'columns' => array( |
| 2492 |
'type' => 'radio', |
| 2493 |
'label' => __pl('columns_count'), |
| 2494 |
'default' => 2, |
| 2495 |
'list' => array( |
| 2496 |
1 => 1, |
| 2497 |
2 => 2, |
| 2498 |
3 => 3, |
| 2499 |
4 => 4, |
| 2500 |
6 => 6 |
| 2501 |
) |
| 2502 |
), |
| 2503 |
'template' => array( |
| 2504 |
'type' => 'select', |
| 2505 |
'label' => __pl('posts_grid_template_label'), |
| 2506 |
'list' => array(), |
| 2507 |
), |
| 2508 |
'posts_gap' => array( |
| 2509 |
'type' => 'slider', |
| 2510 |
'label' => __pl('posts_grid_posts_gap_label'), |
| 2511 |
'default' => 30, |
| 2512 |
'min' => 0, |
| 2513 |
'max' => 100, |
| 2514 |
'step' => 10, |
| 2515 |
), |
| 2516 |
'show_featured_image' => array( |
| 2517 |
'type' => 'checkbox', |
| 2518 |
'label' => __pl('posts_grid_show_featured_image'), |
| 2519 |
'default' => 'true', |
| 2520 |
), |
| 2521 |
'image_size' => array( |
| 2522 |
'type' => 'radio', |
| 2523 |
'label' => __pl('obj_image_size_label'), |
| 2524 |
'default' => 'large', |
| 2525 |
'list' => array( |
| 2526 |
'full' => __pl('full'), |
| 2527 |
'large' => __pl('large'), |
| 2528 |
'medium' => __pl('medium'), |
| 2529 |
'thumbnail' => __pl('thumbnail'), |
| 2530 |
'custom' => __pl('custom') |
| 2531 |
), |
| 2532 |
'req' => array( |
| 2533 |
'show_featured_image' => 'true' |
| 2534 |
), |
| 2535 |
), |
| 2536 |
'image_custom_size' => array( |
| 2537 |
'type' => 'text', |
| 2538 |
'desc' => __pl('image_custom_size_label'), |
| 2539 |
'req' => array( |
| 2540 |
'image_size' => 'custom' |
| 2541 |
), |
| 2542 |
), |
| 2543 |
'title_tag' => array( |
| 2544 |
'type' => 'radio', |
| 2545 |
'label' => __pl('posts_grid_title_tag'), |
| 2546 |
'default' => 'h2', |
| 2547 |
'list' => array( |
| 2548 |
'h1' => 'H1', |
| 2549 |
'h2' => 'H2', |
| 2550 |
'h3' => 'H3', |
| 2551 |
'h4' => 'H4', |
| 2552 |
'h5' => 'H5', |
| 2553 |
'hide' => __pl('posts_grid_title_tag_none'), |
| 2554 |
) |
| 2555 |
), |
| 2556 |
'show_date_comments' => array( |
| 2557 |
'type' => 'checkbox', |
| 2558 |
'label' => __pl('posts_grid_show_date_comments'), |
| 2559 |
'default' => 'true', |
| 2560 |
), |
| 2561 |
'show_content' => array( |
| 2562 |
'type' => 'radio', |
| 2563 |
'label' => __pl('posts_grid_show_content'), |
| 2564 |
'default' => 'short', |
| 2565 |
'list' => array( |
| 2566 |
'short' => __pl('posts_grid_show_content_short'), |
| 2567 |
'full' => __pl('posts_grid_show_content_full'), |
| 2568 |
'excerpt' => __pl('posts_grid_show_content_excerpt'), |
| 2569 |
'hide' => __pl('posts_grid_show_content_none'), |
| 2570 |
) |
| 2571 |
), |
| 2572 |
'short_content_length' => array( |
| 2573 |
'type' => 'slider', |
| 2574 |
'label' => __pl('posts_grid_short_content_length'), |
| 2575 |
'default' => 200, |
| 2576 |
'min' => 0, |
| 2577 |
'max' => 1000, |
| 2578 |
'step' => 20, |
| 2579 |
'req' => array( |
| 2580 |
'show_content' => 'short' |
| 2581 |
), |
| 2582 |
), |
| 2583 |
'read_more_text' => array( |
| 2584 |
'type' => 'text', |
| 2585 |
'label' => __pl('posts_grid_read_more_text_label'), |
| 2586 |
'default' => __pl('posts_grid_read_more_text') |
| 2587 |
), |
| 2588 |
'display_style' => array( |
| 2589 |
'type' => 'radio', |
| 2590 |
'label' => __pl('posts_grid_display_style'), |
| 2591 |
'default' => 'show_all', |
| 2592 |
'list' => array( |
| 2593 |
'show_all' => __pl('show_all'), |
| 2594 |
'load_more' => __pl('posts_grid_display_style_load_more'), |
| 2595 |
'pagination' => __pl('posts_grid_display_style_pagination') |
| 2596 |
) |
| 2597 |
), |
| 2598 |
'load_more_text' => array( |
| 2599 |
'type' => 'text', |
| 2600 |
'label' => __pl('posts_grid_load_more_text_label'), |
| 2601 |
'default' => __pl('posts_grid_load_more_text_default'), // "Load More" |
| 2602 |
'req' => array( |
| 2603 |
'display_style' => 'load_more' |
| 2604 |
) |
| 2605 |
), |
| 2606 |
'filter' => array( |
| 2607 |
'type' => 'radio', |
| 2608 |
'label' => __pl('posts_grid_filter_label'), |
| 2609 |
'desc' => __pl('posts_grid_filter_desc'), |
| 2610 |
'default' => 'none', |
| 2611 |
'list' => array( |
| 2612 |
'none' => __pl('none'), |
| 2613 |
'cats' => __pl('posts_grid_filter_by_first_tax'), |
| 2614 |
'tags' => __pl('posts_grid_filter_by_second_tax'), |
| 2615 |
'both' => __pl('posts_grid_filter_by_both') |
| 2616 |
), |
| 2617 |
'req' => array( |
| 2618 |
'query_type' => 'simple' |
| 2619 |
) |
| 2620 |
), |
| 2621 |
'filter_tax_1' => array( |
| 2622 |
'type' => 'select', |
| 2623 |
'label' => __pl('posts_grid_filter_first_tax_name'), |
| 2624 |
'desc' => '', |
| 2625 |
'default' => 'category', |
| 2626 |
'list' => pagelayer_tax_list('category'), |
| 2627 |
'req' => array( |
| 2628 |
'filter' => array( 'cats', 'both' ) |
| 2629 |
) |
| 2630 |
), |
| 2631 |
'filter_tax_2' => array( |
| 2632 |
'type' => 'select', |
| 2633 |
'label' => __pl('posts_grid_filter_second_tax_name'), |
| 2634 |
'desc' => '', |
| 2635 |
'default' => 'post_tag', |
| 2636 |
'list' => pagelayer_tax_list('post_tag'), |
| 2637 |
'req' => array( |
| 2638 |
'filter' => array( 'tags', 'both' ) |
| 2639 |
) |
| 2640 |
), |
| 2641 |
'filter_btn_color' => array( |
| 2642 |
'type' => 'color', |
| 2643 |
'label' => __pl('button_color_label'), |
| 2644 |
'default' => 'pagelayer-btn-color-silver', |
| 2645 |
'list' => array( |
| 2646 |
'none' => __pl('none'), |
| 2647 |
'pagelayer-btn-color-silver' => __pl('silver'), |
| 2648 |
'pagelayer-btn-color-red' => __pl('red'), |
| 2649 |
'pagelayer-btn-color-pink-dreams' => __pl('pink_dreams'), |
| 2650 |
'pagelayer-btn-color-warm' => __pl('warm'), |
| 2651 |
'pagelayer-btn-color-hot-summer' => __pl('hot_summer'), |
| 2652 |
'pagelayer-btn-color-olive-garden' => __pl('olive_garden'), |
| 2653 |
'pagelayer-btn-color-green-grass' => __pl('green_grass'), |
| 2654 |
'pagelayer-btn-color-skyline' => __pl('skyline'), |
| 2655 |
'pagelayer-btn-color-aqua-blue' => __pl('aqua_blue'), |
| 2656 |
'pagelayer-btn-color-violet' => __pl('violet'), |
| 2657 |
'pagelayer-btn-color-dark-grey' => __pl('dark_grey'), |
| 2658 |
'pagelayer-btn-color-black' => __pl('black') |
| 2659 |
), |
| 2660 |
'req' => array( |
| 2661 |
'!filter' => 'none' |
| 2662 |
) |
| 2663 |
), |
| 2664 |
'filter_btn_divider' => array( |
| 2665 |
'type' => 'text', |
| 2666 |
'label' => __pl('filter_links_divider'), |
| 2667 |
'default' => '/', |
| 2668 |
'req' => array( |
| 2669 |
'filter_btn_color' => 'none' |
| 2670 |
) |
| 2671 |
), |
| 2672 |
'filter_cats_text' => array( |
| 2673 |
'type' => 'text', |
| 2674 |
'label' => __pl('posts_grid_filter_first_tax_text_label'), |
| 2675 |
'default' => __pl('categories') . ':', |
| 2676 |
'req' => array( |
| 2677 |
'filter' => array('cats', 'both') |
| 2678 |
) |
| 2679 |
), |
| 2680 |
'filter_tags_text' => array( |
| 2681 |
'type' => 'text', |
| 2682 |
'label' => __pl('posts_grid_filter_second_tax_text_label'), |
| 2683 |
'default' => __pl('tags') . ':', |
| 2684 |
'req' => array( |
| 2685 |
'filter' => array('tags', 'both') |
| 2686 |
) |
| 2687 |
), |
| 2688 |
'filter_all_text' => array( |
| 2689 |
'type' => 'text', |
| 2690 |
'label' => __pl('posts_grid_filter_view_all_text_label'), |
| 2691 |
'default' => __pl('all'), |
| 2692 |
'req' => array( |
| 2693 |
'!filter' => 'none' |
| 2694 |
) |
| 2695 |
) |
| 2696 |
) |
| 2697 |
) |
| 2698 |
); |
| 2699 |
|
| 2700 |
// Posts Slider |
| 2701 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_slider', array( |
| 2702 |
'name' => __pl('Posts Slider'), |
| 2703 |
'group' => 'wordpress', |
| 2704 |
'func' => 'pagelayer_sc_wp_posts_slider', |
| 2705 |
'html' => '<div class="pagelayer-wp-posts-slider-container"> |
| 2706 |
<div class="pagelayer-wp-posts-slider-ul"></div> |
| 2707 |
</div>', |
| 2708 |
'params' => array( |
| 2709 |
'post_type' => array( |
| 2710 |
'type' => 'select', |
| 2711 |
'label' => __pl('posts_slider_post_types_label'), |
| 2712 |
'default' => 'post', |
| 2713 |
'list' => pagelayer_post_types(true), |
| 2714 |
), |
| 2715 |
'category' => array( |
| 2716 |
'type' => 'text', |
| 2717 |
'label' => __pl('posts_grid_category_label'), |
| 2718 |
'desc' => __pl('posts_grid_category_desc'), |
| 2719 |
'req' => array( |
| 2720 |
'post_type' => 'post' |
| 2721 |
), |
| 2722 |
), |
| 2723 |
'tag' => array( |
| 2724 |
'type' => 'text', |
| 2725 |
'label' => __pl('posts_grid_tag_label'), |
| 2726 |
'desc' => __pl('posts_grid_tag_desc'), |
| 2727 |
'req' => array( |
| 2728 |
'post_type' => 'post' |
| 2729 |
), |
| 2730 |
), |
| 2731 |
'custom_tax' => array( |
| 2732 |
'type' => 'text', |
| 2733 |
'label' => __pl('posts_grid_custom_tax_label'), |
| 2734 |
'default' => '' |
| 2735 |
), |
| 2736 |
'custom_tax_field' => array( |
| 2737 |
'type' => 'select', |
| 2738 |
'label' => __pl('posts_grid_custom_tax_field_label'), |
| 2739 |
'default' => 'slug', |
| 2740 |
'list' => array( |
| 2741 |
'term_id' => __pl('term_id'), |
| 2742 |
'slug' => __pl('slug'), |
| 2743 |
'name' => __pl('name') |
| 2744 |
) |
| 2745 |
), |
| 2746 |
'custom_tax_terms' => array( |
| 2747 |
'type' => 'text', |
| 2748 |
'label' => __pl('posts_grid_custom_tax_term_label'), |
| 2749 |
'default' => '', |
| 2750 |
'desc' =>__pl('posts_grid_custom_tax_term_desc') |
| 2751 |
), |
| 2752 |
'posts_count' => array( |
| 2753 |
'type' => 'spinner', |
| 2754 |
'label' => __pl('posts_slider_posts_count_label'), |
| 2755 |
'default' => 3, |
| 2756 |
'min' => 1, |
| 2757 |
'max' => 100, |
| 2758 |
'step' => 1 |
| 2759 |
), |
| 2760 |
'order_by' => array( |
| 2761 |
'type' => 'select', |
| 2762 |
'label' => __pl('posts_slider_order_by'), |
| 2763 |
'default' => 'date', |
| 2764 |
'list' => array( |
| 2765 |
'ID' => __pl('posts_slider_order_by_id'), |
| 2766 |
'date' => __pl('posts_slider_order_by_date'), |
| 2767 |
'author' => __pl('posts_slider_order_by_author'), |
| 2768 |
'modified' => __pl('posts_slider_order_by_modified'), |
| 2769 |
'rand' => __pl('posts_slider_order_by_random'), |
| 2770 |
'comment_count' => __pl('posts_slider_order_by_comment_count'), |
| 2771 |
'menu_order' => __pl('posts_slider_order_by_menu_order'), |
| 2772 |
), |
| 2773 |
), |
| 2774 |
'sort_order' => array( |
| 2775 |
'type' => 'radio', |
| 2776 |
'label' => __pl('posts_grid_sort_order'), |
| 2777 |
'default' => 'DESC', |
| 2778 |
'list' => array( |
| 2779 |
'ASC' => __pl('posts_grid_sort_order_ascending'), |
| 2780 |
'DESC' => __pl('posts_grid_sort_order_descending') |
| 2781 |
), |
| 2782 |
), |
| 2783 |
'title_tag' => array( |
| 2784 |
'type' => 'radio', |
| 2785 |
'label' => __pl('posts_grid_post_title_tag'), |
| 2786 |
'default' => 'h2', |
| 2787 |
'list' => array( |
| 2788 |
'h1' => 'H1', |
| 2789 |
'h2' => 'H2', |
| 2790 |
'h3' => 'H3', |
| 2791 |
'h4' => 'H4', |
| 2792 |
'h5' => 'H5', |
| 2793 |
'hide' => __pl('posts_grid_title_tag_none'), |
| 2794 |
) |
| 2795 |
), |
| 2796 |
'show_content' => array( |
| 2797 |
'type' => 'radio', |
| 2798 |
'label' => __pl('posts_grid_show_content'), |
| 2799 |
'default' => 'short', |
| 2800 |
'list' => array( |
| 2801 |
'short' => __pl('posts_grid_show_content_short'), |
| 2802 |
'full' => __pl('posts_grid_show_content_full'), |
| 2803 |
'excerpt' => __pl('posts_grid_show_content_excerpt'), |
| 2804 |
'hide' => __pl('posts_grid_show_content_none'), |
| 2805 |
), |
| 2806 |
), |
| 2807 |
'short_content_length' => array( |
| 2808 |
'type' => 'slider', |
| 2809 |
'label' => __pl('posts_grid_short_content_length'), |
| 2810 |
'default' => 200, |
| 2811 |
'min' => 0, |
| 2812 |
'max' => 1000, |
| 2813 |
'step' => 20, |
| 2814 |
'req' => array( |
| 2815 |
'show_content' => 'short' |
| 2816 |
), |
| 2817 |
), |
| 2818 |
'image_size' => array( |
| 2819 |
'type' => 'radio', |
| 2820 |
'label' => __pl('obj_image_size_label'), |
| 2821 |
'default' => 'thumbnail', |
| 2822 |
'list' => array( |
| 2823 |
'full' => __pl('full'), |
| 2824 |
'large' => __pl('large'), |
| 2825 |
'medium' => __pl('medium'), |
| 2826 |
'thumbnail' => __pl('thumbnail'), |
| 2827 |
'custom' => __pl('custom') |
| 2828 |
), |
| 2829 |
'req' => array( |
| 2830 |
'!layout' => 'title_text' |
| 2831 |
) |
| 2832 |
), |
| 2833 |
'custom_size' => array( |
| 2834 |
'type' => 'text', |
| 2835 |
'desc' => __pl('image_custom_size_label'), |
| 2836 |
'req' => array( |
| 2837 |
'image_size' => 'custom' |
| 2838 |
), |
| 2839 |
), |
| 2840 |
'layout' => array( |
| 2841 |
'type' => 'select', |
| 2842 |
'label' => __pl('service_box_layout_label'), |
| 2843 |
'default' => 'title_img_text_wrap', |
| 2844 |
'list' => array( |
| 2845 |
//'title_img_text' => __pl('posts_slider_layout_title_image_text'), |
| 2846 |
'img_title_text' => __pl('posts_slider_layout_image_title_text'), |
| 2847 |
//'title_img_inline' => __pl('posts_slider_layout_image_title_inline'), |
| 2848 |
'title_img_text_wrap' => __pl('posts_slider_layout_image_title_text_wrap'), |
| 2849 |
'title_text'=> __pl('posts_slider_layout_title_text') |
| 2850 |
), |
| 2851 |
), |
| 2852 |
'img_position' => array( |
| 2853 |
'type' => 'radio', |
| 2854 |
'label' => __pl('posts_slider_image_position'), |
| 2855 |
'default' => 'left', |
| 2856 |
'list' => array( |
| 2857 |
'left' => __pl('left'), |
| 2858 |
'right' => __pl('right'), |
| 2859 |
), |
| 2860 |
'req' => array( |
| 2861 |
'!layout' => 'title_text' |
| 2862 |
) |
| 2863 |
), |
| 2864 |
'post_link' => array( |
| 2865 |
'type' => 'select', |
| 2866 |
'label' => __pl('image_link_label'), |
| 2867 |
'default' => 'link_to_post', |
| 2868 |
'list' => array( |
| 2869 |
'link_to_post' => __pl('posts_slider_post_link'), |
| 2870 |
'custom_link' => __pl('posts_slider_open_custom_links'), |
| 2871 |
'no_link' => __pl('posts_slider_no_link'), |
| 2872 |
), |
| 2873 |
), |
| 2874 |
'custom_links' => array( |
| 2875 |
'type' => 'textarea', |
| 2876 |
'label' => __pl('posts_slider_open_custom_links'), |
| 2877 |
'default' => site_url(), |
| 2878 |
'desc' => __pl('posts_slider_custom_links_description'), |
| 2879 |
'req' => array( |
| 2880 |
'post_link' => 'custom_link' |
| 2881 |
), |
| 2882 |
), |
| 2883 |
'slideshow_speed' => array( |
| 2884 |
'type' => 'radio', |
| 2885 |
'label' => __pl('posts_slider_auto_rotate_label'), |
| 2886 |
'default' => '15000', |
| 2887 |
'list' => array( |
| 2888 |
'3000' => '3', |
| 2889 |
'5000' => '5', |
| 2890 |
'10000' => '10', |
| 2891 |
'15000' => '15', |
| 2892 |
'25000' => '25', |
| 2893 |
'disable' => __pl('disable'), |
| 2894 |
), |
| 2895 |
), |
| 2896 |
'animation' => array( |
| 2897 |
'type' => 'select', |
| 2898 |
'label' => __pl('image_slider_animation_label'), |
| 2899 |
'default' => 'fade', |
| 2900 |
'list' => array( |
| 2901 |
'horizontal' => __pl('image_slider_animation_slide'), |
| 2902 |
'fade' => __pl('image_slider_animation_fade'), |
| 2903 |
), |
| 2904 |
), |
| 2905 |
'smooth_height' => array( |
| 2906 |
'type' => 'checkbox', |
| 2907 |
'label' => __pl('image_slider_smooth_height_label'), |
| 2908 |
'default' => 'true', |
| 2909 |
'desc' => __pl('image_slider_smooth_height_desc'), |
| 2910 |
'req' => array( |
| 2911 |
'animation' => 'slide' |
| 2912 |
) |
| 2913 |
), |
| 2914 |
'show_nav' => array( |
| 2915 |
'type' => 'checkbox', |
| 2916 |
'label' => __pl('image_slider_control_nav_label'), |
| 2917 |
'default' => 'true', |
| 2918 |
), |
| 2919 |
'pause_on_hover' => array( |
| 2920 |
'type' => 'checkbox', |
| 2921 |
'label' => __pl('posts_slider_pause_on_hover_label'), |
| 2922 |
'default' => 'true', |
| 2923 |
), |
| 2924 |
) |
| 2925 |
) |
| 2926 |
); |
| 2927 |
|
| 2928 |
// Pages |
| 2929 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_pages', array( |
| 2930 |
'name' => __pl('pages'), |
| 2931 |
'group' => 'wordpress', |
| 2932 |
'func' => 'pagelayer_sc_wp_pages', |
| 2933 |
'html' => '<div class="pagelayer-wp-pages-container"> |
| 2934 |
<div class="pagelayer-wp-pages-title"></div> |
| 2935 |
<div class="pagelayer-wp-pages"></div> |
| 2936 |
</div>', |
| 2937 |
'params' => array( |
| 2938 |
'title' => array( |
| 2939 |
'type' => 'text', |
| 2940 |
'label' => __pl('parameters_title'), |
| 2941 |
'default' => __pl('wp_pages'), |
| 2942 |
'desc' => __pl('wp_pages_description') |
| 2943 |
), |
| 2944 |
'sortby' => array( |
| 2945 |
'type' => 'select', |
| 2946 |
'label' => __pl('sort_by'), |
| 2947 |
'default' => 'menu_order', |
| 2948 |
'desc' => '', |
| 2949 |
'list' => array( |
| 2950 |
'post_title' => __pl('sort_by_page_title'), |
| 2951 |
'menu_order' => __pl('sort_by_page_order'), |
| 2952 |
'ID' => __pl('sort_by_page_id') |
| 2953 |
), |
| 2954 |
), |
| 2955 |
'exclude' => array( |
| 2956 |
'type' => 'text', |
| 2957 |
'label' => __pl('exclude'), |
| 2958 |
'default' => '', |
| 2959 |
'desc' => __pl('wp_pages_exclude_pages') |
| 2960 |
) |
| 2961 |
) |
| 2962 |
) |
| 2963 |
); |
| 2964 |
|
| 2965 |
// Recent Posts |
| 2966 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts', array( |
| 2967 |
'name' => __pl('Recent Posts'), |
| 2968 |
'group' => 'wordpress', |
| 2969 |
'func' => 'pagelayer_sc_wp_posts', |
| 2970 |
'html' => '<div class="pagelayer-wp-posts-container"> |
| 2971 |
<div class="pagelayer-wp-posts-title"></div> |
| 2972 |
<div class="pagelayer-wp-posts-section"></div> |
| 2973 |
</div>', |
| 2974 |
'params' => array( |
| 2975 |
'title' => array( |
| 2976 |
'type' => 'text', |
| 2977 |
'label' => __pl('parameters_title'), |
| 2978 |
'default' => __pl('wp_recent_posts'), |
| 2979 |
'desc' => __pl('wp_recent_posts_description') |
| 2980 |
), |
| 2981 |
'number' => array( |
| 2982 |
'type' => 'text', |
| 2983 |
'label' => __pl('wp_recent_posts_number'), |
| 2984 |
'default' => '5', |
| 2985 |
'desc' => '' |
| 2986 |
), |
| 2987 |
'show_date' => array( |
| 2988 |
'type' => 'checkbox', |
| 2989 |
'label' => __pl('wp_recent_posts_display_date'), |
| 2990 |
'default' => '', |
| 2991 |
'desc' => '' |
| 2992 |
) |
| 2993 |
) |
| 2994 |
) |
| 2995 |
); |
| 2996 |
|
| 2997 |
// Calendar |
| 2998 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_calendar', array( |
| 2999 |
'name' => __pl('calendar'), |
| 3000 |
'group' => 'wordpress', |
| 3001 |
'func' => 'pagelayer_sc_wp_calendar', |
| 3002 |
'html' => '<div class="pagelayer-wp-calendar-container"></div>', |
| 3003 |
'params' => array( |
| 3004 |
'title' => array( |
| 3005 |
'type' => 'text', |
| 3006 |
'label' => __pl('parameters_title'), |
| 3007 |
'default' => __pl('wp_calendar'), |
| 3008 |
'desc' => __pl('wp_calendar_description') |
| 3009 |
) |
| 3010 |
) |
| 3011 |
) |
| 3012 |
); |
| 3013 |
|
| 3014 |
// Recent Comments |
| 3015 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_comments', array( |
| 3016 |
'name' => __pl('Recent Comments'), |
| 3017 |
'group' => 'wordpress', |
| 3018 |
'func' => 'pagelayer_sc_wp_comments', |
| 3019 |
'html' => '<div class="pagelayer-recent-comments-widget"> |
| 3020 |
<h5 class="pagelayer-recent-comments-title">Recent Comments</h5> |
| 3021 |
<ul class="pagelayer-recent-comments-ul"></ul> |
| 3022 |
</div>', |
| 3023 |
'params' => array( |
| 3024 |
'title' => array( |
| 3025 |
'type' => 'text', |
| 3026 |
'label' => __pl('parameters_title'), |
| 3027 |
'default' => __pl('wp_recent_comments'), |
| 3028 |
'desc' => __pl('wp_recent_comments_description') |
| 3029 |
), |
| 3030 |
'number' => array( |
| 3031 |
'type' => 'text', |
| 3032 |
'label' => __pl('wp_recent_comments_number'), |
| 3033 |
'default' => '5', |
| 3034 |
'desc' => '' |
| 3035 |
) |
| 3036 |
) |
| 3037 |
) |
| 3038 |
); |
| 3039 |
|
| 3040 |
// Categories |
| 3041 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_categories', array( |
| 3042 |
'name' => __pl('categories'), |
| 3043 |
'group' => 'wordpress', |
| 3044 |
'func' => 'pagelayer_sc_wp_categories', |
| 3045 |
'html' => '<div class="pagelayer-wp-categories-container"> |
| 3046 |
<div class="pagelayer-wp-categories-title"></div> |
| 3047 |
<div class="pagelayer-wp-categories-section"></div> |
| 3048 |
</div>', |
| 3049 |
'params' => array( |
| 3050 |
'title' => array( |
| 3051 |
'type' => 'text', |
| 3052 |
'label' => __pl('parameters_title'), |
| 3053 |
'default' => __pl('wp_categories'), |
| 3054 |
'desc' => __pl('wp_categories_description') |
| 3055 |
), |
| 3056 |
'dropdown' => array( |
| 3057 |
'type' => 'checkbox', |
| 3058 |
'label' => __pl('wp_display_as_drop_down'), |
| 3059 |
'default' => '', |
| 3060 |
'desc' => '' |
| 3061 |
), |
| 3062 |
'count' => array( |
| 3063 |
'type' => 'checkbox', |
| 3064 |
'label' => __pl('wp_show_post_counts'), |
| 3065 |
'default' => '', |
| 3066 |
'desc' => '' |
| 3067 |
), |
| 3068 |
'hierarchy' => array( |
| 3069 |
'type' => 'checkbox', |
| 3070 |
'label' => __pl('wp_categories_show_hierarchy'), |
| 3071 |
'default' => '', |
| 3072 |
'desc' => '' |
| 3073 |
) |
| 3074 |
) |
| 3075 |
) |
| 3076 |
); |
| 3077 |
|
| 3078 |
// Archives |
| 3079 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_archives', array( |
| 3080 |
'name' => __pl('archives'), |
| 3081 |
'group' => 'wordpress', |
| 3082 |
'func' => 'pagelayer_sc_wp_archives', |
| 3083 |
'html' => '<div class="pagelayer-wp-archives-div"> |
| 3084 |
<h5 class="pagelayer-wp-archives-title">Archives</h5> |
| 3085 |
<div class="pagelayer-wp-archives-option"></div> |
| 3086 |
</div>', |
| 3087 |
'params' => array( |
| 3088 |
'title' => array( |
| 3089 |
'type' => 'text', |
| 3090 |
'label' => __pl('parameters_title'), |
| 3091 |
'default' => __pl('wp_archives'), |
| 3092 |
'desc' => __pl('wp_archives_description') |
| 3093 |
), |
| 3094 |
'dropdown' => array( |
| 3095 |
'type' => 'checkbox', |
| 3096 |
'label' => __pl('wp_display_as_drop_down'), |
| 3097 |
'default' => '', |
| 3098 |
'desc' => '' |
| 3099 |
), |
| 3100 |
'count' => array( |
| 3101 |
'type' => 'checkbox', |
| 3102 |
'label' => __pl('wp_show_post_counts'), |
| 3103 |
'default' => '', |
| 3104 |
'desc' => '' |
| 3105 |
) |
| 3106 |
) |
| 3107 |
) |
| 3108 |
); |
| 3109 |
|
| 3110 |
// Tag Cloud |
| 3111 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_tags', array( |
| 3112 |
'name' => __pl('Tag Cloud'), |
| 3113 |
'group' => 'wordpress', |
| 3114 |
'func' => 'pagelayer_sc_wp_tags', |
| 3115 |
'html' => '<div class="pagelayer-wp-tags-div"> |
| 3116 |
<h5 class="pagelayer-wp-tags-title">Tags</h5> |
| 3117 |
<div class="pagelayer-wp-tags-option"></div> |
| 3118 |
</div>', |
| 3119 |
'params' => array( |
| 3120 |
'title' => array( |
| 3121 |
'type' => 'text', |
| 3122 |
'label' => __pl('parameters_title'), |
| 3123 |
'default' => __pl('wp_tags'), |
| 3124 |
'desc' => __pl('wp_tag_cloud_description') |
| 3125 |
), |
| 3126 |
'taxonomy' => array( |
| 3127 |
'type' => 'select', |
| 3128 |
'label' => __pl('wp_tag_cloud_taxonomy'), |
| 3129 |
'default' => 'post_tag', |
| 3130 |
'desc' => '', |
| 3131 |
'list' => array( |
| 3132 |
'post_tag' => __pl('wp_tags'), |
| 3133 |
'category' => __pl('wp_tag_cloud_categories'), |
| 3134 |
) |
| 3135 |
) |
| 3136 |
) |
| 3137 |
) |
| 3138 |
); |
| 3139 |
|
| 3140 |
// Search |
| 3141 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_search', array( |
| 3142 |
'name' => __pl('search'), |
| 3143 |
'group' => 'wordpress', |
| 3144 |
'func' => 'pagelayer_sc_wp_search', |
| 3145 |
'html' => '<div class="pagelayer-wp-search-div"> |
| 3146 |
<h5 class="pagelayer-wp-search-title">Search</h5> |
| 3147 |
<div class="pagelayer-wp-search-option"></div> |
| 3148 |
</div>', |
| 3149 |
'params' => array( |
| 3150 |
'title' => array( |
| 3151 |
'type' => 'text', |
| 3152 |
'label' => __pl('parameters_title'), |
| 3153 |
'default' => __pl('wp_rsssearch'), |
| 3154 |
'desc' => __pl('wp_rsssearch_description') |
| 3155 |
) |
| 3156 |
) |
| 3157 |
) |
| 3158 |
); |
| 3159 |
|
| 3160 |
// RSS |
| 3161 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_rss', array( |
| 3162 |
'name' => __pl('rss'), |
| 3163 |
'group' => 'wordpress', |
| 3164 |
'func' => 'pagelayer_sc_wp_rss', |
| 3165 |
'html' => '<div class="pagelayer-wp-rss-div"> |
| 3166 |
<div class="pagelayer-wp-rss-option"></div> |
| 3167 |
</div>', |
| 3168 |
'params' => array( |
| 3169 |
'url' => array( |
| 3170 |
'type' => 'text', |
| 3171 |
'label' => __pl('wp_rssurl'), |
| 3172 |
'default' => 'http://www.getpagelayer.com/feed/', |
| 3173 |
'desc' => __pl('wp_rssurl_description') |
| 3174 |
), |
| 3175 |
'title' => array( |
| 3176 |
'type' => 'text', |
| 3177 |
'label' => __pl('wp_rssfeed_title'), |
| 3178 |
'default' => '', |
| 3179 |
'desc' => __pl('wp_rssfeed_title_description') |
| 3180 |
), |
| 3181 |
'items' => array( |
| 3182 |
'type' => 'select', |
| 3183 |
'label' => __pl('wp_rssquantity'), |
| 3184 |
'default' => 9, |
| 3185 |
'desc' => __pl('wp_rssquantity_description'), |
| 3186 |
'list' => array( |
| 3187 |
1 => 1, |
| 3188 |
2 => 2, |
| 3189 |
3 => 3, |
| 3190 |
4 => 4, |
| 3191 |
5 => 5, |
| 3192 |
6 => 6, |
| 3193 |
7 => 7, |
| 3194 |
8 => 8, |
| 3195 |
9 => 9, |
| 3196 |
10 => 10 |
| 3197 |
), |
| 3198 |
), |
| 3199 |
'show_summary' => array( |
| 3200 |
'type' => 'checkbox', |
| 3201 |
'label' => __pl('wp_rssdisplay_content'), |
| 3202 |
'default' => '', |
| 3203 |
'desc' => '' |
| 3204 |
), |
| 3205 |
'show_author' => array( |
| 3206 |
'type' => 'checkbox', |
| 3207 |
'label' => __pl('wp_rssdisplay_author'), |
| 3208 |
'default' => '', |
| 3209 |
'desc' => '' |
| 3210 |
), |
| 3211 |
'show_date' => array( |
| 3212 |
'type' => 'checkbox', |
| 3213 |
'label' => __pl('wp_rssdisplay_date'), |
| 3214 |
'default' => '', |
| 3215 |
'desc' => '' |
| 3216 |
) |
| 3217 |
) |
| 3218 |
) |
| 3219 |
); |
| 3220 |
|
| 3221 |
// Meta |
| 3222 |
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_meta', array( |
| 3223 |
'name' => __pl('meta'), |
| 3224 |
'group' => 'wordpress', |
| 3225 |
'func' => 'pagelayer_sc_wp_meta', |
| 3226 |
'html' => '<div class="pagelayer-wp-meta-div"> |
| 3227 |
<div class="pagelayer-wp-meta-option"></div> |
| 3228 |
</div>', |
| 3229 |
'params' => array( |
| 3230 |
'title' => array( |
| 3231 |
'type' => 'text', |
| 3232 |
'label' => __pl('parameters_title'), |
| 3233 |
'default' => __pl('wp_meta'), |
| 3234 |
'desc' => __pl('wp_meta_description') |
| 3235 |
) |
| 3236 |
) |
| 3237 |
) |
| 3238 |
); |