Plugin Directory

Changeset 3821717


Ignore:
Timestamp:
11/24/2026 11:33:00 PM (less than one hour ago)
Author:
pencilwp
Message:

new version releases

Location:
x-addons-elementor
Files:
153 added
1 deleted
55 edited

Legend:

Unmodified
Added
Removed
  • x-addons-elementor/trunk/assets/admin/edit-library.css

    r3629242 r3821717  
    6262        background: #FC6761 !important;
    6363}
     64
     65
     66
     67
     68
     69.xaddons-pro-card {
     70        margin: 0;
     71}
     72.xaddons-pro-lock-card{
     73    display:flex;
     74    gap:12px;
     75    align-items:flex-start;
     76    padding:14px;
     77    border:1px solid #f0d2d0;
     78    border-radius:10px;
     79    background:linear-gradient(180deg, #fff 0%, #fff7f6 100%);
     80}
     81
     82.xaddons-pro-lock-icon {
     83        width: 40px;
     84        height: 40px;
     85        flex: 0 0 40px;
     86        border-radius: 50%;
     87        background: #ffe8e6;
     88        display: flex;
     89        align-items: center;
     90        justify-content: center;
     91        color: #FC6761;
     92}
     93.xaddons-pro-lock-content p{
     94    margin:6px 0 10px;
     95    color:#6b7280;
     96        line-height: 1.45;
     97}
     98
     99.xaddons-pro-btn{
     100    display:inline-block;
     101    padding:8px 14px;
     102    border-radius:6px;
     103    background:#FC6761;
     104    color:#fff !important;
     105    text-decoration:none !important;
     106        font-weight: 600;
     107}
     108.xaddons-pro-btn:hover {
     109        background: #e8574f;
     110        color: #fff !important;
     111}
     112
     113.xaddons-pro-lock-content strong {
     114  color: #273C66;
     115  font-size: 13px;
     116}
  • x-addons-elementor/trunk/assets/admin/editor-library.js

    r3629242 r3821717  
    22
    33    /* =========================================================
    4      * 1. Inject X-Addons button into Elementor preview iframe
     4     * 1. Inject the template library button into the Elementor preview iframe
    55     * ========================================================= */
    66    elementor.on('preview:loaded', function () {
    … …  
    1919            <button type="button"
    2020                class="elementor-add-section-area-button xaddons-inline-btn"
    21                 title="X Addons Library">
     21                title="Xpress Addons Library">
    2222                <svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true">
    2323                    <path
    … …  
    8484                <div class="elementor-templates-modal__header">
    8585                    <div class="elementor-templates-modal__header__logo-area">
    86                         <strong>X-Addons Templates</strong>
     86                        <strong>Xpress Addons Templates</strong>
    8787                    </div>
    8888
  • x-addons-elementor/trunk/assets/admin/settings/settings.css

    r3629242 r3821717  
    99    --color-border-soft:  #EEF0F9;
    1010
    11     --color-ink:          #191B3A;
     11    --color-ink:          #273C66;
    1212    --color-ink-soft:     #565A80;
    1313    --color-ink-faint:    #9297B8;
    1414
    15     --color-accent:       #5B4FF0;
    16     --color-accent-ink:   #4238C9;
     15    --color-accent:       #FC6761;
     16    --color-accent-ink:   #e75f5a;
    1717    --color-accent-wash:  #EEEBFF;
    1818
    19     --color-success:      #17A673;
     19    --color-success:      #34d399;
    2020    --color-success-wash: #E5F7F0;
    2121
    22     --color-amber:        #E8940C;
     22    --color-amber:        #ff8a1f;
    2323    --color-amber-wash:   #FDF1DD;
    2424
    … …  
    2929    --radius-lg: 16px;
    3030
    31     --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    32     --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    33     --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    3431
    3532    --shadow-card: 0 1px 2px rgba(25, 27, 58, 0.04), 0 8px 24px -12px rgba(25, 27, 58, 0.10);
    3633    --shadow-pop:  0 4px 10px -2px rgba(91, 79, 240, 0.35);
     34
     35    --font-body:    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     36    --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     37    --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    3738  }
    3839
    … …  
    582583  }
    583584
     585  .xa-promo--minimal{
     586    padding: 20px 22px;
     587    gap: 16px;
     588  }
     589  .xa-promo--minimal .xa-promo__body{
     590    max-width: none;
     591  }
     592  .xa-promo__desc--lead{
     593    margin: 0 0 14px !important;
     594    font-size: 15px !important;
     595    font-weight: 600;
     596    line-height: 1.45 !important;
     597    color: #fff !important;
     598  }
     599
    584600  .xa-promo__ring{
    585601    position:absolute;
    … …  
    628644
    629645  .xa-promo__cta{
    630     background:#fff;
    631     color: var(--color-accent-ink);
     646    background:#fff !important;
     647    color: #c9443c !important;
    632648    font-weight:700;
    633649    font-size:13.5px;
    … …  
    639655    align-items:center;
    640656    gap:8px;
    641   }
    642 
    643   .xa-promo__cta svg{ width:14px; height:14px; }
     657    text-decoration:none !important;
     658    box-shadow: 0 1px 2px rgba(0,0,0,.08);
     659  }
     660
     661  a.xa-promo__cta:hover,
     662  a.xa-promo__cta:focus{
     663    color: #a33832 !important;
     664    background:#fff !important;
     665    opacity: 1;
     666  }
     667
     668  .xa-promo__cta svg{
     669    width:14px;
     670    height:14px;
     671    color: #c9443c !important;
     672    stroke: #c9443c !important;
     673    flex: 0 0 auto;
     674  }
     675
     676  .xa-settings-nav__link--pro{
     677    color: inherit !important;
     678    font-weight: 600;
     679  }
     680  .xa-settings-nav__link--pro::after{
     681    content: "PRO";
     682    margin-left: 8px;
     683    font-size: 10px;
     684    font-weight: 700;
     685    letter-spacing: .04em;
     686    color: #b45309;
     687    background: #fff7ed;
     688    border: 1px solid #fed7aa;
     689    border-radius: 999px;
     690    padding: 1px 6px;
     691  }
     692  .xa-settings-nav__link--pro:hover{
     693    color: inherit !important;
     694  }
    644695
    645696  .xa-promo__art{
  • x-addons-elementor/trunk/assets/admin/settings/settings.js

    r3629242 r3821717  
    55
    66    links.forEach(function (link) {
    7       link.addEventListener('click', function () {
    8         var target = link.getAttribute('data-target');
     7        link.addEventListener('click', function () {
     8            var target = link.getAttribute('data-target');
    99
    10         items.forEach(function (li) { li.classList.remove('xa-settings-nav__item--active'); });
    11         link.closest('.xa-settings-nav__item').classList.add('xa-settings-nav__item--active');
     10            items.forEach(function (li) {
     11                li.classList.remove('xa-settings-nav__item--active');
     12            });
    1213
    13         sections.forEach(function (section) {
    14           var isMatch = section.getAttribute('data-section') === target;
    15           section.classList.toggle('xa-settings-section--active', isMatch);
     14            link.closest('.xa-settings-nav__item')
     15                .classList.add('xa-settings-nav__item--active');
     16
     17            sections.forEach(function (section) {
     18                var isMatch = section.getAttribute('data-section') === target;
     19
     20                section.classList.toggle(
     21                    'xa-settings-section--active',
     22                    isMatch
     23                );
     24            });
    1625        });
    17       });
    1826    });
    1927
    20     // keep the hex text field mirrored with the native color picker
     28    // Color fields
    2129    document.querySelectorAll('.xa-color-field').forEach(function (field) {
    22       var swatch = field.querySelector('.xa-color-field__swatch');
    23       var hex = field.querySelector('.xa-color-field__hex');
    24       swatch.addEventListener('input', function () { hex.value = swatch.value.toUpperCase(); });
    25       hex.addEventListener('change', function () {
    26         var v = hex.value.trim();
    27         if (/^#([0-9A-F]{3}|[0-9A-F]{6})$/i.test(v)) swatch.value = v;
    28       });
     30        var swatch = field.querySelector('.xa-color-field__swatch');
     31        var hex = field.querySelector('.xa-color-field__hex');
     32        var reset = field.querySelector('.xa-color-field__reset');
     33
     34        // Swatch → HEX
     35        swatch.addEventListener('input', function () {
     36            hex.value = swatch.value.toUpperCase();
     37        });
     38
     39        // HEX → Swatch
     40        hex.addEventListener('change', function () {
     41            var v = hex.value.trim();
     42
     43            if (/^#([0-9A-F]{3}|[0-9A-F]{6})$/i.test(v)) {
     44                swatch.value = v;
     45                hex.value = v.toUpperCase();
     46            }
     47        });
     48
     49        // Reset → Default color
     50        reset.addEventListener('click', function () {
     51            var defaultColor = reset.getAttribute('data-default');
     52
     53            swatch.value = defaultColor;
     54            hex.value = defaultColor.toUpperCase();
     55
     56            // Trigger input/change events if other scripts are listening
     57            swatch.dispatchEvent(new Event('input', { bubbles: true }));
     58            hex.dispatchEvent(new Event('change', { bubbles: true }));
     59        });
    2960    });
    30   })();
     61})();
  • x-addons-elementor/trunk/assets/css/xa-styles.css

    r3629242 r3821717  
    11/* =============================================================
    2 Author Name: X Addons Elementor Styles
     2Author Name: Xpress Addons for Elementor
    33Description: CSS files of XA Styles
    44Version:        1.0.23
    … …  
    66
    77/*----------------------------------------*/
    8 /*  XAddons Default Style
     8/*  Default widget styles
    99/*----------------------------------------*/
    1010:root {
    1111        --xa-primary: #FC6761;
    12         --xa-primary-bg: #FC6761;
    13         --xa-secondary: #273C66;
    14         --xa-secondary-bg: #273C66;
    15         --xa-third: #F5F7F8 ;
     12        --xa-heading: #273C66;
     13        --xa-offwhite: #F5F7F8 ;
    1614        --xa-text: #777;
     15        --xa-mute: #6b7280;
     16        --bg-color: #f4f4f4;
     17        --xapro-white: #ffffff;
     18        --xapro-border: #ebebeb;
     19        --xa-orange: #ff8a1f;
     20        --xa-orange: #ff6a00;
     21        --xa-success: #34d399;
     22        --xa-blue: #1d4ed8;
     23        --xa-star: #f5c518;
     24    --xa-alert: #E24B4B;
    1725        --xa-font-normal: 400;
    1826        --xa-font-medium: 500;
    … …  
    3745.xa-wrapper{
    3846        font-size: 15px;
    39         color:var(--xa-secondary);
     47        color:var(--xa-heading);
    4048}
    4149.xa-wrapper p + p{
    4250        margin:0;
    4351}
    44 .xa-wrapper a{
    45         color: var(--xa-primary);
     52.xa-wrapper a {
     53        color: var(--xa-heading);
    4654        text-decoration: none;
    4755}
    … …  
    6573}
    6674.xa-primary-bg{
    67   background-color: var(--xa-primary-bg);
    68 }
    69 .xa-secondary{
    70   color: var(--xa-secondary);
    71 }
    72 .xa-secondary-bg{
    73   background-color: var(--xa-secondary-bg);
     75  background-color: var(--xa-primary);
     76}
     77.xa-heading{
     78  color: var(--xa-heading);
     79}
     80.xa-heading-bg{
     81  background-color: var(--xa-heading);
    7482}
    7583.xa-text{
    … …  
    116124}
    117125.xa-slider-nav > div {
    118         background: var(--xa-secondary);
     126        background: var(--xa-heading);
    119127        width: 36px;
    120128        height: 36px;
    … …  
    128136}
    129137  .xa-slider-nav > div:hover{
    130         background-color: var(--xa-primary-bg);
     138        background-color: var(--xa-primary);
    131139        border-color:transparent;
    132140        color:#fff;
    … …  
    161169}
    162170.xa-wrapper .slick-dots li.slick-active button,.xa-wrapper .slick-dots li:hover button {
    163         background: var(--xa-primary-bg);
     171        background: var(--xa-primary);
    164172        border-color: transparent;
    165173  }
    166174/*----------------------------------------*/
    167 /*  End XAddons Default Style
     175/*  End default widget styles
    168176/*----------------------------------------*/
    169177
    … …  
    190198        text-decoration: none !important;
    191199}
     200.xa-buttons__btn:visited {
     201        color: #fff;
     202}
    192203a.xa-buttons__btn:hover {
    193         background-color: var(--xa-secondary);
     204        background-color: var(--xa-heading);
    194205        color: #fff;
    195206}
    … …  
    242253        border-radius: 30px;
    243254        margin-bottom: 10px;
    244         margin: ;
    245255}
    246256.xa-section-title__heading {
    247         font-size: 32px;
    248         line-height: 47px;
     257        font-size: 42px;
     258        line-height: 1.2em;
    249259        font-weight: 700;
    250260        margin-bottom: 15px;
    … …  
    263273.xa-hero-area {
    264274        position: relative;
    265         /* overflow: hidden; */
    266         padding: 50px 0;
     275        padding: 72px 0;
    267276}
    268277.xa-hero-area__content {
    269         z-index: 3333;
    270         position: relative;
    271 }
    272 .xa-hero-area__content #typed {
    273         font-size: 25px;
    274         min-height: 40px;
    275         overflow: hidden;
     278        z-index: 2;
     279        position: relative;
     280        text-align: left;
     281}
     282.xa-hero__phrases {
     283        display: none;
     284}
     285.xa-hero__animate {
     286        display: inline-flex;
     287        align-items: center;
     288        min-height: 38px;
     289        margin: 0 0 18px;
     290        padding: 6px 14px;
     291        color: var(--xa-primary);
     292        background: rgba(252, 103, 97, 0.12);
     293        background: color-mix(in srgb, var(--xa-primary) 12%, transparent);
     294        border-radius: 999px;
     295        font-size: 14px;
     296        font-weight: 600;
     297        line-height: 1.4;
     298}
     299.xa-hero__type {
     300        display: inline-block;
     301        min-width: 1ch;
     302}
     303.xa-hero__cursor {
     304        display: inline-block;
     305        width: 2px;
     306        height: 1em;
     307        margin-left: 3px;
     308        background: currentColor;
     309        animation: xa-hero-blink 0.9s steps(1) infinite;
     310}
     311@keyframes xa-hero-blink {
     312        50% {
     313                opacity: 0;
     314        }
    276315}
    277316.hero-title-slider {
    … …  
    290329        font-size: 70px;
    291330        text-transform: uppercase;
    292         background: var(--xa-primary-bg);
     331        background: var(--xa-primary);
    293332        padding: 10px 30px;
    294333        display: inline-block;
    295334        padding: 30px;
    296335}
    297 .typed-cursor {
    298         margin-left: 10px;
    299         color: var(--xa-primary);
    300         font-size: 35px;
    301         font-size: 0px;
    302 }
    303336.xa-hero-area__content h2 {
    304337        font-size: 23px;
    305338}
    306339.xa-hero-area__title {
    307         font-size: 62px;
    308         margin-bottom: 15px;
    309         color: var(--xa-secondary);
    310         line-height: 72px;
     340        font-size: 58px;
     341        margin: 0 0 16px;
     342        color: var(--xa-heading);
     343        line-height: 1.12;
     344        letter-spacing: -0.03em;
    311345        font-weight: 700;
    312346}
    … …  
    317351        font-weight: 500;
    318352        font-size: 28px;
    319         color: VAR(--XA-SECONDARY);
     353        color: VAR(--xa-heading);
    320354        cursor: pointer;
    321355        display: block;
    … …  
    323357}
    324358.xa-hero-area__text {
    325         margin-bottom: 30px;
     359        display: inline-block;
     360        max-width: 38rem;
     361        margin: 0;
     362        vertical-align: top;
    326363        color: var(--xa-text);
    327         font-size: 16px;
     364        font-size: 17px;
     365        line-height: 1.7;
    328366}
    329367.xa-hero-area__btn {
    330         margin-top: 30px;
     368        margin-top: 28px;
    331369}
    332370.xa-hero-area__btn .theme-btn.video {
     371        display: inline-flex;
     372        align-items: center;
     373        gap: 12px;
    333374        margin: 0;
    334         padding: 10px;
    335         display: inline-block;
     375        padding: 0;
     376        color: var(--xa-heading);
     377        font-weight: 600;
     378        text-decoration: none;
    336379        cursor: pointer;
    337         display: inline-flex;
    338         align-items: center;
    339         padding: 0;
    340380}
    341381.xa-hero-area__btn .theme-btn.video:hover {
    342         background: var(--xa-secondary);
    343         border-color: transparent;
    344         color: #fff;
     382        color: var(--xa-heading);
    345383}
    346384.xa-hero-area__btn .theme-btn.video i {
    347         width: 50px;
    348         height: 50px;
    349         line-height: 50px;
    350         background: var(--xa-secondary);
     385        width: 52px;
     386        height: 52px;
     387        line-height: 52px;
     388        border-radius: 50%;
     389        background: var(--xa-heading);
    351390        color: #fff;
    352391        border: none;
    353 }
    354 .xa-hero-area__btn .theme-btn i {
    355         width: 18px;
    356         height: 18px;
    357         line-height: 18px;
    358         display: inline-block;
     392        margin: 0;
    359393        text-align: center;
    360         background: #fff;
    361         color: var(--xa-primary);
    362         font-size: 13px;
    363         border-radius: 30px;
    364         margin-right: 8px;
    365         -webkit-transition: all 0.4s ease;
    366         -moz-transition: all 0.4s ease;
    367         transition: all 0.4s ease;
    368         border:1px solid var(--xa-primary);
     394        transition: background-color 0.3s ease;
     395}
     396.xa-hero-area__btn .theme-btn.video:hover i {
     397        background: var(--xa-primary);
    369398}
    370399.xa-hero-area__img {
    371400        z-index: 3333;
    372401        position: relative;
    373         padding-top: 50px;
     402}
     403.xa-hero-area__img .xa-thumbnail {
     404        border-radius: 24px;
     405        overflow: hidden;
     406        box-shadow: 0 24px 50px rgba(39, 60, 102, 0.14);
     407}
     408.xa-hero-area__img .xa-thumbnail img {
     409        display: block;
     410        width: 100%;
     411        max-width: 100%;
     412        height: auto;
     413        border-radius: 24px;
    374414}
    375415.animate-top-bottom img {
    … …  
    409449.xa-hero-area .xa-row {
    410450        display: flex;
    411         gap: 30px;
    412         align-items: center;
    413 }
    414 
     451        flex-wrap: nowrap;
     452        align-items: center;
     453        gap: 40px;
     454        margin-left: 0;
     455        margin-right: 0;
     456}
     457.xa-hero-area .xa-column.xa-hero-area--column1 {
     458        flex: 1 1 0;
     459        min-width: 0;
     460}
    415461.xa-hero-area .xa-column.xa-hero-area--column2 {
    416         max-width: 42%;
     462        flex: 0 0 46%;
     463        max-width: 46%;
     464        min-width: 0;
    417465}
    418466@media only screen and (max-width: 991px) {
    419 
    420 .xa-hero-area .xa-row{
    421         flex-wrap: wrap;
    422 }
    423 .xa-hero-area .xa-column.xa-hero-area--column1,
    424 .xa-hero-area .xa-column.xa-hero-area--column2{
    425         max-width: 100%;
    426 }
     467        .xa-hero-area .xa-row {
     468                flex-wrap: wrap;
     469                gap: 24px;
     470        }
     471        .xa-hero-area .xa-column.xa-hero-area--column1,
     472        .xa-hero-area .xa-column.xa-hero-area--column2 {
     473                flex: 0 0 100%;
     474                max-width: 100%;
     475        }
     476        .xa-hero-area__title {
     477                font-size: 42px;
     478                line-height: 1.15;
     479        }
     480        .xa-hero-area {
     481                padding: 48px 0;
     482        }
     483}
     484@media only screen and (max-width: 575px) {
     485        .xa-hero-area {
     486                padding: 30px 0;
     487        }
     488        .xa-hero-area__title {
     489                font-size: 32px;
     490                line-height: 1.2;
     491        }
    427492}
    428493
    … …  
    440505.xa-info-card {
    441506        background: #fff;
    442         border: 1px solid #eee;
    443         -webkit-transition: all 0.4s ease;
    444         -moz-transition: all 0.4s ease;
    445         transition: all 0.4s ease;
    446         position: relative;
    447         border-bottom: 20p;
    448         display: flex;
    449         align-items: center;
    450         gap: 20px;
    451         padding: 20px;
    452 }
    453 .xa-info-card:hover{
    454         border-color:var(--xa-primary);
     507        border: 1px solid rgba(39, 60, 102, 0.08);
     508        border-radius: 16px;
     509        box-shadow: 0 10px 30px rgba(39, 60, 102, 0.06);
     510        transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
     511        position: relative;
     512        display: flex;
     513        align-items: center;
     514        gap: 18px;
     515        padding: 24px;
     516}
     517.xa-info-card:hover {
     518        border-color: var(--xa-primary);
     519        box-shadow: 0 16px 40px rgba(39, 60, 102, 0.1);
    455520}
    456521.xa-info-card__main {
    457522        display: inline-flex;
     523        flex-shrink: 0;
    458524}
    459525.xa-info-card__icon {
    … …  
    461527        justify-content: center;
    462528        align-items: center;
    463         /* padding: 10px; */
    464         min-width: 65px;
    465         min-height: 65px;
    466         line-height: 65px;
    467 }
    468 .xa-info-card__icon img{
     529        width: 64px;
     530        height: 64px;
     531        min-width: 64px;
     532        min-height: 64px;
     533        border-radius: 50%;
     534        line-height: 1;
     535}
     536.xa-info-card__icon img {
     537        display: block;
    469538        max-width: 100%;
     539        height: auto;
     540        border-radius: inherit;
    470541}
    471542.xa-info-card__icon.xa_image,
    472 .xa-info-card__icon.xa_icon{
    473         border: 1px solid #eee;
    474         border-radius: 100%;
     543.xa-info-card__icon.xa_icon {
    475544        background: var(--xa-primary);
    476         border-color: transparent;
    477545        color: #fff;
    478546}
    479 
    480 .xa-info-card:hover .xa-info-card__icon.xa_icon,
    481 .xa-info-card.xa-active .xa-info-card__icon.xa_icon{
    482         background:var(--xa-primary-bg);
    483 }
    484 .xa-info-card.xa-active{
    485         border:1px solid var(--xa-primary);
    486 }
    487 .xa-info-card:hover .service-icon i,
    488 .xa-info-card.xa-active .service-icon i {
    489         background: #fff;
    490         color: var(--xa-primary);
    491 }
    492 .xa-info-card:hover .xa-info-card__icon {
    493         border-color: transparent;
    494 }
    495 .xa-info-card:hover .xa-info-card__icon i{
    496         color:#fff;
    497 }
    498547.xa-info-card__content {
    499 
    500 }
    501 .xa-info-card__icon {
    502         opacity: 1;
    503 }
    504 .xa-info-card:hover .xa-info-card__icon,
    505 .xa-info-card.xa-active .xa-info-card__icon{
    506         opacity: 1;
     548        min-width: 0;
     549        flex: 1;
    507550}
    508551.xa-info-card__icon i {
    509552        display: block;
    510553        text-align: center;
    511         font-size: 25px;
     554        font-size: 24px;
     555        line-height: 1;
    512556        color: #fff;
    513         -webkit-transition: all 0.4s ease;
    514         -moz-transition: all 0.4s ease;
    515         transition: all 0.4s ease;
     557        transition: color 0.3s ease;
    516558}
    517559.xa-info-card__title {
    518         margin-bottom: 5px !important;
     560        margin: 0 0 8px;
    519561        font-size: 20px;
    520         color: var(--xa-secondary);
     562        line-height: 1.3;
     563        font-weight: 600;
     564        color: var(--xa-heading);
    521565}
    522566.xa-list-content__title, .xa-list-content__title a {
    523         color: var(--xa-secondary);
     567        color: var(--xa-heading);
    524568}
    525569.xa-list-content__label {
    … …  
    527571}
    528572.xa-info-card__desc {
     573        margin: 0;
     574        font-size: 15px;
     575        line-height: 1.65;
    529576        font-weight: 400;
     577        color: var(--xa-text);
    530578}
    531579.xa-info-card__title a {
    532         color: inherit !important;
     580        color: inherit;
    533581        font-size: inherit;
    534582        font-family: inherit;
    535 }
    536 
    537 .xa-info-card__title:hover,
    538 .xa-info-card.xa-active .xa-info-card__title{
     583        font-weight: inherit;
     584        line-height: inherit;
     585        text-decoration: none;
     586}
     587.xa-info-card__title:hover {
    539588        color: var(--xa-primary);
    540589}
    … …  
    547596
    548597.xa-buttons__info {
    549     display: flex;
    550     align-items: center;
    551     gap: 10px;
    552     display: inline-flex;
     598        display: inline-flex;
     599        align-items: center;
     600        gap: 8px;
     601        margin-top: 14px;
     602        color: var(--xa-primary);
     603        font-weight: 600;
     604        line-height: 1.4;
     605        text-decoration: none;
     606}
     607.xa-buttons__info:visited {
     608        color: var(--xa-primary);
    553609}
    554610/*----------------------------------------*/
    … …  
    575631        display: flex;
    576632        align-items: center;
    577         background: var(--xa-primary-bg);
    578         border-radius: 100% 0 0;
     633        background: var(--xa-primary);
     634        border-radius: 10px 0 0 0;
     635        padding: 10px 20px;
    579636}
    580637.xa-ex-image__number {
    … …  
    651708        margin: 0;
    652709}
    653 .xa-list-content__title a{
    654         color:inherit;
     710.xa-list-content__title a {
     711        color: inherit;
    655712        font-family: inherit;
    656713        line-height: inherit;
    657714        font-size: inherit;
    658         padding:0 !important;
     715        padding: 0 !important;
     716        font-weight: inherit;
    659717}
    660718.xa-list-content {
    … …  
    674732}
    675733.xa-ex-card__label {
    676         background: var(--xa-primary-bg);
     734        background: var(--xa-primary);
    677735        display: inline-block;
    678736        color: #fff;
    … …  
    718776        -webkit-animation: animate-positive 2s;
    719777        animation: animate-positive 2s;
    720         background: var(--xa-primary-bg);
     778        background: var(--xa-primary);
    721779  }
    722780  .xa-progress__single .progress-bar {
    … …  
    725783        -webkit-animation: animate-positive 2s;
    726784        animation: animate-positive 2s;
    727         background: var(--xa-primary-bg);
     785        background: var(--xa-primary);
    728786        overflow: visible;
    729787        position: relative;
    … …  
    922980        height: 2px;
    923981        bottom: 0;
    924         background: var(--xa-primary-bg);
     982        background: var(--xa-primary);
    925983        left: 0;
    926984        opacity: 0;
    … …  
    9531011        -moz-transition: all 0.3s ease;
    9541012        transition: all 0.3s ease;
    955         color: var(--xa-primary);
     1013        color: var(--xa-heading);
    9561014}
    9571015.xa-single-testimonial__author {
    … …  
    10391097  .xa-contact-single:hover .xa-contact-single__icon {
    10401098        border-radius: 100%;
    1041         background: var(--xa-primary-bg);
     1099        background: var(--xa-primary);
    10421100        color: #fff !important;
    10431101  }
    … …  
    10661124  border: 1px solid #e6e2f5;
    10671125  padding: 0px 20px;
    1068   color: VAR(--XA-SECONDARY);
     1126  color: VAR(--xa-heading);
    10691127  border-radius: 0px;
    10701128  font-weight: 400;
    … …  
    10781136        font-size: 17px;
    10791137        font-weight: 500;
    1080         background: var(--xa-primary-bg);
     1138        background: var(--xa-primary);
    10811139        display: inline-block;
    10821140        color: #fff;
    … …  
    11011159}
    11021160.xa-contact-form__body .contact-btn button:hover{
    1103         background-color:var(--xa-secondary);
     1161        background-color:var(--xa-heading);
    11041162}
    11051163.xa-contact-form__label {
    … …  
    11181176/*  Brand Slider
    11191177/*----------------------------------------*/
    1120 .xa-brand-slider {
    1121         padding: 50px 0px;
    1122 }
    11231178.xa-brand-slider .slick-dots li button {
    11241179        border-color:var(--xa-text);
     1180}
     1181.xa-brand-logos {
     1182  display: flex;
     1183  align-items: center;
     1184  justify-content: center;
     1185}
     1186.xa-brand-logos img {
     1187        /* max-height: 100px; */
     1188        /* max-width: 190px; */
    11251189}
    11261190
    … …  
    11291193        border-color:transparent;
    11301194}
     1195.xa-brand-slider {
     1196        position: relative;
     1197}
     1198.xa-brand-slider .slick-list {
     1199        margin-left: 48px;
     1200        margin-right: 48px;
     1201}
     1202.xa-brand-slider .xa-slider-nav {
     1203        position: absolute;
     1204        inset: 0;
     1205        display: block;
     1206        margin: 0;
     1207        pointer-events: none;
     1208        z-index: 2;
     1209}
     1210.xa-brand-slider .xa-slider-nav__prev,
     1211.xa-brand-slider .xa-slider-nav__next {
     1212        position: absolute;
     1213        top: 50%;
     1214        transform: translateY(-50%);
     1215        margin: 0;
     1216        pointer-events: auto;
     1217}
     1218.xa-brand-slider .xa-slider-nav__prev {
     1219        left: 0;
     1220}
     1221.xa-brand-slider .xa-slider-nav__next {
     1222        right: 0;
     1223}
     1224@media (max-width: 767px) {
     1225        .xa-brand-slider .slick-list {
     1226                margin-left: 42px;
     1227                margin-right: 42px;
     1228        }
     1229        .xa-brand-slider .xa-slider-nav__prev {
     1230                left: 0;
     1231        }
     1232        .xa-brand-slider .xa-slider-nav__next {
     1233                right: 0;
     1234        }
     1235}
    11311236/*----------------------------------------*/
    11321237/*  End Brand Slider
     1238/*----------------------------------------*/
     1239
     1240/*----------------------------------------*/
     1241/*  Image Slider
     1242/*----------------------------------------*/
     1243.xa-image-slider {
     1244        position: relative;
     1245}
     1246.xa-image-slider__single {
     1247        outline: none;
     1248}
     1249.xa-image-slider__thumb {
     1250        position: relative;
     1251        overflow: hidden;
     1252}
     1253.xa-image-slider__thumb img {
     1254        width: 100%;
     1255        display: block;
     1256        object-fit: cover;
     1257}
     1258.xa-image-slider__overlay {
     1259        position: absolute;
     1260        content: "";
     1261        width: 100%;
     1262        height: 100%;
     1263        background: var(--xa-heading);
     1264        opacity: 0.35;
     1265        visibility: visible;
     1266        -webkit-transition: all 0.4s ease;
     1267        -moz-transition: all 0.4s ease;
     1268        transition: all 0.4s ease;
     1269        z-index: 1;
     1270        top: 0;
     1271        left: 0;
     1272}
     1273.xa-image-slider__single:hover .xa-image-slider__overlay {
     1274        opacity: 0.55;
     1275}
     1276.xa-image-slider__content {
     1277        position: absolute;
     1278        left: 0;
     1279        right: 0;
     1280        bottom: 0;
     1281        z-index: 2;
     1282        padding: 24px 28px;
     1283        width: 100%;
     1284}
     1285.xa-image-slider__title {
     1286        color: #fff;
     1287        font-size: 22px;
     1288        font-weight: var(--xa-font-semi);
     1289        margin: 0 0 8px !important;
     1290}
     1291.xa-image-slider__title a {
     1292        color: #fff;
     1293}
     1294.xa-image-slider__title a:hover {
     1295        color: var(--xa-primary);
     1296}
     1297.xa-image-slider__desc {
     1298        color: #fff;
     1299        margin: 0;
     1300        font-size: 15px;
     1301        line-height: 24px;
     1302}
     1303.xa-image-slider .slick-dots li button {
     1304        border-color: var(--xa-text);
     1305}
     1306.xa-image-slider .slick-dots li.slick-active button,
     1307.xa-image-slider .slick-dots li:hover button{
     1308        background: var(--xa-primary);
     1309        border-color: transparent;
     1310}
     1311@media (max-width: 1024px) {
     1312        .xa-image-slider__title {
     1313                font-size: 20px;
     1314        }
     1315        .xa-image-slider__content {
     1316                padding: 20px 22px;
     1317        }
     1318}
     1319@media (max-width: 767px) {
     1320        .xa-image-slider__title {
     1321                font-size: 18px;
     1322        }
     1323        .xa-image-slider__desc {
     1324                font-size: 14px;
     1325                line-height: 22px;
     1326        }
     1327        .xa-image-slider__content {
     1328                padding: 16px 16px;
     1329        }
     1330}
     1331/*----------------------------------------*/
     1332/*  End Image Slider
    11331333/*----------------------------------------*/
    11341334
    … …  
    11401340}
    11411341.xa-blog-single__date {
    1142         color: var(--xa-primary);
     1342        color: var(--xa-text);
    11431343        margin-bottom: 5px;
    11441344        display: block;
    … …  
    11581358}
    11591359.xa-blog-single__btn a:hover{
    1160         background-color: var(--xa-secondary);
     1360        background-color: var(--xa-heading);
    11611361        color:#fff;
    11621362}
    11631363.xa-blog-single__title a {
    1164         color: var(--xa-secondary);
     1364        color: var(--xa-heading);
    11651365        font-weight: 500;
    11661366}
    … …  
    12041404.xa-default-tab-menu__list li a,
    12051405.xa-default-tab-menu__list li a svg{
    1206         color:var(--xa-secondary);
    1207         fill:var(--xa-secondary);
     1406        color:var(--xa-heading);
     1407        fill:var(--xa-heading);
    12081408}
    12091409.xa-default-tab-menu__list li a * {
    … …  
    12131413}
    12141414
    1215 .xa-default-tab-menu__list a.active,
    1216 .xa-default-tab-menu__list li a:hover {
     1415.xa-default-tab-menu__list a.active, .xa-default-tab-menu__list li a:hover {
    12171416        background: var(--xa-primary);
    1218 }
    1219 
     1417        color: #fff;
     1418}
    12201419.xa-default-tab-menu__list a.active svg,
    12211420.xa-default-tab-menu__list li a:hover svg{
    … …  
    12441443        padding: 20px 16px 20px 16px;
    12451444        margin: 0px 0px 0px 0px;
    1246         background-color: var(--xa-third) !important;
     1445        background-color: var(--xa-offwhite) !important;
    12471446        border-style: solid;
    12481447        border-color: #FFFFFF;
    … …  
    12531452.xa-faq-list__content {
    12541453        padding: 30px 16px 30px 16px;
    1255         background-color: var(--xa-third);
     1454        background-color: var(--xa-offwhite);
    12561455        border-style: solid;
    12571456        border-width: 1px 0px 0px 0px;
    … …  
    12661465}
    12671466
     1467.xa-faq-list__item {
     1468        background: var(--xa-offwhite);
     1469       
     1470        border-radius: 12px !important;
     1471}
     1472.xa-faq-list__item button {
     1473        width: 100%;
     1474        display: flex;
     1475        align-items: center;
     1476        justify-content: space-between;
     1477        box-shadow: none !important;
     1478        border: none;
     1479}
     1480.xa-faq-list__title .accordion-button {
     1481  color: var(--xa-heading);
     1482}
     1483.accordion-button {
     1484  color: var(--xa-heading);
     1485}
     1486.xa-faq-list__title button {
     1487        color: var(--xa-heading) !important;
     1488        background: none !important;
     1489        font-size: 18px;
     1490}
     1491.xa-faq-list__button span {
     1492        background: var(--xa-heading);
     1493        color: #fff;
     1494        width: 30px;
     1495        height: 30px;
     1496        display: inline-flex;
     1497        justify-content: center;
     1498        align-items: center;
     1499        border-radius: 100%;
     1500        font-size: 18px;
     1501}
     1502.xa-faq-list__body {
     1503    display: none;
     1504}
     1505
     1506.xa-faq__active .xa-faq-list__body {
     1507    display: block;
     1508}
    12681509/* .xa-faq-list__title .accordion-button::after {
    1269         color: var(--xa-secondary) !important;
     1510        color: var(--xa-heading) !important;
    12701511        font-weight: 900;
    12711512        font-family: "Font Awesome 6 Free";
    … …  
    13101551/* Header */
    13111552.xa-table thead th {
    1312   background: var(--xa-secondary-bg);
     1553  background: var(--xa-heading);
    13131554  color: #fff;
    13141555  text-align: left;
    … …  
    13231564
    13241565.xa-table tbody tr:nth-child(even) {
    1325   background: var(--xa-third);
     1566  background: var(--xa-offwhite);
    13261567}
    13271568.xa-table__align {
    … …  
    13351576}
    13361577.xa-table table {
    1337         border: 1px solid var(--xa-third) !important;
     1578        border: 1px solid var(--xa-offwhite) !important;
    13381579        border-radius: 10px;
    13391580        border-collapse: collapse;
    … …  
    13441585}
    13451586.xa-table table td, .xa-table table th{
    1346         border:1px solid  var(--xa-third) !important
     1587        border:1px solid  var(--xa-offwhite) !important
    13471588}
    13481589.xa-table table th{
    … …  
    14081649.elementor-widget-text-editor p {
    14091650        margin: 0;
     1651        color: inherit;
     1652        font-size: inherit;
     1653        line-height: inherit;
    14101654}
    14111655/*----------------------------------------*/
    … …  
    14371681}
    14381682.xa-product__title a {
    1439   color: var(--xa-secondary);
     1683  color: var(--xa-heading);
    14401684}
    14411685.xa-product__title {
    … …  
    15971841/*  End CSS Layout Styles
    15981842/*----------------------------------------*/
    1599 
     1843/* —— Xpress Navigation Menu —— */
     1844.xa-navigation-menu__wrap {
     1845        position: relative;
     1846        display: flex;
     1847        align-items: center;
     1848        justify-content: flex-end;
     1849        width: 100%;
     1850}
     1851.xa-navigation-menu .xa-navigation-menu__list {
     1852        gap: 4px;
     1853        display: flex;
     1854        flex-wrap: wrap;
     1855        align-items: center;
     1856}
     1857.xa-navigation-menu ul {
     1858        list-style-type: none !important;
     1859        padding: 0;
     1860        margin: 0;
     1861}
     1862.xa-navigation-menu .xa-navigation-menu__list a {
     1863        color: inherit;
     1864        text-decoration: none;
     1865        padding: 10px 14px;
     1866        display: inline-block;
     1867        position: relative;
     1868        font-weight: 600;
     1869        transition: color 0.2s ease;
     1870}
     1871.xa-navigation-menu ul.sub-menu {
     1872        position: absolute;
     1873        background: #fff;
     1874        min-width: 220px;
     1875        height: max-content;
     1876        top: calc(100% + 6px);
     1877        left: 0;
     1878        z-index: 40;
     1879        opacity: 0;
     1880        visibility: hidden;
     1881        transform: translateY(6px);
     1882        transition: all 0.25s ease;
     1883        border-radius: 12px;
     1884        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
     1885        border-top: 2px solid var(--xa-primary, #605be5);
     1886        padding: 8px 0;
     1887}
     1888.xa-navigation-menu li:hover > ul.sub-menu {
     1889        opacity: 1;
     1890        visibility: visible;
     1891        transform: translateY(0);
     1892}
     1893.xa-navigation-menu ul.sub-menu li a {
     1894        color: inherit;
     1895        padding: 11px 18px;
     1896        display: block;
     1897        width: 100%;
     1898        font-size: 14px;
     1899        font-weight: 500;
     1900}
     1901.xa-navigation-menu ul.sub-menu ul.sub-menu {
     1902        left: 100%;
     1903        top: 0;
     1904}
     1905.xa-navigation-menu ul li {
     1906        position: relative;
     1907}
     1908.xa-navigation-menu .menu-item-has-children > a {
     1909        padding-right: 22px;
     1910}
     1911.xa-navigation-menu .menu-item-has-children > a::before {
     1912        content: "\f078";
     1913        font-family: "Font Awesome 6 Free";
     1914        font-size: 10px;
     1915        font-weight: 900;
     1916        position: absolute;
     1917        right: 6px;
     1918        top: 50%;
     1919        transform: translateY(-50%);
     1920        opacity: 0.7;
     1921}
     1922
     1923/* Toggle */
     1924.xa-navigation-menu__popup {
     1925        display: none;
     1926        align-items: center;
     1927}
     1928.xa-navigation-menu__icon {
     1929        width: 40px;
     1930        height: 40px;
     1931        margin: 0;
     1932        padding: 0;
     1933        border: 1px solid currentColor;
     1934        border-radius: 4px;
     1935        background: transparent;
     1936        color: inherit;
     1937        display: inline-flex;
     1938        align-items: center;
     1939        justify-content: center;
     1940        cursor: pointer;
     1941        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
     1942}
     1943.xa-navigation-menu__icon-bars {
     1944        display: flex;
     1945        flex-direction: column;
     1946        gap: 5px;
     1947        width: 18px;
     1948}
     1949.xa-navigation-menu__icon-bars span {
     1950        display: block;
     1951        height: 2px;
     1952        width: 100%;
     1953        background: currentColor;
     1954        border-radius: 2px;
     1955        transition: transform 0.25s ease, opacity 0.25s ease;
     1956}
     1957.xa-navigation-menu__popup.is-open .xa-navigation-menu__icon-bars span:nth-child(1) {
     1958        transform: translateY(7px) rotate(45deg);
     1959}
     1960.xa-navigation-menu__popup.is-open .xa-navigation-menu__icon-bars span:nth-child(2) {
     1961        opacity: 0;
     1962}
     1963.xa-navigation-menu__popup.is-open .xa-navigation-menu__icon-bars span:nth-child(3) {
     1964        transform: translateY(-7px) rotate(-45deg);
     1965}
     1966
     1967/* Overlay + drawer shell (hidden until mobile) */
     1968.xa-navigation-menu__overlay {
     1969        display: none;
     1970}
     1971.xa-navigation-menu__inside {
     1972        display: none;
     1973}
     1974
     1975@media only screen and (max-width: 991px) {
     1976        .xa-navigation-menu__popup {
     1977                display: inline-flex;
     1978        }
     1979        .xa-navigation-menu:not(.xa-navigation-menu__mobile) {
     1980                display: none !important;
     1981        }
     1982
     1983        .xa-navigation-menu__overlay {
     1984                display: block;
     1985                position: fixed;
     1986                inset: 0;
     1987                z-index: 100000;
     1988                background: rgba(15, 23, 42, 0.55);
     1989                opacity: 0;
     1990                visibility: hidden;
     1991                pointer-events: none;
     1992                transition: opacity 0.28s ease, visibility 0.28s ease;
     1993                -webkit-backdrop-filter: blur(4px);
     1994                backdrop-filter: blur(4px);
     1995        }
     1996        .xa-navigation-menu__popup.is-open .xa-navigation-menu__overlay {
     1997                opacity: 1;
     1998                visibility: visible;
     1999                pointer-events: auto;
     2000        }
     2001
     2002        .xa-navigation-menu__inside {
     2003                --xa-drawer-accent: #fc6761;
     2004                display: flex;
     2005                flex-direction: column;
     2006                position: fixed;
     2007                top: 0;
     2008                left: 0;
     2009                width: min(340px, 86vw);
     2010                height: 100%;
     2011                height: 100dvh;
     2012                z-index: 100001;
     2013                background-color: #0f172a;
     2014                color: #f8fafc;
     2015                box-shadow: 18px 0 48px rgba(2, 6, 23, 0.4);
     2016                transform: translateX(-104%);
     2017                opacity: 1;
     2018                visibility: visible;
     2019                transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
     2020                overflow: hidden;
     2021        }
     2022        .xa-navigation-menu__inside::before {
     2023                content: "";
     2024                position: absolute;
     2025                top: 0;
     2026                left: 0;
     2027                right: 0;
     2028                height: 3px;
     2029                z-index: 2;
     2030                background: linear-gradient(90deg, var(--xa-drawer-accent), rgba(252, 103, 97, 0.15));
     2031                pointer-events: none;
     2032        }
     2033        .xa-navigation-menu__inside::after {
     2034                content: "";
     2035                position: absolute;
     2036                inset: 0;
     2037                z-index: 0;
     2038                pointer-events: none;
     2039                background:
     2040                        radial-gradient(120% 55% at 0% 0%, color-mix(in srgb, var(--xa-drawer-accent) 28%, transparent), transparent 58%),
     2041                        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 34%);
     2042        }
     2043        .xa-navigation-menu__head,
     2044        .xa-navigation-menu__body {
     2045                position: relative;
     2046                z-index: 1;
     2047        }
     2048        .xa-navigation-menu__popup.is-open .xa-navigation-menu__inside,
     2049        .xa-navigation-menu__inside.is-open {
     2050                transform: translateX(0);
     2051        }
     2052
     2053        .xa-navigation-menu__head {
     2054                display: flex;
     2055                align-items: center;
     2056                justify-content: space-between;
     2057                gap: 12px;
     2058                padding: 24px 20px 18px;
     2059                border-bottom: 1px solid rgba(248, 250, 252, 0.1);
     2060                flex-shrink: 0;
     2061                position: relative;
     2062        }
     2063        .xa-navigation-menu__brand {
     2064                display: inline-flex;
     2065                align-items: center;
     2066                gap: 10px;
     2067                font-size: 16px;
     2068                font-weight: 700;
     2069                letter-spacing: -0.02em;
     2070                line-height: 1.2;
     2071        }
     2072        .xa-navigation-menu__brand::before {
     2073                content: "";
     2074                width: 10px;
     2075                height: 10px;
     2076                border-radius: 3px;
     2077                background: var(--xa-drawer-accent);
     2078                box-shadow: 0 0 0 4px rgba(252, 103, 97, 0.18);
     2079                flex-shrink: 0;
     2080        }
     2081        .xa-navigation-menu__brand--no-mark::before {
     2082                display: none;
     2083        }
     2084        .xa-navigation-menu__head--no-brand {
     2085                justify-content: flex-end;
     2086        }
     2087        .xa-navigation-menu__close {
     2088                width: 40px;
     2089                height: 40px;
     2090                margin: 0;
     2091                padding: 0;
     2092                border: 0;
     2093                border-radius: 12px;
     2094                background: rgba(248, 250, 252, 0.08);
     2095                color: #fff;
     2096                display: inline-flex;
     2097                align-items: center;
     2098                justify-content: center;
     2099                font-size: 26px;
     2100                line-height: 1;
     2101                cursor: pointer;
     2102                transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
     2103        }
     2104        .xa-navigation-menu__close:hover {
     2105                background: rgba(248, 250, 252, 0.16);
     2106                transform: rotate(90deg);
     2107        }
     2108
     2109        .xa-navigation-menu__body {
     2110                flex: 1 1 auto;
     2111                overflow: auto;
     2112                padding: 14px 14px 32px;
     2113                -webkit-overflow-scrolling: touch;
     2114        }
     2115
     2116        .xa-navigation-menu__inside .xa-navigation-menu__mobile {
     2117                display: block !important;
     2118        }
     2119        .xa-navigation-menu__inside .xa-navigation-menu__list {
     2120                display: flex;
     2121                flex-direction: column;
     2122                gap: 4px;
     2123                margin: 0;
     2124                padding: 0;
     2125                list-style: none;
     2126        }
     2127        .xa-navigation-menu__inside .xa-navigation-menu__list > li {
     2128                border-bottom: 0;
     2129                position: relative;
     2130                border-radius: 12px;
     2131                width: 100%;
     2132        }
     2133        .xa-navigation-menu__inside .xa-navigation-menu__list a {
     2134                display: block;
     2135                width: 100%;
     2136                padding: 14px 48px 14px 14px;
     2137                font-size: 15px;
     2138                font-weight: 600;
     2139                letter-spacing: -0.01em;
     2140                color: inherit;
     2141                border-radius: 12px;
     2142                text-decoration: none;
     2143                transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
     2144        }
     2145        .xa-navigation-menu__inside .xa-navigation-menu__list a:hover,
     2146        .xa-navigation-menu__inside .xa-navigation-menu__list a:focus {
     2147                background: rgba(248, 250, 252, 0.07);
     2148                padding-left: 18px;
     2149        }
     2150        .xa-navigation-menu__inside .xa-navigation-menu__list .current-menu-item > a,
     2151        .xa-navigation-menu__inside .xa-navigation-menu__list .current_page_item > a {
     2152                background: rgba(252, 103, 97, 0.12);
     2153                color: var(--xa-drawer-accent);
     2154        }
     2155        .xa-navigation-menu__inside .menu-item-has-children > a::before {
     2156                display: none;
     2157        }
     2158        .xa-navigation-menu__inside ul.sub-menu {
     2159                position: static;
     2160                opacity: 1;
     2161                visibility: visible;
     2162                transform: none;
     2163                box-shadow: none;
     2164                border: 0;
     2165                border-radius: 0;
     2166                background: transparent;
     2167                min-width: 0;
     2168                padding: 0 0 6px 8px;
     2169                margin: 0;
     2170                display: none;
     2171                list-style: none;
     2172        }
     2173        .xa-navigation-menu__inside .submenu-open > ul.sub-menu {
     2174                display: block;
     2175        }
     2176        .xa-navigation-menu__inside ul.sub-menu li a {
     2177                padding: 10px 14px 10px 18px;
     2178                font-size: 14px;
     2179                font-weight: 500;
     2180                opacity: 0.88;
     2181                border-left: 2px solid rgba(248, 250, 252, 0.12);
     2182                border-radius: 0 10px 10px 0;
     2183        }
     2184        .xa-navigation-menu__inside .xa-submenu-toggle {
     2185                appearance: none;
     2186                -webkit-appearance: none;
     2187                position: absolute;
     2188                right: 8px;
     2189                top: 8px;
     2190                width: 36px;
     2191                height: 36px;
     2192                margin: 0;
     2193                padding: 0;
     2194                border: 0;
     2195                background: transparent;
     2196                display: inline-flex;
     2197                align-items: center;
     2198                justify-content: center;
     2199                border-radius: 10px;
     2200                cursor: pointer;
     2201                color: inherit;
     2202                font: inherit;
     2203                line-height: 1;
     2204                transition: transform 0.25s ease, background 0.2s ease;
     2205        }
     2206        .xa-navigation-menu__inside .xa-submenu-toggle:hover {
     2207                background: rgba(248, 250, 252, 0.08);
     2208        }
     2209        .xa-navigation-menu__inside .submenu-open > .xa-submenu-toggle {
     2210                transform: rotate(180deg);
     2211                color: var(--xa-drawer-accent);
     2212        }
     2213}
     2214
     2215body.xa-nav-drawer-open {
     2216        overflow: hidden;
     2217}
     2218
     2219.xa-submenu-toggle {
     2220        cursor: pointer;
     2221}
     2222.menu-item-has-children {
     2223        position: relative;
     2224}
     2225
     2226
     2227
     2228
     2229
     2230/* Theme a:visited must not repaint widget links.
     2231   :where() keeps this weaker than widget and Elementor color rules. */
     2232body :where(.xa-wrapper) a:visited {
     2233        color: inherit;
     2234}
     2235.xa-hero-area__btn a:visited,
     2236.xa-portfolio-slider__button a:visited {
     2237        color: var(--xa-primary);
     2238}
     2239.xa-image-slider__title a:visited {
     2240        color: #fff;
     2241}
     2242
     2243.xa-mega-menu {
     2244        position: relative;
     2245        width: 100%;
     2246}
     2247.xa-mega-menu__toggle {
     2248        display: none;
     2249        align-items: center;
     2250        justify-content: center;
     2251        width: 44px;
     2252        height: 44px;
     2253        padding: 0;
     2254        border: 1px solid rgba(39, 60, 102, 0.12);
     2255        border-radius: 8px;
     2256        background: #fff;
     2257        color: var(--xa-heading);
     2258        cursor: pointer;
     2259}
     2260.xa-mega-menu__list {
     2261        display: flex;
     2262        flex-wrap: nowrap;
     2263        align-items: center;
     2264        gap: 4px;
     2265        margin: 0;
     2266        padding: 0;
     2267        list-style: none;
     2268}
     2269.xa-mega-menu__item {
     2270        position: relative;
     2271        display: inline-flex;
     2272        align-items: center;
     2273}
     2274.xa-mega-menu__caret-btn {
     2275        display: inline-flex;
     2276        align-items: center;
     2277        justify-content: center;
     2278        width: 28px;
     2279        height: 28px;
     2280        margin-left: -6px;
     2281        padding: 0;
     2282        border: 0;
     2283        background: transparent;
     2284        color: var(--xa-heading);
     2285        cursor: pointer;
     2286}
     2287.xa-mega-menu__item--has-panel::after {
     2288        content: "";
     2289        position: absolute;
     2290        top: 100%;
     2291        left: 0;
     2292        right: 0;
     2293        height: 12px;
     2294}
     2295.xa-mega-menu__toggle .screen-reader-text {
     2296        position: absolute;
     2297        width: 1px;
     2298        height: 1px;
     2299        padding: 0;
     2300        margin: -1px;
     2301        overflow: hidden;
     2302        clip: rect(0, 0, 0, 0);
     2303        border: 0;
     2304}
     2305.xa-mega-menu__link,
     2306.xa-mega-menu__sublink {
     2307        color: var(--xa-heading);
     2308        text-decoration: none;
     2309}
     2310.xa-mega-menu__link {
     2311        display: inline-flex;
     2312        align-items: center;
     2313        gap: 8px;
     2314        padding: 12px 16px;
     2315        font-weight: 600;
     2316}
     2317.xa-mega-menu__link:hover,
     2318.xa-mega-menu__item:hover > .xa-mega-menu__link,
     2319.xa-mega-menu__item.is-active > .xa-mega-menu__link {
     2320        color: var(--xa-primary);
     2321}
     2322.xa-mega-menu__caret {
     2323        font-size: 11px;
     2324        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
     2325}
     2326.xa-mega-menu__item.is-active > .xa-mega-menu__caret-btn .xa-mega-menu__caret,
     2327.xa-mega-menu[data-trigger="hover"]:not([data-xa-mega-ready]) .xa-mega-menu__item--has-panel:hover > .xa-mega-menu__caret-btn .xa-mega-menu__caret,
     2328.xa-mega-menu__item--has-panel:focus-within > .xa-mega-menu__caret-btn .xa-mega-menu__caret {
     2329        transform: rotate(180deg);
     2330}
     2331.xa-mega-menu__panel,
     2332.elementor-widget-xa-mega-menu .xa-mega-menu__item > .e-con {
     2333        box-sizing: border-box;
     2334        position: absolute;
     2335        top: calc(100% + 8px);
     2336        left: 0;
     2337        z-index: 30;
     2338        width: min(440px, calc(100vw - 32px));
     2339        max-height: min(70vh, 560px);
     2340        min-height: 0;
     2341        overflow: auto;
     2342        padding: 20px;
     2343        background: #fff;
     2344        border-radius: 16px;
     2345        box-shadow: 0 18px 40px rgba(39, 60, 102, 0.12);
     2346        opacity: 0;
     2347        visibility: hidden;
     2348        pointer-events: none;
     2349        transform: translateY(8px);
     2350        transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
     2351}
     2352
     2353/* Elementor editor: keep dropdowns under add-section / template icons */
     2354body.elementor-editor-active .xa-mega-menu__panel,
     2355body.elementor-editor-active .elementor-widget-xa-mega-menu .xa-mega-menu__item > .e-con,
     2356body.elementor-editor-preview .xa-mega-menu__panel,
     2357body.elementor-editor-preview .elementor-widget-xa-mega-menu .xa-mega-menu__item > .e-con {
     2358        z-index: 2;
     2359}
     2360body.elementor-editor-active .elementor-add-section,
     2361body.elementor-editor-active .elementor-empty-view,
     2362body.elementor-editor-preview .elementor-add-section,
     2363body.elementor-editor-preview .elementor-empty-view {
     2364        position: relative;
     2365        z-index: 20;
     2366}
     2367body.xa-hf-builder-canvas .elementor-add-section,
     2368body.xa-hf-builder-canvas .elementor-empty-view {
     2369        position: relative;
     2370        z-index: 20;
     2371}
     2372body:not(.elementor-editor-active) .xa-mega-menu[data-trigger="hover"]:not([data-xa-mega-ready]) .xa-mega-menu__item--has-panel:hover > .xa-mega-menu__panel,
     2373body:not(.elementor-editor-active) .xa-mega-menu[data-trigger="hover"]:not([data-xa-mega-ready]) .xa-mega-menu__item--has-panel:hover > .e-con,
     2374body:not(.elementor-editor-active) .xa-mega-menu__item--has-panel:focus-within > .xa-mega-menu__panel,
     2375body:not(.elementor-editor-active) .xa-mega-menu__item--has-panel:focus-within > .e-con,
     2376.xa-mega-menu__item.is-active > .xa-mega-menu__panel,
     2377.elementor-widget-xa-mega-menu .xa-mega-menu__item.is-active > .e-con {
     2378        opacity: 1;
     2379        visibility: visible;
     2380        pointer-events: auto;
     2381        transform: translateY(0);
     2382}
     2383.xa-mega-menu__panel--mega {
     2384        padding: 24px;
     2385}
     2386/* Hide blank dropdown shells when a column has no widgets/media. */
     2387body:not(.elementor-editor-active) .xa-mega-menu__item > .e-con:not(:has(.elementor-widget, .xa-mega-menu__media, img, video, iframe)),
     2388body:not(.elementor-editor-active) .xa-mega-menu__panel:not(:has(.elementor-widget, .xa-mega-menu__media, img, video, iframe, .xa-mega-menu__dropdown, .xa-mega-menu__heading, .xa-mega-menu__sublink)) {
     2389        display: none !important;
     2390        opacity: 0 !important;
     2391        visibility: hidden !important;
     2392        pointer-events: none !important;
     2393        padding: 0 !important;
     2394        min-height: 0 !important;
     2395        max-height: 0 !important;
     2396        overflow: hidden !important;
     2397        box-shadow: none !important;
     2398        border: 0 !important;
     2399}
     2400body.elementor-editor-active .xa-mega-menu__item.is-active > .e-con.xa-mega-menu__panel--empty,
     2401body.elementor-editor-active .xa-mega-menu__item.is-active > .xa-mega-menu__panel--empty {
     2402        /* Empty editor columns stay available for "Drag widget here" only when opened. */
     2403        min-height: 80px;
     2404}
     2405body.elementor-editor-active .xa-mega-menu__item:not(.is-active) > .e-con.xa-mega-menu__panel--empty,
     2406body.elementor-editor-active .xa-mega-menu__item:not(.is-active) > .xa-mega-menu__panel--empty {
     2407        opacity: 0 !important;
     2408        visibility: hidden !important;
     2409        pointer-events: none !important;
     2410}
     2411.xa-mega-menu__panel--layout,
     2412.elementor-widget-xa-mega-menu .xa-mega-menu__item--layout > .e-con {
     2413        --width: min(440px, calc(100vw - 32px));
     2414        width: min(440px, calc(100vw - 32px));
     2415        min-width: min(280px, calc(100vw - 32px));
     2416        max-width: min(440px, calc(100vw - 32px));
     2417}
     2418.xa-mega-menu__panel--full,
     2419.elementor-widget-xa-mega-menu .xa-mega-menu__item--full > .e-con {
     2420        --width: 100vw;
     2421        width: 100vw;
     2422        max-width: 100vw;
     2423        min-width: 0;
     2424}
     2425.xa-mega-menu__item:last-child > .xa-mega-menu__panel--dropdown,
     2426.xa-mega-menu__item:nth-last-child(2) > .xa-mega-menu__panel--dropdown {
     2427        left: auto;
     2428        right: 0;
     2429}
     2430.xa-mega-menu__columns {
     2431        display: grid;
     2432        grid-template-columns: repeat(var(--xa-item-cols, var(--xa-mega-cols, 3)), minmax(0, 1fr));
     2433        gap: 24px;
     2434}
     2435@media (prefers-reduced-motion: reduce) {
     2436        .xa-mega-menu__panel,
     2437        .xa-mega-menu__caret,
     2438        .xa-mega-menu__list {
     2439                transition: none;
     2440        }
     2441}
     2442.xa-mega-menu__heading {
     2443        margin: 0 0 12px;
     2444        color: var(--xa-heading);
     2445        font-size: 14px;
     2446        font-weight: 700;
     2447}
     2448.xa-mega-menu__dropdown {
     2449        margin: 0;
     2450        padding: 0;
     2451        list-style: none;
     2452}
     2453.xa-mega-menu__sublink {
     2454        display: flex;
     2455        flex-direction: column;
     2456        gap: 2px;
     2457        padding: 8px 0;
     2458}
     2459.xa-mega-menu__sublink:hover {
     2460        color: var(--xa-primary);
     2461}
     2462.xa-mega-menu__subtext {
     2463        color: var(--xa-text);
     2464        font-size: 13px;
     2465        font-weight: 400;
     2466        line-height: 1.45;
     2467}
     2468.xa-mega-menu__media {
     2469        display: block;
     2470        width: 100%;
     2471        max-width: 280px;
     2472        height: auto;
     2473        margin: 0 0 16px;
     2474        border-radius: 12px;
     2475}
     2476body.elementor-editor-active .elementor-widget-xa-mega-menu,
     2477body.elementor-editor-active .elementor-widget-xa-mega-menu > .elementor-widget-container,
     2478body.elementor-editor-active .xa-mega-menu,
     2479body.elementor-editor-active .xa-mega-menu__list,
     2480body.elementor-editor-active .xa-mega-menu__item,
     2481.xa-hf--header,
     2482.xa-hf--header .elementor,
     2483.xa-hf--header .e-con,
     2484.xa-hf--header .elementor-element,
     2485.xa-hf--header .elementor-widget-xa-mega-menu,
     2486.xa-hf--header .elementor-widget-xa-mega-menu > .elementor-widget-container,
     2487.xa-hf--header .xa-mega-menu,
     2488.xa-hf--header .xa-mega-menu__list,
     2489.xa-hf--header .xa-mega-menu__item {
     2490        overflow: visible;
     2491}
     2492.xa-hf--header {
     2493        position: relative;
     2494        z-index: 999;
     2495}
     2496body.elementor-editor-active .elementor-widget-xa-mega-menu .xa-mega-menu__item > .e-con {
     2497        z-index: 40;
     2498}
     2499body.elementor-editor-active .elementor-widget-xa-mega-menu .xa-mega-menu__item:not(.is-active) > .e-con {
     2500        pointer-events: none;
     2501}
     2502body.elementor-editor-active .elementor-widget-xa-mega-menu .xa-mega-menu__item.is-active > .e-con {
     2503        pointer-events: auto;
     2504}
     2505.xa-mega-menu__panel .elementor-widget,
     2506.elementor-widget-xa-mega-menu .xa-mega-menu__item > .e-con .elementor-widget {
     2507        width: 100%;
     2508}
     2509/* Keep Elementor Icon List readable inside dropdown panels. */
     2510.elementor-widget-xa-mega-menu .elementor-icon-list-items,
     2511.xa-mega-menu__panel .elementor-icon-list-items {
     2512        --e-icon-list-icon-size: 14px;
     2513        list-style: none;
     2514        list-style-type: none;
     2515        margin: 0;
     2516        padding: 0;
     2517}
     2518.elementor-widget-xa-mega-menu .elementor-icon-list-item,
     2519.xa-mega-menu__panel .elementor-icon-list-item {
     2520        list-style: none;
     2521        list-style-type: none;
     2522        align-items: center;
     2523}
     2524.elementor-widget-xa-mega-menu .elementor-icon-list-item::marker,
     2525.xa-mega-menu__panel .elementor-icon-list-item::marker {
     2526        content: "";
     2527        font-size: 0;
     2528}
     2529.elementor-widget-xa-mega-menu .elementor-icon-list-icon,
     2530.xa-mega-menu__panel .elementor-icon-list-icon {
     2531        flex: 0 0 auto;
     2532        width: auto;
     2533        margin-inline-end: 8px;
     2534}
     2535.elementor-widget-xa-mega-menu .elementor-icon-list-icon i,
     2536.elementor-widget-xa-mega-menu .elementor-icon-list-icon svg,
     2537.elementor-widget-xa-mega-menu .elementor-icon-list-icon .e-font-icon-svg,
     2538.xa-mega-menu__panel .elementor-icon-list-icon i,
     2539.xa-mega-menu__panel .elementor-icon-list-icon svg,
     2540.xa-mega-menu__panel .elementor-icon-list-icon .e-font-icon-svg {
     2541        width: var(--e-icon-list-icon-size, 14px);
     2542        height: var(--e-icon-list-icon-size, 14px);
     2543        max-width: 14px;
     2544        max-height: 14px;
     2545        font-size: var(--e-icon-list-icon-size, 14px);
     2546        line-height: 1;
     2547        display: block;
     2548}
     2549.elementor-widget-xa-mega-menu .elementor-icon-list-text,
     2550.xa-mega-menu__panel .elementor-icon-list-text {
     2551        flex: 1 1 auto;
     2552        min-width: 0;
     2553}
     2554.xa-mega-menu__link:visited,
     2555.xa-mega-menu__sublink:visited {
     2556        color: var(--xa-heading);
     2557}
     2558
     2559.xa-mega-menu .xa-mega-menu__item  a{
     2560        display: block;
     2561}
    16002562
    16012563.page-content .xa-wrapper a,.entry-content .xa-wrapper p{
    … …  
    16092571
    16102572
     2573.xa-image-slider.xa-wrapper .gap-remove {
     2574        margin: 0 !important;
     2575}
     2576.xa-image-slider.xa-wrapper .gap-remove .slick-track {
     2577        margin-left: 0 !important;
     2578        margin-right: 0 !important;
     2579}
     2580.xa-image-slider.xa-wrapper .slick-track .slick-slide {
     2581        margin-left: 0 !important;
     2582}
  • x-addons-elementor/trunk/assets/js/plugin-active.js

    r3375643 r3821717  
    1 // Check if the element with ID 'typed' exists
    2 var typedElement = document.getElementById('typed');
    3 
    4 if (typedElement !== null) {
    5     // Typed JS
    6     var typed = new Typed('#typed', {
    7         stringsElement: '#typed-strings',
    8         loop: true,
    9         typeSpeed: 70,
    10         backSpeed: 30,
     1function xaStartTypewriter(root) {
     2    var scope = root && root.querySelectorAll ? root : document;
     3    var nodes = scope.querySelectorAll('[data-xa-typewriter]');
     4
     5    nodes.forEach(function (target) {
     6        if (target.getAttribute('data-xa-type-ready')) {
     7            return;
     8        }
     9
     10        var source = target.parentNode.querySelector('.xa-hero__phrases');
     11
     12        if (!source) {
     13            return;
     14        }
     15
     16        var strings = [];
     17
     18        source.querySelectorAll('p').forEach(function (item) {
     19            var value = item.textContent.replace(/\s+/g, ' ').trim();
     20
     21            if (value) {
     22                strings.push(value);
     23            }
     24        });
     25
     26        if (!strings.length) {
     27            return;
     28        }
     29
     30        target.setAttribute('data-xa-type-ready', '1');
     31
     32        var textNode = document.createElement('span');
     33        textNode.className = 'xa-hero__type';
     34
     35        var cursor = document.createElement('span');
     36        cursor.className = 'xa-hero__cursor';
     37        cursor.setAttribute('aria-hidden', 'true');
     38
     39        target.appendChild(textNode);
     40        target.appendChild(cursor);
     41
     42        if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
     43            textNode.textContent = strings[0];
     44            cursor.hidden = true;
     45            return;
     46        }
     47
     48        var stringIndex = 0;
     49        var charIndex = 0;
     50        var deleting = false;
     51
     52        function step() {
     53            if (!target.isConnected) {
     54                return;
     55            }
     56
     57            var word = strings[stringIndex];
     58
     59            if (!deleting) {
     60                charIndex += 1;
     61                textNode.textContent = word.slice(0, charIndex);
     62
     63                if (charIndex >= word.length) {
     64                    deleting = true;
     65                    window.setTimeout(step, 1400);
     66                    return;
     67                }
     68
     69                window.setTimeout(step, 70);
     70                return;
     71            }
     72
     73            charIndex -= 1;
     74            textNode.textContent = word.slice(0, Math.max(charIndex, 0));
     75
     76            if (charIndex <= 0) {
     77                deleting = false;
     78                stringIndex = (stringIndex + 1) % strings.length;
     79                window.setTimeout(step, 280);
     80                return;
     81            }
     82
     83            window.setTimeout(step, 30);
     84        }
     85
     86        window.setTimeout(step, 300);
    1187    });
    1288}
     89
     90if (document.readyState === 'loading') {
     91    document.addEventListener('DOMContentLoaded', function () {
     92        xaStartTypewriter(document);
     93    });
     94} else {
     95    xaStartTypewriter(document);
     96}
     97
     98
     99function xaEditorApi() {
     100    if (window.elementor && window.elementor.getContainer) {
     101        return window.elementor;
     102    }
     103    try {
     104        if (window.parent && window.parent !== window && window.parent.elementor && window.parent.elementor.getContainer) {
     105            return window.parent.elementor;
     106        }
     107    } catch (error) {
     108        return null;
     109    }
     110    return null;
     111}
     112
     113function xaMountMegaColumns(root, attempt) {
     114    var editor = xaEditorApi();
     115    if (!editor) {
     116        return;
     117    }
     118
     119    // Expose for the editor parent frame so reorder hooks can remount panels.
     120    window.xaMountMegaColumns = xaMountMegaColumns;
     121
     122    var scope = root && root.querySelectorAll ? root : document;
     123    var menus = scope.classList && scope.classList.contains('xa-mega-menu')
     124        ? [scope]
     125        : Array.prototype.slice.call(scope.querySelectorAll('.xa-mega-menu'));
     126    var pending = false;
     127
     128    menus.forEach(function (menu) {
     129        var widget = menu.closest('.elementor-element');
     130        var container = null;
     131        try {
     132            container = widget ? editor.getContainer(widget.getAttribute('data-id')) : null;
     133        } catch (error) {
     134            container = null;
     135        }
     136        var items = menu.querySelectorAll('.xa-mega-menu__list > .xa-mega-menu__item');
     137        if (!container || !container.children) {
     138            pending = true;
     139            return;
     140        }
     141
     142        var mounted = true;
     143        var changed = false;
     144        container.children.forEach(function (child, index) {
     145            var item = items[index];
     146            var el = child.view && child.view.el;
     147            if (!item || !el) {
     148                mounted = false;
     149                return;
     150            }
     151            if (el.parentElement !== item) {
     152                item.appendChild(el);
     153                changed = true;
     154            }
     155            var full = item.classList.contains('xa-mega-menu__item--full');
     156            el.classList.add('xa-mega-menu__panel', 'xa-mega-menu__panel--mega');
     157            el.classList.toggle('xa-mega-menu__panel--full', full);
     158            el.classList.toggle('xa-mega-menu__panel--layout', !full);
     159        });
     160
     161        if (mounted && changed) {
     162            menu.dispatchEvent(new CustomEvent('xa-mega-mounted'));
     163        } else if (!mounted) {
     164            pending = true;
     165        }
     166
     167        if (mounted && menu._xaMega && typeof menu._xaMega.syncEmptyPanels === 'function') {
     168            menu._xaMega.syncEmptyPanels();
     169        }
     170    });
     171
     172    if (pending && (attempt || 0) < 8) {
     173        window.setTimeout(function () {
     174            xaMountMegaColumns(root, (attempt || 0) + 1);
     175        }, 80);
     176    }
     177}
     178
     179function xaMegaBreakpointCss(scope, breakpoint) {
     180    var ease = 'cubic-bezier(0.22, 1, 0.36, 1)';
     181    return '@media (max-width:' + breakpoint + 'px){'
     182        + scope + '{width:100%}'
     183        + scope + ' .xa-mega-menu__toggle{display:inline-flex}'
     184        + scope + ' .xa-mega-menu__list{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;width:100%;max-height:0;overflow:hidden;opacity:0;margin-top:8px;background:#fff;border:1px solid rgba(39,60,102,.08);border-radius:12px;transition:max-height .35s ' + ease + ',opacity .25s ease}'
     185        + scope + '.is-open .xa-mega-menu__list{max-height:80vh;overflow:auto;opacity:1}'
     186        + scope + ' .xa-mega-menu__item{display:flex;flex-wrap:wrap;align-items:center;width:100%;border-top:1px solid rgba(39,60,102,.08)}'
     187        + scope + ' .xa-mega-menu__item:first-child{border-top:0}'
     188        + scope + ' .xa-mega-menu__link{flex:1 1 auto}'
     189        + scope + ' .xa-mega-menu__caret-btn{margin-left:auto}'
     190        + scope + ' .xa-mega-menu__panel,' + scope + ' .xa-mega-menu__item > .e-con{position:static;left:auto;right:auto;top:auto;flex:1 1 100%;width:100%;min-width:0;max-width:100%;max-height:0;overflow:hidden;opacity:0;visibility:hidden;transform:none;box-shadow:none;border-radius:0;padding:0;pointer-events:none}'
     191        + scope + ' .xa-mega-menu__item.is-active > .xa-mega-menu__panel,' + scope + ' .xa-mega-menu__item.is-active > .e-con{flex:1 1 100%;max-height:70vh;overflow:auto;opacity:1;visibility:visible;pointer-events:auto;padding:8px 16px 16px}'
     192        + scope + ' img{max-width:100%;height:auto}'
     193        + '}';
     194}
     195
     196var xaMegaDocBound = false;
     197
     198function xaBindMegaDocumentEvents() {
     199    if (xaMegaDocBound) {
     200        return;
     201    }
     202    xaMegaDocBound = true;
     203
     204    document.addEventListener('click', function (event) {
     205        if (document.body.classList.contains('elementor-editor-active')) {
     206            return;
     207        }
     208        document.querySelectorAll('.xa-mega-menu[data-xa-mega-ready]').forEach(function (menu) {
     209            if (!menu._xaMega || menu.contains(event.target)) {
     210                return;
     211            }
     212            if (menu.classList.contains('is-open') || menu.querySelector('.xa-mega-menu__item.is-active')) {
     213                menu._xaMega.shutdown();
     214            }
     215        });
     216    });
     217
     218    document.addEventListener('keydown', function (event) {
     219        if (event.key !== 'Escape') {
     220            return;
     221        }
     222        document.querySelectorAll('.xa-mega-menu[data-xa-mega-ready]').forEach(function (menu) {
     223            if (menu._xaMega && (menu.classList.contains('is-open') || menu.querySelector('.xa-mega-menu__item.is-active'))) {
     224                menu._xaMega.shutdown();
     225            }
     226        });
     227    });
     228}
     229
     230function xaInitMegaMenus(root) {
     231    var scope = root && root.querySelectorAll ? root : document;
     232
     233    xaBindMegaDocumentEvents();
     234
     235    scope.querySelectorAll('.xa-mega-menu').forEach(function (menu) {
     236        if (menu.getAttribute('data-xa-mega-ready')) {
     237            return;
     238        }
     239
     240        menu.setAttribute('data-xa-mega-ready', '1');
     241
     242        var isEditor = menu.classList.contains('xa-mega-menu--editor') || document.body.classList.contains('elementor-editor-active');
     243        var host = menu.closest('.elementor-widget') || menu.parentElement;
     244        var toggle = menu.querySelector('.xa-mega-menu__toggle');
     245        var list = menu.querySelector('.xa-mega-menu__list');
     246        var breakpoint = parseInt(menu.getAttribute('data-breakpoint'), 10) || 991;
     247        var closeTimers = new WeakMap();
     248        var media = window.matchMedia('(max-width: ' + breakpoint + 'px)');
     249        var resizeTimer = 0;
     250
     251        if (isEditor && menu.id) {
     252            var styleId = menu.id + '-bp-css';
     253            var styleEl = document.getElementById(styleId);
     254            if (!styleEl) {
     255                styleEl = document.createElement('style');
     256                styleEl.id = styleId;
     257                menu.insertAdjacentElement('beforebegin', styleEl);
     258            }
     259            styleEl.textContent = xaMegaBreakpointCss('#' + menu.id, breakpoint);
     260        }
     261
     262        function isMobile() {
     263            return media.matches;
     264        }
     265
     266        function menuItems() {
     267            return menu.querySelectorAll('.xa-mega-menu__list > .xa-mega-menu__item');
     268        }
     269
     270        function panelHasContent(panel) {
     271            if (!panel) {
     272                return false;
     273            }
     274            if (panel.querySelector('.xa-mega-menu__media, img, video, iframe, .elementor-widget')) {
     275                return true;
     276            }
     277            // Editor empty drop zone counts as editable content.
     278            if (isEditor && panel.querySelector('.elementor-empty-view, .elementor-add-section')) {
     279                return true;
     280            }
     281            var text = (panel.textContent || '').replace(/\s+/g, '');
     282            return text.length > 0;
     283        }
     284
     285        function syncEmptyPanels() {
     286            menuItems().forEach(function (item) {
     287                var panel = item.querySelector(':scope > .xa-mega-menu__panel, :scope > .e-con');
     288                var caret = item.querySelector(':scope > .xa-mega-menu__caret-btn');
     289                var hasContent = panelHasContent(panel);
     290
     291                // Front-end: never expose blank dropdown chrome.
     292                if (!isEditor) {
     293                    item.classList.toggle('xa-mega-menu__item--has-panel', hasContent);
     294                    if (caret) {
     295                        caret.hidden = !hasContent;
     296                        caret.style.display = hasContent ? '' : 'none';
     297                    }
     298                    if (panel) {
     299                        panel.hidden = !hasContent;
     300                        if (!hasContent) {
     301                            panel.style.setProperty('display', 'none', 'important');
     302                        } else {
     303                            panel.style.removeProperty('display');
     304                        }
     305                    }
     306                    if (!hasContent) {
     307                        item.classList.remove('is-active');
     308                    }
     309                    return;
     310                }
     311
     312                // Editor: keep panels for nesting/editing, but hide blank open
     313                // state until the column has widgets or is being edited.
     314                item.classList.add('xa-mega-menu__item--has-panel');
     315                if (caret) {
     316                    caret.hidden = false;
     317                    caret.style.display = '';
     318                }
     319                if (panel) {
     320                    panel.hidden = false;
     321                    panel.style.removeProperty('display');
     322                    panel.classList.toggle('xa-mega-menu__panel--empty', !hasContent);
     323                }
     324            });
     325        }
     326
     327        function rememberOpen(item) {
     328            if (!isEditor || !host) {
     329                return;
     330            }
     331            if (item) {
     332                host.setAttribute('data-xa-mega-open', Array.prototype.indexOf.call(menuItems(), item));
     333            } else {
     334                host.removeAttribute('data-xa-mega-open');
     335            }
     336        }
     337
     338        function setExpanded(item, open) {
     339            var link = item.querySelector(':scope > .xa-mega-menu__link');
     340            var caret = item.querySelector(':scope > .xa-mega-menu__caret-btn');
     341            if (link) {
     342                link.setAttribute('aria-expanded', open ? 'true' : 'false');
     343            }
     344            if (caret) {
     345                caret.setAttribute('aria-expanded', open ? 'true' : 'false');
     346            }
     347        }
     348
     349        function clearPanel(panel) {
     350            panel.style.left = '';
     351            panel.style.right = '';
     352            panel.style.width = '';
     353            panel.style.removeProperty('max-width');
     354        }
     355
     356        function placePanel(item) {
     357            var panel = item.querySelector(':scope > .xa-mega-menu__panel, :scope > .e-con');
     358            if (!panel) {
     359                return;
     360            }
     361            if (isMobile()) {
     362                clearPanel(panel);
     363                return;
     364            }
     365
     366            var itemRect = item.getBoundingClientRect();
     367            var viewport = document.documentElement.clientWidth || window.innerWidth;
     368            panel.style.right = 'auto';
     369
     370            if (item.classList.contains('xa-mega-menu__item--full') || panel.classList.contains('xa-mega-menu__panel--full')) {
     371                panel.style.width = viewport + 'px';
     372                panel.style.maxWidth = viewport + 'px';
     373                panel.style.left = (-itemRect.left) + 'px';
     374                return;
     375            }
     376
     377            panel.style.width = '';
     378            panel.style.maxWidth = '';
     379            panel.style.left = '0px';
     380            var rect = panel.getBoundingClientRect();
     381            var shift = 0;
     382            if (rect.right > viewport - 16) {
     383                shift -= rect.right - (viewport - 16);
     384            }
     385            if (rect.left + shift < 16) {
     386                shift += 16 - (rect.left + shift);
     387            }
     388            if (shift) {
     389                panel.style.left = shift + 'px';
     390            }
     391        }
     392
     393        function closeItems(except) {
     394            var actives = menu.querySelectorAll('.xa-mega-menu__item.is-active');
     395            for (var i = 0; i < actives.length; i++) {
     396                var item = actives[i];
     397                if (except && item === except) {
     398                    continue;
     399                }
     400                var pending = closeTimers.get(item);
     401                if (pending) {
     402                    clearTimeout(pending);
     403                }
     404                item.classList.remove('is-active');
     405                setExpanded(item, false);
     406            }
     407            if (!except) {
     408                rememberOpen(null);
     409            }
     410        }
     411
     412        function openItem(item) {
     413            if (!isEditor) {
     414                var panel = item.querySelector(':scope > .xa-mega-menu__panel, :scope > .e-con');
     415                if (!panelHasContent(panel)) {
     416                    return;
     417                }
     418            }
     419            var pending = closeTimers.get(item);
     420            if (pending) {
     421                clearTimeout(pending);
     422            }
     423            closeItems(item);
     424            item.classList.add('is-active');
     425            setExpanded(item, true);
     426            placePanel(item);
     427            rememberOpen(item);
     428        }
     429
     430        function queueClose(item) {
     431            var pending = closeTimers.get(item);
     432            if (pending) {
     433                clearTimeout(pending);
     434            }
     435            closeTimers.set(item, setTimeout(function () {
     436                item.classList.remove('is-active');
     437                setExpanded(item, false);
     438            }, 180));
     439        }
     440
     441        function syncList() {
     442            if (!list) {
     443                return;
     444            }
     445            if (isMobile() && !menu.classList.contains('is-open')) {
     446                list.setAttribute('inert', '');
     447            } else {
     448                list.removeAttribute('inert');
     449            }
     450        }
     451
     452        function shutdown() {
     453            menu.classList.remove('is-open');
     454            if (toggle) {
     455                toggle.setAttribute('aria-expanded', 'false');
     456            }
     457            closeItems();
     458            syncList();
     459        }
     460
     461        menu._xaMega = {
     462            shutdown: shutdown,
     463            placePanel: placePanel,
     464            openItem: openItem,
     465            syncEmptyPanels: syncEmptyPanels
     466        };
     467
     468        syncEmptyPanels();
     469        syncList();
     470
     471        if (toggle) {
     472            toggle.addEventListener('click', function (event) {
     473                event.preventDefault();
     474                var open = menu.classList.toggle('is-open');
     475                toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
     476                if (!open) {
     477                    closeItems();
     478                }
     479                syncList();
     480            });
     481        }
     482
     483        // One delegated hover/focus handler instead of 3 listeners per item.
     484        menu.addEventListener('mouseover', function (event) {
     485            if (isEditor || menu.getAttribute('data-trigger') !== 'hover' || isMobile()) {
     486                return;
     487            }
     488            var item = event.target.closest('.xa-mega-menu__item--has-panel');
     489            if (!item || !menu.contains(item) || item.contains(event.relatedTarget)) {
     490                return;
     491            }
     492            openItem(item);
     493        });
     494
     495        menu.addEventListener('mouseout', function (event) {
     496            if (isEditor || menu.getAttribute('data-trigger') !== 'hover' || isMobile()) {
     497                return;
     498            }
     499            var item = event.target.closest('.xa-mega-menu__item--has-panel');
     500            if (!item || !menu.contains(item) || item.contains(event.relatedTarget)) {
     501                return;
     502            }
     503            queueClose(item);
     504        });
     505
     506        menu.addEventListener('focusin', function (event) {
     507            if (isMobile()) {
     508                return;
     509            }
     510            var item = event.target.closest('.xa-mega-menu__item--has-panel');
     511            if (item && menu.contains(item)) {
     512                placePanel(item);
     513            }
     514        });
     515
     516        menu.addEventListener('click', function (event) {
     517            var item = event.target.closest('.xa-mega-menu__item--has-panel');
     518            if (!item || !menu.contains(item)) {
     519                return;
     520            }
     521
     522            var panel = item.querySelector(':scope > .xa-mega-menu__panel, :scope > .e-con');
     523            if (panel && panel.contains(event.target)) {
     524                return;
     525            }
     526
     527            var onCaret = event.target.closest('.xa-mega-menu__caret-btn');
     528            var isClickTrigger = menu.getAttribute('data-trigger') === 'click';
     529
     530            // Editor: never toggle panels from link clicks — that covers
     531            // Elementor "Drag widget here" / template icons. Only caret or
     532            // editable-column sync may open a panel.
     533            if (isEditor) {
     534                if (!onCaret) {
     535                    return;
     536                }
     537                event.preventDefault();
     538                if (item.classList.contains('is-active')) {
     539                    closeItems();
     540                } else {
     541                    openItem(item);
     542                }
     543                return;
     544            }
     545
     546            if (!onCaret && !isClickTrigger) {
     547                return;
     548            }
     549
     550            event.preventDefault();
     551            event.stopPropagation();
     552            if (item.classList.contains('is-active')) {
     553                closeItems();
     554            } else {
     555                openItem(item);
     556            }
     557        });
     558
     559        if (window.MutationObserver) {
     560            var editorSyncQueued = false;
     561            new MutationObserver(function () {
     562                if (editorSyncQueued) {
     563                    return;
     564                }
     565                editorSyncQueued = true;
     566                window.requestAnimationFrame(function () {
     567                    editorSyncQueued = false;
     568                    syncEmptyPanels();
     569                    if (!isEditor) {
     570                        return;
     571                    }
     572                    var editing = menu.querySelector('.elementor-element-editable');
     573                    var item = editing ? editing.closest('.xa-mega-menu__item--has-panel') : null;
     574                    if (item) {
     575                        if (!item.classList.contains('is-active')) {
     576                            openItem(item);
     577                        }
     578                    } else {
     579                        closeItems();
     580                    }
     581                });
     582            }).observe(menu, {
     583                subtree: true,
     584                childList: true,
     585                attributes: true,
     586                attributeFilter: ['class']
     587            });
     588        }
     589
     590        function onBreakpointChange() {
     591            menu.querySelectorAll(':scope > .xa-mega-menu__list > .xa-mega-menu__item > .xa-mega-menu__panel--mega').forEach(clearPanel);
     592            if (isEditor) {
     593                var active = menu.querySelector('.xa-mega-menu__list > .xa-mega-menu__item.is-active');
     594                if (active) {
     595                    placePanel(active);
     596                }
     597            } else {
     598                closeItems();
     599            }
     600            syncList();
     601        }
     602
     603        window.addEventListener('resize', function () {
     604            if (resizeTimer) {
     605                window.clearTimeout(resizeTimer);
     606            }
     607            resizeTimer = window.setTimeout(onBreakpointChange, 120);
     608        });
     609        if (media.addEventListener) {
     610            media.addEventListener('change', onBreakpointChange);
     611        }
     612
     613        if (isEditor) {
     614            menu.addEventListener('xa-mega-mounted', function () {
     615                var active = menu.querySelector('.xa-mega-menu__list > .xa-mega-menu__item.is-active');
     616                if (active) {
     617                    placePanel(active);
     618                }
     619            });
     620
     621            var saved = host ? parseInt(host.getAttribute('data-xa-mega-open'), 10) : NaN;
     622            var savedItem = isNaN(saved) ? null : menuItems()[saved];
     623            if (savedItem) {
     624                openItem(savedItem);
     625            }
     626        }
     627    });
     628}
     629
     630if (document.readyState === 'loading') {
     631    document.addEventListener('DOMContentLoaded', function () {
     632        xaInitMegaMenus(document);
     633    });
     634} else {
     635    xaInitMegaMenus(document);
     636}
     637
     638document.addEventListener('DOMContentLoaded', function () {
     639
     640    document.querySelectorAll('.xa-navigation-menu__wrap').forEach(function (wrap) {
     641
     642        var desktopMenu = wrap.querySelector('.xa-navigation-menu:not(.xa-navigation-menu__mobile)');
     643        var popup = wrap.querySelector('.xa-navigation-menu__popup');
     644        var inside = wrap.querySelector('.xa-navigation-menu__inside');
     645        var overlay = wrap.querySelector('.xa-navigation-menu__overlay');
     646        var openBtn = wrap.querySelector('.xa-navigation-menu__icon');
     647        var bodySlot = wrap.querySelector('.xa-navigation-menu__body');
     648        var closeBtn = wrap.querySelector('.xa-navigation-menu__close');
     649
     650        if (!desktopMenu || !popup || !inside || !openBtn) {
     651            return;
     652        }
     653
     654        if (!bodySlot) {
     655            bodySlot = document.createElement('div');
     656            bodySlot.className = 'xa-navigation-menu__body';
     657            inside.appendChild(bodySlot);
     658        }
     659
     660        if (!bodySlot.querySelector('.xa-navigation-menu__mobile')) {
     661            var mobileMenu = desktopMenu.cloneNode(true);
     662            mobileMenu.classList.add('xa-navigation-menu__mobile');
     663            bodySlot.appendChild(mobileMenu);
     664        }
     665
     666        if (overlay) {
     667            overlay.hidden = false;
     668        }
     669        inside.hidden = false;
     670
     671        function setOpen(open) {
     672            popup.classList.toggle('is-open', open);
     673            inside.classList.toggle('is-open', open);
     674            openBtn.setAttribute('aria-expanded', open ? 'true' : 'false');
     675            document.body.classList.toggle('xa-nav-drawer-open', open);
     676        }
     677
     678        openBtn.addEventListener('click', function (e) {
     679            e.preventDefault();
     680            e.stopPropagation();
     681            setOpen(!popup.classList.contains('is-open'));
     682        });
     683
     684        if (closeBtn) {
     685            closeBtn.addEventListener('click', function (e) {
     686                e.preventDefault();
     687                e.stopPropagation();
     688                setOpen(false);
     689            });
     690        }
     691
     692        if (overlay) {
     693            overlay.addEventListener('click', function () {
     694                setOpen(false);
     695            });
     696        }
     697
     698        document.addEventListener('keydown', function (e) {
     699            if (e.key === 'Escape' && popup.classList.contains('is-open')) {
     700                setOpen(false);
     701            }
     702        });
     703
     704        inside.querySelectorAll('.menu-item-has-children').forEach(function (item) {
     705            var link = item.querySelector(':scope > a');
     706            var submenu = item.querySelector(':scope > .sub-menu');
     707            if (!link || !submenu) {
     708                return;
     709            }
     710
     711            var toggle = item.querySelector(':scope > .xa-submenu-toggle');
     712            if (!toggle) {
     713                toggle = document.createElement('button');
     714                toggle.type = 'button';
     715                toggle.className = 'xa-submenu-toggle';
     716                toggle.setAttribute('aria-label', 'Toggle submenu');
     717                toggle.innerHTML = '<i class="fa fa-angle-down" aria-hidden="true"></i>';
     718                link.after(toggle);
     719            }
     720
     721            toggle.addEventListener('click', function (e) {
     722                e.preventDefault();
     723                e.stopPropagation();
     724                item.classList.toggle('submenu-open');
     725            });
     726        });
     727    });
     728
     729});
     730
     731(function () {
     732    if (window.xaAddonsWidgetsReady) {
     733        return;
     734    }
     735    window.xaAddonsWidgetsReady = true;
     736
     737    document.addEventListener('click', function (event) {
     738        var faqButton = event.target.closest('.xa-faq-list__button');
     739
     740        if (faqButton) {
     741            event.preventDefault();
     742
     743            var item = faqButton.closest('.xa-faq-list__item');
     744            var group = faqButton.closest('.xa-faq-list__inner');
     745
     746            if (!item || !group) {
     747                return;
     748            }
     749
     750            var willOpen = !item.classList.contains('xa-faq__active');
     751
     752            group.querySelectorAll('.xa-faq-list__item').forEach(function (other) {
     753                other.classList.remove('xa-faq__active');
     754            });
     755
     756            if (willOpen) {
     757                item.classList.add('xa-faq__active');
     758            }
     759
     760            return;
     761        }
     762
     763        var tabLink = event.target.closest('.xa-default-tab .nav-link');
     764
     765        if (!tabLink) {
     766            return;
     767        }
     768
     769        event.preventDefault();
     770        event.stopPropagation();
     771
     772        var wrap = tabLink.closest('.xa-default-tab');
     773        var target = tabLink.getAttribute('data-bs-target');
     774
     775        if (!wrap) {
     776            return;
     777        }
     778
     779        wrap.querySelectorAll('.nav-link').forEach(function (link) {
     780            link.classList.remove('active');
     781        });
     782        wrap.querySelectorAll('.tab-pane').forEach(function (pane) {
     783            pane.classList.remove('show', 'active');
     784        });
     785
     786        tabLink.classList.add('active');
     787
     788        if (target) {
     789            var pane = wrap.querySelector(target);
     790            if (pane) {
     791                pane.classList.add('show', 'active');
     792            }
     793        }
     794    }, true);
     795
     796    function xaResolveGlobalColor(name, fallback) {
     797        var value = getComputedStyle(document.body).getPropertyValue(name).trim();
     798
     799        if (!value) {
     800            value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
     801        }
     802
     803        return value || fallback;
     804    }
     805
     806    function xaInitCircles(root) {
     807        if (typeof jQuery === 'undefined' || !jQuery.fn.circleProgress) {
     808            return;
     809        }
     810
     811        var scope = root && root.querySelectorAll ? root : document;
     812        var nodes = scope.querySelectorAll('.circle__one:not([data-xa-circle-ready])');
     813
     814        if (!nodes.length) {
     815            return;
     816        }
     817
     818        var primary = xaResolveGlobalColor('--xa-primary', '#FC6761');
     819
     820        nodes.forEach(function (node) {
     821            node.setAttribute('data-xa-circle-ready', '1');
     822            jQuery(node).circleProgress({
     823                lineCap: 'round',
     824                fill: {
     825                    color: primary
     826                },
     827                emptyFill: '#EEEEEE'
     828            });
     829        });
     830    }
     831
     832    document.addEventListener('DOMContentLoaded', function () {
     833        xaInitCircles(document);
     834    });
     835
     836    function xaBindCircleHook() {
     837        if (!window.elementorFrontend || !elementorFrontend.hooks) {
     838            return;
     839        }
     840
     841        elementorFrontend.hooks.addAction('frontend/element_ready/xa-circle-progress-widget.default', function ($scope) {
     842            xaInitCircles($scope && $scope[0] ? $scope[0] : document);
     843        });
     844    }
     845
     846    function xaBindMegaHook() {
     847        if (!window.elementorFrontend || !elementorFrontend.hooks) {
     848            return;
     849        }
     850
     851        elementorFrontend.hooks.addAction('frontend/element_ready/xa-mega-menu.default', function ($scope) {
     852            var node = $scope && $scope[0] ? $scope[0] : document;
     853            xaMountMegaColumns(node);
     854            xaInitMegaMenus(node);
     855        });
     856        // Only remount when a container inside a mega menu becomes ready.
     857        // Scanning the whole document on every page container was slow in the editor.
     858        elementorFrontend.hooks.addAction('frontend/element_ready/container', function ($scope) {
     859            if (!xaEditorApi()) {
     860                return;
     861            }
     862            var el = $scope && $scope[0] ? $scope[0] : null;
     863            var menu = el && el.closest ? el.closest('.xa-mega-menu') : null;
     864            if (menu) {
     865                xaMountMegaColumns(menu);
     866            }
     867        });
     868
     869        // Keep dropdown columns aligned with Menu Items after drag-reorder in the panel.
     870        if (!window.xaMegaAtomicBound) {
     871            window.xaMegaAtomicBound = true;
     872            elementorFrontend.elements.$window.on('elementor/nested-container/atomic-repeater', function (event) {
     873                var detail = event.originalEvent ? event.originalEvent.detail : event.detail;
     874                if (!detail || !detail.container || !detail.container.settings) {
     875                    return;
     876                }
     877                if (detail.container.settings.get('widgetType') !== 'xa-mega-menu') {
     878                    return;
     879                }
     880
     881                var widgetEl = detail.container.view && detail.container.view.$el ? detail.container.view.$el[0] : null;
     882                var menu = widgetEl ? widgetEl.querySelector('.xa-mega-menu') : null;
     883                if (!menu) {
     884                    return;
     885                }
     886
     887                var items = menu.querySelectorAll('.xa-mega-menu__list > .xa-mega-menu__item');
     888                var type = detail.action && detail.action.type;
     889
     890                if (type === 'move' && detail.targetContainer && detail.targetContainer.view && typeof detail.index === 'number') {
     891                    var targetLi = items[detail.index];
     892                    var movedEl = detail.targetContainer.view.el;
     893                    if (targetLi && movedEl && movedEl.parentElement !== targetLi) {
     894                        targetLi.appendChild(movedEl);
     895                    }
     896                }
     897
     898                // Final pass: every child column sits in the matching menu item.
     899                if (detail.container.children && detail.container.children.forEach) {
     900                    detail.container.children.forEach(function (child, index) {
     901                        var li = items[index];
     902                        var el = child.view && child.view.el;
     903                        if (li && el && el.parentElement !== li) {
     904                            li.appendChild(el);
     905                        }
     906                    });
     907                }
     908
     909                xaMountMegaColumns(menu);
     910            });
     911        }
     912    }
     913
     914    function xaBindHeroHook() {
     915        if (!window.elementorFrontend || !elementorFrontend.hooks) {
     916            return;
     917        }
     918
     919        elementorFrontend.hooks.addAction('frontend/element_ready/xa-hero-widget.default', function ($scope) {
     920            xaStartTypewriter($scope && $scope[0] ? $scope[0] : document);
     921        });
     922        elementorFrontend.hooks.addAction('frontend/element_ready/xa-animate-title-widget.default', function ($scope) {
     923            xaStartTypewriter($scope && $scope[0] ? $scope[0] : document);
     924        });
     925    }
     926
     927    if (window.elementorFrontend && elementorFrontend.hooks) {
     928        xaBindCircleHook();
     929        xaBindHeroHook();
     930        xaBindMegaHook();
     931    } else if (window.jQuery) {
     932        jQuery(window).on('elementor/frontend/init', function () {
     933            xaBindCircleHook();
     934            xaBindHeroHook();
     935            xaBindMegaHook();
     936        });
     937    }
     938})();
  • x-addons-elementor/trunk/core-class/admin/class-admin-menu.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25
    36class XAddons_Admin_Menu {
    47
    5     public function __construct() {
    6 
    7         add_action( 'admin_menu', [ $this, 'register_menu' ] );
    8 
    9         // Register settings
    10         add_action( 'admin_init', [ $this, 'register_settings' ] );
    11             add_action( 'admin_post_xaddons_export_settings', [ $this, 'export_settings' ] );
    12     add_action( 'admin_post_xaddons_import_settings', [ $this, 'import_settings' ] );
    13 
    14 
    15     }
    16 
    17     public function register_menu() {
    18 
    19         add_menu_page(
    20             __( 'X Addons', 'x-addons-elementor' ),
    21             __( 'X Addons', 'x-addons-elementor' ),
    22             'manage_options',
    23             'xaddons-settings',
    24             [ $this, 'settings_page' ],
    25             'dashicons-screenoptions',
    26             58
    27         );
    28 
    29         // Header & Footer
    30         add_submenu_page(
    31             'xaddons-settings',
    32             __( 'Header & Footer', 'x-addons-elementor' ),
    33             __( 'Header & Footer', 'x-addons-elementor' ),
    34             'manage_options',
    35             'edit.php?post_type=xaddons-hf'
    36         );
    37 
    38        
    39         // Settings
    40         add_submenu_page(
    41             'xaddons-settings',
    42             __( 'Settings', 'x-addons-elementor' ),
    43             __( 'Settings', 'x-addons-elementor' ),
    44             'manage_options',
    45             'xaddons-settings',
    46             [ $this, 'settings_page' ]
    47         );
    48     }
    49    
    50     public function settings_page() {
    51 
    52         require XADDONS_PLUGIN_PATH . 'core-class/admin/views/settings.php';
    53 
    54     }
    55 
    56     /**
    57      * Register Settings
    58      */
    59     public function register_settings() {
    60 
    61         register_setting(
    62             'xaddons_settings_group',
    63             'xaddons_settings',
    64             [
    65                 'sanitize_callback' => [ $this, 'sanitize_settings' ],
    66             ]
    67         );
    68 
    69     }
    70 
    71     /**
    72      * Sanitize Settings
    73      */
    74     public function sanitize_settings( $input ) {
    75 
    76         $widgets = \xaddons_Elementor\XAddons_Widget_Manager::get_widgets();
    77 
    78         // Make sure every widget has a value
    79         foreach ( $widgets as $id => $widget ) {
    80 
    81             $input['widgets'][ $id ] = ! empty( $input['widgets'][ $id ] );
    82 
    83         }
    84 
    85         return $input;
    86 
    87     }
    88 
    89 
    90     public function export_settings() {
    91 
    92         if ( ! current_user_can( 'manage_options' ) ) {
    93             wp_die( esc_html__( 'Permission denied.', 'x-addons-elementor' ) );
    94         }
    95 
    96         check_admin_referer( 'xaddons_export_settings' );
    97 
    98         $settings = get_option( 'xaddons_settings', [] );
    99 
    100         $data = [
    101             'plugin'  => 'x-addons-elementor',
    102             'version' => XADDONS_PLUGIN_VERSION,
    103             'date'    => current_time( 'mysql' ),
    104             'settings'=> $settings,
    105         ];
    106 
    107         nocache_headers();
    108 
    109         header( 'Content-Type: application/json; charset=utf-8' );
    110         header( 'Content-Disposition: attachment; filename=xaddons-settings-' . gmdate( 'Y-m-d' ) . '.json' );
    111 
    112         echo wp_json_encode( $data, JSON_PRETTY_PRINT );
    113 
    114         exit;
    115     }
    116 
    117     public function import_settings() {
    118 
    119         if ( ! current_user_can( 'manage_options' ) ) {
    120             wp_die( esc_html__( 'Permission denied.', 'x-addons-elementor' ) );
    121         }
    122 
    123         check_admin_referer( 'xaddons_import_settings' );
    124 
    125         if ( empty( $_FILES['settings_file']['tmp_name'] ) ) {
    126             wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=failed' ) );
    127             exit;
    128         }
    129 
    130         $json = file_get_contents( $_FILES['settings_file']['tmp_name'] );
    131 
    132         $data = json_decode( $json, true );
    133 
    134         if (
    135             ! is_array( $data ) ||
    136             empty( $data['plugin'] ) ||
    137             $data['plugin'] !== 'x-addons-elementor'
    138         ) {
    139             wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=invalid' ) );
    140             exit;
    141         }
    142 
    143         update_option(
    144             'xaddons_settings',
    145             isset( $data['settings'] ) && is_array( $data['settings'] )
    146                 ? $data['settings']
    147                 : []
    148         );
    149 
    150         wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=success' ) );
    151         exit;
    152     }
    153 
    154 
     8        public function __construct() {
     9                add_action( 'admin_menu', [ $this, 'register_menu' ] );
     10                add_action( 'admin_menu', [ $this, 'register_upgrade_submenu' ], 60 );
     11                add_action( 'admin_init', [ $this, 'register_settings' ] );
     12                add_action( 'admin_init', [ $this, 'maybe_redirect_upgrade' ] );
     13                add_action( 'admin_post_xaddons_export_settings', [ $this, 'export_settings' ] );
     14                add_action( 'admin_post_xaddons_import_settings', [ $this, 'import_settings' ] );
     15
     16                $plugin_file = plugin_basename( XADDONS_PLUGIN_PATH . 'x-addons-elementor.php' );
     17                add_filter( 'plugin_action_links_' . $plugin_file, [ $this, 'plugin_action_links' ] );
     18                add_action( 'admin_notices', [ $this, 'hf_welcome_banner' ] );
     19                add_action( 'admin_notices', [ $this, 'wp_dashboard_welcome_banner' ] );
     20                add_action( 'wp_ajax_xaddons_dismiss_admin_banner', [ $this, 'dismiss_admin_banner' ] );
     21                add_action( 'admin_head', [ $this, 'admin_menu_styles' ] );
     22        }
     23
     24        /**
     25         * Whether to show free-plugin Upgrade CTAs.
     26         *
     27         * @return bool
     28         */
     29        public static function show_upgrade_cta() {
     30                return (bool) apply_filters( 'xaddons_show_upgrade_cta', true );
     31        }
     32
     33        public function register_menu() {
     34                add_menu_page(
     35                        __( 'Xpress Addons', 'x-addons-elementor' ),
     36                        __( 'Xpress Addons', 'x-addons-elementor' ),
     37                        'manage_options',
     38                        'xaddons-settings',
     39                        [ $this, 'settings_page' ],
     40                        'dashicons-screenoptions',
     41                        58
     42                );
     43
     44                add_submenu_page(
     45                        'xaddons-settings',
     46                        __( 'Settings', 'x-addons-elementor' ),
     47                        __( 'Settings', 'x-addons-elementor' ),
     48                        'manage_options',
     49                        'xaddons-settings',
     50                        [ $this, 'settings_page' ]
     51                );
     52
     53                // Mirror link — CPT stays a separate top-level menu too.
     54                add_submenu_page(
     55                        'xaddons-settings',
     56                        __( 'XA: Header Footer', 'x-addons-elementor' ),
     57                        __( 'XA: Header Footer', 'x-addons-elementor' ),
     58                        'manage_options',
     59                        'edit.php?post_type=xaddons-hf'
     60                );
     61        }
     62
     63        /**
     64         * Proper submenu (redirect page) — avoids broken external $submenu links.
     65         */
     66        public function register_upgrade_submenu() {
     67                if ( ! self::show_upgrade_cta() ) {
     68                        return;
     69                }
     70
     71                add_submenu_page(
     72                        'xaddons-settings',
     73                        __( 'Upgrade to Pro', 'x-addons-elementor' ),
     74                        __( 'Upgrade to Pro', 'x-addons-elementor' ),
     75                        'manage_options',
     76                        'xaddons-upgrade-pro',
     77                        [ $this, 'render_upgrade_redirect' ]
     78                );
     79        }
     80
     81        /**
     82         * Early redirect when Upgrade submenu is opened.
     83         */
     84        public function maybe_redirect_upgrade() {
     85                if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
     86                        return;
     87                }
     88
     89                $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     90                if ( 'xaddons-upgrade-pro' !== $page ) {
     91                        return;
     92                }
     93
     94                wp_redirect( xaddons_get_pro_upgrade_url() ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- external product URL
     95                exit;
     96        }
     97
     98        /**
     99         * Fallback if redirect did not run.
     100         */
     101        public function render_upgrade_redirect() {
     102                wp_redirect( xaddons_get_pro_upgrade_url() ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- external product URL
     103                exit;
     104        }
     105
     106        /**
     107         * Plugins list links.
     108         *
     109         * @param array $links Links.
     110         * @return array
     111         */
     112        public function plugin_action_links( $links ) {
     113                $settings = '<a href="' . esc_url( admin_url( 'admin.php?page=xaddons-settings' ) ) . '">' . esc_html__( 'Settings', 'x-addons-elementor' ) . '</a>';
     114                array_unshift( $links, $settings );
     115
     116                if ( self::show_upgrade_cta() ) {
     117                        $links['xaddons_go_pro'] = '<a href="' . esc_url( xaddons_get_pro_upgrade_url() ) . '" target="_blank" rel="noopener noreferrer" style="color:#b45309;font-weight:600;">' . esc_html__( 'Upgrade to Pro', 'x-addons-elementor' ) . '</a>';
     118                }
     119
     120                return $links;
     121        }
     122
     123        public function admin_menu_styles() {
     124                echo '<style id="xa-admin-go-pro">
     125                        #adminmenu #toplevel_page_xaddons-settings .wp-submenu a[href*="page=xaddons-upgrade-pro"] {
     126                                color: #d97706 !important;
     127                                font-weight: 600;
     128                        }
     129                        #adminmenu #toplevel_page_xaddons-settings .wp-submenu a[href*="page=xaddons-upgrade-pro"]:hover {
     130                                color: #b45309 !important;
     131                        }
     132                </style>';
     133        }
     134
     135        /**
     136         * Shared upgrade line (clear + buyer-friendly).
     137         *
     138         * @return string
     139         */
     140        public static function upgrade_message() {
     141                return __( 'Xpress Addons Pro — Unlock Advanced Header, premium widgets, and priority support.', 'x-addons-elementor' );
     142        }
     143
     144        /**
     145         * Welcome banner on the main WordPress Dashboard only (Guideline 11 — limited + dismissible).
     146         */
     147        public function wp_dashboard_welcome_banner() {
     148                if ( ! current_user_can( 'manage_options' ) || ! self::show_upgrade_cta() ) {
     149                        return;
     150                }
     151
     152                $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
     153                if ( ! $screen || 'dashboard' !== $screen->id ) {
     154                        return;
     155                }
     156
     157                if ( get_user_meta( get_current_user_id(), 'xaddons_dismiss_dashboard_banner', true ) ) {
     158                        return;
     159                }
     160
     161                $this->render_dismissible_upgrade_notice(
     162                        'xa-dashboard-welcome',
     163                        'dashboard',
     164                        true
     165                );
     166        }
     167
     168        /**
     169         * Dismissible upgrade notice on XA: Header Footer screens only (not sitewide).
     170         */
     171        public function hf_welcome_banner() {
     172                if ( ! current_user_can( 'manage_options' ) || ! self::show_upgrade_cta() ) {
     173                        return;
     174                }
     175
     176                $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
     177                if ( ! $screen || empty( $screen->post_type ) || 'xaddons-hf' !== $screen->post_type ) {
     178                        return;
     179                }
     180
     181                if ( get_user_meta( get_current_user_id(), 'xaddons_dismiss_hf_banner', true ) ) {
     182                        return;
     183                }
     184
     185                $this->render_dismissible_upgrade_notice(
     186                        'xa-hf-welcome',
     187                        'hf',
     188                        false
     189                );
     190        }
     191
     192        /**
     193         * Shared dismissible upgrade notice markup.
     194         *
     195         * @param string $dom_id        Element id.
     196         * @param string $banner_key    dashboard|hf.
     197         * @param bool   $show_settings Whether to show Settings button.
     198         */
     199        private function render_dismissible_upgrade_notice( $dom_id, $banner_key, $show_settings ) {
     200                $url = esc_url( xaddons_get_pro_upgrade_url() );
     201                ?>
     202                <div class="notice xa-admin-upgrade-notice is-dismissible" id="<?php echo esc_attr( $dom_id ); ?>" data-xa-banner="<?php echo esc_attr( $banner_key ); ?>" style="border-left-color:#FC6761;padding:14px 16px;">
     203                        <p style="margin:0 0 10px;font-size:14px;line-height:1.5;">
     204                                <?php echo esc_html( self::upgrade_message() ); ?>
     205                        </p>
     206                        <p style="margin:0;display:flex;gap:8px;flex-wrap:wrap;align-items:center;">
     207                                <a class="button button-primary" href="<?php echo $url; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" target="_blank" rel="noopener noreferrer" style="background:#FC6761;border-color:#e8574f;box-shadow:none;text-shadow:none;">
     208                                        <?php esc_html_e( 'Upgrade to Pro', 'x-addons-elementor' ); ?>
     209                                </a>
     210                                <?php if ( $show_settings ) : ?>
     211                                <a class="button button-secondary" href="<?php echo esc_url( admin_url( 'admin.php?page=xaddons-settings' ) ); ?>">
     212                                        <?php esc_html_e( 'Open Xpress Addons', 'x-addons-elementor' ); ?>
     213                                </a>
     214                                <?php endif; ?>
     215                        </p>
     216                </div>
     217                <script>
     218                (function () {
     219                        var el = document.getElementById(<?php echo wp_json_encode( $dom_id ); ?>);
     220                        if (!el) return;
     221                        el.addEventListener('click', function (event) {
     222                                if (!event.target.classList.contains('notice-dismiss')) return;
     223                                if (!window.jQuery) return;
     224                                window.jQuery.post(ajaxurl, {
     225                                        action: 'xaddons_dismiss_admin_banner',
     226                                        banner: el.getAttribute('data-xa-banner') || '',
     227                                        _ajax_nonce: <?php echo wp_json_encode( wp_create_nonce( 'xaddons_dismiss_admin_banner' ) ); ?>
     228                                });
     229                        });
     230                })();
     231                </script>
     232                <?php
     233        }
     234
     235        /**
     236         * Persist admin banner dismiss (dashboard or hf only).
     237         */
     238        public function dismiss_admin_banner() {
     239                check_ajax_referer( 'xaddons_dismiss_admin_banner' );
     240                if ( ! current_user_can( 'manage_options' ) ) {
     241                        wp_send_json_error( null, 403 );
     242                }
     243
     244                $banner = isset( $_POST['banner'] ) ? sanitize_key( wp_unslash( $_POST['banner'] ) ) : '';
     245                $map    = [
     246                        'dashboard' => 'xaddons_dismiss_dashboard_banner',
     247                        'hf'        => 'xaddons_dismiss_hf_banner',
     248                ];
     249
     250                if ( empty( $map[ $banner ] ) ) {
     251                        wp_send_json_error( null, 400 );
     252                }
     253
     254                update_user_meta( get_current_user_id(), $map[ $banner ], 1 );
     255                wp_send_json_success();
     256        }
     257
     258        public function settings_page() {
     259                require XADDONS_PLUGIN_PATH . 'core-class/admin/views/settings.php';
     260        }
     261
     262        public function register_settings() {
     263                register_setting(
     264                        'xaddons_settings_group',
     265                        'xaddons_settings',
     266                        [
     267                                'sanitize_callback' => [ $this, 'sanitize_settings' ],
     268                        ]
     269                );
     270        }
     271
     272        public function sanitize_settings( $input ) {
     273                $widgets = \xaddons_Elementor\XAddons_Widget_Manager::get_widgets();
     274                foreach ( $widgets as $id => $widget ) {
     275                        $input['widgets'][ $id ] = ! empty( $input['widgets'][ $id ] );
     276                }
     277                return $input;
     278        }
     279
     280        public function export_settings() {
     281                if ( ! current_user_can( 'manage_options' ) ) {
     282                        wp_die( esc_html__( 'Permission denied.', 'x-addons-elementor' ) );
     283                }
     284                check_admin_referer( 'xaddons_export_settings' );
     285
     286                $data = [
     287                        'plugin'   => 'x-addons-elementor',
     288                        'version'  => XADDONS_PLUGIN_VERSION,
     289                        'date'     => current_time( 'mysql' ),
     290                        'settings' => get_option( 'xaddons_settings', [] ),
     291                ];
     292
     293                nocache_headers();
     294                header( 'Content-Type: application/json; charset=utf-8' );
     295                header( 'Content-Disposition: attachment; filename=xaddons-settings-' . gmdate( 'Y-m-d' ) . '.json' );
     296                echo wp_json_encode( $data, JSON_PRETTY_PRINT );
     297                exit;
     298        }
     299
     300        public function import_settings() {
     301                if ( ! current_user_can( 'manage_options' ) ) {
     302                        wp_die( esc_html__( 'Permission denied.', 'x-addons-elementor' ) );
     303                }
     304                check_admin_referer( 'xaddons_import_settings' );
     305
     306                if ( empty( $_FILES['settings_file']['tmp_name'] ) ) {
     307                        wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=failed' ) );
     308                        exit;
     309                }
     310
     311                $json = file_get_contents( $_FILES['settings_file']['tmp_name'] );
     312                $data = json_decode( $json, true );
     313
     314                if ( ! is_array( $data ) || empty( $data['plugin'] ) || 'x-addons-elementor' !== $data['plugin'] ) {
     315                        wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=invalid' ) );
     316                        exit;
     317                }
     318
     319                update_option(
     320                        'xaddons_settings',
     321                        isset( $data['settings'] ) && is_array( $data['settings'] ) ? $data['settings'] : []
     322                );
     323
     324                wp_safe_redirect( admin_url( 'admin.php?page=xaddons-settings&import=success' ) );
     325                exit;
     326        }
    155327}
    156328
  • x-addons-elementor/trunk/core-class/admin/views/partials/access.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35global $wp_roles;
    46
    … …  
    2527
    2628            <p class="xa-settings-panel__subtitle">
    27                 <?php esc_html_e( 'Choose which user roles can access the X Addons settings page.', 'x-addons-elementor' ); ?>
     29                <?php esc_html_e( 'Choose which user roles can access the Xpress Addons settings page.', 'x-addons-elementor' ); ?>
    2830            </p>
    2931        </div>
  • x-addons-elementor/trunk/core-class/admin/views/partials/action.php

    r3629242 r3821717  
     1<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
    12
    23<!-- one shared action bar for the whole form, sits above every tab -->
  • x-addons-elementor/trunk/core-class/admin/views/partials/colors.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35$settings = get_option( 'xaddons_settings', [] );
    46
    … …  
    810        'label'       => 'Primary Accent',
    911        'description' => 'Used for buttons, active tabs, and hover states across all widgets by default.',
    10         'fallback'    => '#5B4FF0',
     12        'fallback'    => '#FC6761',
    1113    ],
    1214
    … …  
    1416        'label'       => 'Heading Color',
    1517        'description' => 'Default heading and body text color inside widget templates.',
    16         'fallback'    => '#191B3A',
     18        'fallback'    => '#273C66',
    1719    ],
    1820
    … …  
    2022        'label'       => 'Text Color',
    2123        'description' => 'Fallback background used by card, box, and panel-style widgets.',
    22         'fallback'    => '#FFFFFF',
     24        'fallback'    => '#777',
    2325    ],
    2426
  • x-addons-elementor/trunk/core-class/admin/views/partials/dashboard.php

    r3629242 r3821717  
    1 
    21<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35
    46use xaddons_Elementor\XAddons_Widget_Manager;
    … …  
    2830          <div>
    2931            <h1 class="xa-settings-panel__title">Dashboard</h1>
    30             <p class="xa-settings-panel__subtitle">A quick look at how X‑Addons is running on this site.</p>
     32            <p class="xa-settings-panel__subtitle"><?php esc_html_e( 'A quick look at how Xpress Addons is running on this site.', 'x-addons-elementor' ); ?></p>
    3133          </div>
    3234          <span class="xa-settings-panel__state"><span class="xa-settings-panel__state-dot"></span>All systems normal</span>
    3335        </div>
    3436
    35         <!-- <div class="xa-promo">
    36           <span class="xa-promo__ring xa-promo__ring--outer"></span>
    37           <span class="xa-promo__ring"></span>
     37                <?php if ( class_exists( 'XAddons_Admin_Menu' ) && XAddons_Admin_Menu::show_upgrade_cta() ) : ?>
     38        <div class="xa-promo xa-promo--minimal">
    3839          <div class="xa-promo__body">
    39             <span class="xa-promo__eyebrow">⚡ Limited time</span>
    40             <h2 class="xa-promo__title">Unlock every widget with X‑Addons Premium</h2>
    41             <p class="xa-promo__desc">Get pricing tables, custom style presets, priority support and 40+ premium widgets — 30% off if you upgrade this week.</p>
    42             <button type="button" class="xa-promo__cta">
    43               <svg viewBox="0 0 24 24" fill="none"><path d="M4 8l3.5 3L12 5l4.5 6L20 8l-1.4 10H5.4L4 8z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg>
    44               Upgrade to Premium
    45             </button>
     40            <p class="xa-promo__desc xa-promo__desc--lead"><?php echo esc_html( XAddons_Admin_Menu::upgrade_message() ); ?></p>
     41            <a class="xa-promo__cta" href="<?php echo esc_url( xaddons_get_pro_upgrade_url() ); ?>" target="_blank" rel="noopener noreferrer">
     42              <?php esc_html_e( 'Upgrade to Pro', 'x-addons-elementor' ); ?>
     43            </a>
    4644          </div>
    47           <div class="xa-promo__art">
    48             <span class="xa-promo__art-badge">
    49               <svg viewBox="0 0 24 24" fill="none"><path d="M4 8l3.5 3L12 5l4.5 6L20 8l-1.4 10H5.4L4 8z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg>
    50             </span>
    51           </div>
    52         </div> -->
     45        </div>
     46                <?php endif; ?>
    5347
    5448      <div class="xa-stat-grid">
  • x-addons-elementor/trunk/core-class/admin/views/partials/header.php

    r3629242 r3821717  
     1<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
    12<nav class="xa-settings-nav" aria-label="Settings sections">
    23    <ul class="xa-settings-nav__list">
    … …  
    3435        </button>
    3536    </li>
     37        <?php if ( class_exists( 'XAddons_Admin_Menu' ) && XAddons_Admin_Menu::show_upgrade_cta() ) : ?>
     38        <li class="xa-settings-nav__item">
     39                <a class="xa-settings-nav__link xa-settings-nav__link--pro" href="<?php echo esc_url( xaddons_get_pro_upgrade_url() ); ?>" target="_blank" rel="noopener noreferrer">
     40                        <svg viewBox="0 0 24 24" fill="none"><path d="M4 8l3.5 3L12 5l4.5 6L20 8l-1.4 10H5.4L4 8z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg>
     41                        <?php esc_html_e( 'Upgrade to Pro', 'x-addons-elementor' ); ?>
     42                </a>
     43        </li>
     44        <?php endif; ?>
    3645    </ul>
    3746</nav>
  • x-addons-elementor/trunk/core-class/admin/views/partials/imports.php

    r3629242 r3821717  
     1<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
    12<section class="xa-settings-section" data-section="import-export">
    23
    … …  
    56            <h1 class="xa-settings-panel__title">Import / Export</h1>
    67            <p class="xa-settings-panel__subtitle">
    7                 Backup or restore your X Addons settings.
     8                <?php esc_html_e( 'Backup or restore your Xpress Addons settings.', 'x-addons-elementor' ); ?>
    89            </p>
    910        </div>
    … …  
    2122                <p class="xa-settings-row__label">Download Settings</p>
    2223                <p class="xa-settings-row__desc">
    23                     Export all X Addons settings as a JSON file.
     24                    <?php esc_html_e( 'Export all Xpress Addons settings as a JSON file.', 'x-addons-elementor' ); ?>
    2425                </p>
    2526            </div>
  • x-addons-elementor/trunk/core-class/admin/views/partials/premium.php

    r3629242 r3821717  
     1<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
    12   <!-- ============ PREMIUM ============ -->
    23      <section class="xa-settings-section" data-section="premium">
    … …  
    1213          <span class="xa-promo__ring"></span>
    1314          <div class="xa-promo__body">
    14             <span class="xa-promo__eyebrow">⚡ Limited time</span>
    15             <h2 class="xa-promo__title">Unlock every widget with X‑Addons Premium</h2>
    16             <p class="xa-promo__desc">Get pricing tables, custom style presets, priority support and 40+ premium widgets — 30% off if you upgrade this week.</p>
    17             <button type="button" class="xa-promo__cta">
     15            <span class="xa-promo__eyebrow"><?php esc_html_e( 'Xpress Addons Pro', 'x-addons-elementor' ); ?></span>
     16            <h2 class="xa-promo__title"><?php esc_html_e( 'Unlock every widget with Xpress Addons Pro', 'x-addons-elementor' ); ?></h2>
     17            <p class="xa-promo__desc"><?php esc_html_e( 'Get Advanced Header, premium widgets, custom style presets, and priority support with Xpress Addons Pro.', 'x-addons-elementor' ); ?></p>
     18            <a class="xa-promo__cta" href="<?php echo esc_url( xaddons_get_pro_upgrade_url() ); ?>" target="_blank" rel="noopener noreferrer">
    1819              <svg viewBox="0 0 24 24" fill="none"><path d="M4 8l3.5 3L12 5l4.5 6L20 8l-1.4 10H5.4L4 8z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg>
    19               Upgrade to Premium
    20             </button>
     20              <?php esc_html_e( 'Upgrade to Pro', 'x-addons-elementor' ); ?>
     21            </a>
    2122          </div>
    2223          <div class="xa-promo__art">
  • x-addons-elementor/trunk/core-class/admin/views/partials/widgets.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35use xaddons_Elementor\XAddons_Widget_Manager;
    46
  • x-addons-elementor/trunk/core-class/admin/views/settings.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35$settings = get_option('xaddons_settings', []);
    46
    … …  
    2022            </span>
    2123            <div>
    22                 <span class="xa-settings__brand-name">X Addons Elementor</span>
     24                <span class="xa-settings__brand-name"><?php esc_html_e( 'Xpress Addons for Elementor', 'x-addons-elementor' ); ?></span>
    2325                <span class="xa-settings__brand-tag">Widget &amp; performance settings</span>
    2426            </div>
    2527            </div>
    26             <span class="xa-settings__version">v1.9</span>
     28            <span class="xa-settings__version">v<?php echo esc_html( XADDONS_PLUGIN_VERSION ); ?></span>
    2729        </div>
    2830
  • x-addons-elementor/trunk/core-class/block-template/class-block-template.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25class XAddons_Block_Templates {
    36
  • x-addons-elementor/trunk/core-class/class-xaddons-assets.php

    r3632142 r3821717  
    1 <?php
    2 
     1<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35class XAddons_Assets{
    46
    … …  
    1820        wp_enqueue_style( 'fancy-box-css', XADDONS_PLUGIN_URL . 'assets/css/fancy-box.css', array(), '3.5.7' );
    1921        wp_enqueue_style( 'odometer-css', XADDONS_PLUGIN_URL . 'assets/css/odometer.css', array(), '1.0' );
    20         wp_enqueue_style( 'xa-styles', XADDONS_PLUGIN_URL . 'assets/css/xa-styles.css', array(), '1.0' );
     22        wp_enqueue_style( 'xa-styles', XADDONS_PLUGIN_URL . 'assets/css/xa-styles.css', array(), '3.11' );
    2123        wp_enqueue_script( 'slick-js', XADDONS_PLUGIN_URL . 'assets/js/slick.js', array('jquery'), '2.0', true );
    2224        wp_enqueue_script( 'odometer', XADDONS_PLUGIN_URL . 'assets/js/odometer.js', array('jquery'), '1.0', true );
    2325        wp_enqueue_script( 'circle-progress', XADDONS_PLUGIN_URL . 'assets/js/circle-progress.js', array('jquery'), '1.2.2', true );
    2426        wp_enqueue_script( 'fancy-box-js', XADDONS_PLUGIN_URL . 'assets/js/fancy-box.js', array('jquery'), '3.5.7', true );
    25         wp_enqueue_script( 'typed-js', XADDONS_PLUGIN_URL . 'assets/js/typed.js', array('jquery'), '1.0', true );
    26         wp_enqueue_script( 'xa-js-active', XADDONS_PLUGIN_URL . 'assets/js/plugin-active.js', array('jquery'), '1.0', true );
     27        wp_enqueue_script( 'xa-js-active', XADDONS_PLUGIN_URL . 'assets/js/plugin-active.js', array('jquery'), '3.3', true );
    2728       
    2829        wp_add_inline_style(
    … …  
    3738   public function xaddons_elementor_block_template_assets(){
    3839
     40        wp_enqueue_script(
     41            'xa-mega-menu-editor',
     42            XADDONS_PLUGIN_URL . 'assets/js/xa-mega-menu-editor.js',
     43            [ 'nested-elements', 'elementor-editor' ],
     44            '1.3',
     45            true
     46        );
     47
    3948        wp_enqueue_script( 'xaddons-editor-library', XADDONS_PLUGIN_URL . 'assets/admin/editor-library.js', array('jquery', 'elementor-editor'), '1.0',true);
    4049
    … …  
    4352            XADDONS_PLUGIN_URL . 'assets/admin/edit-library.css',
    4453            [],
    45             '1.0'
     54            '1.1'
    4655        );
    4756       
    … …  
    6473    public function xaddons_admin_assets( $hook ) {
    6574
     75                $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     76
     77                // Theme Demos has its own UI — don't load settings chrome there.
     78                if ( 'xaddons-demos' === $page || false !== strpos( (string) $hook, 'xaddons-demos' ) ) {
     79                        return;
     80                }
     81
    6682        // Admin CSS
    67         wp_enqueue_style( 'xaddons-admin-style', XADDONS_PLUGIN_URL . 'assets/admin/settings/settings.css', [], '1.0' );
     83        wp_enqueue_style( 'xaddons-admin-style', XADDONS_PLUGIN_URL . 'assets/admin/settings/settings.css', [], '1.4' );
    6884
    6985        // Admin JS
  • x-addons-elementor/trunk/core-class/class-xaddons-plugins.php

    r3629242 r3821717  
    1 <?php
    2 
     1<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35class XAddons_Plugins_Load{
    46   
    5     // Load X Addons Plugin
     7    // Load the Elementor addon
    68    public function xaddons_elementor() {
    79
  • x-addons-elementor/trunk/core-class/header-footer/class-hf-cpt.php

    r3629242 r3821717  
    1 <?php
    2 
     1<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35class XAddons_hf_CPT {
    46
    … …  
    68        add_filter('manage_xaddons-hf_posts_columns', [$this, 'register_posts_column']);
    79        add_action('manage_xaddons-hf_posts_custom_column', [$this, 'register_posts_column_show'], 10, 2);
     10        add_filter( 'single_template', [ $this, 'load_hf_single_template' ] );
     11
    812    }
    913
    … …  
    1115
    1216        $labels = [
    13             'name'          => 'Header & Footer',
    14             'singular_name' => 'Header & Footer',
    15             'menu_name'     => 'Header & Footer',
    16             'add_new_item'  => 'Add New',
    17             'edit_item'     => 'Edit Header Footer',
    18             'view_item'     => 'View Header Footer',
    19             'all_items'     => 'Header & Footer',
     17            'name'          => __( 'XA: Header Footer', 'x-addons-elementor' ),
     18            'singular_name' => __( 'XA: Header Footer', 'x-addons-elementor' ),
     19            'menu_name'     => __( 'XA: Header Footer', 'x-addons-elementor' ),
     20            'add_new_item'  => __( 'Add New', 'x-addons-elementor' ),
     21            'edit_item'     => __( 'Edit Header Footer', 'x-addons-elementor' ),
     22            'view_item'     => __( 'View Header Footer', 'x-addons-elementor' ),
     23            'all_items'     => __( 'XA: Header Footer', 'x-addons-elementor' ),
    2024        ];
    2125
    2226        $args = [
    23             'labels'       => $labels,
    24             'menu_icon'    => 'dashicons-editor-kitchensink',
    25             'public'       => true,
    26             'show_ui'      => true,
    27             'show_in_menu' => true,
    28             'supports'     => ['title', 'thumbnail'],
    29             'show_in_rest' => true, // Elementor support
     27            'labels'        => $labels,
     28            'menu_icon'     => 'dashicons-editor-kitchensink',
     29            'public'        => true,
     30            'show_ui'       => true,
     31            // Separate top-level menu. No menu_order hacks — WP places it by position.
     32            'show_in_menu'  => true,
     33            'menu_position' => 59,
     34            'supports'      => [ 'title', 'thumbnail' ],
     35            'show_in_rest'  => true,
    3036        ];
    3137
    … …  
    3541    // Add columns
    3642    public function register_posts_column($columns) {
    37         $columns['shortcodes']     = __('Shortcode', 'xaddons');
    38         $columns['display_rules'] = __('Display Rules', 'xaddons');
     43        $columns['shortcodes']    = __( 'Shortcode', 'x-addons-elementor' );
     44        $columns['display_rules'] = __( 'Display Rules', 'x-addons-elementor' );
    3945        return $columns;
    4046    }
    … …  
    4753        }
    4854
    49         if ($column === 'display_rules') {
    50             echo 'No Rules';
     55        if ( $column === 'display_rules' ) {
     56
     57            $rules = get_post_meta( $post_id, '_xa_display_rules', true );
     58
     59            if ( empty( $rules ) ) {
     60                echo 'Entire Website';
     61                return;
     62            }
     63
     64            $labels = [
     65                'entire_site'      => 'Entire Website',
     66                'front_page'       => 'Front Page',
     67                'all_pages'        => 'All Pages',
     68                'all_posts'        => 'All Posts',
     69                'blog_archive'     => 'Blog Archive',
     70                'search'           => 'Search',
     71                '404'              => '404',
     72                'author_archive'   => 'Author',
     73                'date_archive'     => 'Date',
     74                'category_archive' => 'Category',
     75                'tag_archive'      => 'Tag',
     76            ];
     77
     78            $items = [];
     79
     80            foreach ( $rules['include'] ?? [] as $rule ) {
     81                $items[] = '✓ ' . ( $labels[ $rule ] ?? $rule );
     82            }
     83
     84            foreach ( $rules['include_pages'] ?? [] as $id ) {
     85                $items[] = '✓ ' . get_the_title( $id );
     86            }
     87
     88            foreach ( $rules['exclude'] ?? [] as $rule ) {
     89                $items[] = '✕ ' . ( $labels[ $rule ] ?? $rule );
     90            }
     91
     92            foreach ( $rules['exclude_pages'] ?? [] as $id ) {
     93                $items[] = '✕ ' . get_the_title( $id );
     94            }
     95
     96            echo implode( '<br>', array_map( 'esc_html', $items ) );
    5197        }
    5298    }
     99
     100
     101    public function load_hf_single_template( $template ) {
     102
     103        if ( is_singular( 'xaddons-hf' ) ) {
     104            return XADDONS_PLUGIN_PATH . 'core-class/header-footer/single-xaddons-hf.php';
     105        }
     106
     107        return $template;
     108    }
    53109}
  • x-addons-elementor/trunk/core-class/header-footer/class-hf-metabox.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35class XAddons_hf_Metabox {
    46
    … …  
    1214        add_meta_box(
    1315            'xaddons_hf_info',
    14             'X-Addons Elementor Header & Footer Options',
     16            esc_html__( 'Xpress Addons Header & Footer Options', 'x-addons-elementor' ),
    1517            [ $this, 'render_xa_hf_info' ],
    1618            'xaddons-hf',
    … …  
    4143
    4244        <p>
    43             <label for="xa_template_type"><strong>Template Type</strong></label><br>
    44 
    45             <select name="xa_template_type" id="xa_template_type">
     45            <h4 style="margin-top:0;margin-bottom:10px;">Choose Template</h4>
     46
     47            <select name="xa_template_type" id="xa_template_type" style="width:100%">
    4648                <option value="">Select Template</option>
    4749
    … …  
    6668     * Display Rules Metabox
    6769     * ========================= */
    68     public function render_display_rules( $post ) {
    69 
    70         $rules = get_post_meta( $post->ID, '_xa_display_rules', true );
    71 
    72         $include = $rules['include'] ?? [];
    73         $exclude = $rules['exclude'] ?? [];
    74 
    75         $rule_options = [
    76             'entire_site' => 'Entire Website',
    77             'front_page'  => 'Front Page',
    78             'all_pages'   => 'All Pages',
    79             'all_posts'   => 'All Posts',
    80             '404'         => '404 Page',
    81         ];
    82         ?>
    83 
    84         <p><strong>Display On</strong></p>
     70   public function render_display_rules( $post ) {
     71
     72    $rules = get_post_meta( $post->ID, '_xa_display_rules', true );
     73
     74    $include       = $rules['include'] ?? [];
     75    $exclude       = $rules['exclude'] ?? [];
     76    $include_pages = $rules['include_pages'] ?? [];
     77    $exclude_pages = $rules['exclude_pages'] ?? [];
     78
     79    $rule_options = [
     80        'entire_site'     => 'Entire Website',
     81        'front_page'      => 'Front Page',
     82        'all_pages'       => 'All Pages',
     83        'all_posts'       => 'All Posts',
     84        'blog_archive'    => 'Blog Archive',
     85        'search'          => 'Search Results',
     86        '404'             => '404 Page',
     87        'author_archive'  => 'Author Archive',
     88        'date_archive'    => 'Date Archive',
     89        'category_archive'=> 'Category Archive',
     90        'tag_archive'     => 'Tag Archive',
     91    ];
     92
     93    $pages = get_pages( [
     94        'sort_column' => 'post_title',
     95    ] );
     96?>
     97
     98<div style="display:grid;grid-template-columns:1fr 1fr;gap:24px;">
     99
     100    <div>
     101        <h3 style="margin-top:0;">Display On</h3>
     102
    85103        <?php foreach ( $rule_options as $key => $label ) : ?>
    86             <label style="display:block;margin-bottom:4px;">
    87                 <input type="checkbox" name="xa_display_rules[include][]" value="<?php echo esc_attr( $key ); ?>"
    88                     <?php checked( in_array( $key, $include, true ) ); ?> />
     104            <label style="display:block;margin-bottom:6px;">
     105                <input type="checkbox"
     106                    name="xa_display_rules[include][]"
     107                    value="<?php echo esc_attr( $key ); ?>"
     108                    <?php checked( in_array( $key, $include, true ) ); ?>>
    89109                <?php echo esc_html( $label ); ?>
    90110            </label>
    91111        <?php endforeach; ?>
    92112
    93         <hr>
    94 
    95         <p><strong>Exclude On</strong></p>
     113        <p style="margin:16px 0 8px;"><strong>Specific Pages</strong></p>
     114
     115        <select name="xa_display_rules[include_pages][]"
     116                multiple
     117                style="width:100%;min-height:180px;">
     118
     119            <?php foreach ( $pages as $page ) : ?>
     120                <option value="<?php echo esc_attr( $page->ID ); ?>"
     121                    <?php selected( in_array( $page->ID, $include_pages ) ); ?>>
     122                    <?php echo esc_html( $page->post_title ); ?>
     123                </option>
     124            <?php endforeach; ?>
     125
     126        </select>
     127
     128        <p class="description">Hold Ctrl/Cmd to select multiple pages.</p>
     129    </div>
     130
     131
     132    <div>
     133        <h3 style="margin-top:0;">Exclude On</h3>
     134
    96135        <?php foreach ( $rule_options as $key => $label ) : ?>
    97             <label style="display:block;margin-bottom:4px;">
    98                 <input type="checkbox" name="xa_display_rules[exclude][]" value="<?php echo esc_attr( $key ); ?>"
    99                     <?php checked( in_array( $key, $exclude, true ) ); ?> />
     136            <label style="display:block;margin-bottom:6px;">
     137                <input type="checkbox"
     138                    name="xa_display_rules[exclude][]"
     139                    value="<?php echo esc_attr( $key ); ?>"
     140                    <?php checked( in_array( $key, $exclude, true ) ); ?>>
    100141                <?php echo esc_html( $label ); ?>
    101142            </label>
    102143        <?php endforeach; ?>
    103144
    104         <?php
    105     }
     145        <p style="margin:16px 0 8px;"><strong>Specific Pages</strong></p>
     146
     147        <select name="xa_display_rules[exclude_pages][]"
     148                multiple
     149                style="width:100%;min-height:180px;">
     150
     151            <?php foreach ( $pages as $page ) : ?>
     152                <option value="<?php echo esc_attr( $page->ID ); ?>"
     153                    <?php selected( in_array( $page->ID, $exclude_pages ) ); ?>>
     154                    <?php echo esc_html( $page->post_title ); ?>
     155                </option>
     156            <?php endforeach; ?>
     157
     158        </select>
     159
     160        <p class="description">Hold Ctrl/Cmd to select multiple pages.</p>
     161    </div>
     162
     163</div>
     164
     165<?php
     166}
    106167
    107168    /* =========================
    … …  
    153214       
    154215
    155         /* ---- Save Display Rules ---- */
     216         /* ---- Save Display Rules ---- */
    156217        if ( isset( $_POST['xa_display_rules'] ) ) {
    157218
    … …  
    159220
    160221            $clean = [
    161                 'include' => array_map(  'sanitize_text_field', $rules['include'] ?? [] ),
    162                 'exclude' => array_map( 'sanitize_text_field', $rules['exclude'] ?? [] ),
     222                'include'       => array_map( 'sanitize_text_field', $rules['include'] ?? [] ),
     223                'exclude'       => array_map( 'sanitize_text_field', $rules['exclude'] ?? [] ),
     224                'include_pages' => array_map( 'absint', $rules['include_pages'] ?? [] ),
     225                'exclude_pages' => array_map( 'absint', $rules['exclude_pages'] ?? [] ),
    163226            ];
    164227
  • x-addons-elementor/trunk/core-class/header-footer/class-hf-render.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35class XAddons_hf_Renderer {
    46
    … …  
    911    public function hooks() {
    1012
    11         if ( $this->header_enabled() ) {
     13        // Editing/previewing an HF document: canvas only — never wrap it with itself.
     14        if ( $this->is_hf_builder_context() ) {
     15            return;
     16        }
     17
     18        $header_enabled = $this->header_enabled();
     19        $footer_enabled = $this->footer_enabled();
     20
     21        /*
     22         * Header/footer templates are Elementor documents, but the queried
     23         * request can be a non-Elementor document (for example, a WooCommerce
     24         * product). Elementor only auto-enqueues its base frontend stylesheet
     25         * for Elementor-built queried documents. Queue it here so the builder
     26         * template has its container and flex layout CSS in the document head.
     27         */
     28        if ( $header_enabled || $footer_enabled ) {
     29            add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_elementor_frontend_styles' ], 5 );
     30            add_action( 'elementor/preview/enqueue_styles', [ $this, 'enqueue_elementor_frontend_styles' ] );
     31        }
     32
     33        if ( $header_enabled ) {
    1234            add_action( 'get_header', [ $this, 'override_header' ], 0 );
    1335            add_action( 'xaddons_header', [ $this, 'render_header' ] );
    1436        }
    1537
    16         if ( $this->footer_enabled() ) {
     38        if ( $footer_enabled ) {
    1739            add_action( 'get_footer', [ $this, 'override_footer' ], 0 );
    1840            add_action( 'xaddons_footer', [ $this, 'render_footer' ] );
    1941        }
     42    }
     43
     44    /**
     45     * True when the current request is editing/previewing an xaddons-hf document.
     46     *
     47     * @return bool
     48     */
     49    private function is_hf_builder_context() {
     50        $post_id = 0;
     51
     52        if ( ! empty( $_GET['elementor-preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     53            $post_id = absint( wp_unslash( $_GET['elementor-preview'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     54        } elseif ( ! empty( $_GET['preview_id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     55            $post_id = absint( wp_unslash( $_GET['preview_id'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     56        } elseif ( is_singular( 'xaddons-hf' ) ) {
     57            $post_id = get_queried_object_id();
     58        }
     59
     60        if ( ! $post_id && class_exists( '\Elementor\Plugin' ) ) {
     61            $plugin = \Elementor\Plugin::$instance;
     62            if ( isset( $plugin->editor ) && $plugin->editor->is_edit_mode() && isset( $plugin->documents ) ) {
     63                $doc = $plugin->documents->get_current();
     64                if ( $doc ) {
     65                    $post_id = (int) $doc->get_main_id();
     66                }
     67            }
     68        }
     69
     70        return $post_id && 'xaddons-hf' === get_post_type( $post_id );
     71    }
     72
     73    /**
     74     * Load Elementor's base frontend CSS for active header/footer templates.
     75     *
     76     * @return void
     77     */
     78    public function enqueue_elementor_frontend_styles() {
     79
     80        if ( ! did_action( 'elementor/loaded' ) || ! class_exists( '\\Elementor\\Plugin' ) ) {
     81            return;
     82        }
     83
     84        \Elementor\Plugin::instance()->frontend->enqueue_styles();
    2085    }
    2186
    … …  
    49114        $id = $this->get_active_template_id( 'header' );
    50115        if ( $id ) {
    51             echo $this->render_elementor( $id );
     116            echo '<div class="xa-hf xa-hf--header">';
     117            echo $this->render_elementor( $id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     118            echo '</div>';
    52119        }
    53120    }
    … …  
    56123        $id = $this->get_active_template_id( 'footer' );
    57124        if ( $id ) {
    58             echo $this->render_elementor( $id );
     125            echo '<div class="xa-hf xa-hf--footer">';
     126            echo $this->render_elementor( $id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     127            echo '</div>';
    59128        }
    60129    }
    … …  
    90159        }
    91160
    92         $include = $rules['include'] ?? [];
    93         $exclude = $rules['exclude'] ?? [];
     161        $include       = $rules['include'] ?? [];
     162        $exclude       = $rules['exclude'] ?? [];
     163        $include_pages = $rules['include_pages'] ?? [];
     164        $exclude_pages = $rules['exclude_pages'] ?? [];
    94165
    95166        $context = [ 'entire_site' ];
    96167
    97         if ( is_front_page() )      $context[] = 'front_page';
    98         if ( is_page() )            $context[] = 'all_pages';
    99         if ( is_singular( 'post' ) ) $context[] = 'all_posts';
    100         if ( is_404() )             $context[] = '404';
    101 
     168        if ( is_front_page() )        $context[] = 'front_page';
     169        if ( is_page() )              $context[] = 'all_pages';
     170        if ( is_singular( 'post' ) )  $context[] = 'all_posts';
     171        if ( is_home() )              $context[] = 'blog_archive';
     172        if ( is_search() )            $context[] = 'search';
     173        if ( is_404() )               $context[] = '404';
     174        if ( is_author() )            $context[] = 'author_archive';
     175        if ( is_date() )              $context[] = 'date_archive';
     176        if ( is_category() )          $context[] = 'category_archive';
     177        if ( is_tag() )               $context[] = 'tag_archive';
     178
     179        $current_page_id = is_page() ? get_queried_object_id() : 0;
     180
     181        // Exclude has highest priority.
    102182        if ( array_intersect( $exclude, $context ) ) {
    103183            return false;
    104184        }
    105185
    106         if ( empty( $include ) ) {
    107             return true;
    108         }
    109 
    110         return (bool) array_intersect( $include, $context );
     186        if ( $current_page_id && in_array( $current_page_id, $exclude_pages, true ) ) {
     187            return false;
     188        }
     189
     190        // No include rules at all = display everywhere (unless excluded).
     191        if ( empty( $include ) && empty( $include_pages ) ) {
     192            return true;
     193        }
     194
     195        // Match global include rules.
     196        if ( array_intersect( $include, $context ) ) {
     197            return true;
     198        }
     199
     200        // Match specific pages.
     201        if ( $current_page_id && in_array( $current_page_id, $include_pages, true ) ) {
     202            return true;
     203        }
     204
     205        return false;
    111206    }
    112207
  • x-addons-elementor/trunk/core-class/header-footer/xaddons-footer.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * XAddons Footer Template
  • x-addons-elementor/trunk/core-class/header-footer/xaddons-header.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Default header Template
  • x-addons-elementor/trunk/includes/class-widget-manager.php

    r3629242 r3821717  
    3030                        ],
    3131
     32                        'animate-title' => [
     33                                'title' => 'Animate Title',
     34                                'file'  => 'xa-animate-title.php',
     35                                'class' => '\xaddons_animate_title_Widget',
     36                                'default' => true,
     37                        ],
     38
    3239                        'section-title' => [
    3340                                'title' => 'Section Title',
    … …  
    121128                        ],
    122129
     130                        'image-slider' => [
     131                                'title' => 'Image Slider',
     132                                'file'  => 'xa-image-slider.php',
     133                                'class' => '\xaddons_image_slider_Widget',
     134                                'default' => true,
     135                        ],
     136
    123137                        'blog' => [
    124138                                'title' => 'Blog',
    … …  
    142156                        ],
    143157
     158                        'mega-menu' => [
     159                                'title' => 'Mega Menu',
     160                                'file'  => 'xa-mega-menu.php',
     161                                'class' => '\xaddons_mega_menu_Widget',
     162                                'default' => true,
     163                        ],
     164
    144165                        'tab-widget' => [
    145166                                'title' => 'Tabs',
  • x-addons-elementor/trunk/includes/functions.php

    r3629242 r3821717  
    4040/**
    4141 * ==========================================================
    42  * X-Addons Helper Functions
     42 * Plugin helper functions
    4343 * ==========================================================
    4444 */
    … …  
    8080
    8181                $colors = xaddons_get_colors();
     82
     83                $heading = $colors['secondary'] ?? '#273C66';
    8284
    8385                $css = '
    8486                :root{
    8587                        --xa-primary: ' . esc_attr( $colors['primary'] ?? '#FC6761' ) . ';
    86                         --xa-secondary: ' . esc_attr( $colors['secondary'] ?? '#273C66' ) . ';
    87                         --xa-text: ' . esc_attr( $colors['text'] ?? '#777777' ) . ';
     88                        --xa-secondary: ' . esc_attr( $heading ) . ';
     89                        --xa-heading: ' . esc_attr( $heading ) . ';
     90                        --xa-text: ' . esc_attr( $colors['text'] ?? '#777' ) . ';
    8891                }';
    8992
    … …  
    9295
    9396}
     97
     98/**
     99 * Compatible with Pro Version
     100 */
     101function xaddons_is_pro_active() {
     102
     103        return defined( 'XADDONS_PRO_VERSION' );
     104}
     105
     106/**
     107 * Check Pro Feature
     108 */
     109function xaddons_has_pro_feature( $feature ) {
     110
     111        if ( ! xaddons_is_pro_active() ) {
     112                return false;
     113        }
     114
     115        return (bool) apply_filters(
     116                'xaddons_pro_feature_' . $feature,
     117                true
     118        );
     119}
     120
     121/**
     122 * Pro upgrade URL.
     123 *
     124 * @return string
     125 */
     126function xaddons_get_pro_upgrade_url() {
     127        return apply_filters( 'xaddons_pro_upgrade_url', 'https://pencilwp.com/product/xpress-addons' );
     128}
     129
     130/**
     131 * HTML for Elementor panel Pro upgrade notice (wp.org freemium-safe).
     132 *
     133 * Optional upsell only: no locked controls, no urgency, free features stay fully usable.
     134 *
     135 * @return string
     136 */
     137function xaddons_get_pro_upgrade_notice_html() {
     138        $url = esc_url( xaddons_get_pro_upgrade_url() );
     139
     140        return '
     141        <div class="xaddons-pro-lock-card">
     142                <div class="xaddons-pro-lock-icon"><i class="eicon-info-circle" aria-hidden="true"></i></div>
     143                <div class="xaddons-pro-lock-content">
     144                        <strong>' . esc_html__( 'Xpress Addons Pro', 'x-addons-elementor' ) . '</strong>
     145                        <p>' . esc_html__( 'This free widget works fully. Optionally upgrade for premium widgets, premium templates, Advanced Header, Mega Menu, and priority support.', 'x-addons-elementor' ) . '</p>
     146                        <a href="' . $url . '" target="_blank" rel="noopener noreferrer" class="xaddons-pro-btn">' . esc_html__( 'Upgrade to Pro', 'x-addons-elementor' ) . '</a>
     147                </div>
     148        </div>';
     149}
     150
     151/**
     152 * Register one Upgrade section at the bottom of a free widget panel (editor only).
     153 *
     154 * @param \Elementor\Controls_Stack $element Elementor element.
     155 */
     156function xaddons_register_widget_pro_notice( $element ) {
     157        if ( ! $element || ! method_exists( $element, 'start_controls_section' ) ) {
     158                return;
     159        }
     160
     161        $element->start_controls_section(
     162                'xaddons_pro_upgrade_section',
     163                [
     164                        'label' => esc_html__( 'Upgrade to Pro', 'x-addons-elementor' ),
     165                        'tab'   => \Elementor\Controls_Manager::TAB_CONTENT,
     166                ]
     167        );
     168
     169        $element->add_control(
     170                'xaddons_pro_upgrade_notice',
     171                [
     172                        'type'            => \Elementor\Controls_Manager::RAW_HTML,
     173                        'raw'             => xaddons_get_pro_upgrade_notice_html(),
     174                        'content_classes' => 'xaddons-pro-card',
     175                ]
     176        );
     177
     178        $element->end_controls_section();
     179}
     180
     181/**
     182 * Whether a widget name is a free Xpress Addons widget.
     183 *
     184 * @param string $name Widget name.
     185 * @return bool
     186 */
     187function xaddons_is_free_widget_name( $name ) {
     188        $name = (string) $name;
     189
     190        if ( '' === $name || 0 === strpos( $name, 'xapro-' ) ) {
     191                return false;
     192        }
     193
     194        return ( 0 === strpos( $name, 'xa-' ) );
     195}
     196
     197/**
     198 * Whether upgrade notice was already added for this element instance.
     199 *
     200 * @param object $element Elementor element.
     201 * @param bool   $mark    Mark as done.
     202 * @return bool True if already done (before mark).
     203 */
     204function xaddons_pro_notice_done( $element, $mark = false ) {
     205        static $done = [];
     206        $key         = spl_object_hash( $element );
     207        $was_done    = isset( $done[ $key ] );
     208
     209        if ( $mark ) {
     210                $done[ $key ] = true;
     211        }
     212
     213        return $was_done;
     214}
     215
     216/**
     217 * Shared guards for free-widget Pro notice injection.
     218 *
     219 * @param mixed  $element    Element.
     220 * @param string $section_id Section ID.
     221 * @return bool
     222 */
     223function xaddons_should_inject_pro_notice( $element, $section_id = '' ) {
     224        // Hide panel upsell when Pro is active (no paywall nag after purchase).
     225        if ( xaddons_is_pro_active() ) {
     226                return false;
     227        }
     228
     229        if ( ! $element instanceof \Elementor\Widget_Base ) {
     230                return false;
     231        }
     232
     233        // Only free Xpress widgets (xa-*). Never inject into Elementor core / other plugins.
     234        if ( ! xaddons_is_free_widget_name( $element->get_name() ) ) {
     235                return false;
     236        }
     237
     238        if ( 'xaddons_pro_upgrade_section' === $section_id ) {
     239                return false;
     240        }
     241
     242        return ! xaddons_pro_notice_done( $element );
     243}
     244
     245/**
     246 * Inject Upgrade notice once per free Xpress widget — at the end of Content controls.
     247 *
     248 * Strategy:
     249 * 1) Prefer right before Elementor Advanced (`_` sections) = bottom.
     250 * 2) Also inject after the first Content section as a guaranteed visible fallback
     251 *    if Advanced hooks differ by Elementor version.
     252 *
     253 * @param \Elementor\Controls_Stack $element    Element.
     254 * @param string                    $section_id Section ID.
     255 * @param array                     $args       Section args.
     256 */
     257function xaddons_inject_pro_upgrade_notice_bottom( $element, $section_id, $args = [] ) {
     258        unset( $args );
     259
     260        if ( ! xaddons_should_inject_pro_notice( $element, $section_id ) ) {
     261                return;
     262        }
     263
     264        // Bottom: just before Elementor Advanced/common sections.
     265        if ( 0 !== strpos( (string) $section_id, '_' ) ) {
     266                return;
     267        }
     268
     269        xaddons_pro_notice_done( $element, true );
     270        xaddons_register_widget_pro_notice( $element );
     271}
     272
     273/**
     274 * Guaranteed visible fallback — after first widget-owned Content section ends.
     275 *
     276 * @param \Elementor\Controls_Stack $element    Element.
     277 * @param string                    $section_id Section ID.
     278 * @param array                     $args       Section args.
     279 */
     280function xaddons_inject_pro_upgrade_notice_visible( $element, $section_id, $args = [] ) {
     281        unset( $args );
     282
     283        if ( ! xaddons_should_inject_pro_notice( $element, $section_id ) ) {
     284                return;
     285        }
     286
     287        // Skip Elementor Advanced sections and our own section.
     288        if ( 0 === strpos( (string) $section_id, '_' ) ) {
     289                return;
     290        }
     291
     292        xaddons_pro_notice_done( $element, true );
     293        xaddons_register_widget_pro_notice( $element );
     294}
     295
     296add_action( 'elementor/element/before_section_start', 'xaddons_inject_pro_upgrade_notice_bottom', 5, 3 );
     297add_action( 'elementor/element/after_section_end', 'xaddons_inject_pro_upgrade_notice_visible', 20, 3 );
  • x-addons-elementor/trunk/includes/plugin.php

    r3629242 r3821717  
    1313        'x-addons',
    1414        [
    15             'title' => esc_html__( 'X Addons', 'x-addons-elementor' ),
     15            'title' => esc_html__( 'Xpress Addons', 'x-addons-elementor' ),
    1616            'icon' => 'fa fa-plug',
    1717        ]
    … …  
    3030         * @var string The addon version.
    3131         */
    32         const VERSION = '1.0.0';
     32        const VERSION = '2.0';
    3333
    3434        /**
    … …  
    145145                        /* translators: 1: Plugin name 2: Elementor */
    146146                        esc_html__( '"%1$s" requires %2$s to be installed and activated.', 'x-addons-elementor' ),
    147                         '<strong>' . esc_html__( 'X-Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
     147                        '<strong>' . esc_html__( 'Xpress Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
    148148                        '<a href="' . esc_url( $elementor_url ) . '"><strong>' . esc_html__( 'Elementor', 'x-addons-elementor' ) . '</strong></a>'
    149149                );
    … …  
    172172                        /* translators: 1: Plugin name 2: Elementor 3: Required Elementor version */
    173173                        esc_html__( '"%1$s" requires "%2$s" version %3$s or greater.', 'x-addons-elementor' ),
    174                         '<strong>' . esc_html__( 'X Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
     174                        '<strong>' . esc_html__( 'Xpress Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
    175175                        '<strong>' . esc_html__( 'Elementor', 'x-addons-elementor' ) . '</strong>',
    176176                        self::MINIMUM_ELEMENTOR_VERSION
    … …  
    199199                        /* translators: 1: Plugin name 2: PHP 3: Required PHP version */
    200200                        esc_html__( '"%1$s" requires "%2$s" version %3$s or greater.', 'x-addons-elementor' ),
    201                         '<strong>' . esc_html__( 'X Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
     201                        '<strong>' . esc_html__( 'Xpress Addons for Elementor', 'x-addons-elementor' ) . '</strong>',
    202202                        '<strong>' . esc_html__( 'PHP', 'x-addons-elementor' ) . '</strong>',
    203203                        self::MINIMUM_PHP_VERSION
  • x-addons-elementor/trunk/includes/widgets/xa-amazing-image.php

    r3191516 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    69 */
    710
     11use Elementor\Controls_Manager;
     12use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
     13
    814class xaddons_amazing_image_Widget extends \Elementor\Widget_Base {
    9         /**
    10          * Get widget name.
    11          *
    12          * Retrieve widget name.
    13          *
    14          * @since 1.0.0
    15          * @access public
    16          *
    17          * @return string Widget name.
    18          */
     15
    1916        public function get_name() {
    2017                return 'xa-amazing-image-widget';
    … …  
    2219
    2320        public function get_title() {
    24                 return __( 'XA: Amazing Image', 'x-addons-elementor' );
     21                return __( 'Xpress: Amazing Card', 'x-addons-elementor' );
    2522        }
    2623
    … …  
    3835
    3936        protected function register_controls() {
    40 
    41                 // Tab #1
     37                $this->register_content_controls();
     38                $this->register_style_controls();
     39        }
     40
     41        protected function register_content_controls() {
     42
    4243                $this->start_controls_section(
    4344                        'xaddons_tab_one',
    4445                        [
    45                                 'label' => __( 'XA Image & Hover', 'x-addons-elementor' ),
    46                                 'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
    47                         ]
    48                 );
    49                
     46                                'label' => __( 'XA Image & Video', 'x-addons-elementor' ),
     47                                'tab'   => Controls_Manager::TAB_CONTENT,
     48                        ]
     49                );
     50
     51                $this->add_control(
     52                        'xaddons_layout_style',
     53                        [
     54                                'label'   => __( 'Layout Style', 'x-addons-elementor' ),
     55                                'type'    => Controls_Manager::CHOOSE,
     56                                'default' => 'image',
     57                                'options' => [
     58                                        'image' => [
     59                                                'title' => __( 'Image', 'x-addons-elementor' ),
     60                                                'icon'  => 'eicon-image',
     61                                        ],
     62                                ],
     63                                'toggle' => false,
     64                        ]
     65                );
     66
    5067                $this->add_control(
    5168                        'xaddons_thumbnail',
    5269                        [
    53                                 'label' => __( 'Image Thumbnail', 'x-addons-elementor' ),
    54                                 'type' => \Elementor\Controls_Manager::MEDIA,
     70                                'label'   => __( 'Image Thumbnail', 'x-addons-elementor' ),
     71                                'type'    => Controls_Manager::MEDIA,
    5572                                'default' => [
    56                     'url' => \Elementor\Utils::get_placeholder_image_src(),
    57                 ],
    58                         ]
    59                 );             
     73                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
     74                                ],
     75                        ]
     76                );
     77
     78                // Honest Pro upsell only — no locked/paywalled control in free (Guideline 5).
     79                if ( ! function_exists( 'xaddons_is_pro_active' ) || ! xaddons_is_pro_active() ) {
     80                        $this->add_control(
     81                                'xaddons_video_pro_notice',
     82                                [
     83                                        'type'            => Controls_Manager::RAW_HTML,
     84                                        'raw'             => '
     85                                        <div class="xaddons-pro-lock-card">
     86                                                <div class="xaddons-pro-lock-icon"><i class="eicon-info-circle" aria-hidden="true"></i></div>
     87                                                <div class="xaddons-pro-lock-content">
     88                                                        <strong>' . esc_html__( 'Video Popup', 'x-addons-elementor' ) . '</strong>
     89                                                        <p>' . esc_html__( 'Image layout works in free. Video popup is available in Xpress Addons Pro.', 'x-addons-elementor' ) . '</p>
     90                                                        <a href="' . esc_url( function_exists( 'xaddons_get_pro_upgrade_url' ) ? xaddons_get_pro_upgrade_url() : 'https://pencilwp.com/product/xpress-addons' ) . '" target="_blank" rel="noopener noreferrer" class="xaddons-pro-btn">' . esc_html__( 'Upgrade to Pro', 'x-addons-elementor' ) . '</a>
     91                                                </div>
     92                                        </div>',
     93                                        'content_classes' => 'xaddons-pro-card',
     94                                ]
     95                        );
     96                }
     97
     98                $this->add_control(
     99                        'xaddons_video_url',
     100                        [
     101                                'label'       => __( 'Video URL', 'x-addons-elementor' ),
     102                                'type'        => Controls_Manager::TEXT,
     103                                'placeholder' => 'https://youtube.com/watch?v=xxxx',
     104                                'condition'   => [
     105                                        'xaddons_layout_style' => 'video',
     106                                ],
     107                        ]
     108                );
     109
     110                $this->add_control(
     111                        'xaddons_play_icon',
     112                        [
     113                                'label'   => __( 'Play Icon', 'x-addons-elementor' ),
     114                                'type'    => Controls_Manager::ICONS,
     115                                'default' => [
     116                                        'value'   => 'fas fa-play',
     117                                        'library' => 'solid',
     118                                ],
     119                                'condition' => [
     120                                        'xaddons_layout_style' => 'video',
     121                                ],
     122                        ]
     123                );
     124
    60125
    61126                $this->add_control(
    62127                        'xaddons_label',
    63128                        [
    64                                 'label' => __( 'Label', 'x-addons-elementor' ),
    65                                 'type' => \Elementor\Controls_Manager::TEXT,
    66                                 'default' => '7',
     129                                'label'       => __( 'Label', 'x-addons-elementor' ),
     130                                'type'        => Controls_Manager::TEXT,
     131                                'default'     => '7',
    67132                                'label_block' => true,
    68                                 'separator' => 'before',   
     133                                'separator'   => 'before',
    69134                        ]
    70135                );
    … …  
    73138                        'xaddons_desc',
    74139                        [
    75                                 'label' => __( 'Experiences Text', 'x-addons-elementor' ),
    76                                 'type' => \Elementor\Controls_Manager::TEXTAREA,
     140                                'label'   => __( 'Experiences Text', 'x-addons-elementor' ),
     141                                'type'    => Controls_Manager::TEXTAREA,
    77142                                'default' => 'Years of <br> Experience',
    78143                        ]
    … …  
    80145
    81146                $this->end_controls_section();
    82 
    83         }
    84 
    85         /**
    86 
    87          * Render widget output on the frontend.
    88          *
    89          * Written in PHP and used to generate the final HTML.
    90          *
    91          * @since 1.0.0
    92          * @access protected
    93 
    94          */
    95 
    96          protected function render() {
    97 
    98         $settings = $this->get_settings_for_display();
    99 
    100                
    101         echo '
    102         <div class="xa-ex-image  xa-wrapper">
    103             <img src="'. esc_url($settings['xaddons_thumbnail']['url']) . '" alt="'.esc_attr('thumbnail', 'x-addons-elementor').'">
    104             <div class="xa-ex-image__hover">
    105                 <div class="xa-ex-image__content">
    106                     <span class="xa-ex-image__number">'.esc_html($settings['xaddons_label']).'</span>
    107                     <p class="xa-ex-image__text">'.wp_kses_post($settings['xaddons_desc']).'</p>
    108                 </div>
    109             </div>
    110         </div>';
    111 
    112         }
    113 
     147        }
     148
     149        protected function register_style_controls() {
     150
     151                /*
     152                |--------------------------------------------------------------------------
     153                | Wrapper Style
     154                |--------------------------------------------------------------------------
     155                */
     156
     157                $this->start_controls_section(
     158                        'xaddons_wrapper_style',
     159                        [
     160                                'label' => __( 'Wrapper Style', 'x-addons-elementor' ),
     161                                'tab'   => Controls_Manager::TAB_STYLE,
     162                        ]
     163                );
     164
     165                $this->add_responsive_control(
     166                        'xaddons_wrapper_min_height',
     167                        [
     168                                'label' => __( 'Minimum Height', 'x-addons-elementor' ),
     169                                'type'  => Controls_Manager::SLIDER,
     170                                'range' => [
     171                                        'px' => [ 'min' => 50, 'max' => 1200 ],
     172                                ],
     173                                'selectors' => [
     174                                        '{{WRAPPER}} .xa-ex-image' => 'min-height: {{SIZE}}{{UNIT}};',
     175                                ],
     176                        ]
     177                );
     178
     179                $this->add_responsive_control(
     180                        'xaddons_wrapper_padding',
     181                        [
     182                                'label' => __( 'Padding', 'x-addons-elementor' ),
     183                                'type'  => Controls_Manager::DIMENSIONS,
     184                                'size_units' => [ 'px', '%' ],
     185                                'selectors' => [
     186                                        '{{WRAPPER}} .xa-ex-image' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     187                                ],
     188                        ]
     189                );
     190
     191                $this->add_responsive_control(
     192                        'xaddons_wrapper_margin',
     193                        [
     194                                'label' => __( 'Margin', 'x-addons-elementor' ),
     195                                'type'  => Controls_Manager::DIMENSIONS,
     196                                'size_units' => [ 'px', '%' ],
     197                                'selectors' => [
     198                                        '{{WRAPPER}} .xa-ex-image' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     199                                ],
     200                        ]
     201                );
     202
     203                $this->add_group_control(
     204                        \Elementor\Group_Control_Border::get_type(),
     205                        [
     206                                'name'     => 'xaddons_wrapper_border',
     207                                'selector' => '{{WRAPPER}} .xa-ex-image',
     208                        ]
     209                );
     210
     211                $this->add_responsive_control(
     212                        'xaddons_wrapper_radius',
     213                        [
     214                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     215                                'type'  => Controls_Manager::DIMENSIONS,
     216                                'size_units' => [ 'px', '%' ],
     217                                'selectors' => [
     218                                        '{{WRAPPER}} .xa-ex-image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;',
     219                                ],
     220                        ]
     221                );
     222
     223                $this->add_group_control(
     224                        \Elementor\Group_Control_Box_Shadow::get_type(),
     225                        [
     226                                'name'     => 'xaddons_wrapper_shadow',
     227                                'selector' => '{{WRAPPER}} .xa-ex-image',
     228                                'exclude'  => [ 'box_shadow_position' ],
     229                        ]
     230                );
     231
     232                $this->end_controls_section();
     233
     234                /*
     235                |--------------------------------------------------------------------------
     236                | Video Style
     237                |--------------------------------------------------------------------------
     238                */
     239
     240                $this->start_controls_section(
     241                        'xaddons_play_icon_style',
     242                        [
     243                                'label' => __( 'Play Icon', 'x-addons-elementor' ),
     244                                'tab'   => Controls_Manager::TAB_STYLE,
     245                                'condition' => [
     246                                        'xaddons_layout_style' => 'video',
     247                                ],
     248                        ]
     249                );
     250
     251                $this->add_responsive_control(
     252                        'xaddons_play_icon_size',
     253                        [
     254                                'label' => __( 'Size', 'x-addons-elementor' ),
     255                                'type'  => Controls_Manager::SLIDER,
     256                                'range' => [
     257                                        'px' => [
     258                                                'min' => 20,
     259                                                'max' => 150,
     260                                        ],
     261                                ],
     262                                'selectors' => [
     263                                        '{{WRAPPER}} .xa-ex-image__play i' => 'font-size: {{SIZE}}{{UNIT}};',
     264                                        '{{WRAPPER}} .xa-ex-image__play svg' => 'width: {{SIZE}}{{UNIT}};',
     265                                ],
     266                        ]
     267                );
     268
     269                $this->add_control(
     270                        'xaddons_play_icon_color',
     271                        [
     272                                'label' => __( 'Color', 'x-addons-elementor' ),
     273                                'type'  => Controls_Manager::COLOR,
     274                                'selectors' => [
     275                                        '{{WRAPPER}} .xa-ex-image__play i'   => 'color: {{VALUE}};',
     276                                        '{{WRAPPER}} .xa-ex-image__play svg' => 'fill: {{VALUE}};',
     277                                ],
     278                        ]
     279                );
     280
     281                $this->add_control(
     282                        'xaddons_play_icon_bg',
     283                        [
     284                                'label' => __( 'Background', 'x-addons-elementor' ),
     285                                'type'  => Controls_Manager::COLOR,
     286                                'selectors' => [
     287                                        '{{WRAPPER}} .xa-ex-image__play' => 'background-color: {{VALUE}};',
     288                                ],
     289                        ]
     290                );
     291
     292                $this->add_responsive_control(
     293                        'xaddons_play_icon_radius',
     294                        [
     295                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     296                                'type'  => Controls_Manager::DIMENSIONS,
     297                                'selectors' => [
     298                                        '{{WRAPPER}} .xa-ex-image__play' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     299                                ],
     300                        ]
     301                );
     302
     303                $this->end_controls_section();
     304
     305                /*
     306                |--------------------------------------------------------------------------
     307                | Image Style
     308                |--------------------------------------------------------------------------
     309                */
     310
     311                $this->start_controls_section(
     312                        'xaddons_image_style',
     313                        [
     314                                'label' => __( 'Image Style', 'x-addons-elementor' ),
     315                                'tab'   => Controls_Manager::TAB_STYLE,
     316                        ]
     317                );
     318
     319                $this->add_responsive_control(
     320                        'xaddons_image_width',
     321                        [
     322                                'label' => __( 'Width', 'x-addons-elementor' ),
     323                                'type'  => Controls_Manager::SLIDER,
     324                                'size_units' => [ 'px', '%' ],
     325                                'selectors' => [
     326                                        '{{WRAPPER}} .xa-ex-image img' => 'width: {{SIZE}}{{UNIT}};',
     327                                ],
     328                        ]
     329                );
     330
     331                $this->add_responsive_control(
     332                        'xaddons_image_height',
     333                        [
     334                                'label' => __( 'Height', 'x-addons-elementor' ),
     335                                'type'  => Controls_Manager::SLIDER,
     336                                'size_units' => [ 'px' ],
     337                                'selectors' => [
     338                                        '{{WRAPPER}} .xa-ex-image img' => 'height: {{SIZE}}{{UNIT}};',
     339                                ],
     340                        ]
     341                );
     342
     343                $this->add_control(
     344                        'xaddons_image_fit',
     345                        [
     346                                'label' => __( 'Object Fit', 'x-addons-elementor' ),
     347                                'type'  => Controls_Manager::SELECT,
     348                                'default' => 'cover',
     349                                'options' => [
     350                                        'cover'   => __( 'Cover', 'x-addons-elementor' ),
     351                                        'contain' => __( 'Contain', 'x-addons-elementor' ),
     352                                        'fill'    => __( 'Fill', 'x-addons-elementor' ),
     353                                        'none'    => __( 'None', 'x-addons-elementor' ),
     354                                ],
     355                                'selectors' => [
     356                                        '{{WRAPPER}} .xa-ex-image img' => 'object-fit: {{VALUE}};',
     357                                ],
     358                        ]
     359                );
     360
     361                $this->add_group_control(
     362                        \Elementor\Group_Control_Border::get_type(),
     363                        [
     364                                'name'     => 'xaddons_image_border',
     365                                'selector' => '{{WRAPPER}} .xa-ex-image img',
     366                        ]
     367                );
     368
     369                $this->add_responsive_control(
     370                        'xaddons_image_radius',
     371                        [
     372                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     373                                'type'  => Controls_Manager::DIMENSIONS,
     374                                'size_units' => [ 'px', '%' ],
     375                                'selectors' => [
     376                                        '{{WRAPPER}} .xa-ex-image img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     377                                ],
     378                        ]
     379                );
     380
     381                $this->add_group_control(
     382                        \Elementor\Group_Control_Box_Shadow::get_type(),
     383                        [
     384                                'name'     => 'xaddons_image_shadow',
     385                                'selector' => '{{WRAPPER}} .xa-ex-image img',
     386                                'exclude'  => [ 'box_shadow_position' ],
     387                        ]
     388                );
     389
     390                $this->end_controls_section();
     391
     392                /*
     393                |--------------------------------------------------------------------------
     394                | Overlay Style
     395                |--------------------------------------------------------------------------
     396                */
     397
     398                $this->start_controls_section(
     399                        'xaddons_overlay_style',
     400                        [
     401                                'label' => __( 'Overlay Style', 'x-addons-elementor' ),
     402                                'tab'   => Controls_Manager::TAB_STYLE,
     403                        ]
     404                );
     405
     406                $this->add_control(
     407                        'xaddons_overlay_bg',
     408                        [
     409                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     410                                'type'  => Controls_Manager::COLOR,
     411                                'selectors' => [
     412                                        '{{WRAPPER}} .xa-ex-image__content' => 'background-color: {{VALUE}};',
     413                                ],
     414                        ]
     415                );
     416
     417                $this->add_control(
     418                        'xaddons_overlay_hover_bg',
     419                        [
     420                                'label' => __( 'Hover Background', 'x-addons-elementor' ),
     421                                'type'  => Controls_Manager::COLOR,
     422                                'selectors' => [
     423                                        '{{WRAPPER}} .xa-ex-image:hover .xa-ex-image__content' => 'background-color: {{VALUE}};',
     424                                ],
     425                        ]
     426                );
     427
     428                $this->add_responsive_control(
     429                        'xaddons_overlay_radius',
     430                        [
     431                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     432                                'type'  => Controls_Manager::DIMENSIONS,
     433                                'size_units' => [ 'px', '%' ],
     434                                'selectors' => [
     435                                        '{{WRAPPER}} .xa-ex-image__content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     436                                ],
     437                        ]
     438                );
     439
     440                $this->add_responsive_control(
     441                        'xaddons_content_alignment',
     442                        [
     443                                'label' => __( 'Content Alignment', 'x-addons-elementor' ),
     444                                'type'  => Controls_Manager::CHOOSE,
     445                                'options' => [
     446                                        'flex-start' => [
     447                                                'title' => __( 'Left', 'x-addons-elementor' ),
     448                                                'icon'  => 'eicon-text-align-left',
     449                                        ],
     450                                        'center' => [
     451                                                'title' => __( 'Center', 'x-addons-elementor' ),
     452                                                'icon'  => 'eicon-text-align-center',
     453                                        ],
     454                                        'flex-end' => [
     455                                                'title' => __( 'Right', 'x-addons-elementor' ),
     456                                                'icon'  => 'eicon-text-align-right',
     457                                        ],
     458                                ],
     459                                'default' => 'center',
     460                                'toggle'  => false,
     461                                'selectors' => [
     462                                        '{{WRAPPER}} .xa-ex-image__content' => 'align-items: {{VALUE}};',
     463                                ],
     464                        ]
     465                );
     466
     467                $this->end_controls_section();
     468
     469                /*
     470                |--------------------------------------------------------------------------
     471                | Number Style
     472                |--------------------------------------------------------------------------
     473                */
     474
     475                $this->start_controls_section(
     476                        'xaddons_number_style',
     477                        [
     478                                'label' => __( 'Number Style', 'x-addons-elementor' ),
     479                                'tab'   => Controls_Manager::TAB_STYLE,
     480                        ]
     481                );
     482
     483                $this->add_responsive_control(
     484                        'xaddons_number_padding',
     485                        [
     486                                'label' => __( 'Padding', 'x-addons-elementor' ),
     487                                'type'  => Controls_Manager::DIMENSIONS,
     488                                'size_units' => [ 'px', '%' ],
     489                                'selectors' => [
     490                                        '{{WRAPPER}} .xa-ex-image__number' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     491                                ],
     492                        ]
     493                );
     494
     495                $this->add_responsive_control(
     496                        'xaddons_number_margin',
     497                        [
     498                                'label' => __( 'Margin', 'x-addons-elementor' ),
     499                                'type'  => Controls_Manager::DIMENSIONS,
     500                                'size_units' => [ 'px', '%' ],
     501                                'selectors' => [
     502                                        '{{WRAPPER}} .xa-ex-image__number' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     503                                ],
     504                        ]
     505                );
     506
     507                $this->add_control(
     508                        'xaddons_number_color',
     509                        [
     510                                'label' => __( 'Color', 'x-addons-elementor' ),
     511                                'type'  => Controls_Manager::COLOR,
     512                                'selectors' => [
     513                                        '{{WRAPPER}} .xa-ex-image__number' => 'color: {{VALUE}};',
     514                                ],
     515                        ]
     516                );
     517
     518                $this->add_control(
     519                        'xaddons_number_bg',
     520                        [
     521                                'label' => __( 'Background', 'x-addons-elementor' ),
     522                                'type'  => Controls_Manager::COLOR,
     523                                'selectors' => [
     524                                        '{{WRAPPER}} .xa-ex-image__number' => 'background-color: {{VALUE}};',
     525                                ],
     526                        ]
     527                );
     528
     529                $this->add_responsive_control(
     530                        'xaddons_number_radius',
     531                        [
     532                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     533                                'type'  => Controls_Manager::DIMENSIONS,
     534                                'size_units' => [ 'px', '%' ],
     535                                'selectors' => [
     536                                        '{{WRAPPER}} .xa-ex-image__number' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     537                                ],
     538                        ]
     539                );
     540
     541                $this->add_group_control(
     542                        \Elementor\Group_Control_Typography::get_type(),
     543                        [
     544                                'name'     => 'xaddons_number_typography',
     545                                'selector' => '{{WRAPPER}} .xa-ex-image__number',
     546                        ]
     547                );
     548
     549                $this->end_controls_section();
     550
     551                /*
     552                |--------------------------------------------------------------------------
     553                | Text Style
     554                |--------------------------------------------------------------------------
     555                */
     556
     557                $this->start_controls_section(
     558                        'xaddons_text_style',
     559                        [
     560                                'label' => __( 'Text Style', 'x-addons-elementor' ),
     561                                'tab'   => Controls_Manager::TAB_STYLE,
     562                        ]
     563                );
     564
     565                $this->add_responsive_control(
     566                        'xaddons_text_padding',
     567                        [
     568                                'label' => __( 'Padding', 'x-addons-elementor' ),
     569                                'type'  => Controls_Manager::DIMENSIONS,
     570                                'size_units' => [ 'px', '%' ],
     571                                'selectors' => [
     572                                        '{{WRAPPER}} .xa-ex-image__text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     573                                ],
     574                        ]
     575                );
     576
     577                $this->add_responsive_control(
     578                        'xaddons_text_margin',
     579                        [
     580                                'label' => __( 'Margin', 'x-addons-elementor' ),
     581                                'type'  => Controls_Manager::DIMENSIONS,
     582                                'size_units' => [ 'px', '%' ],
     583                                'selectors' => [
     584                                        '{{WRAPPER}} .xa-ex-image__text' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     585                                ],
     586                        ]
     587                );
     588
     589                $this->add_control(
     590                        'xaddons_text_color',
     591                        [
     592                                'label' => __( 'Color', 'x-addons-elementor' ),
     593                                'type'  => Controls_Manager::COLOR,
     594                                'selectors' => [
     595                                        '{{WRAPPER}} .xa-ex-image__text' => 'color: {{VALUE}};',
     596                                ],
     597                        ]
     598                );
     599
     600                $this->add_control(
     601                        'xaddons_text_bg',
     602                        [
     603                                'label' => __( 'Background', 'x-addons-elementor' ),
     604                                'type'  => Controls_Manager::COLOR,
     605                                'selectors' => [
     606                                        '{{WRAPPER}} .xa-ex-image__text' => 'background-color: {{VALUE}};',
     607                                ],
     608                        ]
     609                );
     610
     611                $this->add_responsive_control(
     612                        'xaddons_text_radius',
     613                        [
     614                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     615                                'type'  => Controls_Manager::DIMENSIONS,
     616                                'size_units' => [ 'px', '%' ],
     617                                'selectors' => [
     618                                        '{{WRAPPER}} .xa-ex-image__text' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     619                                ],
     620                        ]
     621                );
     622
     623                $this->add_group_control(
     624                        \Elementor\Group_Control_Typography::get_type(),
     625                        [
     626                                'name'     => 'xaddons_text_typography',
     627                                'selector' => '{{WRAPPER}} .xa-ex-image__text',
     628                        ]
     629                );
     630
     631                $this->end_controls_section();
     632        }
     633
     634        protected function render() {
     635
     636                $settings = $this->get_settings_for_display();
     637
     638                $is_video_popup = xaddons_has_pro_feature(
     639                        'amazing_image.video_popup'
     640                );
     641
     642                echo '
     643                <div class="xa-ex-image xa-wrapper">
     644
     645                        <img
     646                                src="' . esc_url( $settings['xaddons_thumbnail']['url'] ) . '"
     647                                alt="' . esc_attr__( 'thumbnail', 'x-addons-elementor' ) . '">
     648                ';
     649
     650                /*
     651                |--------------------------------------------------------------------------
     652                | Pro Video Popup
     653                |--------------------------------------------------------------------------
     654                */
     655
     656                if (
     657                        $settings['xaddons_layout_style'] === 'video'
     658                        && $is_video_popup
     659                ) {
     660
     661                        echo '<a
     662                                class="xa-ex-image__play xa-video-popup"
     663                                href="' . esc_url( $settings['xaddons_video_url'] ) . '">';
     664
     665                        \Elementor\Icons_Manager::render_icon(
     666                                $settings['xaddons_play_icon'],
     667                                [
     668                                        'aria-hidden' => 'true',
     669                                ]
     670                        );
     671
     672                        echo '</a>';
     673                }
     674
     675                echo '
     676                        <div class="xa-ex-image__hover">
     677                                <div class="xa-ex-image__content">
     678
     679                                        <span class="xa-ex-image__number">
     680                                                ' . esc_html( $settings['xaddons_label'] ) . '
     681                                        </span>
     682
     683                                        <p class="xa-ex-image__text">
     684                                                ' . wp_kses_post( $settings['xaddons_desc'] ) . '
     685                                        </p>
     686
     687                                </div>
     688                        </div>
     689
     690                </div>';
     691        }
    114692}
  • x-addons-elementor/trunk/includes/widgets/xa-blog.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    3235       
    3336        public function get_title() {
    34                 return __( 'XA: Blog Post', 'x-addons-elementor' );
     37                return __( 'Xpress: Blog Post', 'x-addons-elementor' );
    3538        }
    3639
    … …  
    174177                );
    175178               
     179                $this->end_controls_section();
     180
     181                $this->register_style_controls();
     182
     183        }
     184
     185        protected function register_style_controls() {
     186
     187                $this->start_controls_section(
     188                        'xaddons_style_card',
     189                        [
     190                                'label' => __( 'Card', 'x-addons-elementor' ),
     191                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     192                        ]
     193                );
     194
     195                $this->add_responsive_control(
     196                        'xaddons_style_card_padding',
     197                        [
     198                                'label' => __( 'Padding', 'x-addons-elementor' ),
     199                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     200                                'size_units' => [ 'px', 'em' ],
     201                                'selectors' => [
     202                                        '{{WRAPPER}} .xa-blog-single' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     203                                ],
     204                        ]
     205                );
     206
     207                $this->add_group_control(
     208                        \Elementor\Group_Control_Border::get_type(),
     209                        [
     210                                'name' => 'xaddons_style_card_border',
     211                                'selector' => '{{WRAPPER}} .xa-blog-single',
     212                        ]
     213                );
     214
     215                $this->add_responsive_control(
     216                        'xaddons_style_card_radius',
     217                        [
     218                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     219                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     220                                'size_units' => [ 'px', '%' ],
     221                                'selectors' => [
     222                                        '{{WRAPPER}} .xa-blog-single' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     223                                ],
     224                        ]
     225                );
     226
     227                $this->add_group_control(
     228                        \Elementor\Group_Control_Box_Shadow::get_type(),
     229                        [
     230                                'name' => 'xaddons_style_card_shadow',
     231                                'selector' => '{{WRAPPER}} .xa-blog-single',
     232                        ]
     233                );
     234
     235                $this->add_control(
     236                        'xaddons_style_card_bg',
     237                        [
     238                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     239                                'type' => \Elementor\Controls_Manager::COLOR,
     240                                'selectors' => [
     241                                        '{{WRAPPER}} .xa-blog-single' => 'background-color: {{VALUE}};',
     242                                ],
     243                        ]
     244                );
     245
     246                $this->end_controls_section();
     247
     248                $this->start_controls_section(
     249                        'xaddons_style_content',
     250                        [
     251                                'label' => __( 'Content', 'x-addons-elementor' ),
     252                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     253                        ]
     254                );
     255
     256                $this->add_control(
     257                        'xaddons_style_date_color',
     258                        [
     259                                'label' => __( 'Date Color', 'x-addons-elementor' ),
     260                                'type' => \Elementor\Controls_Manager::COLOR,
     261                                'selectors' => [
     262                                        '{{WRAPPER}} .xa-blog-single__date' => 'color: {{VALUE}};',
     263                                ],
     264                        ]
     265                );
     266
     267                $this->add_group_control(
     268                        \Elementor\Group_Control_Typography::get_type(),
     269                        [
     270                                'name' => 'xaddons_style_date_typography',
     271                                'label' => __( 'Date Typography', 'x-addons-elementor' ),
     272                                'selector' => '{{WRAPPER}} .xa-blog-single__date',
     273                        ]
     274                );
     275
     276                $this->add_control(
     277                        'xaddons_style_title_color',
     278                        [
     279                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     280                                'type' => \Elementor\Controls_Manager::COLOR,
     281                                'separator' => 'before',
     282                                'selectors' => [
     283                                        '{{WRAPPER}} .xa-blog-single__title' => 'color: {{VALUE}};',
     284                                        '{{WRAPPER}} .xa-blog-single__title a' => 'color: {{VALUE}};',
     285                                ],
     286                        ]
     287                );
     288
     289                $this->add_group_control(
     290                        \Elementor\Group_Control_Typography::get_type(),
     291                        [
     292                                'name' => 'xaddons_style_title_typography',
     293                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     294                                'selector' => '{{WRAPPER}} .xa-blog-single__title',
     295                        ]
     296                );
     297
     298                $this->add_control(
     299                        'xaddons_style_text_color',
     300                        [
     301                                'label' => __( 'Excerpt Color', 'x-addons-elementor' ),
     302                                'type' => \Elementor\Controls_Manager::COLOR,
     303                                'separator' => 'before',
     304                                'selectors' => [
     305                                        '{{WRAPPER}} .xa-blog-single__text' => 'color: {{VALUE}};',
     306                                ],
     307                        ]
     308                );
     309
     310                $this->add_group_control(
     311                        \Elementor\Group_Control_Typography::get_type(),
     312                        [
     313                                'name' => 'xaddons_style_text_typography',
     314                                'label' => __( 'Excerpt Typography', 'x-addons-elementor' ),
     315                                'selector' => '{{WRAPPER}} .xa-blog-single__text',
     316                        ]
     317                );
     318
     319                $this->end_controls_section();
     320
     321                $this->start_controls_section(
     322                        'xaddons_style_button',
     323                        [
     324                                'label' => __( 'Read More', 'x-addons-elementor' ),
     325                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     326                        ]
     327                );
     328
     329                $this->add_control(
     330                        'xaddons_style_button_color',
     331                        [
     332                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     333                                'type' => \Elementor\Controls_Manager::COLOR,
     334                                'selectors' => [
     335                                        '{{WRAPPER}} .xa-blog-single__btn a' => 'color: {{VALUE}};',
     336                                ],
     337                        ]
     338                );
     339
     340                $this->add_control(
     341                        'xaddons_style_button_hover_color',
     342                        [
     343                                'label' => __( 'Hover Color', 'x-addons-elementor' ),
     344                                'type' => \Elementor\Controls_Manager::COLOR,
     345                                'selectors' => [
     346                                        '{{WRAPPER}} .xa-blog-single__btn a:hover' => 'color: {{VALUE}};',
     347                                ],
     348                        ]
     349                );
     350
     351                $this->add_group_control(
     352                        \Elementor\Group_Control_Typography::get_type(),
     353                        [
     354                                'name' => 'xaddons_style_button_typography',
     355                                'selector' => '{{WRAPPER}} .xa-blog-single__btn a',
     356                        ]
     357                );
     358
    176359                $this->end_controls_section();
    177360
  • x-addons-elementor/trunk/includes/widgets/xa-button.php

    r3629242 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2427       
    2528        public function get_title() {
    26                 return __( 'XA: Button', 'x-addons-elementor' );
     29                return __( 'Xpress: Button', 'x-addons-elementor' );
    2730        }
    2831
    … …  
    774777                'label' => __('Button Middle Label Typography', 'x-addons-elementor'),
    775778                'selector' => '{{WRAPPER}} .xa-buttons__middle',
    776                 'global' => [
    777                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    778                 ],
    779779            ]
    780780        );
    … …  
    786786                'label' => __('Button Default Typography', 'x-addons-elementor'),
    787787                'selector' => '{{WRAPPER}} .xa-buttons__btn.xa-buttons__btn-type1',
    788                 'global' => [
    789                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    790                 ],
    791788            ]
    792789        );
    … …  
    798795                'label' => __('Second Button Typography', 'x-addons-elementor'),
    799796                'selector' => '{{WRAPPER}} .xa-buttons__btn.xa-buttons__btn-type2',
    800                 'global' => [
    801                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    802                 ],
    803797            ]
    804798        );
  • x-addons-elementor/trunk/includes/widgets/xa-circle-progress.php

    r3191512 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2225
    2326        public function get_title() {
    24                 return __( 'XA: Circle Progress Widget', 'x-addons-elementor' );
     27                return __( 'Xpress: Circle Progress Widget', 'x-addons-elementor' );
    2528        }
    2629
    … …  
    8891                                'default' => [
    8992                                        [
    90                                                 'list_title' => __( 'Title #1', 'x-addons-elementor' ),
    91                                                 'list_content' => __( 'List Info', 'x-addons-elementor' ),
     93                                                'xaddons_list_label' => __( 'Strategy', 'x-addons-elementor' ),
     94                                                'xaddons_list_percent' => '0.75',
     95                                                'xaddons_list_percent_end' => '%',
     96                                        ],
     97                                        [
     98                                                'xaddons_list_label' => __( 'Design', 'x-addons-elementor' ),
     99                                                'xaddons_list_percent' => '0.86',
     100                                                'xaddons_list_percent_end' => '%',
     101                                        ],
     102                                        [
     103                                                'xaddons_list_label' => __( 'Delivery', 'x-addons-elementor' ),
     104                                                'xaddons_list_percent' => '0.92',
     105                                                'xaddons_list_percent_end' => '%',
    92106                                        ],
    93107                                ],
    … …  
    160174                $this->end_controls_section();
    161175
     176                $this->register_style_controls();
     177
     178        }
     179
     180        protected function register_style_controls() {
     181
     182                $this->start_controls_section(
     183                        'xaddons_style_circle',
     184                        [
     185                                'label' => __( 'Circle Text', 'x-addons-elementor' ),
     186                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     187                        ]
     188                );
     189
     190                $this->add_control(
     191                        'xaddons_style_percent_color',
     192                        [
     193                                'label' => __( 'Percent Color', 'x-addons-elementor' ),
     194                                'type' => \Elementor\Controls_Manager::COLOR,
     195                                'selectors' => [
     196                                        '{{WRAPPER}} .xa-circle-progress__percent' => 'color: {{VALUE}};',
     197                                ],
     198                        ]
     199                );
     200
     201                $this->add_group_control(
     202                        \Elementor\Group_Control_Typography::get_type(),
     203                        [
     204                                'name' => 'xaddons_style_percent_typography',
     205                                'label' => __( 'Percent Typography', 'x-addons-elementor' ),
     206                                'selector' => '{{WRAPPER}} .xa-circle-progress__percent',
     207                        ]
     208                );
     209
     210                $this->add_control(
     211                        'xaddons_style_title_color',
     212                        [
     213                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     214                                'type' => \Elementor\Controls_Manager::COLOR,
     215                                'separator' => 'before',
     216                                'selectors' => [
     217                                        '{{WRAPPER}} .xa-circle-progress__title' => 'color: {{VALUE}};',
     218                                ],
     219                        ]
     220                );
     221
     222                $this->add_group_control(
     223                        \Elementor\Group_Control_Typography::get_type(),
     224                        [
     225                                'name' => 'xaddons_style_title_typography',
     226                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     227                                'selector' => '{{WRAPPER}} .xa-circle-progress__title',
     228                        ]
     229                );
     230
     231                $this->end_controls_section();
     232
    162233        }
    163234
    … …  
    175246         protected function render() {
    176247                $settings = $this->get_settings_for_display();
    177        
    178                 echo '
    179                 <script>
    180                         jQuery(document).ready(function(){
    181                                 jQuery(".circle__one").circleProgress({
    182                                         lineCap: "round",
    183                                         fill: {
    184                                                 color: "#FC6761",
    185                                                 borderRadius: "50px"
    186                                         },
    187                                         border: {
    188                                                 color: "#000",
    189                                                 width: 50,
    190                                                 borderRadius: "50px"
    191                                         },
    192                                         emptyFill: "#EEEEEE"
    193                                 });
    194                         });
    195                 </script>';
     248
     249                if ( empty( $settings['xaddons_lists'] ) || ! is_array( $settings['xaddons_lists'] ) ) {
     250                        return;
     251                }
    196252       
    197253                echo '
  • x-addons-elementor/trunk/includes/widgets/xa-contact-card.php

    r3191512 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2326       
    2427        public function get_title() {
    25                 return __( 'XA: Contact Card', 'x-addons-elementor' );
     28                return __( 'Xpress: Contact Card', 'x-addons-elementor' );
    2629        }
    2730
    … …  
    132135                                'default' => [
    133136                                        [
    134                                                 'list_title' => __( 'Title #1', 'x-addons-elementor' ),
    135                                                 'list_content' => __( 'Information', 'x-addons-elementor' ),
     137                                                'xaddons_icon' => [
     138                                                        'value' => 'fas fa-phone-alt',
     139                                                        'library' => 'solid',
     140                                                ],
     141                                                'xaddons_label' => __( 'Phone', 'x-addons-elementor' ),
     142                                                'xaddons_info' => __( '+1 202 555 0147', 'x-addons-elementor' ),
     143                                                'xaddons_use_link' => '2',
    136144                                        ],
     145                                        [
     146                                                'xaddons_icon' => [
     147                                                        'value' => 'fas fa-envelope',
     148                                                        'library' => 'solid',
     149                                                ],
     150                                                'xaddons_label' => __( 'Email', 'x-addons-elementor' ),
     151                                                'xaddons_info' => __( 'hello@example.com', 'x-addons-elementor' ),
     152                                                'xaddons_use_link' => '2',
     153                                        ],
     154                                        [
     155                                                'xaddons_icon' => [
     156                                                        'value' => 'fas fa-map-marker-alt',
     157                                                        'library' => 'solid',
     158                                                ],
     159                                                'xaddons_label' => __( 'Office', 'x-addons-elementor' ),
     160                                                'xaddons_info' => __( '18 Market Street, Portland', 'x-addons-elementor' ),
     161                                                'xaddons_use_link' => '2',
     162                                        ],
    137163                                ],
    138164                        ]
    139165                );
    140166               
     167                $this->end_controls_section();
     168
     169                $this->register_style_controls();
     170
     171        }
     172
     173        protected function register_style_controls() {
     174
     175                $this->start_controls_section(
     176                        'xaddons_style_heading',
     177                        [
     178                                'label' => __( 'Heading', 'x-addons-elementor' ),
     179                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     180                        ]
     181                );
     182
     183                $this->add_control(
     184                        'xaddons_style_title_color',
     185                        [
     186                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     187                                'type' => \Elementor\Controls_Manager::COLOR,
     188                                'selectors' => [
     189                                        '{{WRAPPER}} .xa-contacts__title' => 'color: {{VALUE}};',
     190                                ],
     191                        ]
     192                );
     193
     194                $this->add_group_control(
     195                        \Elementor\Group_Control_Typography::get_type(),
     196                        [
     197                                'name' => 'xaddons_style_title_typography',
     198                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     199                                'selector' => '{{WRAPPER}} .xa-contacts__title',
     200                        ]
     201                );
     202
     203                $this->add_control(
     204                        'xaddons_style_text_color',
     205                        [
     206                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     207                                'type' => \Elementor\Controls_Manager::COLOR,
     208                                'separator' => 'before',
     209                                'selectors' => [
     210                                        '{{WRAPPER}} .xa-contacts__text' => 'color: {{VALUE}};',
     211                                ],
     212                        ]
     213                );
     214
     215                $this->add_group_control(
     216                        \Elementor\Group_Control_Typography::get_type(),
     217                        [
     218                                'name' => 'xaddons_style_text_typography',
     219                                'label' => __( 'Text Typography', 'x-addons-elementor' ),
     220                                'selector' => '{{WRAPPER}} .xa-contacts__text',
     221                        ]
     222                );
     223
     224                $this->end_controls_section();
     225
     226                $this->start_controls_section(
     227                        'xaddons_style_item',
     228                        [
     229                                'label' => __( 'Contact Item', 'x-addons-elementor' ),
     230                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     231                        ]
     232                );
     233
     234                $this->add_responsive_control(
     235                        'xaddons_style_item_padding',
     236                        [
     237                                'label' => __( 'Padding', 'x-addons-elementor' ),
     238                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     239                                'size_units' => [ 'px', 'em' ],
     240                                'selectors' => [
     241                                        '{{WRAPPER}} .xa-contact-single' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     242                                ],
     243                        ]
     244                );
     245
     246                $this->add_control(
     247                        'xaddons_style_item_bg',
     248                        [
     249                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     250                                'type' => \Elementor\Controls_Manager::COLOR,
     251                                'selectors' => [
     252                                        '{{WRAPPER}} .xa-contact-single' => 'background-color: {{VALUE}};',
     253                                ],
     254                        ]
     255                );
     256
     257                $this->add_responsive_control(
     258                        'xaddons_style_item_radius',
     259                        [
     260                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     261                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     262                                'size_units' => [ 'px', '%' ],
     263                                'selectors' => [
     264                                        '{{WRAPPER}} .xa-contact-single' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     265                                ],
     266                        ]
     267                );
     268
     269                $this->add_control(
     270                        'xaddons_style_icon_color',
     271                        [
     272                                'label' => __( 'Icon Color', 'x-addons-elementor' ),
     273                                'type' => \Elementor\Controls_Manager::COLOR,
     274                                'separator' => 'before',
     275                                'selectors' => [
     276                                        '{{WRAPPER}} .xa-contact-single__icon' => 'color: {{VALUE}};',
     277                                        '{{WRAPPER}} .xa-contact-single__icon i' => 'color: {{VALUE}};',
     278                                ],
     279                        ]
     280                );
     281
     282                $this->add_responsive_control(
     283                        'xaddons_style_icon_size',
     284                        [
     285                                'label' => __( 'Icon Size', 'x-addons-elementor' ),
     286                                'type' => \Elementor\Controls_Manager::SLIDER,
     287                                'size_units' => [ 'px' ],
     288                                'range' => [
     289                                        'px' => [ 'min' => 10, 'max' => 80 ],
     290                                ],
     291                                'selectors' => [
     292                                        '{{WRAPPER}} .xa-contact-single__icon i' => 'font-size: {{SIZE}}{{UNIT}};',
     293                                ],
     294                        ]
     295                );
     296
     297                $this->add_control(
     298                        'xaddons_style_label_color',
     299                        [
     300                                'label' => __( 'Label Color', 'x-addons-elementor' ),
     301                                'type' => \Elementor\Controls_Manager::COLOR,
     302                                'separator' => 'before',
     303                                'selectors' => [
     304                                        '{{WRAPPER}} .xa-contact-single__label' => 'color: {{VALUE}};',
     305                                ],
     306                        ]
     307                );
     308
     309                $this->add_group_control(
     310                        \Elementor\Group_Control_Typography::get_type(),
     311                        [
     312                                'name' => 'xaddons_style_label_typography',
     313                                'label' => __( 'Label Typography', 'x-addons-elementor' ),
     314                                'selector' => '{{WRAPPER}} .xa-contact-single__label',
     315                        ]
     316                );
     317
     318                $this->add_control(
     319                        'xaddons_style_info_color',
     320                        [
     321                                'label' => __( 'Info Color', 'x-addons-elementor' ),
     322                                'type' => \Elementor\Controls_Manager::COLOR,
     323                                'separator' => 'before',
     324                                'selectors' => [
     325                                        '{{WRAPPER}} .xa-contact-single__info' => 'color: {{VALUE}};',
     326                                ],
     327                        ]
     328                );
     329
     330                $this->add_group_control(
     331                        \Elementor\Group_Control_Typography::get_type(),
     332                        [
     333                                'name' => 'xaddons_style_info_typography',
     334                                'label' => __( 'Info Typography', 'x-addons-elementor' ),
     335                                'selector' => '{{WRAPPER}} .xa-contact-single__info',
     336                        ]
     337                );
     338
    141339                $this->end_controls_section();
    142340
  • x-addons-elementor/trunk/includes/widgets/xa-contact-form7.php

    r3191568 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2730
    2831        public function get_title() {
    29                 return __( 'XA: Contact Form 7', 'x-addons-elementor' );
     32                return __( 'Xpress: Contact Form 7', 'x-addons-elementor' );
    3033        }
    3134
    … …  
    120123                $this->end_controls_section();
    121124
     125                $this->register_style_controls();
     126
    122127    }
     128
     129        protected function register_style_controls() {
     130
     131                $this->start_controls_section(
     132                        'xaddons_style_form',
     133                        [
     134                                'label' => __( 'Form', 'x-addons-elementor' ),
     135                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     136                        ]
     137                );
     138
     139                $this->add_responsive_control(
     140                        'xaddons_style_form_padding',
     141                        [
     142                                'label' => __( 'Padding', 'x-addons-elementor' ),
     143                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     144                                'size_units' => [ 'px', 'em' ],
     145                                'selectors' => [
     146                                        '{{WRAPPER}} .xa-contact-form' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     147                                ],
     148                        ]
     149                );
     150
     151                $this->add_control(
     152                        'xaddons_style_form_bg',
     153                        [
     154                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     155                                'type' => \Elementor\Controls_Manager::COLOR,
     156                                'selectors' => [
     157                                        '{{WRAPPER}} .xa-contact-form' => 'background-color: {{VALUE}};',
     158                                ],
     159                        ]
     160                );
     161
     162                $this->add_responsive_control(
     163                        'xaddons_style_form_radius',
     164                        [
     165                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     166                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     167                                'size_units' => [ 'px', '%' ],
     168                                'selectors' => [
     169                                        '{{WRAPPER}} .xa-contact-form' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     170                                ],
     171                        ]
     172                );
     173
     174                $this->add_control(
     175                        'xaddons_style_label_color',
     176                        [
     177                                'label' => __( 'Label Color', 'x-addons-elementor' ),
     178                                'type' => \Elementor\Controls_Manager::COLOR,
     179                                'separator' => 'before',
     180                                'selectors' => [
     181                                        '{{WRAPPER}} .xa-contact-form__label' => 'color: {{VALUE}};',
     182                                ],
     183                        ]
     184                );
     185
     186                $this->add_group_control(
     187                        \Elementor\Group_Control_Typography::get_type(),
     188                        [
     189                                'name' => 'xaddons_style_label_typography',
     190                                'label' => __( 'Label Typography', 'x-addons-elementor' ),
     191                                'selector' => '{{WRAPPER}} .xa-contact-form__label',
     192                        ]
     193                );
     194
     195                $this->add_control(
     196                        'xaddons_style_title_color',
     197                        [
     198                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     199                                'type' => \Elementor\Controls_Manager::COLOR,
     200                                'separator' => 'before',
     201                                'selectors' => [
     202                                        '{{WRAPPER}} .xa-contact-form__title' => 'color: {{VALUE}};',
     203                                ],
     204                        ]
     205                );
     206
     207                $this->add_group_control(
     208                        \Elementor\Group_Control_Typography::get_type(),
     209                        [
     210                                'name' => 'xaddons_style_title_typography',
     211                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     212                                'selector' => '{{WRAPPER}} .xa-contact-form__title',
     213                        ]
     214                );
     215
     216                $this->add_control(
     217                        'xaddons_style_field_color',
     218                        [
     219                                'label' => __( 'Field Text Color', 'x-addons-elementor' ),
     220                                'type' => \Elementor\Controls_Manager::COLOR,
     221                                'separator' => 'before',
     222                                'selectors' => [
     223                                        '{{WRAPPER}} .xa-contact-form__body input' => 'color: {{VALUE}};',
     224                                        '{{WRAPPER}} .xa-contact-form__body textarea' => 'color: {{VALUE}};',
     225                                ],
     226                        ]
     227                );
     228
     229                $this->add_control(
     230                        'xaddons_style_field_bg',
     231                        [
     232                                'label' => __( 'Field Background', 'x-addons-elementor' ),
     233                                'type' => \Elementor\Controls_Manager::COLOR,
     234                                'selectors' => [
     235                                        '{{WRAPPER}} .xa-contact-form__body input' => 'background-color: {{VALUE}};',
     236                                        '{{WRAPPER}} .xa-contact-form__body textarea' => 'background-color: {{VALUE}};',
     237                                ],
     238                        ]
     239                );
     240
     241                $this->end_controls_section();
     242        }
    123243
    124244    /**
  • x-addons-elementor/trunk/includes/widgets/xa-cta.php

    r3375643 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2528
    2629        public function get_title() {
    27                 return __( 'XA: Call to Action', 'x-addons-elementor' );
     30                return __( 'Xpress: Call to Action', 'x-addons-elementor' );
    2831        }
    2932
    … …  
    682685                'label' => __('Title Typography', 'x-addons-elementor'),
    683686                'selector' => '{{WRAPPER}} .xa-cta-area__title',
    684                 'global' => [
    685                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    686                 ],
    687687            ]
    688688        );
    … …  
    694694                'label' => __('Title Focus Typography', 'x-addons-elementor'),
    695695                'selector' => '{{WRAPPER}} .xa-cta-area__title span',
    696                 'global' => [
    697                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    698                 ],
    699696            ]
    700697        );
    … …  
    706703                'label' => __('Content Typography', 'x-addons-elementor'),
    707704                'selector' => '{{WRAPPER}} .xa-cta-area__text',
    708                 'global' => [
    709                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    710                 ],
    711705            ]
    712706        );
    … …  
    718712                'label' => __('Button Typography', 'x-addons-elementor'),
    719713                'selector' => '{{WRAPPER}} .xa-buttons__btn',
    720                 'global' => [
    721                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    722                 ],
    723714            ]
    724715        );
  • x-addons-elementor/trunk/includes/widgets/xa-faq-list.php

    r3396769 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2729
    2830        public function get_title() {
    29                 return __( 'XA: Faq List', 'x-addons-elementor' );
     31                return __( 'Xpress: Faq List', 'x-addons-elementor' );
    3032        }
    3133
    … …  
    134136                                'default' => [
    135137                                        [
    136                                                 'xaddons_title' => __( 'Faq Title 1', 'x-addons-elementor' ),
    137                                                 'xaddons_desc' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent est est, ultricies vel volutpat sed, aliquam vel ipsum', 'x-addons-elementor' ),
     138                                                'xaddons_title' => __( 'What is included with each plan?', 'x-addons-elementor' ),
     139                                                'xaddons_desc' => __( 'Every plan includes the widgets, updates, and documentation you need to build the first pages. Higher plans add more sites and priority support.', 'x-addons-elementor' ),
     140                                                'xa_option' => '1',
    138141                                        ],
    139142                                        [
    140                                                 'xaddons_title' => __( 'Faq Title 2', 'x-addons-elementor' ),
    141                                                 'xaddons_desc' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent est est, ultricies vel volutpat sed, aliquam vel ipsum', 'x-addons-elementor' ),
     143                                                'xaddons_title' => __( 'Can I use the widgets on client websites?', 'x-addons-elementor' ),
     144                                                'xaddons_desc' => __( 'Yes. You can build client sites with the widgets included in your license. Each plan lists how many sites it covers.', 'x-addons-elementor' ),
     145                                                'xa_option' => '2',
     146                                        ],
     147                                        [
     148                                                'xaddons_title' => __( 'Do the widgets work with my existing Elementor pages?', 'x-addons-elementor' ),
     149                                                'xaddons_desc' => __( 'They drop into any page made with Elementor. Existing sections, headers, and theme styles stay in place.', 'x-addons-elementor' ),
     150                                                'xa_option' => '2',
     151                                        ],
     152                                        [
     153                                                'xaddons_title' => __( 'Will I lose content if I update the plugin?', 'x-addons-elementor' ),
     154                                                'xaddons_desc' => __( 'No. Updates keep the content and settings already saved in your Elementor pages.', 'x-addons-elementor' ),
     155                                                'xa_option' => '2',
     156                                        ],
     157                                        [
     158                                                'xaddons_title' => __( 'How do I get help if something looks wrong?', 'x-addons-elementor' ),
     159                                                'xaddons_desc' => __( 'Send a note through the support form with the page link and a short description. Include a screenshot if a widget is not displaying.', 'x-addons-elementor' ),
     160                                                'xa_option' => '2',
    142161                                        ],
    143162                                ],
    … …  
    241260                'size_units' => ['px', '%'],
    242261                'selectors' => [
    243                     '{{WRAPPER}} .xa-faq-list__title .accordion-button  ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     262                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    244263                ],
    245264            ]
    … …  
    252271                'size_units' => ['px', '%'],
    253272                'selectors' => [
    254                     '{{WRAPPER}} .xa-faq-list__title .accordion-button  ' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     273                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  ' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    255274                ],
    256275            ]
    … …  
    260279            [
    261280                'name' => 'xaddons_button_border',
    262                 'selector' => '{{WRAPPER}} .xa-faq-list__title .accordion-button'
     281                'selector' => '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button'
    263282
    264283            ]
    … …  
    272291                'size_units' => ['px', '%'],
    273292                'selectors' => [
    274                     '{{WRAPPER}} .xa-faq-list__title .accordion-button  ' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     293                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  ' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    275294                ],
    276295            ]
    … …  
    282301                'name' => 'xaddons_button_shadow',
    283302                'exclude' => [ 'box_shadow_position',],// phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude
    284                 'selector' => '{{WRAPPER}} .xa-faq-list__title .accordion-button  '
     303                'selector' => '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  '
    285304            ]
    286305        );
    … …  
    292311                'type' => \Elementor\Controls_Manager::COLOR,
    293312                'selectors' => [
    294                     '{{WRAPPER}} .xa-faq-list__title .accordion-button  ' => 'color: {{VALUE}};',
     313                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  ' => 'color: {{VALUE}};',
    295314                ],
    296315
    … …  
    304323                'type' => \Elementor\Controls_Manager::COLOR,
    305324                'selectors' => [
    306                     '{{WRAPPER}} .xa-faq-list__title .accordion-button  ' => 'background-color: {{VALUE}} !important;',
     325                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button  ' => 'background-color: {{VALUE}} !important;',
    307326                ],
    308327
    … …  
    316335                'type' => \Elementor\Controls_Manager::COLOR,
    317336                'selectors' => [
    318                     '{{WRAPPER}} .xa-faq-list__title .accordion-button span' => 'color: {{VALUE}};',
     337                    '{{WRAPPER}} .xa-faq-list__title .xa-faq-list__button span' => 'color: {{VALUE}};',
    319338                ],
    320339
    … …  
    426445                'name' => 'xaddons_title_typography',
    427446                'label' => __('Title Typography', 'x-addons-elementor'),
    428                 'selector' => '{{WRAPPER}} .xa-faq-list__header .accordion-button',
    429                 'global' => [
    430                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    431                 ],
     447                'selector' => '{{WRAPPER}} .xa-faq-list__header .xa-faq-list__button',
    432448            ]
    433449        );
    … …  
    442458                    {{WRAPPER}} .xa-faq-list__content ol,
    443459                    {{WRAPPER}} .xa-faq-list__content li',
    444                 'global' => [
    445                     'default' => Global_Typography::TYPOGRAPHY_SECONDARY,
    446                 ],
    447460            ]
    448461        );
    … …  
    467480
    468481        $settings = $this->get_settings_for_display();
    469                 $sp_dynamic_number = wp_rand(10, 1000);
     482
     483                $xa_dynamic_number = wp_rand(10, 1000);
    470484
    471485        echo '
    … …  
    473487
    474488                        echo'
    475                         <div class="xa-faq-list__inner" id="accordionExample'.esc_attr($sp_dynamic_number).'">';
     489                        <div class="xa-faq-list__inner" id="xa-accordion'.esc_attr($xa_dynamic_number).'">';
     490
     491                                if ( empty( $settings['xaddons_lists'] ) || ! is_array( $settings['xaddons_lists'] ) ) {
     492                                        $settings['xaddons_lists'] = [];
     493                                }
    476494
    477495                                foreach($settings['xaddons_lists'] as $list){
    … …  
    479497                                        $sp_dynamic_loop = wp_rand(10, 1000);
    480498
    481                                         if($list['xa_option'] == '1'){
    482                                                 $active_btn_class = '';
    483                                                 $active_body_class = 'show';
    484 
    485                                         }else{
    486                                                 $active_btn_class = 'collapsed';
    487                                                 $active_body_class = '';
    488                                         }
     499                 
    489500
    490501                                        echo'
    491                                         <div class="xa-faq-list__item accordion-item wow fadeInUp">
     502                                        <div class="xa-faq-list__item accordion-item '.esc_attr($sp_dynamic_loop).'  '.esc_attr( $list['xa_option'] == '1' ? 'xa-faq__active' : '' ).'">
    492503                                                <div class="xa-faq-list__header">
    493                                                         <h2 class="xa-faq-list__title"><button class="accordion-button '.esc_attr($active_btn_class).'" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo'.esc_attr($sp_dynamic_loop).'" aria-expanded="false" aria-controls="collapseTwo'.esc_attr($sp_dynamic_loop).'">
     504                                                        <h2 class="xa-faq-list__title"><button type="button" class="xa-faq-list__button">
    494505                            '.esc_html($list['xaddons_title']).'
    495506                            <span class="xa-plus-ms-auto ms-auto">
    … …  
    499510                            </h2>
    500511                                                </div>
    501                                                 <div  id="collapseTwo'.esc_attr($sp_dynamic_loop).'" class="accordion-collapse collapse '.esc_attr($active_body_class).'" aria-labelledby="headingTwo" data-bs-parent="#accordionExample'.esc_attr($sp_dynamic_number).'">
     512                                                <div class="xa-faq-list__body" >
    502513                                                        <div class="xa-faq-list__content">';
    503                                 if($list['xaddons_desc_type'] == 'yes'){
     514                                if( isset( $list['xaddons_desc_type'] ) && $list['xaddons_desc_type'] == 'yes' ){
    504515                                    echo''.wp_kses_post($list['xaddons_desc_rich']).'';
    505516                                }else{
  • x-addons-elementor/trunk/includes/widgets/xa-hero.php

    r3375643 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2729
    2830        public function get_title() {
    29                 return __( 'XA: Hero Section', 'x-addons-elementor' );
     31                return __( 'Xpress: Hero Section', 'x-addons-elementor' );
    3032        }
    3133
    … …  
    5557                                'label' => __( 'Hero Content', 'x-addons-elementor' ),
    5658                                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
     59                        ]
     60                );
     61
     62                $this->add_responsive_control(
     63                        'xaddons_content_align',
     64                        [
     65                                'label'   => __( 'Content Alignment', 'x-addons-elementor' ),
     66                                'type'    => \Elementor\Controls_Manager::CHOOSE,
     67                                'options' => [
     68                                        'left' => [
     69                                                'title' => __( 'Left', 'x-addons-elementor' ),
     70                                                'icon'  => 'eicon-text-align-left',
     71                                        ],
     72                                        'center' => [
     73                                                'title' => __( 'Center', 'x-addons-elementor' ),
     74                                                'icon'  => 'eicon-text-align-center',
     75                                        ],
     76                                        'right' => [
     77                                                'title' => __( 'Right', 'x-addons-elementor' ),
     78                                                'icon'  => 'eicon-text-align-right',
     79                                        ],
     80                                ],
     81                                'default'   => 'left',
     82                                'toggle'    => false,
     83                                'selectors' => [
     84                                        '{{WRAPPER}} .xa-hero-area__content' => 'text-align: {{VALUE}};',
     85                                ],
    5786                        ]
    5887                );
    … …  
    643672                'label' => __('Title Typography', 'x-addons-elementor'),
    644673                'selector' => '{{WRAPPER}} .xa-hero-area__title',
    645                 'global' => [
    646                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    647                 ],
    648674            ]
    649675        );
    … …  
    655681                'label' => __('Content Typography', 'x-addons-elementor'),
    656682                'selector' => '{{WRAPPER}} .xa-hero-area__text',
    657                 'global' => [
    658                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    659                 ],
    660683            ]
    661684        );
    … …  
    667690                'label' => __('Content Typography', 'x-addons-elementor'),
    668691                'selector' => '{{WRAPPER}} .xa-youtube-btn',
    669                 'global' => [
    670                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    671                 ],
    672692            ]
    673693        );
    … …  
    702722                                                <div class="xa-hero-area__content">';
    703723
    704                             if($settings['xaddons_show_anim'] == 'yes'){
    705                                 echo'
    706                                 <div id="typed-strings">';
    707                                     foreach($settings['xaddons_anim_lists'] as $alist){
    708                                     echo'<p>'.esc_html($alist['xaddons_anim_text']).'</p>';
    709                                     }echo'
    710                                 </div>
    711                                 <span id="typed"></span>
    712                                 ';
    713                             }echo'
     724                            if ( $settings['xaddons_show_anim'] == 'yes' && ! empty( $settings['xaddons_anim_lists'] ) ) {
     725                                echo '<div class="xa-hero__phrases" hidden>';
     726                                foreach ( $settings['xaddons_anim_lists'] as $alist ) {
     727                                    if ( empty( $alist['xaddons_anim_text'] ) ) {
     728                                        continue;
     729                                    }
     730                                    echo '<p>' . esc_html( $alist['xaddons_anim_text'] ) . '</p>';
     731                                }
     732                                echo '</div>';
     733                                echo '<p class="xa-hero__animate" data-xa-typewriter></p>';
     734                            }
     735                            echo'
    714736                                                        <h1 class="xa-hero-area__title">'.wp_kses_post($settings['xaddons_title']).'</h1>';
    715737                            if($settings['xaddons_show_content'] == 'yes'){
  • x-addons-elementor/trunk/includes/widgets/xa-icon-type.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2527
    2628        public function get_title() {
    27                 return __( 'XA: Multi Icon Type', 'x-addons-elementor' );
     29                return __( 'Xpress: Multi Icon Type', 'x-addons-elementor' );
    2830        }
    2931
  • x-addons-elementor/trunk/includes/widgets/xa-info-card-slider.php

    r3375643 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2527
    2628        public function get_title() {
    27                 return __( 'XA: Info Card Slider', 'x-addons-elementor' );
     29                return __( 'Xpress: Info Card Slider', 'x-addons-elementor' );
    2830        }
    2931
    … …  
    296298                                'type' => \Elementor\Controls_Manager::REPEATER,
    297299                                'fields' => $repeater->get_controls(),
     300                                'default' => [
     301                                        [
     302                                                'xaddons_title' => __( 'Web Design', 'x-addons-elementor' ),
     303                                                'xaddons_desc' => __( 'Clear layouts that make your services easy to scan and understand.', 'x-addons-elementor' ),
     304                                                'xaddons_icon' => [
     305                                                        'value' => 'fas fa-paint-brush',
     306                                                        'library' => 'solid',
     307                                                ],
     308                                                'xaddons_card_btn_text' => __( 'View design', 'x-addons-elementor' ),
     309                                        ],
     310                                        [
     311                                                'xaddons_title' => __( 'Development', 'x-addons-elementor' ),
     312                                                'xaddons_desc' => __( 'Fast Elementor pages built around the content you already have.', 'x-addons-elementor' ),
     313                                                'xaddons_icon' => [
     314                                                        'value' => 'fas fa-code',
     315                                                        'library' => 'solid',
     316                                                ],
     317                                                'xaddons_card_btn_text' => __( 'View development', 'x-addons-elementor' ),
     318                                        ],
     319                                        [
     320                                                'xaddons_title' => __( 'Support', 'x-addons-elementor' ),
     321                                                'xaddons_desc' => __( 'Help with updates, content, and the questions that come after launch.', 'x-addons-elementor' ),
     322                                                'xaddons_icon' => [
     323                                                        'value' => 'fas fa-headset',
     324                                                        'library' => 'solid',
     325                                                ],
     326                                                'xaddons_card_btn_text' => __( 'View support', 'x-addons-elementor' ),
     327                                        ],
     328                                ],
    298329                        ]
    299330                );
    … …  
    10941125                'label' => __('Title Typography', 'x-addons-elementor'),
    10951126                'selector' => '{{WRAPPER}} .xa-info-card__title a',
    1096                 'global' => [
    1097                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    1098                 ],
    10991127            ]
    11001128        );
    … …  
    11061134                'label' => __('Content Typography', 'x-addons-elementor'),
    11071135                'selector' => '{{WRAPPER}} .xa-info-card__desc',
    1108                 'global' => [
    1109                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    1110                 ],
    11111136            ]
    11121137        );
    … …  
    11181143                'label' => __('Button Typography', 'x-addons-elementor'),
    11191144                'selector' => '{{WRAPPER}} .xa-buttons__info',
    1120                 'global' => [
    1121                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    1122                 ],
    11231145            ]
    11241146        );
  • x-addons-elementor/trunk/includes/widgets/xa-info-card.php

    r3375643 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2527
    2628        public function get_title() {
    27                 return __( 'XA: Info Card', 'x-addons-elementor' );
     29                return __( 'Xpress: Info Card', 'x-addons-elementor' );
    2830        }
    2931
    … …  
    978980                'label' => __('Title Typography', 'x-addons-elementor'),
    979981                'selector' => '{{WRAPPER}} .xa-info-card__title',
    980                 'global' => [
    981                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    982                 ],
    983982            ]
    984983        );
    … …  
    990989                'label' => __('Content Typography', 'x-addons-elementor'),
    991990                'selector' => '{{WRAPPER}} .xa-info-card__desc',
    992                 'global' => [
    993                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    994                 ],
    995991            ]
    996992        );
    … …  
    1002998                'label' => __('Button Typography', 'x-addons-elementor'),
    1003999                'selector' => '{{WRAPPER}} .xa-buttons__info',
    1004                 'global' => [
    1005                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    1006                 ],
    10071000            ]
    10081001        );
  • x-addons-elementor/trunk/includes/widgets/xa-list-type.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2527
    2628        public function get_title() {
    27                 return __( 'XA: List Type', 'x-addons-elementor' );
     29                return __( 'Xpress: List Type', 'x-addons-elementor' );
    2830        }
    2931
    … …  
    118120                );
    119121
    120 
    121                 $repeater->add_control(
    122                         'xaddons_icon_size',
    123                         [
    124                                 'label' => __('Icon Size', 'x-addons-elementor'),
    125                                 'type' => Controls_Manager::SLIDER,
    126                                 'size_units' => ['px'],
    127                                 'range' => [
    128                                         'px' => [
    129                                                 'min' => 10,
    130                                                 'max' => 1000,
    131                                                 'step' => 1,
    132                                         ]
    133                                 ],
    134                                 'selectors' => [
    135                                         '{{WRAPPER}} .xa-list-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
    136                                         '{{WRAPPER}} .xa-list-icon svg' => 'width: {{SIZE}}{{UNIT}};',
    137                                 ],
    138                                 'condition' => [
    139                                         'xaddons_icon_type' => 'icon',
    140                                 ],
    141                         ]
    142                 );
    143                
    144122
    145123                $repeater->add_control(
    … …  
    292270                                'default' => [
    293271                                        [
    294                                                 'list_title' => __( 'Title #1', 'x-addons-elementor' ),
    295                                                 'list_content' => __( 'List Info', 'x-addons-elementor' ),
     272                                                'xaddons_icon_type' => 'icon',
     273                                                'xaddons_icon_type_icon' => [
     274                                                        'value' => 'fas fa-phone-alt',
     275                                                        'library' => 'solid',
     276                                                ],
     277                                                'xaddons_list_label' => __( 'Phone', 'x-addons-elementor' ),
     278                                                'xaddons_list_info' => __( '+1 202 555 0147', 'x-addons-elementor' ),
     279                                        ],
     280                                        [
     281                                                'xaddons_icon_type' => 'icon',
     282                                                'xaddons_icon_type_icon' => [
     283                                                        'value' => 'fas fa-envelope',
     284                                                        'library' => 'solid',
     285                                                ],
     286                                                'xaddons_list_label' => __( 'Email', 'x-addons-elementor' ),
     287                                                'xaddons_list_info' => __( 'hello@example.com', 'x-addons-elementor' ),
     288                                        ],
     289                                        [
     290                                                'xaddons_icon_type' => 'icon',
     291                                                'xaddons_icon_type_icon' => [
     292                                                        'value' => 'fas fa-map-marker-alt',
     293                                                        'library' => 'solid',
     294                                                ],
     295                                                'xaddons_list_label' => __( 'Office', 'x-addons-elementor' ),
     296                                                'xaddons_list_info' => __( '18 Market Street, Portland', 'x-addons-elementor' ),
    296297                                        ],
    297298                                ],
    … …  
    564565
    565566                $this->add_responsive_control(
     567                        'xaddons_icon_size',
     568                        [
     569                                'label' => __( 'Icon Size', 'x-addons-elementor' ),
     570                                'type' => Controls_Manager::SLIDER,
     571                                'size_units' => [ 'px' ],
     572                                'range' => [
     573                                        'px' => [
     574                                                'min' => 10,
     575                                                'max' => 1000,
     576                                                'step' => 1,
     577                                        ],
     578                                ],
     579                                'selectors' => [
     580                                        '{{WRAPPER}} .xa-list-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
     581                                        '{{WRAPPER}} .xa-list-icon svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
     582                                ],
     583                        ]
     584                );
     585
     586                $this->add_responsive_control(
    566587            'xaddons_label_padding',
    567588            [
    … …  
    704725                'label' => __('Label Typography', 'x-addons-elementor'),
    705726                'selector' => '{{WRAPPER}}  .xa-list-content__label',
    706                 'global' => [
    707                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    708                 ],
    709727            ]
    710728        );
    … …  
    716734                'label' => __('Title Typography', 'x-addons-elementor'),
    717735                'selector' => '{{WRAPPER}} .xa-list-content__title',
    718                 'global' => [
    719                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    720                 ],
    721736            ]
    722737        );
  • x-addons-elementor/trunk/includes/widgets/xa-logo-carousel.php

    r3375643 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2326       
    2427        public function get_title() {
    25                 return __( 'XA: Logo Carousel', 'x-addons-elementor' );
     28                return __( 'Xpress: Logo Carousel', 'x-addons-elementor' );
    2629        }
    2730
    … …  
    98101                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    99102                                                ],
    100                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     103                                                'xaddons_title' => __( 'Northwind', 'x-addons-elementor' ),
    101104                                                'xaddons_brand_link' => '#',
    102105                                        ],
    … …  
    105108                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    106109                                                ],
    107                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     110                                                'xaddons_title' => __( 'Brightpath', 'x-addons-elementor' ),
    108111                                                'xaddons_brand_link' => '#',
    109112                                        ],
    … …  
    112115                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    113116                                                ],
    114                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     117                                                'xaddons_title' => __( 'Harbor & Co', 'x-addons-elementor' ),
    115118                                                'xaddons_brand_link' => '#',
    116119                                        ],
    … …  
    119122                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    120123                                                ],
    121                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     124                                                'xaddons_title' => __( 'Lumen Lab', 'x-addons-elementor' ),
    122125                                                'xaddons_brand_link' => '#',
    123126                                        ],
    … …  
    126129                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    127130                                                ],
    128                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     131                                                'xaddons_title' => __( 'Fieldnote', 'x-addons-elementor' ),
    129132                                                'xaddons_brand_link' => '#',
    130133                                        ],
    … …  
    133136                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
    134137                                                ],
    135                                                 'xaddons_title' => __( 'Logo Title', 'x-addons-elementor' ),
     138                                                'xaddons_title' => __( 'Copperline', 'x-addons-elementor' ),
    136139                                                'xaddons_brand_link' => '#',
    137140                                        ],
  • x-addons-elementor/trunk/includes/widgets/xa-mailchimp-form.php

    r3191568 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class for Mailchimp Form (Shortcode-based).
    … …  
    1215
    1316    public function get_title() {
    14         return __( 'XA: Mailchimp Form', 'x-addons-elementor' );
     17        return __( 'Xpress: Mailchimp Form', 'x-addons-elementor' );
    1518    }
    1619
    … …  
    99102                'default' => '',
    100103                'placeholder' => '[mc4wp_form id="YOUR_FORM_ID"]', // Placeholder for the user
     104            ]
     105        );
     106
     107        $this->end_controls_section();
     108
     109        $this->register_style_controls();
     110    }
     111
     112    protected function register_style_controls() {
     113
     114        $this->start_controls_section(
     115            'xaddons_style_form',
     116            [
     117                'label' => __( 'Form', 'x-addons-elementor' ),
     118                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     119            ]
     120        );
     121
     122        $this->add_responsive_control(
     123            'xaddons_style_form_padding',
     124            [
     125                'label' => __( 'Padding', 'x-addons-elementor' ),
     126                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     127                'size_units' => [ 'px', 'em' ],
     128                'selectors' => [
     129                    '{{WRAPPER}} .xa-mailchimp-form' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     130                ],
     131            ]
     132        );
     133
     134        $this->add_control(
     135            'xaddons_style_form_bg',
     136            [
     137                'label' => __( 'Background Color', 'x-addons-elementor' ),
     138                'type' => \Elementor\Controls_Manager::COLOR,
     139                'selectors' => [
     140                    '{{WRAPPER}} .xa-mailchimp-form' => 'background-color: {{VALUE}};',
     141                ],
     142            ]
     143        );
     144
     145        $this->add_responsive_control(
     146            'xaddons_style_form_radius',
     147            [
     148                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     149                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     150                'size_units' => [ 'px', '%' ],
     151                'selectors' => [
     152                    '{{WRAPPER}} .xa-mailchimp-form' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     153                ],
     154            ]
     155        );
     156
     157        $this->add_control(
     158            'xaddons_style_label_color',
     159            [
     160                'label' => __( 'Label Color', 'x-addons-elementor' ),
     161                'type' => \Elementor\Controls_Manager::COLOR,
     162                'separator' => 'before',
     163                'selectors' => [
     164                    '{{WRAPPER}} .xa-mailchimp-form__label' => 'color: {{VALUE}};',
     165                ],
     166            ]
     167        );
     168
     169        $this->add_group_control(
     170            \Elementor\Group_Control_Typography::get_type(),
     171            [
     172                'name' => 'xaddons_style_label_typography',
     173                'label' => __( 'Label Typography', 'x-addons-elementor' ),
     174                'selector' => '{{WRAPPER}} .xa-mailchimp-form__label',
     175            ]
     176        );
     177
     178        $this->add_control(
     179            'xaddons_style_title_color',
     180            [
     181                'label' => __( 'Title Color', 'x-addons-elementor' ),
     182                'type' => \Elementor\Controls_Manager::COLOR,
     183                'separator' => 'before',
     184                'selectors' => [
     185                    '{{WRAPPER}} .xa-mailchimp-form__title' => 'color: {{VALUE}};',
     186                ],
     187            ]
     188        );
     189
     190        $this->add_group_control(
     191            \Elementor\Group_Control_Typography::get_type(),
     192            [
     193                'name' => 'xaddons_style_title_typography',
     194                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     195                'selector' => '{{WRAPPER}} .xa-mailchimp-form__title',
     196            ]
     197        );
     198
     199        $this->add_control(
     200            'xaddons_style_field_color',
     201            [
     202                'label' => __( 'Field Text Color', 'x-addons-elementor' ),
     203                'type' => \Elementor\Controls_Manager::COLOR,
     204                'separator' => 'before',
     205                'selectors' => [
     206                    '{{WRAPPER}} .xa-mailchimp-form__body input' => 'color: {{VALUE}};',
     207                ],
     208            ]
     209        );
     210
     211        $this->add_control(
     212            'xaddons_style_field_bg',
     213            [
     214                'label' => __( 'Field Background', 'x-addons-elementor' ),
     215                'type' => \Elementor\Controls_Manager::COLOR,
     216                'selectors' => [
     217                    '{{WRAPPER}} .xa-mailchimp-form__body input' => 'background-color: {{VALUE}};',
     218                ],
    101219            ]
    102220        );
  • x-addons-elementor/trunk/includes/widgets/xa-nav-menu.php

    r3368804 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    710class xaddons_nav_menu_widget extends \Elementor\Widget_Base {
    811
    9     public function get_name() {
    10         return 'xa-nav-menu';
    11     }
    12 
    13     public function get_title() {
    14         return __( 'XA: Navigation Menu', 'x-addons-elementor' );
    15     }
    16 
    17     public function get_icon() {
    18         return 'eicon-menu-bar';
    19     }
    20 
    21     public function get_keywords() {
    22         return [ 'xaddons', 'menu', 'navigation' ];
    23     }
    24 
    25     public function get_categories() {
    26         return [ 'x-addons-elementor' ];
    27     }
    28 
    29     protected function register_controls() {
    30         $this->start_controls_section(
    31             'xaddons_menu_section',
    32             [
    33                 'label' => __( 'Navigation Menu', 'x-addons-elementor' ),
    34                 'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
    35             ]
    36         );
    37 
    38         // Get menu options
    39         $menu_options = $this->get_menu_options();
    40        
    41         $this->add_control(
    42             'menu_id',
    43             [
    44                 'label' => __( 'Select Menu', 'x-addons-elementor' ),
    45                 'type' => \Elementor\Controls_Manager::SELECT,
    46                 'options' => $menu_options,
    47                 'default' => '',
    48                 'label_block' => true,
    49             ]
    50         );
    51 
    52         $this->end_controls_section();
    53     }
    54 
    55     public function get_menu_options() {
    56         $menus = wp_get_nav_menus();
    57         $menu_options = [ '' => __( 'Select a Menu', 'x-addons-elementor' ) ];
    58 
    59         foreach ( $menus as $menu ) {
    60             $menu_options[$menu->term_id] = $menu->name;
    61         }
    62 
    63         return $menu_options;
    64     }
    65 
    66     protected function render() {
    67         $settings = $this->get_settings_for_display();
    68         $menu_id = $settings['menu_id'];
    69 
    70         if ( $menu_id ) {
    71             wp_nav_menu([
    72                 'menu' => $menu_id,
    73                 'container' => 'div',
    74                 'container_class' => 'xa-navigation-menu',
    75                 'menu_class' => 'nav pw-menu-item-widget ', // Added menu class
    76             ]);
    77         } else {
    78             echo '<p>' . esc_html__( 'Please select a navigation menu.', 'x-addons-elementor' ) . '</p>';
    79         }
    80     }
     12        public function get_name() {
     13                return 'xa-nav-menu';
     14        }
     15
     16        public function get_title() {
     17                return __( 'Xpress: Navigation Menu', 'x-addons-elementor' );
     18        }
     19
     20        public function get_icon() {
     21                return 'eicon-menu-bar';
     22        }
     23
     24        public function get_keywords() {
     25                return [ 'xaddons', 'menu', 'navigation', 'mobile' ];
     26        }
     27
     28        public function get_categories() {
     29                return [ 'x-addons-elementor' ];
     30        }
     31
     32        protected function register_controls() {
     33                $this->start_controls_section(
     34                        'xaddons_menu_section',
     35                        [
     36                                'label' => __( 'Navigation Menu', 'x-addons-elementor' ),
     37                                'tab'   => \Elementor\Controls_Manager::TAB_CONTENT,
     38                        ]
     39                );
     40
     41                $menu_options = $this->get_menu_options();
     42
     43                $this->add_control(
     44                        'menu_id',
     45                        [
     46                                'label'       => __( 'Select Menu', 'x-addons-elementor' ),
     47                                'type'        => \Elementor\Controls_Manager::SELECT,
     48                                'options'     => $menu_options,
     49                                'default'     => '',
     50                                'label_block' => true,
     51                        ]
     52                );
     53
     54                $this->end_controls_section();
     55
     56                $this->start_controls_section(
     57                        'xaddons_mobile_logo_section',
     58                        [
     59                                'label' => __( 'Mobile Logo', 'x-addons-elementor' ),
     60                                'tab'   => \Elementor\Controls_Manager::TAB_CONTENT,
     61                        ]
     62                );
     63
     64                $this->add_control(
     65                        'xaddons_show_mobile_logo_text',
     66                        [
     67                                'label'        => __( 'Show Logo Text', 'x-addons-elementor' ),
     68                                'type'         => \Elementor\Controls_Manager::SWITCHER,
     69                                'label_on'     => __( 'Show', 'x-addons-elementor' ),
     70                                'label_off'    => __( 'Hide', 'x-addons-elementor' ),
     71                                'return_value' => 'yes',
     72                                'default'      => 'yes',
     73                        ]
     74                );
     75
     76                $this->add_control(
     77                        'xaddons_mobile_logo_text',
     78                        [
     79                                'label'       => __( 'Logo Text', 'x-addons-elementor' ),
     80                                'type'        => \Elementor\Controls_Manager::TEXT,
     81                                'default'     => '',
     82                                'placeholder' => get_bloginfo( 'name' ),
     83                                'label_block' => true,
     84                                'dynamic'     => [
     85                                        'active' => true,
     86                                ],
     87                                'condition'   => [
     88                                        'xaddons_show_mobile_logo_text' => 'yes',
     89                                ],
     90                        ]
     91                );
     92
     93                $this->add_control(
     94                        'xaddons_show_mobile_logo_mark',
     95                        [
     96                                'label'        => __( 'Show Logo Mark', 'x-addons-elementor' ),
     97                                'type'         => \Elementor\Controls_Manager::SWITCHER,
     98                                'label_on'     => __( 'Show', 'x-addons-elementor' ),
     99                                'label_off'    => __( 'Hide', 'x-addons-elementor' ),
     100                                'return_value' => 'yes',
     101                                'default'      => 'yes',
     102                                'condition'    => [
     103                                        'xaddons_show_mobile_logo_text' => 'yes',
     104                                ],
     105                        ]
     106                );
     107
     108                $this->end_controls_section();
     109
     110                $this->register_style_controls();
     111        }
     112
     113        protected function register_style_controls() {
     114
     115                /* —— Desktop / general menu —— */
     116                $this->start_controls_section(
     117                        'xaddons_style_menu',
     118                        [
     119                                'label' => __( 'Menu', 'x-addons-elementor' ),
     120                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     121                        ]
     122                );
     123
     124                $this->add_responsive_control(
     125                        'xaddons_style_link_color',
     126                        [
     127                                'label'     => __( 'Link Color', 'x-addons-elementor' ),
     128                                'type'      => \Elementor\Controls_Manager::COLOR,
     129                                'selectors' => [
     130                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list > li > a' => 'color: {{VALUE}} !important;',
     131                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list a' => 'color: {{VALUE}} !important;',
     132                                ],
     133                        ]
     134                );
     135
     136                $this->add_responsive_control(
     137                        'xaddons_style_link_hover_color',
     138                        [
     139                                'label'     => __( 'Hover / Active Color', 'x-addons-elementor' ),
     140                                'type'      => \Elementor\Controls_Manager::COLOR,
     141                                'selectors' => [
     142                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list a:hover' => 'color: {{VALUE}} !important;',
     143                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list a:focus' => 'color: {{VALUE}} !important;',
     144                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list .current-menu-item > a' => 'color: {{VALUE}} !important;',
     145                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list .current_page_item > a' => 'color: {{VALUE}} !important;',
     146                                ],
     147                        ]
     148                );
     149
     150                $this->add_group_control(
     151                        \Elementor\Group_Control_Typography::get_type(),
     152                        [
     153                                'name'     => 'xaddons_style_link_typography',
     154                                'selector' => '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list a',
     155                        ]
     156                );
     157
     158                $this->add_responsive_control(
     159                        'xaddons_style_link_padding',
     160                        [
     161                                'label'      => __( 'Link Padding', 'x-addons-elementor' ),
     162                                'type'       => \Elementor\Controls_Manager::DIMENSIONS,
     163                                'size_units' => [ 'px', 'em' ],
     164                                'selectors'  => [
     165                                        '{{WRAPPER}} .xa-navigation-menu:not(.xa-navigation-menu__mobile) .xa-navigation-menu__list a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     166                                ],
     167                        ]
     168                );
     169
     170                $this->add_responsive_control(
     171                        'xaddons_style_icon_color',
     172                        [
     173                                'label'     => __( 'Toggle Color', 'x-addons-elementor' ),
     174                                'type'      => \Elementor\Controls_Manager::COLOR,
     175                                'separator' => 'before',
     176                                'selectors' => [
     177                                        '{{WRAPPER}} .xa-navigation-menu__icon' => 'color: {{VALUE}} !important; border-color: {{VALUE}} !important;',
     178                                        '{{WRAPPER}} .xa-navigation-menu__icon i' => 'color: {{VALUE}} !important;',
     179                                ],
     180                        ]
     181                );
     182
     183                $this->add_responsive_control(
     184                        'xaddons_style_icon_hover_color',
     185                        [
     186                                'label'     => __( 'Toggle Hover Color', 'x-addons-elementor' ),
     187                                'type'      => \Elementor\Controls_Manager::COLOR,
     188                                'selectors' => [
     189                                        '{{WRAPPER}} .xa-navigation-menu__icon:hover' => 'color: {{VALUE}} !important; border-color: {{VALUE}} !important;',
     190                                        '{{WRAPPER}} .xa-navigation-menu__icon:focus' => 'color: {{VALUE}} !important; border-color: {{VALUE}} !important;',
     191                                        '{{WRAPPER}} .xa-navigation-menu__icon:hover i' => 'color: {{VALUE}} !important;',
     192                                ],
     193                        ]
     194                );
     195
     196                $this->end_controls_section();
     197
     198                /* —— Mobile drawer —— */
     199                $this->start_controls_section(
     200                        'xaddons_style_mobile',
     201                        [
     202                                'label' => __( 'Mobile Drawer', 'x-addons-elementor' ),
     203                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     204                        ]
     205                );
     206
     207                $this->add_control(
     208                        'xaddons_mobile_logo_heading',
     209                        [
     210                                'label'     => __( 'Logo Text', 'x-addons-elementor' ),
     211                                'type'      => \Elementor\Controls_Manager::HEADING,
     212                                'condition' => [
     213                                        'xaddons_show_mobile_logo_text' => 'yes',
     214                                ],
     215                        ]
     216                );
     217
     218                $this->add_responsive_control(
     219                        'xaddons_mobile_logo_color',
     220                        [
     221                                'label'     => __( 'Logo Text Color', 'x-addons-elementor' ),
     222                                'type'      => \Elementor\Controls_Manager::COLOR,
     223                                'selectors' => [
     224                                        '{{WRAPPER}} .xa-navigation-menu__brand' => 'color: {{VALUE}} !important;',
     225                                ],
     226                                'condition' => [
     227                                        'xaddons_show_mobile_logo_text' => 'yes',
     228                                ],
     229                        ]
     230                );
     231
     232                $this->add_group_control(
     233                        \Elementor\Group_Control_Typography::get_type(),
     234                        [
     235                                'name'      => 'xaddons_mobile_logo_typography',
     236                                'label'     => __( 'Logo Text Typography', 'x-addons-elementor' ),
     237                                'selector'  => '{{WRAPPER}} .xa-navigation-menu__brand',
     238                                'condition' => [
     239                                        'xaddons_show_mobile_logo_text' => 'yes',
     240                                ],
     241                        ]
     242                );
     243
     244                $this->add_control(
     245                        'xaddons_mobile_logo_mark_color',
     246                        [
     247                                'label'     => __( 'Logo Mark Color', 'x-addons-elementor' ),
     248                                'type'      => \Elementor\Controls_Manager::COLOR,
     249                                'selectors' => [
     250                                        '{{WRAPPER}} .xa-navigation-menu__brand::before' => 'background: {{VALUE}} !important; box-shadow: 0 0 0 4px color-mix(in srgb, {{VALUE}} 22%, transparent) !important;',
     251                                ],
     252                                'condition' => [
     253                                        'xaddons_show_mobile_logo_text' => 'yes',
     254                                        'xaddons_show_mobile_logo_mark' => 'yes',
     255                                ],
     256                        ]
     257                );
     258
     259                $this->add_control(
     260                        'xaddons_mobile_panel_heading',
     261                        [
     262                                'label'     => __( 'Panel', 'x-addons-elementor' ),
     263                                'type'      => \Elementor\Controls_Manager::HEADING,
     264                                'separator' => 'before',
     265                        ]
     266                );
     267
     268                $this->add_control(
     269                        'xaddons_mobile_panel_bg',
     270                        [
     271                                'label'     => __( 'Panel Background', 'x-addons-elementor' ),
     272                                'type'      => \Elementor\Controls_Manager::COLOR,
     273                                'selectors' => [
     274                                        '{{WRAPPER}} .xa-navigation-menu__inside' => 'background-color: {{VALUE}} !important; background-image: none !important;',
     275                                ],
     276                        ]
     277                );
     278
     279                $this->add_control(
     280                        'xaddons_mobile_overlay_color',
     281                        [
     282                                'label'     => __( 'Overlay Color', 'x-addons-elementor' ),
     283                                'type'      => \Elementor\Controls_Manager::COLOR,
     284                                'default'   => 'rgba(15, 23, 42, 0.55)',
     285                                'selectors' => [
     286                                        '{{WRAPPER}} .xa-navigation-menu__overlay' => 'background: {{VALUE}} !important;',
     287                                ],
     288                        ]
     289                );
     290
     291                $this->add_responsive_control(
     292                        'xaddons_mobile_link_color',
     293                        [
     294                                'label'     => __( 'Mobile Link Color', 'x-addons-elementor' ),
     295                                'type'      => \Elementor\Controls_Manager::COLOR,
     296                                'default'   => '#f8fafc',
     297                                'selectors' => [
     298                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list a' => 'color: {{VALUE}} !important;',
     299                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-submenu-toggle' => 'color: {{VALUE}} !important;',
     300                                ],
     301                        ]
     302                );
     303
     304                $this->add_responsive_control(
     305                        'xaddons_mobile_link_hover_color',
     306                        [
     307                                'label'     => __( 'Mobile Hover / Active Color', 'x-addons-elementor' ),
     308                                'type'      => \Elementor\Controls_Manager::COLOR,
     309                                'default'   => '#fc6761',
     310                                'selectors' => [
     311                                        '{{WRAPPER}} .xa-navigation-menu__inside' => '--xa-drawer-accent: {{VALUE}};',
     312                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list a:hover' => 'color: {{VALUE}} !important;',
     313                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list a:focus' => 'color: {{VALUE}} !important;',
     314                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list .current-menu-item > a' => 'color: {{VALUE}} !important;',
     315                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list .current_page_item > a' => 'color: {{VALUE}} !important;',
     316                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list .submenu-open > a' => 'color: {{VALUE}} !important;',
     317                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-submenu-toggle:hover' => 'color: {{VALUE}} !important;',
     318                                        '{{WRAPPER}} .xa-navigation-menu__inside .submenu-open > .xa-submenu-toggle' => 'color: {{VALUE}} !important;',
     319                                ],
     320                        ]
     321                );
     322
     323                $this->add_control(
     324                        'xaddons_mobile_divider_color',
     325                        [
     326                                'label'     => __( 'Divider Color', 'x-addons-elementor' ),
     327                                'type'      => \Elementor\Controls_Manager::COLOR,
     328                                'selectors' => [
     329                                        '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list > li' => 'border-bottom-color: {{VALUE}} !important;',
     330                                        '{{WRAPPER}} .xa-navigation-menu__head' => 'border-bottom-color: {{VALUE}} !important;',
     331                                ],
     332                        ]
     333                );
     334
     335                $this->add_control(
     336                        'xaddons_mobile_close_bg',
     337                        [
     338                                'label'     => __( 'Close Button Background', 'x-addons-elementor' ),
     339                                'type'      => \Elementor\Controls_Manager::COLOR,
     340                                'selectors' => [
     341                                        '{{WRAPPER}} .xa-navigation-menu__close' => 'background: {{VALUE}} !important;',
     342                                ],
     343                        ]
     344                );
     345
     346                $this->add_control(
     347                        'xaddons_mobile_close_color',
     348                        [
     349                                'label'     => __( 'Close Button Color', 'x-addons-elementor' ),
     350                                'type'      => \Elementor\Controls_Manager::COLOR,
     351                                'selectors' => [
     352                                        '{{WRAPPER}} .xa-navigation-menu__close' => 'color: {{VALUE}} !important;',
     353                                ],
     354                        ]
     355                );
     356
     357                $this->add_group_control(
     358                        \Elementor\Group_Control_Typography::get_type(),
     359                        [
     360                                'name'     => 'xaddons_mobile_link_typography',
     361                                'label'    => __( 'Mobile Link Typography', 'x-addons-elementor' ),
     362                                'selector' => '{{WRAPPER}} .xa-navigation-menu__inside .xa-navigation-menu__list a',
     363                        ]
     364                );
     365
     366                $this->end_controls_section();
     367        }
     368
     369        public function get_menu_options() {
     370                $menus        = wp_get_nav_menus();
     371                $menu_options = [ '' => __( 'Select a Menu', 'x-addons-elementor' ) ];
     372
     373                foreach ( $menus as $menu ) {
     374                        $menu_options[ $menu->term_id ] = $menu->name;
     375                }
     376
     377                return $menu_options;
     378        }
     379
     380        protected function render() {
     381                $settings      = $this->get_settings_for_display();
     382                $menu_id       = ! empty( $settings['menu_id'] ) ? $settings['menu_id'] : '';
     383                $show_logo     = ( isset( $settings['xaddons_show_mobile_logo_text'] ) ? $settings['xaddons_show_mobile_logo_text'] : 'yes' ) === 'yes';
     384                $show_mark     = ( isset( $settings['xaddons_show_mobile_logo_mark'] ) ? $settings['xaddons_show_mobile_logo_mark'] : 'yes' ) === 'yes';
     385                $logo_text     = isset( $settings['xaddons_mobile_logo_text'] ) ? trim( (string) $settings['xaddons_mobile_logo_text'] ) : '';
     386                $brand_label   = '' !== $logo_text ? $logo_text : get_bloginfo( 'name' );
     387                $brand_classes = 'xa-navigation-menu__brand';
     388
     389                if ( ! $show_mark ) {
     390                        $brand_classes .= ' xa-navigation-menu__brand--no-mark';
     391                }
     392                ?>
     393                <div class="xa-navigation-menu__wrap">
     394                        <?php if ( $menu_id ) : ?>
     395                                <?php
     396                                wp_nav_menu(
     397                                        [
     398                                                'menu'            => $menu_id,
     399                                                'container'       => 'div',
     400                                                'container_class' => 'xa-navigation-menu',
     401                                                'menu_class'      => 'xa-navigation-menu__list',
     402                                                'fallback_cb'     => false,
     403                                        ]
     404                                );
     405                                ?>
     406                        <?php else : ?>
     407                                <p><?php esc_html_e( 'Please select a navigation menu.', 'x-addons-elementor' ); ?></p>
     408                        <?php endif; ?>
     409
     410                        <div class="xa-navigation-menu__popup">
     411                                <button type="button" class="xa-navigation-menu__icon" aria-expanded="false" aria-controls="xa-nav-drawer-<?php echo esc_attr( $this->get_id() ); ?>" aria-label="<?php esc_attr_e( 'Open menu', 'x-addons-elementor' ); ?>">
     412                                        <span class="xa-navigation-menu__icon-bars" aria-hidden="true">
     413                                                <span></span><span></span><span></span>
     414                                        </span>
     415                                </button>
     416
     417                                <div class="xa-navigation-menu__overlay" hidden></div>
     418
     419                                <div
     420                                        id="xa-nav-drawer-<?php echo esc_attr( $this->get_id() ); ?>"
     421                                        class="xa-navigation-menu__inside"
     422                                        role="dialog"
     423                                        aria-modal="true"
     424                                        aria-label="<?php esc_attr_e( 'Mobile menu', 'x-addons-elementor' ); ?>"
     425                                        hidden
     426                                >
     427                                        <div class="xa-navigation-menu__head<?php echo $show_logo ? '' : ' xa-navigation-menu__head--no-brand'; ?>">
     428                                                <?php if ( $show_logo ) : ?>
     429                                                        <span class="<?php echo esc_attr( $brand_classes ); ?>"><?php echo esc_html( $brand_label ); ?></span>
     430                                                <?php endif; ?>
     431                                                <button type="button" class="xa-navigation-menu__close" aria-label="<?php esc_attr_e( 'Close menu', 'x-addons-elementor' ); ?>">
     432                                                        <span aria-hidden="true">&times;</span>
     433                                                </button>
     434                                        </div>
     435                                        <div class="xa-navigation-menu__body"></div>
     436                                </div>
     437                        </div>
     438                </div>
     439                <?php
     440        }
    81441}
  • x-addons-elementor/trunk/includes/widgets/xa-portfolio.php

    r3191516 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2326       
    2427        public function get_title() {
    25                 return __( 'XA: Portfolio', 'x-addons-elementor' );
     28                return __( 'Xpress: Portfolio', 'x-addons-elementor' );
    2629        }
    2730
    … …  
    8891                                'default' => [
    8992                                        [
    90                                                 'list_title' => __( 'Title #1', 'x-addons-elementor' ),
    91                                                 'list_content' => __( 'Portfolio Information', 'x-addons-elementor' ),
     93                                                'xaddons_image_thumb' => [
     94                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
     95                                                ],
     96                                                'xaddons_title' => __( 'Brand Identity', 'x-addons-elementor' ),
     97                                                'xaddons_button_url' => [
     98                                                        'url' => '#',
     99                                                ],
     100                                        ],
     101                                        [
     102                                                'xaddons_image_thumb' => [
     103                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
     104                                                ],
     105                                                'xaddons_title' => __( 'Packaging Design', 'x-addons-elementor' ),
     106                                                'xaddons_button_url' => [
     107                                                        'url' => '#',
     108                                                ],
     109                                        ],
     110                                        [
     111                                                'xaddons_image_thumb' => [
     112                                                        'url' => \Elementor\Utils::get_placeholder_image_src(),
     113                                                ],
     114                                                'xaddons_title' => __( 'Campaign Site', 'x-addons-elementor' ),
     115                                                'xaddons_button_url' => [
     116                                                        'url' => '#',
     117                                                ],
    92118                                        ],
    93119                                ],
    … …  
    112138                                'type' => \Elementor\Controls_Manager::TEXT,
    113139                                'return_value' => 'yes',
    114                                 'default' => '5',
     140                                'default' => '4',
    115141                        ]
    116142                );
    … …  
    122148                                'type' => \Elementor\Controls_Manager::TEXT,
    123149                                'return_value' => 'yes',
    124                                 'default' => '4',
     150                                'default' => '3',
    125151                        ]
    126152                );
    … …  
    190216                                'label_off' => __( 'Hide', 'x-addons-elementor' ),
    191217                                'return_value' => 'yes',
    192                                 'default' => 'yes',
     218                                'default' => '',
    193219                        ]
    194220                );
    … …  
    227253                                'label_off' => __( 'Hide', 'x-addons-elementor' ),
    228254                                'return_value' => 'yes',
    229                                 'default' => 'yes',
     255                                'default' => '',
     256                        ]
     257                );
     258
     259                $this->end_controls_section();
     260
     261                $this->register_style_controls();
     262
     263        }
     264
     265        protected function register_style_controls() {
     266
     267                $this->start_controls_section(
     268                        'xaddons_style_media',
     269                        [
     270                                'label' => __( 'Image', 'x-addons-elementor' ),
     271                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     272                        ]
     273                );
     274
     275                $this->add_responsive_control(
     276                        'xaddons_style_image_radius',
     277                        [
     278                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     279                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     280                                'size_units' => [ 'px', '%' ],
     281                                'selectors' => [
     282                                        '{{WRAPPER}} .xa-portfolio-slider__thumb' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow: hidden;',
     283                                ],
     284                        ]
     285                );
     286
     287                $this->add_control(
     288                        'xaddons_style_overlay_color',
     289                        [
     290                                'label' => __( 'Overlay Color', 'x-addons-elementor' ),
     291                                'type' => \Elementor\Controls_Manager::COLOR,
     292                                'selectors' => [
     293                                        '{{WRAPPER}} .xa-portfolio-slider__overlay' => 'background-color: {{VALUE}};',
     294                                ],
     295                        ]
     296                );
     297
     298                $this->end_controls_section();
     299
     300                $this->start_controls_section(
     301                        'xaddons_style_title',
     302                        [
     303                                'label' => __( 'Title', 'x-addons-elementor' ),
     304                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     305                        ]
     306                );
     307
     308                $this->add_control(
     309                        'xaddons_style_title_color',
     310                        [
     311                                'label' => __( 'Color', 'x-addons-elementor' ),
     312                                'type' => \Elementor\Controls_Manager::COLOR,
     313                                'selectors' => [
     314                                        '{{WRAPPER}} .xa-portfolio-slider__title' => 'color: {{VALUE}};',
     315                                        '{{WRAPPER}} .xa-portfolio-slider__title a' => 'color: {{VALUE}};',
     316                                ],
     317                        ]
     318                );
     319
     320                $this->add_group_control(
     321                        \Elementor\Group_Control_Typography::get_type(),
     322                        [
     323                                'name' => 'xaddons_style_title_typography',
     324                                'selector' => '{{WRAPPER}} .xa-portfolio-slider__title',
     325                        ]
     326                );
     327
     328                $this->end_controls_section();
     329
     330                $this->start_controls_section(
     331                        'xaddons_style_button',
     332                        [
     333                                'label' => __( 'Preview Button', 'x-addons-elementor' ),
     334                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     335                        ]
     336                );
     337
     338                $this->add_control(
     339                        'xaddons_style_button_color',
     340                        [
     341                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     342                                'type' => \Elementor\Controls_Manager::COLOR,
     343                                'selectors' => [
     344                                        '{{WRAPPER}} .xa-portfolio-slider__button a' => 'color: {{VALUE}};',
     345                                ],
     346                        ]
     347                );
     348
     349                $this->add_control(
     350                        'xaddons_style_button_bg',
     351                        [
     352                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     353                                'type' => \Elementor\Controls_Manager::COLOR,
     354                                'selectors' => [
     355                                        '{{WRAPPER}} .xa-portfolio-slider__button a' => 'background-color: {{VALUE}};',
     356                                ],
     357                        ]
     358                );
     359
     360                $this->add_control(
     361                        'xaddons_style_button_hover_color',
     362                        [
     363                                'label' => __( 'Hover Text Color', 'x-addons-elementor' ),
     364                                'type' => \Elementor\Controls_Manager::COLOR,
     365                                'selectors' => [
     366                                        '{{WRAPPER}} .xa-portfolio-slider__button a:hover' => 'color: {{VALUE}};',
     367                                ],
     368                        ]
     369                );
     370
     371                $this->add_control(
     372                        'xaddons_style_button_hover_bg',
     373                        [
     374                                'label' => __( 'Hover Background Color', 'x-addons-elementor' ),
     375                                'type' => \Elementor\Controls_Manager::COLOR,
     376                                'selectors' => [
     377                                        '{{WRAPPER}} .xa-portfolio-slider__button a:hover' => 'background-color: {{VALUE}};',
     378                                ],
     379                        ]
     380                );
     381
     382                $this->add_group_control(
     383                        \Elementor\Group_Control_Typography::get_type(),
     384                        [
     385                                'name' => 'xaddons_style_button_typography',
     386                                'selector' => '{{WRAPPER}} .xa-portfolio-slider__button a',
     387                        ]
     388                );
     389
     390                $this->add_responsive_control(
     391                        'xaddons_style_button_padding',
     392                        [
     393                                'label' => __( 'Padding', 'x-addons-elementor' ),
     394                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     395                                'size_units' => [ 'px', 'em' ],
     396                                'selectors' => [
     397                                        '{{WRAPPER}} .xa-portfolio-slider__button a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     398                                ],
     399                        ]
     400                );
     401
     402                $this->add_responsive_control(
     403                        'xaddons_style_button_radius',
     404                        [
     405                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     406                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     407                                'size_units' => [ 'px', '%' ],
     408                                'selectors' => [
     409                                        '{{WRAPPER}} .xa-portfolio-slider__button a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     410                                ],
    230411                        ]
    231412                );
  • x-addons-elementor/trunk/includes/widgets/xa-product-list.php

    r3632142 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2831       
    2932        public function get_title() {
    30                 return __( 'XA: Product List', 'x-addons-elementor' );
     33                return __( 'Xpress: Product List', 'x-addons-elementor' );
    3134        }
    3235
    … …  
    7275                'type' => \Elementor\Controls_Manager::SELECT2,
    7376                'multiple' => true,
    74                                 'options' => xaddons_post_categories(),
     77                                'options' => $this->get_product_category_options(),
    7578                'condition' => [
    7679                    'xaddons_post_show_all_categories' => '',
    … …  
    8487                                'label' => esc_html__( 'Post Item', 'x-addons-elementor' ),
    8588                                'type' => \Elementor\Controls_Manager::TEXT,
    86                                 'default' => '8',
     89                                'default' => '3',
    8790                        ]
    8891                );
    … …  
    108111                                'fields'      => $repeater->get_controls(),
    109112                                'title_field' => 'Product #{{{ xaddons_product_id }}}',
     113                                'description' => esc_html__( 'Leave this list empty to show the latest published products. Add products here to choose them yourself.', 'x-addons-elementor' ),
     114                        ]
     115                );
     116
     117                $this->add_control(
     118                        'xaddons_product_orderby',
     119                        [
     120                                'label'   => esc_html__( 'Order By', 'x-addons-elementor' ),
     121                                'type'    => \Elementor\Controls_Manager::SELECT,
     122                                'default' => 'date',
     123                                'options' => [
     124                                        'date'       => esc_html__( 'Latest', 'x-addons-elementor' ),
     125                                        'title'      => esc_html__( 'Title', 'x-addons-elementor' ),
     126                                        'price'      => esc_html__( 'Price', 'x-addons-elementor' ),
     127                                        'popularity' => esc_html__( 'Popularity', 'x-addons-elementor' ),
     128                                        'rating'     => esc_html__( 'Rating', 'x-addons-elementor' ),
     129                                ],
     130                        ]
     131                );
     132
     133                $this->add_control(
     134                        'xaddons_product_order',
     135                        [
     136                                'label'   => esc_html__( 'Order', 'x-addons-elementor' ),
     137                                'type'    => \Elementor\Controls_Manager::SELECT,
     138                                'default' => 'DESC',
     139                                'options' => [
     140                                        'DESC' => esc_html__( 'Descending', 'x-addons-elementor' ),
     141                                        'ASC'  => esc_html__( 'Ascending', 'x-addons-elementor' ),
     142                                ],
    110143                        ]
    111144                );
    … …  
    167200                );
    168201               
     202                $this->end_controls_section();
     203
     204                $this->register_style_controls();
     205
     206        }
     207
     208        protected function register_style_controls() {
     209
     210                $this->start_controls_section(
     211                        'xaddons_style_card',
     212                        [
     213                                'label' => __( 'Product Card', 'x-addons-elementor' ),
     214                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     215                        ]
     216                );
     217
     218                $this->add_responsive_control(
     219                        'xaddons_style_card_padding',
     220                        [
     221                                'label' => __( 'Padding', 'x-addons-elementor' ),
     222                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     223                                'size_units' => [ 'px', 'em' ],
     224                                'selectors' => [
     225                                        '{{WRAPPER}} .xa-product' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     226                                ],
     227                        ]
     228                );
     229
     230                $this->add_group_control(
     231                        \Elementor\Group_Control_Border::get_type(),
     232                        [
     233                                'name' => 'xaddons_style_card_border',
     234                                'selector' => '{{WRAPPER}} .xa-product',
     235                        ]
     236                );
     237
     238                $this->add_responsive_control(
     239                        'xaddons_style_card_radius',
     240                        [
     241                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     242                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     243                                'size_units' => [ 'px', '%' ],
     244                                'selectors' => [
     245                                        '{{WRAPPER}} .xa-product' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     246                                ],
     247                        ]
     248                );
     249
     250                $this->add_group_control(
     251                        \Elementor\Group_Control_Box_Shadow::get_type(),
     252                        [
     253                                'name' => 'xaddons_style_card_shadow',
     254                                'selector' => '{{WRAPPER}} .xa-product',
     255                        ]
     256                );
     257
     258                $this->add_control(
     259                        'xaddons_style_card_bg',
     260                        [
     261                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     262                                'type' => \Elementor\Controls_Manager::COLOR,
     263                                'selectors' => [
     264                                        '{{WRAPPER}} .xa-product' => 'background-color: {{VALUE}};',
     265                                ],
     266                        ]
     267                );
     268
     269                $this->end_controls_section();
     270
     271                $this->start_controls_section(
     272                        'xaddons_style_content',
     273                        [
     274                                'label' => __( 'Product Content', 'x-addons-elementor' ),
     275                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     276                        ]
     277                );
     278
     279                $this->add_control(
     280                        'xaddons_style_title_color',
     281                        [
     282                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     283                                'type' => \Elementor\Controls_Manager::COLOR,
     284                                'selectors' => [
     285                                        '{{WRAPPER}} .xa-product__title' => 'color: {{VALUE}};',
     286                                        '{{WRAPPER}} .xa-product__title a' => 'color: {{VALUE}};',
     287                                ],
     288                        ]
     289                );
     290
     291                $this->add_group_control(
     292                        \Elementor\Group_Control_Typography::get_type(),
     293                        [
     294                                'name' => 'xaddons_style_title_typography',
     295                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     296                                'selector' => '{{WRAPPER}} .xa-product__title',
     297                        ]
     298                );
     299
     300                $this->add_control(
     301                        'xaddons_style_model_color',
     302                        [
     303                                'label' => __( 'Model Color', 'x-addons-elementor' ),
     304                                'type' => \Elementor\Controls_Manager::COLOR,
     305                                'separator' => 'before',
     306                                'selectors' => [
     307                                        '{{WRAPPER}} .xa-product__model' => 'color: {{VALUE}};',
     308                                ],
     309                        ]
     310                );
     311
     312                $this->add_group_control(
     313                        \Elementor\Group_Control_Typography::get_type(),
     314                        [
     315                                'name' => 'xaddons_style_model_typography',
     316                                'label' => __( 'Model Typography', 'x-addons-elementor' ),
     317                                'selector' => '{{WRAPPER}} .xa-product__model',
     318                        ]
     319                );
     320
     321                $this->add_control(
     322                        'xaddons_style_features_color',
     323                        [
     324                                'label' => __( 'Features Color', 'x-addons-elementor' ),
     325                                'type' => \Elementor\Controls_Manager::COLOR,
     326                                'separator' => 'before',
     327                                'selectors' => [
     328                                        '{{WRAPPER}} .xa-product__features' => 'color: {{VALUE}};',
     329                                ],
     330                        ]
     331                );
     332
     333                $this->add_group_control(
     334                        \Elementor\Group_Control_Typography::get_type(),
     335                        [
     336                                'name' => 'xaddons_style_features_typography',
     337                                'label' => __( 'Features Typography', 'x-addons-elementor' ),
     338                                'selector' => '{{WRAPPER}} .xa-product__features',
     339                        ]
     340                );
     341
     342                $this->add_control(
     343                        'xaddons_style_price_color',
     344                        [
     345                                'label' => __( 'Price Color', 'x-addons-elementor' ),
     346                                'type' => \Elementor\Controls_Manager::COLOR,
     347                                'separator' => 'before',
     348                                'selectors' => [
     349                                        '{{WRAPPER}} .xa-product__price' => 'color: {{VALUE}};',
     350                                ],
     351                        ]
     352                );
     353
     354                $this->add_group_control(
     355                        \Elementor\Group_Control_Typography::get_type(),
     356                        [
     357                                'name' => 'xaddons_style_price_typography',
     358                                'label' => __( 'Price Typography', 'x-addons-elementor' ),
     359                                'selector' => '{{WRAPPER}} .xa-product__price',
     360                        ]
     361                );
     362
     363                $this->add_control(
     364                        'xaddons_style_badge_color',
     365                        [
     366                                'label' => __( 'Badge Text Color', 'x-addons-elementor' ),
     367                                'type' => \Elementor\Controls_Manager::COLOR,
     368                                'separator' => 'before',
     369                                'selectors' => [
     370                                        '{{WRAPPER}} .xa-product__discount' => 'color: {{VALUE}};',
     371                                ],
     372                        ]
     373                );
     374
     375                $this->add_control(
     376                        'xaddons_style_badge_bg',
     377                        [
     378                                'label' => __( 'Badge Background', 'x-addons-elementor' ),
     379                                'type' => \Elementor\Controls_Manager::COLOR,
     380                                'selectors' => [
     381                                        '{{WRAPPER}} .xa-product__discount' => 'background-color: {{VALUE}};',
     382                                ],
     383                        ]
     384                );
     385
     386                $this->end_controls_section();
     387
     388                $this->start_controls_section(
     389                        'xaddons_style_button',
     390                        [
     391                                'label' => __( 'Add to Cart', 'x-addons-elementor' ),
     392                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     393                        ]
     394                );
     395
     396                $this->add_control(
     397                        'xaddons_style_button_color',
     398                        [
     399                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     400                                'type' => \Elementor\Controls_Manager::COLOR,
     401                                'selectors' => [
     402                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn' => 'color: {{VALUE}};',
     403                                ],
     404                        ]
     405                );
     406
     407                $this->add_control(
     408                        'xaddons_style_button_bg',
     409                        [
     410                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     411                                'type' => \Elementor\Controls_Manager::COLOR,
     412                                'selectors' => [
     413                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn' => 'background-color: {{VALUE}};',
     414                                ],
     415                        ]
     416                );
     417
     418                $this->add_control(
     419                        'xaddons_style_button_hover_color',
     420                        [
     421                                'label' => __( 'Hover Text Color', 'x-addons-elementor' ),
     422                                'type' => \Elementor\Controls_Manager::COLOR,
     423                                'selectors' => [
     424                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn:hover' => 'color: {{VALUE}};',
     425                                ],
     426                        ]
     427                );
     428
     429                $this->add_control(
     430                        'xaddons_style_button_hover_bg',
     431                        [
     432                                'label' => __( 'Hover Background Color', 'x-addons-elementor' ),
     433                                'type' => \Elementor\Controls_Manager::COLOR,
     434                                'selectors' => [
     435                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn:hover' => 'background-color: {{VALUE}};',
     436                                ],
     437                        ]
     438                );
     439
     440                $this->add_group_control(
     441                        \Elementor\Group_Control_Typography::get_type(),
     442                        [
     443                                'name' => 'xaddons_style_button_typography',
     444                                'selector' => '{{WRAPPER}} .xa-product__button .xa-buttons__btn',
     445                        ]
     446                );
     447
     448                $this->add_responsive_control(
     449                        'xaddons_style_button_padding',
     450                        [
     451                                'label' => __( 'Padding', 'x-addons-elementor' ),
     452                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     453                                'size_units' => [ 'px', 'em' ],
     454                                'selectors' => [
     455                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     456                                ],
     457                        ]
     458                );
     459
     460                $this->add_responsive_control(
     461                        'xaddons_style_button_radius',
     462                        [
     463                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     464                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     465                                'size_units' => [ 'px', '%' ],
     466                                'selectors' => [
     467                                        '{{WRAPPER}} .xa-product__button .xa-buttons__btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     468                                ],
     469                        ]
     470                );
     471
    169472                $this->end_controls_section();
    170473
    … …  
    182485         
    183486         
     487        /**
     488         * Product category choices for the existing category control.
     489         *
     490         * @return array
     491         */
     492        private function get_product_category_options() {
     493                $options = [];
     494
     495                if ( ! taxonomy_exists( 'product_cat' ) ) {
     496                        return $options;
     497                }
     498
     499                $terms = get_terms(
     500                        [
     501                                'taxonomy'   => 'product_cat',
     502                                'hide_empty' => false,
     503                        ]
     504                );
     505
     506                if ( is_wp_error( $terms ) ) {
     507                        return $options;
     508                }
     509
     510                foreach ( $terms as $term ) {
     511                        $options[ $term->term_id ] = $term->name;
     512                }
     513
     514                return $options;
     515        }
     516
     517        /**
     518         * Products chosen in the repeater, or the latest published products.
     519         *
     520         * @param array $settings Widget settings.
     521         * @return \WC_Product[]
     522         */
     523        private function get_products_for_display( $settings ) {
     524                $products = [];
     525
     526                if ( ! empty( $settings['xaddons_products'] ) && is_array( $settings['xaddons_products'] ) ) {
     527                        foreach ( $settings['xaddons_products'] as $item ) {
     528                                $product_id = absint( $item['xaddons_product_id'] ?? 0 );
     529
     530                                if ( ! $product_id ) {
     531                                        continue;
     532                                }
     533
     534                                $product = wc_get_product( $product_id );
     535
     536                                if ( ! $product || 'publish' !== $product->get_status() || ! $product->is_visible() ) {
     537                                        continue;
     538                                }
     539
     540                                $products[] = $product;
     541                        }
     542
     543                        return $products;
     544                }
     545
     546                $limit = absint( $settings['xaddons_post_item'] ?? 3 );
     547
     548                if ( $limit < 1 ) {
     549                        $limit = 3;
     550                }
     551
     552                $orderby = $settings['xaddons_product_orderby'] ?? 'date';
     553                $allowed = [ 'date', 'title', 'price', 'popularity', 'rating' ];
     554
     555                if ( ! in_array( $orderby, $allowed, true ) ) {
     556                        $orderby = 'date';
     557                }
     558
     559                $order = ( isset( $settings['xaddons_product_order'] ) && 'ASC' === $settings['xaddons_product_order'] ) ? 'ASC' : 'DESC';
     560
     561                $args = [
     562                        'status'     => 'publish',
     563                        'limit'      => $limit,
     564                        'orderby'    => $orderby,
     565                        'order'      => $order,
     566                        'visibility' => 'visible',
     567                        'return'     => 'objects',
     568                ];
     569
     570                if ( empty( $settings['xaddons_post_show_all_categories'] ) && ! empty( $settings['xaddons_selected_categories'] ) ) {
     571                        $slugs = [];
     572
     573                        foreach ( (array) $settings['xaddons_selected_categories'] as $term_id ) {
     574                                $term = get_term( absint( $term_id ), 'product_cat' );
     575
     576                                if ( $term && ! is_wp_error( $term ) ) {
     577                                        $slugs[] = $term->slug;
     578                                }
     579                        }
     580
     581                        if ( $slugs ) {
     582                                $args['category'] = $slugs;
     583                        }
     584                }
     585
     586                $queried = wc_get_products( $args );
     587
     588                return is_array( $queried ) ? $queried : [];
     589        }
     590
    184591         protected function render() {
    185592                 
    … …  
    199606                 
    200607        $settings = $this->get_settings_for_display();
    201 
    202                 if ( ! empty( $settings['xaddons_products'] ) ) {
     608                $products = $this->get_products_for_display( $settings );
     609
     610                if ( empty( $products ) ) {
     611
     612                        if ( \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
     613                                echo '<div class="elementor-alert elementor-alert-info">';
     614                                esc_html_e(
     615                                        'No published WooCommerce products were found. Add a product, or choose products in the widget settings.',
     616                                        'x-addons-elementor'
     617                                );
     618                                echo '</div>';
     619                        }
     620
     621                        return;
     622                }
     623
     624                if ( ! empty( $products ) ) {
    203625
    204626                        echo '<div class="xa-row xa-wrapper">';
    205627
    206                                 foreach ( $settings['xaddons_products'] as $item ) {
    207 
    208                                         $product_id = absint( $item['xaddons_product_id'] );
    209 
    210                                         if ( ! $product_id ) {
    211                                                 continue;
    212                                         }
    213 
    214                                         $product = wc_get_product( $product_id );
    215 
    216                                         if ( ! $product ) {
    217                                                 continue;
    218                                         }
     628                                foreach ( $products as $product ) {
     629
     630                                        $product_id = $product->get_id();
    219631
    220632                                        $product_link = get_permalink( $product_id );
    … …  
    231643                                        $sale_percentage = '';
    232644
    233                                         if ( $product->is_on_sale() && $product_regular_price > 0 ) {
     645                                        if ( $product->is_on_sale() && is_numeric( $product_regular_price ) && $product_regular_price > 0 && is_numeric( $product_sale_price ) ) {
    234646                                                $sale_percentage = round(
    235647                                                        ( ( $product_regular_price - $product_sale_price ) / $product_regular_price ) * 100
    … …  
    248660                                                                <?php endif; ?>
    249661                                                                <a href="<?php echo esc_url( $product_link ); ?>">
    250                                                                         <img src="<?php echo esc_url( $product_image ); ?>" alt="<?php echo esc_attr( $product_title ); ?>">
     662                                                                        <?php if ( $product_image ) : ?>
     663                                                                                <img src="<?php echo esc_url( $product_image ); ?>" alt="<?php echo esc_attr( $product_title ); ?>">
     664                                                                        <?php endif; ?>
    251665                                                                </a>
    252666                                                        </div>
  • x-addons-elementor/trunk/includes/widgets/xa-progress-bar.php

    r3375643 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2628
    2729        public function get_title() {
    28                 return __( 'XA: Progress Bar', 'x-addons-elementor' );
     30                return __( 'Xpress: Progress Bar', 'x-addons-elementor' );
    2931        }
    3032
    … …  
    329331                                        '{{WRAPPER}} .xa-progress__single .progress' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    330332                                ],
     333                        ]
     334                );
     335
     336                $this->add_control(
     337                        'xaddons_skill_track_color',
     338                        [
     339                                'label' => __( 'Track Color', 'x-addons-elementor' ),
     340                                'type' => Controls_Manager::COLOR,
     341                                'selectors' => [
     342                                        '{{WRAPPER}} .xa-progress__single .progress' => 'background-color: {{VALUE}};',
     343                                ],
     344                        ]
     345                );
     346
     347                $this->add_control(
     348                        'xaddons_skill_fill_color',
     349                        [
     350                                'label' => __( 'Fill Color', 'x-addons-elementor' ),
     351                                'type' => Controls_Manager::COLOR,
     352                                'selectors' => [
     353                                        '{{WRAPPER}} .xa-progress__single .progress-bar' => 'background-color: {{VALUE}};',
     354                                ],
     355                        ]
     356                );
     357
     358                $this->end_controls_section();
     359
     360                $this->start_controls_section(
     361                        'xaddons_skill_text_style',
     362                        [
     363                                'label' => __( 'Label & Value', 'x-addons-elementor' ),
     364                                'tab' => Controls_Manager::TAB_STYLE,
     365                        ]
     366                );
     367
     368                $this->add_control(
     369                        'xaddons_skill_title_color',
     370                        [
     371                                'label' => __( 'Label Color', 'x-addons-elementor' ),
     372                                'type' => Controls_Manager::COLOR,
     373                                'selectors' => [
     374                                        '{{WRAPPER}} .xa-progress__single .progress-title' => 'color: {{VALUE}};',
     375                                ],
     376                        ]
     377                );
     378
     379                $this->add_group_control(
     380                        \Elementor\Group_Control_Typography::get_type(),
     381                        [
     382                                'name' => 'xaddons_skill_title_typography',
     383                                'label' => __( 'Label Typography', 'x-addons-elementor' ),
     384                                'selector' => '{{WRAPPER}} .xa-progress__single .progress-title',
     385                        ]
     386                );
     387
     388                $this->add_control(
     389                        'xaddons_skill_value_color',
     390                        [
     391                                'label' => __( 'Value Color', 'x-addons-elementor' ),
     392                                'type' => Controls_Manager::COLOR,
     393                                'selectors' => [
     394                                        '{{WRAPPER}} .xa-progress__single .progress-value' => 'color: {{VALUE}};',
     395                                ],
     396                        ]
     397                );
     398
     399                $this->add_group_control(
     400                        \Elementor\Group_Control_Typography::get_type(),
     401                        [
     402                                'name' => 'xaddons_skill_value_typography',
     403                                'label' => __( 'Value Typography', 'x-addons-elementor' ),
     404                                'selector' => '{{WRAPPER}} .xa-progress__single .progress-value',
    331405                        ]
    332406                );
  • x-addons-elementor/trunk/includes/widgets/xa-resume-card.php

    r3191516 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2325
    2426        public function get_title() {
    25                 return __( 'XA: Resume Card', 'x-addons-elementor' );
     27                return __( 'Xpress: Resume Card', 'x-addons-elementor' );
    2628        }
    2729
    … …  
    151153                                ],
    152154                'toggle' => false,
     155                        ]
     156                );
     157
     158                $this->end_controls_section();
     159
     160                $this->register_style_controls();
     161
     162        }
     163
     164        protected function register_style_controls() {
     165
     166                $this->start_controls_section(
     167                        'xaddons_style_card',
     168                        [
     169                                'label' => __( 'Card', 'x-addons-elementor' ),
     170                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     171                        ]
     172                );
     173
     174                $this->add_responsive_control(
     175                        'xaddons_style_card_padding',
     176                        [
     177                                'label' => __( 'Padding', 'x-addons-elementor' ),
     178                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     179                                'size_units' => [ 'px', '%', 'em' ],
     180                                'selectors' => [
     181                                        '{{WRAPPER}} .xa-ex-card__single' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     182                                ],
     183                        ]
     184                );
     185
     186                $this->add_group_control(
     187                        \Elementor\Group_Control_Border::get_type(),
     188                        [
     189                                'name' => 'xaddons_style_card_border',
     190                                'selector' => '{{WRAPPER}} .xa-ex-card__single',
     191                        ]
     192                );
     193
     194                $this->add_responsive_control(
     195                        'xaddons_style_card_radius',
     196                        [
     197                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     198                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     199                                'size_units' => [ 'px', '%' ],
     200                                'selectors' => [
     201                                        '{{WRAPPER}} .xa-ex-card__single' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     202                                ],
     203                        ]
     204                );
     205
     206                $this->add_group_control(
     207                        \Elementor\Group_Control_Box_Shadow::get_type(),
     208                        [
     209                                'name' => 'xaddons_style_card_shadow',
     210                                'selector' => '{{WRAPPER}} .xa-ex-card__single',
     211                        ]
     212                );
     213
     214                $this->add_control(
     215                        'xaddons_style_card_bg',
     216                        [
     217                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     218                                'type' => \Elementor\Controls_Manager::COLOR,
     219                                'selectors' => [
     220                                        '{{WRAPPER}} .xa-ex-card__single' => 'background-color: {{VALUE}};',
     221                                ],
     222                        ]
     223                );
     224
     225                $this->end_controls_section();
     226
     227                $this->start_controls_section(
     228                        'xaddons_style_content',
     229                        [
     230                                'label' => __( 'Content', 'x-addons-elementor' ),
     231                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     232                        ]
     233                );
     234
     235                $this->add_control(
     236                        'xaddons_style_label_color',
     237                        [
     238                                'label' => __( 'Year Color', 'x-addons-elementor' ),
     239                                'type' => \Elementor\Controls_Manager::COLOR,
     240                                'selectors' => [
     241                                        '{{WRAPPER}} .xa-ex-card__label' => 'color: {{VALUE}};',
     242                                ],
     243                        ]
     244                );
     245
     246                $this->add_group_control(
     247                        \Elementor\Group_Control_Typography::get_type(),
     248                        [
     249                                'name' => 'xaddons_style_label_typography',
     250                                'label' => __( 'Year Typography', 'x-addons-elementor' ),
     251                                'selector' => '{{WRAPPER}} .xa-ex-card__label',
     252                        ]
     253                );
     254
     255                $this->add_control(
     256                        'xaddons_style_title_color',
     257                        [
     258                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     259                                'type' => \Elementor\Controls_Manager::COLOR,
     260                                'separator' => 'before',
     261                                'selectors' => [
     262                                        '{{WRAPPER}} .xa-ex-card__title' => 'color: {{VALUE}};',
     263                                ],
     264                        ]
     265                );
     266
     267                $this->add_group_control(
     268                        \Elementor\Group_Control_Typography::get_type(),
     269                        [
     270                                'name' => 'xaddons_style_title_typography',
     271                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     272                                'selector' => '{{WRAPPER}} .xa-ex-card__title',
     273                        ]
     274                );
     275
     276                $this->add_control(
     277                        'xaddons_style_info_color',
     278                        [
     279                                'label' => __( 'Info Color', 'x-addons-elementor' ),
     280                                'type' => \Elementor\Controls_Manager::COLOR,
     281                                'separator' => 'before',
     282                                'selectors' => [
     283                                        '{{WRAPPER}} .xa-ex-card__info' => 'color: {{VALUE}};',
     284                                ],
     285                        ]
     286                );
     287
     288                $this->add_group_control(
     289                        \Elementor\Group_Control_Typography::get_type(),
     290                        [
     291                                'name' => 'xaddons_style_info_typography',
     292                                'label' => __( 'Info Typography', 'x-addons-elementor' ),
     293                                'selector' => '{{WRAPPER}} .xa-ex-card__info',
     294                        ]
     295                );
     296
     297                $this->add_control(
     298                        'xaddons_style_text_color',
     299                        [
     300                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     301                                'type' => \Elementor\Controls_Manager::COLOR,
     302                                'separator' => 'before',
     303                                'selectors' => [
     304                                        '{{WRAPPER}} .xa-ex-card__text' => 'color: {{VALUE}};',
     305                                ],
     306                        ]
     307                );
     308
     309                $this->add_group_control(
     310                        \Elementor\Group_Control_Typography::get_type(),
     311                        [
     312                                'name' => 'xaddons_style_text_typography',
     313                                'label' => __( 'Text Typography', 'x-addons-elementor' ),
     314                                'selector' => '{{WRAPPER}} .xa-ex-card__text',
    153315                        ]
    154316                );
  • x-addons-elementor/trunk/includes/widgets/xa-section-title.php

    r3270058 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2325
    2426        public function get_title() {
    25                 return __( 'XA: Section Title', 'x-addons-elementor' );
     27                return __( 'Xpress: Section Title', 'x-addons-elementor' );
    2628        }
    2729
    … …  
    410412                'label' => __('Label Typography', 'x-addons-elementor'),
    411413                'selector' => '{{WRAPPER}} .xa-section-title__label',
    412                 'global' => [
    413                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    414                 ],
    415414            ]
    416415        );
    … …  
    422421                'label' => __('Title Typography', 'x-addons-elementor'),
    423422                'selector' => '{{WRAPPER}} .xa-section-title__heading',
    424                 'global' => [
    425                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    426                 ],
    427423            ]
    428424        );
    … …  
    434430                'label' => __('Content Typography', 'x-addons-elementor'),
    435431                'selector' => '{{WRAPPER}} .xa-section-title__content',
    436                 'global' => [
    437                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    438                 ],
    439432            ]
    440433        );
  • x-addons-elementor/trunk/includes/widgets/xa-tab-widget.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2628
    2729        public function get_title() {
    28                 return __( 'XA: Tab Widget', 'x-addons-elementor' );
     30                return __( 'Xpress: Tab Widget', 'x-addons-elementor' );
    2931        }
    3032
    … …  
    227229                                'type' => \Elementor\Controls_Manager::REPEATER,
    228230                                'fields' => $repeater->get_controls(),
     231                                'default' => [
     232                                        [
     233                                                'xaddons_active_tab' => 'yes',
     234                                                'xaddons_title' => __( 'Overview', 'x-addons-elementor' ),
     235                                                'xaddons_icon_type' => 'icon',
     236                                                'xaddons_icon_type_icon' => [
     237                                                        'value' => 'fas fa-layer-group',
     238                                                        'library' => 'solid',
     239                                                ],
     240                                                'xaddons_tab_type' => 'tab-default',
     241                                                'xaddons_tab_default' => __( 'A short overview of the service, so a new visitor knows what happens next.', 'x-addons-elementor' ),
     242                                        ],
     243                                        [
     244                                                'xaddons_active_tab' => '',
     245                                                'xaddons_title' => __( 'Process', 'x-addons-elementor' ),
     246                                                'xaddons_icon_type' => 'icon',
     247                                                'xaddons_icon_type_icon' => [
     248                                                        'value' => 'fas fa-list-ol',
     249                                                        'library' => 'solid',
     250                                                ],
     251                                                'xaddons_tab_type' => 'tab-default',
     252                                                'xaddons_tab_default' => __( 'We start with the content, shape the layout, then review the page with you before it goes live.', 'x-addons-elementor' ),
     253                                        ],
     254                                        [
     255                                                'xaddons_active_tab' => '',
     256                                                'xaddons_title' => __( 'Results', 'x-addons-elementor' ),
     257                                                'xaddons_icon_type' => 'icon',
     258                                                'xaddons_icon_type_icon' => [
     259                                                        'value' => 'fas fa-chart-line',
     260                                                        'library' => 'solid',
     261                                                ],
     262                                                'xaddons_tab_type' => 'tab-default',
     263                                                'xaddons_tab_default' => __( 'Pages that are easier to update, clearer for customers, and ready to grow with the site.', 'x-addons-elementor' ),
     264                                        ],
     265                                ],
    229266                        ]
    230267                );
    … …  
    749786                'label' => __('Menu Typography', 'x-addons-elementor'),
    750787                'selector' => '{{WRAPPER}} .xa-default-tab-menu__list li a',
    751                 'global' => [
    752                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    753                 ],
    754788            ]
    755789        );
    … …  
    761795                'label' => __('Body Typography', 'x-addons-elementor'),
    762796                'selector' => '{{WRAPPER}} .xa-default-tab-content__textarea *',
    763                 'global' => [
    764                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    765                 ],
    766797            ]
    767798        );
  • x-addons-elementor/trunk/includes/widgets/xa-table.php

    r3629242 r3821717  
    11<?php
    2 
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    35/**
    46 * Widget Class.
    … …  
    2729
    2830        public function get_title() {
    29                 return __( 'XA: Table Widget', 'x-addons-elementor' );
     31                return __( 'Xpress: Table Widget', 'x-addons-elementor' );
    3032        }
    3133
    … …  
    8385                                        [
    8486                                                'xaddons_title' => __( 'Feature', 'x-addons-elementor' ),
     87                                        ],
     88                                        [
     89                                                'xaddons_title' => __( 'Starter', 'x-addons-elementor' ),
     90                                        ],
     91                                        [
     92                                                'xaddons_title' => __( 'Growth', 'x-addons-elementor' ),
    8593                                        ],
    8694                                ],
    … …  
    207215                                'type' => \Elementor\Controls_Manager::REPEATER,
    208216                                'fields' => $xaddons_rows->get_controls(),
     217                                'default' => [
     218                                        [
     219                                                'xaddons_desc_columns' => [
     220                                                        [
     221                                                                'xaddons_icon_type' => 'icon',
     222                                                                'xaddons_icon_type_icon' => [
     223                                                                        'value' => '',
     224                                                                        'library' => '',
     225                                                                ],
     226                                                                'xaddons_desc' => __( 'Projects', 'x-addons-elementor' ),
     227                                                        ],
     228                                                        [
     229                                                                'xaddons_icon_type' => 'icon',
     230                                                                'xaddons_icon_type_icon' => [
     231                                                                        'value' => '',
     232                                                                        'library' => '',
     233                                                                ],
     234                                                                'xaddons_desc' => __( '3 active projects', 'x-addons-elementor' ),
     235                                                        ],
     236                                                        [
     237                                                                'xaddons_icon_type' => 'icon',
     238                                                                'xaddons_icon_type_icon' => [
     239                                                                        'value' => '',
     240                                                                        'library' => '',
     241                                                                ],
     242                                                                'xaddons_desc' => __( '10 active projects', 'x-addons-elementor' ),
     243                                                        ],
     244                                                ],
     245                                        ],
     246                                        [
     247                                                'xaddons_desc_columns' => [
     248                                                        [
     249                                                                'xaddons_icon_type' => 'icon',
     250                                                                'xaddons_icon_type_icon' => [
     251                                                                        'value' => '',
     252                                                                        'library' => '',
     253                                                                ],
     254                                                                'xaddons_desc' => __( 'Storage', 'x-addons-elementor' ),
     255                                                        ],
     256                                                        [
     257                                                                'xaddons_icon_type' => 'icon',
     258                                                                'xaddons_icon_type_icon' => [
     259                                                                        'value' => '',
     260                                                                        'library' => '',
     261                                                                ],
     262                                                                'xaddons_desc' => __( '10 GB', 'x-addons-elementor' ),
     263                                                        ],
     264                                                        [
     265                                                                'xaddons_icon_type' => 'icon',
     266                                                                'xaddons_icon_type_icon' => [
     267                                                                        'value' => '',
     268                                                                        'library' => '',
     269                                                                ],
     270                                                                'xaddons_desc' => __( '50 GB', 'x-addons-elementor' ),
     271                                                        ],
     272                                                ],
     273                                        ],
     274                                        [
     275                                                'xaddons_desc_columns' => [
     276                                                        [
     277                                                                'xaddons_icon_type' => 'icon',
     278                                                                'xaddons_icon_type_icon' => [
     279                                                                        'value' => '',
     280                                                                        'library' => '',
     281                                                                ],
     282                                                                'xaddons_desc' => __( 'Support', 'x-addons-elementor' ),
     283                                                        ],
     284                                                        [
     285                                                                'xaddons_icon_type' => 'icon',
     286                                                                'xaddons_icon_type_icon' => [
     287                                                                        'value' => '',
     288                                                                        'library' => '',
     289                                                                ],
     290                                                                'xaddons_desc' => __( 'Email', 'x-addons-elementor' ),
     291                                                        ],
     292                                                        [
     293                                                                'xaddons_icon_type' => 'icon',
     294                                                                'xaddons_icon_type_icon' => [
     295                                                                        'value' => '',
     296                                                                        'library' => '',
     297                                                                ],
     298                                                                'xaddons_desc' => __( 'Priority', 'x-addons-elementor' ),
     299                                                        ],
     300                                                ],
     301                                        ],
     302                                ],
    209303                        ]
    210304                );
    … …  
    330424        );
    331425
     426        $this->add_control(
     427            'xaddons_header_color',
     428            [
     429                'label' => __( 'Color', 'x-addons-elementor' ),
     430                'type' => \Elementor\Controls_Manager::COLOR,
     431                'selectors' => [
     432                    '{{WRAPPER}} .xa-table-area .xa-table thead th' => 'color: {{VALUE}} !important;',
     433                ],
     434            ]
     435        );
     436
    332437                $this->end_controls_section();
    333438
    … …  
    435540                'label' => __('Title Typography', 'x-addons-elementor'),
    436541                'selector' => '{{WRAPPER}} .xa-table-area .xa-table thead th',
    437                 'global' => [
    438                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    439                 ],
    440542            ]
    441543        );
    … …  
    447549                'label' => __('Content Typography', 'x-addons-elementor'),
    448550                'selector' => '{{WRAPPER}} .xa-table-area .xa-table tbody td *',
    449                 'global' => [
    450                     'default' => Global_Typography::TYPOGRAPHY_SECONDARY,
    451                 ],
    452551            ]
    453552        );
    … …  
    540639                    <thead>
    541640                        <tr>';
     641                            if ( empty( $settings['xaddons_header_list'] ) || ! is_array( $settings['xaddons_header_list'] ) ) {
     642                                $settings['xaddons_header_list'] = [];
     643                            }
    542644                            foreach($settings['xaddons_header_list'] as $xaddons_hlist){
    543645                            echo'
    … …  
    547649                    </thead>
    548650                    <tbody>';
     651                        if ( empty( $settings['xaddons_desc_list'] ) || ! is_array( $settings['xaddons_desc_list'] ) ) {
     652                            $settings['xaddons_desc_list'] = [];
     653                        }
    549654                        foreach($settings['xaddons_desc_list'] as $xaddons_desc){
    550655                        echo'
    551656                        <tr>';
    552657
     658                            if ( empty( $xaddons_desc['xaddons_desc_columns'] ) || ! is_array( $xaddons_desc['xaddons_desc_columns'] ) ) {
     659                                $xaddons_desc['xaddons_desc_columns'] = [];
     660                            }
    553661                            foreach ( $xaddons_desc['xaddons_desc_columns'] as $xaddons_dcolumn){
    554662                                echo'
    … …  
    565673                                        }
    566674
    567                                         if($xaddons_dcolumn['xaddons_desc_type'] == 'yes'){
     675                                        if( isset( $xaddons_dcolumn['xaddons_desc_type'] ) && $xaddons_dcolumn['xaddons_desc_type'] == 'yes' ){
    568676                                            echo''.wp_kses_post($xaddons_dcolumn['xaddons_desc_rich']).'';
    569677                                        }else{
  • x-addons-elementor/trunk/includes/widgets/xa-testimonials.php

    r3367868 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2326       
    2427        public function get_title() {
    25                 return __( 'XA: Testimonials', 'x-addons-elementor' );
     28                return __( 'Xpress: Testimonials', 'x-addons-elementor' );
    2629        }
    2730
    … …  
    104107                                        [
    105108                                                'xaddons_review_title' => __( 'Incredible Support', 'x-addons-elementor' ),
    106                                                 'xaddons_review_desc' => __( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'x-addons-elementor' ),
     109                                                'xaddons_review_desc' => __( 'The team answered every question before launch and stayed with us while the first pages went live.', 'x-addons-elementor' ),
    107110                                                'xaddons_author_name' => __( 'Thomas Smith', 'x-addons-elementor' ),
    108111                                                'xaddons_author_position' => __( 'UI/UX Designer', 'x-addons-elementor' ),
    109112                                        ],
    110113                                        [
    111                                                 'xaddons_review_title' => __( 'User Frindly', 'x-addons-elementor' ),
    112                                                 'xaddons_review_desc' => __( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'x-addons-elementor' ),
     114                                                'xaddons_review_title' => __( 'Easy to Edit', 'x-addons-elementor' ),
     115                                                'xaddons_review_desc' => __( 'Our editors can change headlines, images, and calls to action without asking a developer for help.', 'x-addons-elementor' ),
    113116                                                'xaddons_author_name' => __( 'Almas Kenny', 'x-addons-elementor' ),
    114117                                                'xaddons_author_position' => __( 'Creative Writer', 'x-addons-elementor' ),
    … …  
    116119                                        [
    117120                                                'xaddons_review_title' => __( 'Quality Coding', 'x-addons-elementor' ),
    118                                                 'xaddons_review_desc' => __( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'x-addons-elementor' ),
     121                                                'xaddons_review_desc' => __( 'The widgets dropped into our existing Elementor pages and matched the rest of the site without a rewrite.', 'x-addons-elementor' ),
    119122                                                'xaddons_author_name' => __( 'Donald Height', 'x-addons-elementor' ),
    120123                                                'xaddons_author_position' => __( 'Web Developer', 'x-addons-elementor' ),
    … …  
    254257                                'return_value' => 'yes',
    255258                                'default' => 'yes',
     259                        ]
     260                );
     261
     262                $this->end_controls_section();
     263
     264                $this->register_style_controls();
     265
     266        }
     267
     268        protected function register_style_controls() {
     269
     270                $this->start_controls_section(
     271                        'xaddons_style_card',
     272                        [
     273                                'label' => __( 'Card', 'x-addons-elementor' ),
     274                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     275                        ]
     276                );
     277
     278                $this->add_responsive_control(
     279                        'xaddons_style_card_padding',
     280                        [
     281                                'label' => __( 'Padding', 'x-addons-elementor' ),
     282                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     283                                'size_units' => [ 'px', '%', 'em' ],
     284                                'selectors' => [
     285                                        '{{WRAPPER}} .xa-single-testimonial' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     286                                ],
     287                        ]
     288                );
     289
     290                $this->add_group_control(
     291                        \Elementor\Group_Control_Border::get_type(),
     292                        [
     293                                'name' => 'xaddons_style_card_border',
     294                                'selector' => '{{WRAPPER}} .xa-single-testimonial',
     295                        ]
     296                );
     297
     298                $this->add_responsive_control(
     299                        'xaddons_style_card_radius',
     300                        [
     301                                'label' => __( 'Border Radius', 'x-addons-elementor' ),
     302                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     303                                'size_units' => [ 'px', '%' ],
     304                                'selectors' => [
     305                                        '{{WRAPPER}} .xa-single-testimonial' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     306                                ],
     307                        ]
     308                );
     309
     310                $this->add_group_control(
     311                        \Elementor\Group_Control_Box_Shadow::get_type(),
     312                        [
     313                                'name' => 'xaddons_style_card_shadow',
     314                                'selector' => '{{WRAPPER}} .xa-single-testimonial',
     315                        ]
     316                );
     317
     318                $this->add_control(
     319                        'xaddons_style_card_bg',
     320                        [
     321                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     322                                'type' => \Elementor\Controls_Manager::COLOR,
     323                                'selectors' => [
     324                                        '{{WRAPPER}} .xa-single-testimonial' => 'background-color: {{VALUE}};',
     325                                ],
     326                        ]
     327                );
     328
     329                $this->end_controls_section();
     330
     331                $this->start_controls_section(
     332                        'xaddons_style_title',
     333                        [
     334                                'label' => __( 'Review', 'x-addons-elementor' ),
     335                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     336                        ]
     337                );
     338
     339                $this->add_control(
     340                        'xaddons_style_title_color',
     341                        [
     342                                'label' => __( 'Title Color', 'x-addons-elementor' ),
     343                                'type' => \Elementor\Controls_Manager::COLOR,
     344                                'selectors' => [
     345                                        '{{WRAPPER}} .xa-single-testimonial__title' => 'color: {{VALUE}};',
     346                                ],
     347                        ]
     348                );
     349
     350                $this->add_group_control(
     351                        \Elementor\Group_Control_Typography::get_type(),
     352                        [
     353                                'name' => 'xaddons_style_title_typography',
     354                                'label' => __( 'Title Typography', 'x-addons-elementor' ),
     355                                'selector' => '{{WRAPPER}} .xa-single-testimonial__title',
     356                        ]
     357                );
     358
     359                $this->add_control(
     360                        'xaddons_style_desc_color',
     361                        [
     362                                'label' => __( 'Text Color', 'x-addons-elementor' ),
     363                                'type' => \Elementor\Controls_Manager::COLOR,
     364                                'separator' => 'before',
     365                                'selectors' => [
     366                                        '{{WRAPPER}} .xa-single-testimonial__desc' => 'color: {{VALUE}};',
     367                                ],
     368                        ]
     369                );
     370
     371                $this->add_group_control(
     372                        \Elementor\Group_Control_Typography::get_type(),
     373                        [
     374                                'name' => 'xaddons_style_desc_typography',
     375                                'label' => __( 'Text Typography', 'x-addons-elementor' ),
     376                                'selector' => '{{WRAPPER}} .xa-single-testimonial__desc',
     377                        ]
     378                );
     379
     380                $this->end_controls_section();
     381
     382                $this->start_controls_section(
     383                        'xaddons_style_author',
     384                        [
     385                                'label' => __( 'Author', 'x-addons-elementor' ),
     386                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     387                        ]
     388                );
     389
     390                $this->add_control(
     391                        'xaddons_style_author_color',
     392                        [
     393                                'label' => __( 'Name Color', 'x-addons-elementor' ),
     394                                'type' => \Elementor\Controls_Manager::COLOR,
     395                                'selectors' => [
     396                                        '{{WRAPPER}} .xa-single-testimonial__author' => 'color: {{VALUE}};',
     397                                ],
     398                        ]
     399                );
     400
     401                $this->add_group_control(
     402                        \Elementor\Group_Control_Typography::get_type(),
     403                        [
     404                                'name' => 'xaddons_style_author_typography',
     405                                'label' => __( 'Name Typography', 'x-addons-elementor' ),
     406                                'selector' => '{{WRAPPER}} .xa-single-testimonial__author',
     407                        ]
     408                );
     409
     410                $this->add_control(
     411                        'xaddons_style_role_color',
     412                        [
     413                                'label' => __( 'Role Color', 'x-addons-elementor' ),
     414                                'type' => \Elementor\Controls_Manager::COLOR,
     415                                'separator' => 'before',
     416                                'selectors' => [
     417                                        '{{WRAPPER}} .xa-single-testimonial__label' => 'color: {{VALUE}};',
     418                                ],
     419                        ]
     420                );
     421
     422                $this->add_group_control(
     423                        \Elementor\Group_Control_Typography::get_type(),
     424                        [
     425                                'name' => 'xaddons_style_role_typography',
     426                                'label' => __( 'Role Typography', 'x-addons-elementor' ),
     427                                'selector' => '{{WRAPPER}} .xa-single-testimonial__label',
    256428                        ]
    257429                );
  • x-addons-elementor/trunk/includes/widgets/xa-woo-checkout.php

    r3632142 r3821717  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4}
    25/**
    36 * Widget Class.
    … …  
    2528       
    2629        public function get_title() {
    27                 return __( 'XA: Woo Checkout', 'x-addons-elementor' );
     30                return __( 'Xpress: Woo Checkout', 'x-addons-elementor' );
    2831        }
    2932
    … …  
    6669                                'type'    => \Elementor\Controls_Manager::SWITCHER,
    6770                                'default' => 'yes',
     71                        ]
     72                );
     73
     74                $this->end_controls_section();
     75
     76                $this->register_style_controls();
     77        }
     78
     79        protected function register_style_controls() {
     80
     81                $this->start_controls_section(
     82                        'xaddons_style_checkout',
     83                        [
     84                                'label' => __( 'Checkout Box', 'x-addons-elementor' ),
     85                                'tab'   => \Elementor\Controls_Manager::TAB_STYLE,
     86                        ]
     87                );
     88
     89                $this->add_responsive_control(
     90                        'xaddons_style_wrap_padding',
     91                        [
     92                                'label' => __( 'Padding', 'x-addons-elementor' ),
     93                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     94                                'size_units' => [ 'px', 'em' ],
     95                                'selectors' => [
     96                                        '{{WRAPPER}} #xa-checkout-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     97                                ],
     98                        ]
     99                );
     100
     101                $this->add_control(
     102                        'xaddons_style_wrap_bg',
     103                        [
     104                                'label' => __( 'Background Color', 'x-addons-elementor' ),
     105                                'type' => \Elementor\Controls_Manager::COLOR,
     106                                'selectors' => [
     107                                        '{{WRAPPER}} #xa-checkout-wrap' => 'background-color: {{VALUE}};',
     108                                ],
     109                        ]
     110                );
     111
     112                $this->add_control(
     113                        'xaddons_style_heading_color',
     114                        [
     115                                'label' => __( 'Heading Color', 'x-addons-elementor' ),
     116                                'type' => \Elementor\Controls_Manager::COLOR,
     117                                'separator' => 'before',
     118                                'selectors' => [
     119                                        '{{WRAPPER}} .xa-product-switcher h4' => 'color: {{VALUE}};',
     120                                ],
     121                        ]
     122                );
     123
     124                $this->add_group_control(
     125                        \Elementor\Group_Control_Typography::get_type(),
     126                        [
     127                                'name' => 'xaddons_style_heading_typography',
     128                                'label' => __( 'Heading Typography', 'x-addons-elementor' ),
     129                                'selector' => '{{WRAPPER}} .xa-product-switcher h4',
     130                        ]
     131                );
     132
     133                $this->add_control(
     134                        'xaddons_style_select_color',
     135                        [
     136                                'label' => __( 'Select Text Color', 'x-addons-elementor' ),
     137                                'type' => \Elementor\Controls_Manager::COLOR,
     138                                'separator' => 'before',
     139                                'selectors' => [
     140                                        '{{WRAPPER}} #xa-product-switcher' => 'color: {{VALUE}};',
     141                                ],
     142                        ]
     143                );
     144
     145                $this->add_control(
     146                        'xaddons_style_select_bg',
     147                        [
     148                                'label' => __( 'Select Background', 'x-addons-elementor' ),
     149                                'type' => \Elementor\Controls_Manager::COLOR,
     150                                'selectors' => [
     151                                        '{{WRAPPER}} #xa-product-switcher' => 'background-color: {{VALUE}};',
     152                                ],
     153                        ]
     154                );
     155
     156                $this->add_group_control(
     157                        \Elementor\Group_Control_Border::get_type(),
     158                        [
     159                                'name' => 'xaddons_style_select_border',
     160                                'selector' => '{{WRAPPER}} #xa-product-switcher',
     161                        ]
     162                );
     163
     164                $this->add_responsive_control(
     165                        'xaddons_style_select_padding',
     166                        [
     167                                'label' => __( 'Select Padding', 'x-addons-elementor' ),
     168                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     169                                'size_units' => [ 'px', 'em' ],
     170                                'selectors' => [
     171                                        '{{WRAPPER}} #xa-product-switcher' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     172                                ],
     173                        ]
     174                );
     175
     176                $this->add_responsive_control(
     177                        'xaddons_style_select_radius',
     178                        [
     179                                'label' => __( 'Select Radius', 'x-addons-elementor' ),
     180                                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     181                                'size_units' => [ 'px', '%' ],
     182                                'selectors' => [
     183                                        '{{WRAPPER}} #xa-product-switcher' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     184                                ],
    68185                        ]
    69186                );
  • x-addons-elementor/trunk/languages/x-addons-elementor.pot

    r3375643 r3821717  
    22msgid ""
    33msgstr ""
    4 "Project-Id-Version: X Addons for Elementor\n"
     4"Project-Id-Version: Xpress Addons for Elementor\n"
    55"Report-Msgid-Bugs-To: \n"
    66"POT-Creation-Date: 2025-10-09 10:10+0000\n"
    … …  
    15451545
    15461546#: includes/plugin.php:15
    1547 msgid "X Addons"
     1547msgid "Xpress Addons"
    15481548msgstr ""
    15491549
    15501550#. Description of the plugin
    15511551msgid ""
    1552 "X Addons Elementor is an exceptional plugin designed to elevate your "
    1553 "Elementor website to the next level. We've crafted a collection of stunning "
    1554 "and innovative Elementor addons to enhance your website's functionality and "
    1555 "aesthetics. Whether you want to build eye-catching hero sections, showcase "
    1556 "your services, display testimonials, or create interactive sliders, X Addons "
    1557 "Elementor gives you the tools you need. Every widget is lightweight, "
    1558 "responsive, and easy to use, making it perfect for beginners and "
    1559 "professionals alike."
     1552"Xpress Addons for Elementor adds widgets, templates, and a header and "
     1553"footer builder for Elementor. Build hero sections, services, testimonials, "
     1554"sliders, and more with lightweight, responsive widgets."
    15601555msgstr ""
    15611556
    15621557#. Name of the plugin
    15631558#: includes/plugin.php:174 includes/plugin.php:201
    1564 msgid "X Addons for Elementor"
     1559msgid "Xpress Addons for Elementor"
    15651560msgstr ""
    15661561
    15671562#: includes/plugin.php:147
    1568 msgid "X-Addons for Elementor"
     1563msgid "Xpress Addons for Elementor"
    15691564msgstr ""
    15701565
    … …  
    15821577
    15831578#: includes/widgets/xa-amazing-image.php:24
    1584 msgid "XA: Amazing Image"
     1579msgid "Xpress: Amazing Image"
    15851580msgstr ""
    15861581
    15871582#: includes/widgets/xa-blog.php:34
    1588 msgid "XA: Blog Post"
     1583msgid "Xpress: Blog Post"
    15891584msgstr ""
    15901585
    15911586#: includes/widgets/xa-button.php:26
    1592 msgid "XA: Button"
     1587msgid "Xpress: Button"
    15931588msgstr ""
    15941589
    15951590#: includes/widgets/xa-cta.php:27
    1596 msgid "XA: Call to Action"
     1591msgid "Xpress: Call to Action"
    15971592msgstr ""
    15981593
    15991594#: includes/widgets/xa-circle-progress.php:24
    1600 msgid "XA: Circle Progress Widget"
     1595msgid "Xpress: Circle Progress Widget"
    16011596msgstr ""
    16021597
    16031598#: includes/widgets/xa-contact-card.php:25
    1604 msgid "XA: Contact Card"
     1599msgid "Xpress: Contact Card"
    16051600msgstr ""
    16061601
    16071602#: includes/widgets/xa-contact-form7.php:29
    1608 msgid "XA: Contact Form 7"
     1603msgid "Xpress: Contact Form 7"
    16091604msgstr ""
    16101605
    16111606#: includes/widgets/xa-faq-list.php:29
    1612 msgid "XA: Faq List"
     1607msgid "Xpress: Faq List"
    16131608msgstr ""
    16141609
    16151610#: includes/widgets/xa-hero.php:29
    1616 msgid "XA: Hero Section"
     1611msgid "Xpress: Hero Section"
    16171612msgstr ""
    16181613
    16191614#: includes/widgets/xa-info-card.php:27
    1620 msgid "XA: Info Card"
     1615msgid "Xpress: Info Card"
    16211616msgstr ""
    16221617
    16231618#: includes/widgets/xa-info-card-slider.php:27
    1624 msgid "XA: Info Card Slider"
     1619msgid "Xpress: Info Card Slider"
    16251620msgstr ""
    16261621
    16271622#: includes/widgets/xa-list-type.php:27
    1628 msgid "XA: List Type"
     1623msgid "Xpress: List Type"
    16291624msgstr ""
    16301625
    16311626#: includes/widgets/xa-logo-carousel.php:25
    1632 msgid "XA: Logo Carousel"
     1627msgid "Xpress: Logo Carousel"
    16331628msgstr ""
    16341629
    16351630#: includes/widgets/xa-mailchimp-form.php:14
    1636 msgid "XA: Mailchimp Form"
     1631msgid "Xpress: Mailchimp Form"
    16371632msgstr ""
    16381633
    16391634#: includes/widgets/xa-icon-type.php:27
    1640 msgid "XA: Multi Icon Type"
     1635msgid "Xpress: Multi Icon Type"
    16411636msgstr ""
    16421637
    16431638#: includes/widgets/xa-nav-menu.php:14
    1644 msgid "XA: Navigation Menu"
     1639msgid "Xpress: Navigation Menu"
    16451640msgstr ""
    16461641
    16471642#: includes/widgets/xa-portfolio.php:25
    1648 msgid "XA: Portfolio"
     1643msgid "Xpress: Portfolio"
    16491644msgstr ""
    16501645
    16511646#: includes/widgets/xa-progress-bar.php:28
    1652 msgid "XA: Progress Bar"
     1647msgid "Xpress: Progress Bar"
    16531648msgstr ""
    16541649
    16551650#: includes/widgets/xa-resume-card.php:25
    1656 msgid "XA: Resume Card"
     1651msgid "Xpress: Resume Card"
    16571652msgstr ""
    16581653
    16591654#: includes/widgets/xa-section-title.php:25
    1660 msgid "XA: Section Title"
     1655msgid "Xpress: Section Title"
    16611656msgstr ""
    16621657
    16631658#: includes/widgets/xa-tab-widget.php:27
    1664 msgid "XA: Tab Widget"
     1659msgid "Xpress: Tab Widget"
    16651660msgstr ""
    16661661
    16671662#: includes/widgets/xa-testimonials.php:25
    1668 msgid "XA: Testimonials"
     1663msgid "Xpress: Testimonials"
    16691664msgstr ""
    16701665
  • x-addons-elementor/trunk/readme.txt

    r3632142 r3821717  
    1 === X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder ===
     1=== Xpress Addons for Elementor ===
    22Contributors: pencilwp, sitebland
    33Author: pencilwp
    … …  
    55Tags: elementor, widgets, addons, elementor addons, elementor widgets
    66Requires at least: 5.8
    7 Tested up to: 7.0
    8 Stable tag: 1.9.1
    9 License: GPL v2 or later
     7Tested up to: 7.1
     8Requires PHP: 7.4
     9Stable tag: 2.0
     10License: GPLv2 or later
    1011License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1112
    12 X Addons - A powerful collection of creative and lightweight Elementor widgets that help you design beautiful websites faster and easier.
     13Elementor widgets, templates, and a header and footer builder.
    1314
    1415== Description ==
    15 X Addons Elementor is an exceptional plugin designed to elevate your elementor website to the next level. We've crafted a collection of stunning and innovative elementor addons to enhance your website's functionality and aesthetics. Whether you want to build eye-catching hero sections, showcase your services, display testimonials, or create interactive sliders, X Addons Elementor gives you the tools you need. Every widget is lightweight, responsive, and easy to use, making it perfect for beginners and professionals alike. 
     16Xpress Addons for Elementor adds widgets, templates, and a header and footer builder for Elementor. Build hero sections, services, testimonials, sliders, and more. Every widget is lightweight, responsive, and easy to use.
    1617
    1718
    … …  
    2223- Seamless integration with the Elementor page builder for a smooth user experience.
    2324
    24 ==  ⚡ Widgets in Free Version =
    25   * Header & Footer Builder – Added a dedicated Header & Footer Builder for Elementor, allowing you to create and customize your website's header and footer visually with the Elementor editor.
    26   * Hero Area - Create stunning hero sections with headlines and buttons. 
    27   * Service Card - Showcase your services with modern service cards. 
    28   * Testimonial Slider - Display client feedback in a beautiful slider. 
    29   * Portfolio Slider - Highlight portfolio projects in a stylish slider. 
    30   * Tabs Widget - Organize content into elegant responsive tabs. 
    31   * Blog Widgets - Show recent posts or blog grids with custom layouts. 
    32   * Brand, Client or Partners Slider - Showcase logos in a smooth slider. 
    33   * Circle Progress Card - Display progress or stats with animated circles. 
    34   * Call to Action Card - Grab attention with attractive CTA cards. 
    35   * Stylish Image Card - Present images with creative hover effects. 
    36   * Contact Info Card - Share business contact details in a neat card. 
    37   * Image Card - Simple and elegant image display with text support. 
    38   * Progress List - Show milestones or steps with progress indicators. 
    39   * Section Title - Add beautifully designed section headings. 
    40   * Buttons Widget - Create stylish customizable buttons. 
    41   * List Style Types - Display lists with modern icons and styles. 
    42   * Navigation Menu Widget - Add custom navigation menus with styling. 
    43   * Contact Form 7 Integrated - Embed and style Contact Form 7 forms. 
    44   * Mailchimp Form Integrated - Collect subscribers with Mailchimp forms. 
    45   * Elementor Table - Added Awesome Table Elements with lot's of Table Widgets. 
    46   * WooCommerce Product List – Added a powerful WooCommerce Product List widget that lets you beautifully display your selected products with flexible customization options.
    47   * WooCommerce One-Page Checkout – Added a modern WooCommerce One-Page Checkout widget that provides a clean, user-friendly checkout experience to help streamline the purchasing process.
    48   * + More coming. 
    49 
     25== Widgets in Free Version ==
     26  * Header & Footer Builder – Dedicated Header & Footer Builder for Elementor.
     27  * Hero Area - Create stunning hero sections with headlines and buttons.
     28  * Service Card - Showcase your services with modern service cards.
     29  * Testimonial Slider - Display client feedback in a beautiful slider.
     30  * Portfolio Slider - Highlight portfolio projects in a stylish slider.
     31  * Tabs Widget - Organize content into elegant responsive tabs.
     32  * Blog Widgets - Show recent posts or blog grids with custom layouts.
     33  * Brand, Client or Partners Slider - Showcase logos in a smooth slider.
     34  * Circle Progress Card - Display progress or stats with animated circles.
     35  * Call to Action Card - Grab attention with attractive CTA cards.
     36  * Stylish Image Card - Present images with creative hover effects.
     37  * Contact Info Card - Share business contact details in a neat card.
     38  * Image Card - Simple and elegant image display with text support.
     39  * Progress List - Show milestones or steps with progress indicators.
     40  * Section Title - Add beautifully designed section headings.
     41  * Buttons Widget - Create stylish customizable buttons.
     42  * List Style Types - Display lists with modern icons and styles.
     43  * Navigation Menu Widget - Add custom navigation menus with styling.
     44  * Contact Form 7 Integrated - Embed and style Contact Form 7 forms.
     45  * Mailchimp Form Integrated - Collect subscribers with Mailchimp forms.
     46  * Elementor Table - Table elements with flexible table widgets.
     47  * WooCommerce Product List – Display selected products with flexible options.
     48  * WooCommerce One-Page Checkout – Clean one-page checkout experience.
     49  * Theme Demos importer – Import starter kits for supported themes.
     50  * + More coming.
    5051
    5152
    5253== Installation ==
    5354
    54 1. Upload the `x-addons-elementor` file to the `/wp-content/plugins/` directory.
     551. Upload the `x-addons-elementor` folder to the `/wp-content/plugins/` directory.
    55562. Activate the plugin through the 'Plugins' menu in WordPress.
    56 3. You will now see new widgets and features added to your Elementor editor.
     573. Install and activate Elementor if it is not already active.
     584. You will now see new widgets and features added to your Elementor editor.
    5759
    5860== Frequently Asked Questions ==
    … …  
    6062= How do I use the new addons added by this plugin? =
    6163
    62 Once the plugin is activated, simply open the Elementor editor, and you'll find the new addons available in the Elementor widgets panel. Example search (XA: Service Card)
     64Once the plugin is activated, open the Elementor editor. The widgets are in the Xpress Addons category. Example search: Xpress: Hero Section
     65
     66= Does this plugin require Elementor? =
     67
     68Yes. Elementor must be installed and active. WordPress will prompt you to install Elementor when you activate this plugin.
    6369
    6470
    6571== Changelog ==
     72
     73= 2.0 =
     74* Public brand updated to Xpress Addons for Elementor. The plugin slug, text domain, widget IDs, and saved pages are unchanged.
     75* Aligned plugin version constants and headers for a consistent release.
     76* Added Requires Plugins header for Elementor dependency.
     77* Restored plugin text domain loading for translations.
     78* Replaced remote Google Fonts on Theme Demos admin with system font stacks.
     79* Softened Premium upsell copy (removed false urgency messaging).
     80* Added LICENSE file and ABSPATH guards across PHP includes.
     81* Expanded Theme Demos support and Navigation Menu mobile/drawer controls.
     82* Improved admin settings and Header & Footer Builder stability.
    6683
    6784= 1.0.0 =
    … …  
    6986
    7087== Upgrade Notice ==
     88
     89= 2.0 =
     90Recommended update: Xpress Addons branding, Elementor dependency header, Theme Demos, Navigation Menu improvements, and wp.org hygiene. No breaking changes to widget IDs or saved content.
    7191
    7292= 1.0.1 =
    … …  
    106126Fix Security Issues
    107127
    108 
    109128= 1.0.18 =
    110129Improve Widgets
    … …  
    125144Fix small bugs
    126145
     146= 1.9.9 =
     147Release New Version
     148
    127149== Screenshots ==
    128150
    129 1. Screenshot of the X Addons for Elementor settings panel.
     1511. Screenshot of the Xpress Addons for Elementor settings panel.
    1301522. Screenshot of the new widgets added by the plugin.
    131153
  • x-addons-elementor/trunk/x-addons-elementor.php

    r3632142 r3821717  
    11<?php
    22/*
    3  * Plugin Name:       X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder
     3 * Plugin Name:       Xpress Addons for Elementor
    44 * Plugin URI:        https://pencilwp.com
    5  * Description:       X Addons Elementor is an exceptional plugin designed to elevate your Elementor website to the next level. We've crafted a collection of stunning and innovative Elementor addons to enhance your website's functionality and aesthetics. Whether you want to build eye-catching hero sections, showcase your services, display testimonials, or create interactive sliders, X Addons Elementor gives you the tools you need. Every widget is lightweight, responsive, and easy to use, making it perfect for beginners and professionals alike. 
    6  * Version:           1.9.1
     5 * Description:       Xpress Addons for Elementor adds widgets, templates, and a header and footer builder for Elementor. Build hero sections, services, testimonials, sliders, and more with lightweight, responsive widgets.
     6 * Version:           2.0
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     9 * Requires Plugins:  elementor
    910 * Author:            pencilwp
    1011 * Author URI:        https://pencilwp.com
    … …  
    4849include_once XADDONS_PLUGIN_PATH . "core-class/admin/class-admin-menu.php";
    4950
     51// Theme Demos (isolated from Elementor editor library)
     52include_once XADDONS_PLUGIN_PATH . 'core-class/demo/class-demo-bootstrap.php';
     53
    5054
    5155
    … …  
    5963
    6064add_action("wp_enqueue_scripts", [$XAddonsAssets, "xaddons_elementor_assets"]);
     65add_action("elementor/preview/enqueue_styles", [$XAddonsAssets, "xaddons_elementor_assets"]);
    6166
    6267add_action("elementor/editor/before_enqueue_scripts", [$XAddonsAssets, "xaddons_elementor_block_template_assets"]);
    … …  
    8691
    8792
    88 // Remove these lines entirely
    89 // function xaddons_elementor_textdomain() {
    90 //     load_plugin_textdomain( 'x-addons-elementor', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    91 // }
    92 // add_action( 'plugins_loaded', 'xaddons_elementor_textdomain' );
     93/**
     94 * Load plugin text domain for translations.
     95 */
     96function xaddons_elementor_textdomain() {
     97        load_plugin_textdomain( 'x-addons-elementor', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     98}
     99add_action( 'plugins_loaded', 'xaddons_elementor_textdomain' );
Note: See TracChangeset for help on using the changeset viewer.