📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 08:41:04
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
uploads
/
elementor-widget
✏️
Editing: class-pxl-button.php
<?php class PxlButton_Widget extends Pxltheme_Core_Widget_Base{ protected $name = 'pxl_button'; protected $title = 'Case Button'; protected $icon = 'eicon-button'; protected $categories = array( 'pxltheme-core' ); protected $params = '{"sections":[{"name":"section_content","label":"Content","tab":"content","controls":[{"name":"btn_style","label":"Type","type":"select","default":"btn-default","options":{"btn-default":"Default","btn-slip":"Slip Secondary","btn-slip-primary":"Slip Primary","btn-icon-box":"Icon Box","btn-moema":"Moema","btn-outline-dark":"Outline Dark","btn-gradient":"Gradient"}},{"name":"text","label":"Text","type":"text","default":"Click Here"},{"name":"btn_action","label":"Action","type":"select","default":"pxl-atc-link","options":{"pxl-atc-link":"Link","pxl-atc-popup":"Popup"}},{"name":"link","label":"Link","type":"url","default":{"url":"#"},"condition":{"btn_action":["pxl-atc-link"]}},{"name":"popup_template","label":"Select Popup Template","type":"select","options":{"0":"None","5865":"Ger a Quote","9437":"Ger a Quote - RTL"},"default":"df","description":"Add new tab template: \"<a href=\"https:\/\/palletprosnearme.com\/wp-admin\/edit.php?post_type=pxl-template\" target=\"_blank\">Click Here<\/a>\"","condition":{"btn_action":["pxl-atc-popup"]}},{"name":"align","label":"Alignment","type":"choose","control_type":"responsive","options":{"left":{"title":"Left","icon":"fa fa-align-left"},"center":{"title":"Center","icon":"fa fa-align-center"},"right":{"title":"Right","icon":"fa fa-align-right"},"justify":{"title":"Justified","icon":"fa fa-align-justify"}},"prefix_class":"elementor-align-","default":"","selectors":{"{{WRAPPER}} .pxl-button":"text-align: {{VALUE}}"}},{"name":"btn_icon","label":"Icon","type":"icons","label_block":true,"fa4compatibility":"icon"},{"name":"icon_align","label":"Icon Position","type":"select","default":"left","options":{"left":"Before","right":"After"}}]},{"name":"section_style_button","label":"Button Normal","tab":"style","controls":[{"name":"color","label":"Color","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn":"color: {{VALUE}};"}},{"name":"btn_bg_color","label":"Background Color","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn":"background-color: {{VALUE}};","{{WRAPPER}} .pxl-button .btn.btn-gradient":"--gradient-color-from: {{VALUE}};"}},{"name":"btn_bg_color_to","label":"Background Color Gradient","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn.btn-gradient":"--gradient-color-to: {{VALUE}};"},"condition":{"btn_style":["btn-gradient"]}},{"name":"btn_typography","label":"Typography","type":"typography","control_type":"group","selector":"{{WRAPPER}} .pxl-button .btn"},{"name":"btn_box_shadow","label":"Box Shadow","type":"box-shadow","control_type":"group","selector":"{{WRAPPER}} .pxl-button .btn"},{"name":"border_type","label":"Border Type","type":"select","options":{"":"None","solid":"Solid","double":"Double","dotted":"Dotted","dashed":"Dashed","groove":"Groove"},"selectors":{"{{WRAPPER}} .pxl-button .btn":"border-style: {{VALUE}} !important;"},"condition":{"btn_style":["btn-default"]}},{"name":"border_width","label":"Border Width","type":"dimensions","selectors":{"{{WRAPPER}} .pxl-button .btn":"border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;"},"condition":{"border_type!":"","btn_style":["btn-default"]},"responsive":true},{"name":"border_color","label":"Border Color","type":"color","default":"","selectors":{"{{WRAPPER}} .pxl-button .btn":"border-color: {{VALUE}} !important;"},"condition":{"border_type!":"","btn_style":["btn-default"]}},{"name":"btn_border_radius","label":"Border Radius","type":"dimensions","size_units":["px"],"selectors":{"{{WRAPPER}} .pxl-button .btn":"border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"}},{"name":"btn_padding","label":"Padding","type":"dimensions","size_units":["px"],"selectors":{"{{WRAPPER}} .pxl-button .btn":"padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"},"control_type":"responsive"},{"name":"text_inner_margin","label":"Text Inner Margin","type":"dimensions","size_units":["px"],"selectors":{"{{WRAPPER}} .pxl-button .btn .pxl--btn-text":"margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"},"control_type":"responsive"},{"name":"btn_full_width","label":"Full Width","type":"select","options":{"btn-block-inline":"No","btn-block":"Yes"},"default":"btn-block-inline"}]},{"name":"section_style_button_hover","label":"Button Hover","tab":"style","controls":[{"name":"color_hover","label":"Color Hover","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn:hover, {{WRAPPER}} .pxl-button .btn:focus":"color: {{VALUE}};"}},{"name":"btn_bg_color_hover","label":"Background Color","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn:hover, {{WRAPPER}} .pxl-button .btn:focus":"background-color: {{VALUE}};"},"condition":{"btn_style!":["btn-slip","btn-slip-primary","btn-gradient"]}},{"name":"btn_bg_color_hover_slip","label":"Background Color","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn.btn-slip:before, {{WRAPPER}} .pxl-button .btn.btn-slip-primary:before":"background-color: {{VALUE}};"},"condition":{"btn_style":["btn-slip","btn-slip-primary"]}},{"name":"btn_border_radius_hover","label":"Border Radius","type":"dimensions","size_units":["px"],"selectors":{"{{WRAPPER}} .pxl-button .btn:hover, {{WRAPPER}} .pxl-button .btn:focus":"border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"}},{"name":"btn_box_shadow_hover","label":"Box Shadow","type":"box-shadow","control_type":"group","selector":"{{WRAPPER}} .pxl-button .btn:hover, {{WRAPPER}} .pxl-button .btn:focus"},{"name":"btn_text_effect","label":"Text Effect","type":"select","default":"","options":{"":"Default","btn-text-nina":"Nina","btn-text-nanuk":"Nanuk"},"condition":{"btn_style":["btn-default"]}}]},{"name":"section_style_icon","label":"Icon","tab":"style","controls":[{"name":"icon_color","label":"Color","type":"color","selectors":{"{{WRAPPER}} .pxl-button .btn i":"color: {{VALUE}};","{{WRAPPER}} .pxl-button .btn svg":"fill: {{VALUE}};"}},{"name":"icon_font_size","label":"Font Size","type":"slider","control_type":"responsive","size_units":["px"],"range":{"px":{"min":0,"max":300}},"selectors":{"{{WRAPPER}} .pxl-button .btn i":"font-size: {{SIZE}}{{UNIT}};","{{WRAPPER}} .pxl-button .btn svg":"height: {{SIZE}}{{UNIT}};"}},{"name":"icon_space_left","label":"Icon Spacer","type":"slider","control_type":"responsive","size_units":["px"],"range":{"px":{"min":0,"max":300}},"default":{"size":9},"selectors":{"{{WRAPPER}} .pxl-button .pxl-icon--left i, {{WRAPPER}} .pxl-button .pxl-icon--left svg":"margin-right: {{SIZE}}{{UNIT}};"},"condition":{"icon_align":["left"]}},{"name":"icon_space_right","label":"Icon Spacer","type":"slider","control_type":"responsive","size_units":["px"],"range":{"px":{"min":0,"max":300}},"default":{"size":9},"selectors":{"{{WRAPPER}} .pxl-button .pxl-icon--right i, {{WRAPPER}} .pxl-button .pxl-icon--right svg":"margin-left: {{SIZE}}{{UNIT}};"},"condition":{"icon_align":["right"]}},{"name":"icon_box_color","label":"Box Color","type":"color","default":"","selectors":{"{{WRAPPER}} .btn.pxl-icon-active i":"background-color: {{VALUE}};"}},{"name":"icon_box_width","label":"Box Width","type":"slider","size_units":["px"],"range":{"px":{"min":0,"max":300}},"selectors":{"{{WRAPPER}} .btn.pxl-icon-active i":"width: {{SIZE}}{{UNIT}};"}},{"name":"icon_box_height","label":"Box Height","type":"slider","size_units":["px"],"range":{"px":{"min":0,"max":300}},"selectors":{"{{WRAPPER}} .btn.pxl-icon-active i":"height: {{SIZE}}{{UNIT}};"}},{"name":"icon_border_radius","label":"Border Radius","type":"dimensions","size_units":["px"],"selectors":{"{{WRAPPER}} .btn.pxl-icon-active i":"border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"}}]},{"name":"section_animation","label":"Animation","tab":"style","condition":[],"controls":[{"name":"pxl_animate","label":"Case Animate","type":"select","options":{"":"None","wow bounce":"bounce","wow flash":"flash","wow pulse":"pulse","wow rubberBand":"rubberBand","wow shake":"shake","wow swing":"swing","wow tada":"tada","wow wobble":"wobble","wow bounceIn":"bounceIn","wow bounceInDown":"bounceInDown","wow bounceInLeft":"bounceInLeft","wow bounceInRight":"bounceInRight","wow bounceInUp":"bounceInUp","wow bounceOut":"bounceOut","wow bounceOutDown":"bounceOutDown","wow bounceOutLeft":"bounceOutLeft","wow bounceOutRight":"bounceOutRight","wow bounceOutUp":"bounceOutUp","wow fadeIn":"fadeIn","wow fadeInDown":"fadeInDown","wow fadeInDownBig":"fadeInDownBig","wow fadeInLeft":"fadeInLeft","wow fadeInLeftBig":"fadeInLeftBig","wow fadeInRight":"fadeInRight","wow fadeInRightBig":"fadeInRightBig","wow fadeInUp":"fadeInUp","wow fadeInUpBig":"fadeInUpBig","wow fadeOut":"fadeOut","wow fadeOutDown":"fadeOutDown","wow fadeOutDownBig":"fadeOutDownBig","wow fadeOutLeft":"fadeOutLeft","wow fadeOutLeftBig":"fadeOutLeftBig","wow fadeOutRight":"fadeOutRight","wow fadeOutRightBig":"fadeOutRightBig","wow fadeOutUp":"fadeOutUp","wow fadeOutUpBig":"fadeOutUpBig","wow flip":"flip","wow flipCase":"flipCase","wow flipInX":"flipInX","wow flipInY":"flipInY","wow flipOutX":"flipOutX","wow flipOutY":"flipOutY","wow lightSpeedIn":"lightSpeedIn","wow lightSpeedOut":"lightSpeedOut","wow rotateIn":"rotateIn","wow rotateInDownLeft":"rotateInDownLeft","wow rotateInDownRight":"rotateInDownRight","wow rotateInUpLeft":"rotateInUpLeft","wow rotateInUpRight":"rotateInUpRight","wow rotateOut":"rotateOut","wow rotateOutDownLeft":"rotateOutDownLeft","wow rotateOutDownRight":"rotateOutDownRight","wow rotateOutUpLeft":"rotateOutUpLeft","wow rotateOutUpRight":"rotateOutUpRight","wow hinge":"hinge","wow rollIn":"rollIn","wow rollOut":"rollOut","wow zoomInSmall":"zoomInSmall","wow zoomIn":"zoomInBig","wow zoomOut":"zoomOut","wow skewIn":"skewInLeft","wow skewInRight":"skewInRight","wow skewInBottom":"skewInBottom","wow RotatingY":"RotatingY","wow PXLfadeInUp":"PXLfadeInUp","fadeInPopup":"fadeInPopup"},"default":""},{"name":"pxl_animate_delay","label":"Animate Delay","type":"text","default":"0","description":"Enter number. Default 0ms"}]}]}'; protected $styles = array( ); protected $scripts = array( ); }
💾 Save Changes
❌ Cancel