Plugin Directory

Changeset 2569109


Ignore:
Timestamp:
07/21/2021 10:43:54 AM (5 years ago)
Author:
marcopappalardo
Message:

Add fixed bugs

Location:
all-in-one-avada-addons
Files:
1329 added
3 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-avada-addons/assets/icon.svg

    r2457468 r2569109  
    1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 206 206"><defs><style>.cls-1,.cls-3{fill:#fff;}.cls-2{fill:#114c82;}.cls-3{font-size:23.57px;font-family:Guaraldo, Guaraldo Personal Use;}.cls-4{letter-spacing:0.03em;}.cls-5{font-size:15px;font-family:Raleway-Light, Raleway;font-weight:300;letter-spacing:-0.03em;}.cls-6{letter-spacing:-0.01em;}.cls-7{letter-spacing:0em;}.cls-8{letter-spacing:-0.03em;}.cls-9{letter-spacing:-0.01em;}</style></defs><g id="Livello_2" data-name="Livello 2"><g id="Livello_1-2" data-name="Livello 1"><circle class="cls-1" cx="103" cy="103" r="103"/><circle class="cls-2" cx="103" cy="103" r="103"/><path class="cls-1" d="M81.21,72.42C79.6,70.7,77.08,70.81,76,73l-26.4,52.68a3.15,3.15,0,0,0,2.81,4.55H89.15A3,3,0,0,0,92,128.48c8-16.33,3.17-41.2-10.75-56.06Zm19.35-47.91C74.9,65.1,98.78,97.67,114.2,128.5a3.15,3.15,0,0,0,2.82,1.76h36.55a3.15,3.15,0,0,0,2.82-4.55L105.94,24.49C104.82,22.27,102,22.23,100.56,24.51Z"/><text class="cls-3" transform="translate(47.63 161.84)">ALL <tspan class="cls-4" x="43.86" y="0">I</tspan><tspan x="49.44" y="0">N ONE</tspan><tspan class="cls-5"><tspan x="5.8" y="18">A</tspan><tspan class="cls-6" x="15.43" y="18">v</tspan><tspan class="cls-7" x="23.16" y="18">ada</tspan><tspan class="cls-8" x="48.49" y="18"> </tspan><tspan class="cls-9" x="51.88" y="18">A</tspan><tspan class="cls-7" x="61.78" y="18">ddons</tspan></tspan></text></g></g></svg>
     1<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 233.45 233.45"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:none;stroke:#fcdc00;stroke-miterlimit:10;stroke-width:17px;}.cls-3{fill:#114c82;}</style></defs><g id="Livello_2" data-name="Livello 2"><g id="Livello_1-2" data-name="Livello 1"><circle class="cls-1" cx="116.72" cy="116.72" r="103"/><circle class="cls-2" cx="116.72" cy="116.72" r="108.22"/><path class="cls-3" d="M94.94,86.15c-1.62-1.72-4.14-1.62-5.21.58l-26.4,52.68A3.15,3.15,0,0,0,66.14,144h36.73a3,3,0,0,0,2.81-1.76c8-16.33,3.17-41.2-10.74-56Zm19.35-47.91c-25.67,40.58-1.79,73.15,13.64,104a3.13,3.13,0,0,0,2.81,1.76H167.3a3.14,3.14,0,0,0,2.81-4.55S120.9,40.67,119.66,38.22C118.55,36,115.71,36,114.29,38.24Z"/><path class="cls-3" d="M70.73,159.49c.83,2.6,1.66,5.18,2.48,7.76s1.64,5.16,2.47,7.75a.49.49,0,0,1-.07.44.44.44,0,0,1-.38.2H72.5a.48.48,0,0,1-.47-.33l-.65-2.08-.65-2.07-2.23.48-2.22.46c-.18.54-.34,1.07-.51,1.59s-.33,1.07-.51,1.62a.48.48,0,0,1-.47.33H62.06a.46.46,0,0,1-.38-.2.49.49,0,0,1-.07-.44l2.48-7.75c.81-2.58,1.64-5.16,2.47-7.76a.42.42,0,0,1,.45-.33h3.27A.42.42,0,0,1,70.73,159.49Zm-1.06,8.39-1-3.23-1.15,3.68Z"/><path class="cls-3" d="M80.23,159.3a.49.49,0,0,1,.14.33v12.54H86.8a.45.45,0,0,1,.33.14.46.46,0,0,1,.15.33v2.5a.49.49,0,0,1-.15.36.45.45,0,0,1-.33.14H76.88a.49.49,0,0,1-.33-.14.52.52,0,0,1-.14-.36V159.63a.48.48,0,0,1,.47-.47h3A.49.49,0,0,1,80.23,159.3Z"/><path class="cls-3" d="M92,159.3a.49.49,0,0,1,.14.33v12.54h6.43a.45.45,0,0,1,.33.14.45.45,0,0,1,.14.33v2.5a.48.48,0,0,1-.14.36.45.45,0,0,1-.33.14H88.69a.45.45,0,0,1-.33-.14.52.52,0,0,1-.14-.36V159.63a.49.49,0,0,1,.14-.33.45.45,0,0,1,.33-.14h3A.49.49,0,0,1,92,159.3Z"/><path class="cls-3" d="M105.82,175.48a.49.49,0,0,1-.14-.34V159.63a.48.48,0,0,1,.47-.47h3a.5.5,0,0,1,.35.14.49.49,0,0,1,.14.33v15.51a.49.49,0,0,1-.14.34.44.44,0,0,1-.35.16h-3A.44.44,0,0,1,105.82,175.48Z"/><path class="cls-3" d="M111.6,159.2a.46.46,0,0,1,.54.15q1.86,2.51,3.71,5l3.71,5v-9.64a.48.48,0,0,1,.47-.47h3a.48.48,0,0,1,.35.14.49.49,0,0,1,.14.33v15.51a.49.49,0,0,1-.14.34.43.43,0,0,1-.35.16h-3a.42.42,0,0,1-.37-.22c-.76-1-1.5-2-2.22-2.95s-1.46-2-2.21-3v5.63a.49.49,0,0,1-.14.34.46.46,0,0,1-.36.16h-3a.41.41,0,0,1-.33-.16.45.45,0,0,1-.14-.34V159.63A.43.43,0,0,1,111.6,159.2Z"/><path class="cls-3" d="M134.13,174.76a8.35,8.35,0,0,1-2.42-2.27,8.57,8.57,0,0,1-1.33-2.92,8.91,8.91,0,0,1-.17-3.22,8.5,8.5,0,0,1,1.07-3.13,7.89,7.89,0,0,1,2.18-2.51,8.36,8.36,0,0,1,2.86-1.43,8,8,0,0,1,6.31.94A8.21,8.21,0,0,1,145,162.5a8.55,8.55,0,0,1,1.32,2.92,9.14,9.14,0,0,1,.18,3.22,8.47,8.47,0,0,1-1,3.13,8.15,8.15,0,0,1-2.18,2.51,8.68,8.68,0,0,1-2.87,1.43,7.91,7.91,0,0,1-6.31-1Zm.09-9.56a4.91,4.91,0,0,0-.54,1.81,5.09,5.09,0,0,0,.15,1.83,4.93,4.93,0,0,0,.83,1.65,4.78,4.78,0,0,0,1.42,1.26,4.53,4.53,0,0,0,1.82.59,4.62,4.62,0,0,0,1.82-.18,4.84,4.84,0,0,0,3.35-4.18,5.17,5.17,0,0,0-.16-1.84,4.91,4.91,0,0,0-.82-1.65,4.62,4.62,0,0,0-5.06-1.66,4.67,4.67,0,0,0-1.62.88A4.81,4.81,0,0,0,134.22,165.2Z"/><path class="cls-3" d="M147.89,159.2a.46.46,0,0,1,.54.15q1.86,2.51,3.71,5l3.72,5v-9.64a.45.45,0,0,1,.14-.33.45.45,0,0,1,.33-.14h3a.48.48,0,0,1,.35.14.46.46,0,0,1,.15.33v15.51a.46.46,0,0,1-.15.34.43.43,0,0,1-.35.16h-3a.43.43,0,0,1-.38-.22c-.75-1-1.49-2-2.21-2.95l-2.22-3v5.63a.49.49,0,0,1-.14.34.45.45,0,0,1-.36.16h-3a.44.44,0,0,1-.33-.16.49.49,0,0,1-.14-.34V159.63A.43.43,0,0,1,147.89,159.2Z"/><path class="cls-3" d="M160.9,175.5a.52.52,0,0,1-.14-.36V159.63a.49.49,0,0,1,.14-.33.45.45,0,0,1,.33-.14h9.21a.45.45,0,0,1,.33.14.46.46,0,0,1,.15.33v2.53a.46.46,0,0,1-.15.33.45.45,0,0,1-.33.14h-5.72v5h3.84a.44.44,0,0,1,.33.15.45.45,0,0,1,.14.33v2.52a.49.49,0,0,1-.14.33.47.47,0,0,1-.33.14h-3.84v1.08h6.43a.45.45,0,0,1,.33.14.45.45,0,0,1,.14.33v2.5a.48.48,0,0,1-.14.36.45.45,0,0,1-.33.14h-9.92A.45.45,0,0,1,160.9,175.5Z"/><path class="cls-3" d="M71.88,182.92h.66L77,193.57h-.81l-1.48-3.51H69.66l-1.48,3.51h-.83Zm2.66,6.51-2.33-5.58-2.37,5.58Z"/><path class="cls-3" d="M80.34,193.57l-3.25-7.8h.78l2.88,7,2.89-7h.74l-3.26,7.8Z"/><path class="cls-3" d="M87.59,193.72a2.79,2.79,0,0,1-1-.19,3,3,0,0,1-.82-.51A2.38,2.38,0,0,1,85,191.3a1.84,1.84,0,0,1,.24-.93,2.31,2.31,0,0,1,.67-.73,3.51,3.51,0,0,1,1-.48,5,5,0,0,1,1.32-.17,7.66,7.66,0,0,1,1.26.11,6.59,6.59,0,0,1,1.15.31v-.76a2.46,2.46,0,0,0-.63-1.77,2.28,2.28,0,0,0-1.71-.65,3.47,3.47,0,0,0-1.21.24,6.27,6.27,0,0,0-1.29.69l-.29-.51a5.12,5.12,0,0,1,2.85-1,3,3,0,0,1,2.22.82,3.07,3.07,0,0,1,.81,2.26v3.81c0,.25.11.37.33.37v.68l-.16,0h-.14a.6.6,0,0,1-.48-.21.81.81,0,0,1-.21-.48v-.65a3.51,3.51,0,0,1-1.38,1.08A4.38,4.38,0,0,1,87.59,193.72Zm.15-.6a3.77,3.77,0,0,0,1.59-.33,2.7,2.7,0,0,0,1.12-.87,1,1,0,0,0,.24-.6v-1.38a6,6,0,0,0-1.12-.32,6.93,6.93,0,0,0-1.22-.1,4.35,4.35,0,0,0-1.06.12,3,3,0,0,0-.83.36,1.6,1.6,0,0,0-.53.54,1.39,1.39,0,0,0-.19.72,1.8,1.8,0,0,0,.15.73,1.67,1.67,0,0,0,.42.59A1.81,1.81,0,0,0,87,193,2.06,2.06,0,0,0,87.74,193.12Z"/><path class="cls-3" d="M96.93,193.72a3.44,3.44,0,0,1-1.5-.34,3.94,3.94,0,0,1-1.19-.9,4.05,4.05,0,0,1-.78-1.29,4.12,4.12,0,0,1-.28-1.51,4.42,4.42,0,0,1,.27-1.54,4.13,4.13,0,0,1,.75-1.29,3.74,3.74,0,0,1,1.13-.89,3.17,3.17,0,0,1,1.44-.33,3,3,0,0,1,1,.15,3.6,3.6,0,0,1,.84.4,3.54,3.54,0,0,1,.7.58,4,4,0,0,1,.54.7v-4.84h.75v9.9c0,.25.11.37.32.37v.68l-.15,0h-.12a.65.65,0,0,1-.51-.24.7.7,0,0,1-.21-.48V192a3.57,3.57,0,0,1-1.29,1.24A3.27,3.27,0,0,1,96.93,193.72Zm.14-.68a2.6,2.6,0,0,0,.87-.16,3.56,3.56,0,0,0,.86-.46,3.6,3.6,0,0,0,.68-.67,1.59,1.59,0,0,0,.33-.81v-2.56a3.34,3.34,0,0,0-.47-.81,4,4,0,0,0-.7-.66,3.74,3.74,0,0,0-.84-.44,2.51,2.51,0,0,0-.87-.16,2.54,2.54,0,0,0-1.23.29,3,3,0,0,0-.94.76,3.57,3.57,0,0,0-.6,1.08A3.87,3.87,0,0,0,94,189.7a3.38,3.38,0,0,0,.24,1.27,3.55,3.55,0,0,0,.66,1.07,3.34,3.34,0,0,0,1,.73A2.84,2.84,0,0,0,97.07,193Z"/><path class="cls-3" d="M104.87,193.72a2.79,2.79,0,0,1-1-.19A3,3,0,0,1,103,193a2.38,2.38,0,0,1-.74-1.72,1.84,1.84,0,0,1,.24-.93,2.31,2.31,0,0,1,.67-.73,3.51,3.51,0,0,1,1-.48,5,5,0,0,1,1.32-.17,7.66,7.66,0,0,1,1.26.11,6.59,6.59,0,0,1,1.15.31v-.76a2.46,2.46,0,0,0-.63-1.77,2.28,2.28,0,0,0-1.71-.65,3.47,3.47,0,0,0-1.21.24,6.27,6.27,0,0,0-1.29.69l-.29-.51a5.12,5.12,0,0,1,2.85-1,3,3,0,0,1,2.22.82,3.07,3.07,0,0,1,.81,2.26v3.81c0,.25.11.37.33.37v.68l-.16,0h-.14a.6.6,0,0,1-.48-.21.81.81,0,0,1-.21-.48v-.65a3.51,3.51,0,0,1-1.38,1.08A4.38,4.38,0,0,1,104.87,193.72Zm.15-.6a3.77,3.77,0,0,0,1.59-.33,2.7,2.7,0,0,0,1.12-.87,1,1,0,0,0,.24-.6v-1.38a6,6,0,0,0-1.12-.32,6.93,6.93,0,0,0-1.22-.1,4.35,4.35,0,0,0-1.06.12,3,3,0,0,0-.83.36,1.6,1.6,0,0,0-.53.54,1.39,1.39,0,0,0-.19.72,1.8,1.8,0,0,0,.15.73,1.67,1.67,0,0,0,.42.59,1.81,1.81,0,0,0,.64.39A2.06,2.06,0,0,0,105,193.12Z"/><path class="cls-3" d="M118,182.92h.66l4.5,10.65h-.81l-1.48-3.51h-5.09l-1.48,3.51h-.83Zm2.66,6.51-2.33-5.58-2.37,5.58Z"/><path class="cls-3" d="M127.5,193.72a3.44,3.44,0,0,1-1.5-.34,3.94,3.94,0,0,1-1.19-.9,4.05,4.05,0,0,1-.78-1.29,4.12,4.12,0,0,1-.28-1.51,4.42,4.42,0,0,1,.27-1.54,4.13,4.13,0,0,1,.75-1.29,3.74,3.74,0,0,1,1.13-.89,3.17,3.17,0,0,1,1.44-.33,3.06,3.06,0,0,1,1,.15,3.53,3.53,0,0,1,.83.4,3.33,3.33,0,0,1,.71.58,4,4,0,0,1,.54.7v-4.84h.75v9.9c0,.25.11.37.32.37v.68l-.15,0h-.13a.62.62,0,0,1-.5-.24.7.7,0,0,1-.21-.48V192a3.65,3.65,0,0,1-1.29,1.24A3.27,3.27,0,0,1,127.5,193.72Zm.13-.68a2.61,2.61,0,0,0,.88-.16,3.56,3.56,0,0,0,.86-.46,3.6,3.6,0,0,0,.68-.67,1.59,1.59,0,0,0,.33-.81v-2.56a3.34,3.34,0,0,0-.47-.81,4,4,0,0,0-.7-.66,3.74,3.74,0,0,0-.84-.44,2.51,2.51,0,0,0-.87-.16,2.54,2.54,0,0,0-1.23.29,3,3,0,0,0-.94.76,3.57,3.57,0,0,0-.6,1.08,3.88,3.88,0,0,0-.22,1.26,3.2,3.2,0,0,0,.25,1.27,3.55,3.55,0,0,0,.66,1.07,3.34,3.34,0,0,0,1,.73A2.82,2.82,0,0,0,127.63,193Z"/><path class="cls-3" d="M136.72,193.72a3.44,3.44,0,0,1-1.5-.34,4.07,4.07,0,0,1-1.19-.9,4.45,4.45,0,0,1-.78-1.29,4.34,4.34,0,0,1-.28-1.51,4.21,4.21,0,0,1,.28-1.54,3.77,3.77,0,0,1,.75-1.29,3.52,3.52,0,0,1,1.13-.89,3.1,3.1,0,0,1,1.43-.33,3,3,0,0,1,1,.15,3.6,3.6,0,0,1,.84.4,4.05,4.05,0,0,1,1.24,1.28v-4.84h.75v9.9c0,.25.11.37.32.37v.68l-.15,0h-.12a.65.65,0,0,1-.51-.24.7.7,0,0,1-.21-.48V192a3.62,3.62,0,0,1-1.28,1.24A3.34,3.34,0,0,1,136.72,193.72Zm.14-.68a2.6,2.6,0,0,0,.87-.16,3.39,3.39,0,0,0,.86-.46,3.09,3.09,0,0,0,.68-.67,1.51,1.51,0,0,0,.33-.81v-2.56a3,3,0,0,0-.47-.81,3.65,3.65,0,0,0-.7-.66,3.74,3.74,0,0,0-.84-.44,2.43,2.43,0,0,0-.87-.16,2.47,2.47,0,0,0-1.22.29,3.07,3.07,0,0,0-.95.76,3.57,3.57,0,0,0-.6,1.08,3.87,3.87,0,0,0-.21,1.26,3.45,3.45,0,0,0,.91,2.34,3.11,3.11,0,0,0,1,.73A2.76,2.76,0,0,0,136.86,193Z"/><path class="cls-3" d="M146,193.72a3.49,3.49,0,0,1-1.52-.33,3.64,3.64,0,0,1-1.21-.87,4.06,4.06,0,0,1-.8-1.29,4.27,4.27,0,0,1,.81-4.4,3.92,3.92,0,0,1,1.21-.88,3.65,3.65,0,0,1,1.51-.32,3.57,3.57,0,0,1,1.5.32,4,4,0,0,1,1.21.88,4.21,4.21,0,0,1,0,5.69,3.7,3.7,0,0,1-1.2.87A3.51,3.51,0,0,1,146,193.72Zm-3.06-4a3.51,3.51,0,0,0,.89,2.36,3.24,3.24,0,0,0,1,.71A2.79,2.79,0,0,0,146,193a2.83,2.83,0,0,0,1.19-.26,3.14,3.14,0,0,0,1-.73,3.5,3.5,0,0,0,.9-2.38,3.49,3.49,0,0,0-.24-1.3,3.44,3.44,0,0,0-.66-1.07,3.36,3.36,0,0,0-1-.72,2.65,2.65,0,0,0-1.18-.27,2.69,2.69,0,0,0-1.19.27,3,3,0,0,0-1,.73,3.68,3.68,0,0,0-.91,2.4Z"/><path class="cls-3" d="M158,193.57h-.75v-4.35a4.41,4.41,0,0,0-.43-2.21,1.49,1.49,0,0,0-1.36-.69,2.78,2.78,0,0,0-1,.18,3.27,3.27,0,0,0-.91.51,3.81,3.81,0,0,0-.73.77,3.29,3.29,0,0,0-.47,1v4.83h-.75v-7.8h.71v1.86a3.7,3.7,0,0,1,1.38-1.45,4.12,4.12,0,0,1,.94-.41,3.86,3.86,0,0,1,1-.14,1.92,1.92,0,0,1,1.8.89,5.12,5.12,0,0,1,.53,2.56Z"/><path class="cls-3" d="M162.73,193.72a5,5,0,0,1-1.72-.3,4,4,0,0,1-1.44-.9L160,192a4.36,4.36,0,0,0,1.3.84,4,4,0,0,0,1.48.27,2.9,2.9,0,0,0,1.65-.43,1.38,1.38,0,0,0,.62-1.19,1.07,1.07,0,0,0-.16-.61,1.14,1.14,0,0,0-.47-.42,3.62,3.62,0,0,0-.78-.31l-1.08-.28c-.44-.1-.82-.2-1.15-.3a3.14,3.14,0,0,1-.8-.36,1.34,1.34,0,0,1-.47-.51,1.6,1.6,0,0,1-.16-.77,2.19,2.19,0,0,1,.23-1,1.87,1.87,0,0,1,.62-.72,2.94,2.94,0,0,1,.91-.43,4.44,4.44,0,0,1,1.11-.14,4,4,0,0,1,1.62.31,2.85,2.85,0,0,1,1.09.79l-.42.4a2.39,2.39,0,0,0-1-.67,3.91,3.91,0,0,0-1.33-.23,3.62,3.62,0,0,0-.82.09,2.13,2.13,0,0,0-.67.29,1.45,1.45,0,0,0-.45.5,1.64,1.64,0,0,0-.16.73,1.22,1.22,0,0,0,.11.55,1,1,0,0,0,.36.36,2.58,2.58,0,0,0,.64.26c.26.08.57.16.93.25s.92.24,1.31.35a3.82,3.82,0,0,1,.95.4,1.76,1.76,0,0,1,.58.57,1.54,1.54,0,0,1,.2.84,2,2,0,0,1-.81,1.67A3.52,3.52,0,0,1,162.73,193.72Z"/></g></g></svg>
  • all-in-one-avada-addons/trunk/all-in-one-avada-addons.php

    r2556925 r2569109  
    44 * Plugin URI: http://www.advisionplus.com
    55 * Description: This is an addons collection for Avada Theme.
    6  * Version: 1.2.1
     6 * Version: 1.2.2
    77 * Author: Marco Pappalardo
    88 * Author URI: http://www.marcopappalardo.it
  • all-in-one-avada-addons/trunk/builder-elements/post-card.php

    r2556925 r2569109  
    470470                        ],
    471471                        [
     472                            'type'        => 'radio_button_set',
     473                            'heading'     => esc_attr__( 'Show Excerpt Symbole', 'avada_addons' ),
     474                            'description' => esc_attr__( 'Choose to show the content.', 'avada_addons' ),
     475                            'param_name'  => 'show_excerpt_symble',
     476                            'value'       => [
     477                                'yes' => esc_attr__( 'Yes', 'avada_addons' ),
     478                                'no'  => esc_attr__( 'No', 'avada_addons' ),
     479                            ],
     480                            'default'     => 'yes',
     481                            'group'       => esc_attr__( 'Content', 'avada_addons' ),
     482                        ],
     483                        [
    472484                            'type'          => 'dimension',
    473485                            'heading'       => esc_attr__( 'Content Padding', 'avada_addons' ),
  • all-in-one-avada-addons/trunk/builder-elements/post-carousel.php

    r2553475 r2569109  
    217217                        ],
    218218
     219                        /**
     220                         * Owl Design
     221                         */
     222                        [
     223                            'type'        => 'colorpicker',
     224                            'heading'     => esc_attr__( 'Background Color', 'avada_addons' ),
     225                            'description' => esc_attr__( 'Controls the background color of the button.', 'avada_addons' ),
     226                            'param_name'  => 'owl_item_background_color',
     227                            'value'       => '',
     228                            'group'       => esc_attr__( 'Owl Design', 'avada_addons' ),
     229                        ],
     230                        [
     231                            'type'          => 'dimension',
     232                            'heading'       => esc_attr__( 'Border Radius', 'avada_addons' ),
     233                            'description'   => esc_attr__( 'Choose to the border radius for each image.', 'avada_addons' ),
     234                            'param_name'    => 'owl_item_border_radius',
     235                            'value'         => array(
     236                                'owl_item_border_radius_top'       => '',
     237                                'owl_item_border_radius_right'     => '',
     238                                'owl_item_border_radius_bottom'    => '',
     239                                'owl_item_border_radius_left'      => '',
     240                            ),
     241                            'group'       => esc_attr__( 'Owl Design', 'avada_addons' ),
     242                        ],
     243                        [
     244                            'type'          => 'dimension',
     245                            'heading'       => esc_attr__( 'Item Padding', 'avada_addons' ),
     246                            'description'   => esc_attr__( 'Choose item padding.', 'avada_addons' ),
     247                            'param_name'    => 'owl_item_padding',
     248                            'value'         => array(
     249                                'owl_item_padding_top'       => '',
     250                                'owl_item_padding_right'     => '',
     251                                'owl_item_padding_bottom'    => '',
     252                                'owl_item_padding_left'      => '',
     253                            ),
     254                            'group'       => esc_attr__( 'Owl Design', 'avada_addons' ),
     255                        ],
     256
    219257                       
    220258                        /**
     
    264302                            'param_name'  => 'title_color',
    265303                            'value'       => '',
     304                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
     305                        ],
     306                        [
     307                            'type'        => 'textfield',
     308                            'heading'     => esc_attr__( 'Font Size', 'avada_addons' ),
     309                            /* translators: URL for the link. */
     310                            'description' => sprintf( esc_html__( 'Controls the font size of the title. Enter value including any valid CSS unit, ex: 20px. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     311                            'param_name'  => 'font_size_title',
     312                            'value'       => '',
     313                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
     314                        ],
     315                        [
     316                            'type'             => 'font_family',
     317                            'remove_from_atts' => true,
     318                            'heading'          => esc_attr__( 'Font Family', 'avada_addons' ),
     319                            /* translators: URL for the link. */
     320                            'description'      => sprintf( esc_html__( 'Controls the font family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'avada_addons' ) ),
     321                            'param_name'       => 'title',
     322                            'group'            => esc_attr__( 'Title', 'avada_addons' ),
     323                            'default'          => [
     324                                'font-family'  => '',
     325                                'font-variant' => '400',
     326                            ],
     327                        ],
     328                        [
     329                            'type'        => 'textfield',
     330                            'heading'     => esc_attr__( 'Line Height', 'avada_addons' ),
     331                            /* translators: URL for the link. */
     332                            'description' => sprintf( esc_html__( 'Controls the line height of the title. Enter value including any valid CSS unit, ex: 28px. Leave empty if the global line height for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     333                            'param_name'  => 'font_title_line_height',
     334                            'value'       => '',
     335                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
     336                        ],
     337                        [
     338                            'type'        => 'textfield',
     339                            'heading'     => esc_attr__( 'Letter Spacing ', 'avada_addons' ),
     340                            /* translators: URL for the link. */
     341                            'description' => sprintf( esc_html__( 'Controls the letter spacing of the title. Enter value including any valid CSS unit, ex: 2px. Leave empty if the global letter spacing for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     342                            'param_name'  => 'font_title_letter_spacing',
     343                            'value'       => '',
     344                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
     345                        ],
     346                        [
     347                            'type'        => 'select',
     348                            'heading'     => esc_attr__( 'Text transfom', 'avada_addons' ),
     349                            'description' => esc_attr__( 'This field allows you to choose the text transform style.', 'avada_addons' ),
     350                            'param_name'  => 'title_text_transform',
     351                            'value'       => array(
     352                                'none'          => esc_attr__( 'None', 'avada_addons' ),
     353                                'capitalize'    => esc_attr__( 'Capitalize', 'avada_addons' ),
     354                                'uppercase'     => esc_attr__( 'Uppercase', 'avada_addons' ),
     355                                'lowercase'     => esc_attr__( 'Lowercase', 'avada_addons' ),
     356                                'initial'       => esc_attr__( 'Initial', 'avada_addons' ),
     357                                'inherit'       => esc_attr__( 'Inherit', 'avada_addons' ),
     358                            ),
     359                            'default'     => 'none',
     360                            'group'       => esc_attr__( 'Title', 'avada_addons' ),                       
     361                        ],
     362                        [
     363                            'type'          => 'dimension',
     364                            'heading'       => esc_attr__( 'Title Padding', 'avada_addons' ),
     365                            'description'   => esc_attr__( 'Choose to the padding.', 'avada_addons' ),
     366                            'param_name'    => 'title_padding',
     367                            'value'         => array(
     368                                'title_padding_top'       => '',
     369                                'title_padding_right'     => '',
     370                                'title_padding_bottom'    => '',
     371                                'title_padding_left'      => '',
     372                            ),
     373                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
     374                        ],
     375                        [
     376                            'type'          => 'dimension',
     377                            'heading'       => esc_attr__( 'Title Margin', 'avada_addons' ),
     378                            'description'   => esc_attr__( 'Choose to the margin.', 'avada_addons' ),
     379                            'param_name'    => 'title_margin',
     380                            'value'         => array(
     381                                'title_margin_top'       => '',
     382                                'title_margin_right'     => '',
     383                                'title_margin_bottom'    => '',
     384                                'title_margin_left'      => '',
     385                            ),
    266386                            'group'       => esc_attr__( 'Title', 'avada_addons' ),
    267387                        ],
     
    327447                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
    328448                        ],
     449                        [
     450                            'type'          => 'dimension',
     451                            'heading'       => esc_attr__( 'Button Padding', 'avada_addons' ),
     452                            'description'   => esc_attr__( 'Choose to the padding.', 'avada_addons' ),
     453                            'param_name'    => 'button_padding',
     454                            'value'         => array(
     455                                'button_padding_top'       => '',
     456                                'button_padding_right'     => '',
     457                                'button_padding_bottom'    => '',
     458                                'button_padding_left'      => '',
     459                            ),
     460                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     461                        ],
     462                        [
     463                            'type'          => 'dimension',
     464                            'heading'       => esc_attr__( 'Button Margin', 'avada_addons' ),
     465                            'description'   => esc_attr__( 'Choose to the margin.', 'avada_addons' ),
     466                            'param_name'    => 'button_margin',
     467                            'value'         => array(
     468                                'button_margin_top'       => '',
     469                                'button_margin_right'     => '',
     470                                'button_margin_bottom'    => '',
     471                                'button_margin_left'      => '',
     472                            ),
     473                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     474                        ],
     475                        [
     476                            'type'        => 'textfield',
     477                            'heading'     => esc_attr__( 'Font Size', 'avada_addons' ),
     478                            /* translators: URL for the link. */
     479                            'description' => sprintf( esc_html__( 'Controls the font size of the button. Enter value including any valid CSS unit, ex: 20px. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     480                            'param_name'  => 'font_size_button',
     481                            'value'       => '',
     482                            'group'       => esc_attr__( 'Content', 'avada_addons' ),
     483                        ],
     484                        [
     485                            'type'             => 'font_family',
     486                            'remove_from_atts' => true,
     487                            'heading'          => esc_attr__( 'Font Family', 'avada_addons' ),
     488                            /* translators: URL for the link. */
     489                            'description'      => sprintf( esc_html__( 'Controls the button family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'avada_addons' ) ),
     490                            'param_name'       => 'button',
     491                            'group'            => esc_attr__( 'Button', 'avada_addons' ),
     492                            'default'          => [
     493                                'font-family'  => '',
     494                                'font-variant' => '400',
     495                            ],
     496                        ],
     497                        [
     498                            'type'        => 'textfield',
     499                            'heading'     => esc_attr__( 'Line Height', 'avada_addons' ),
     500                            /* translators: URL for the link. */
     501                            'description' => sprintf( esc_html__( 'Controls the line height of the button. Enter value including any valid CSS unit, ex: 28px. Leave empty if the global line height for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     502                            'param_name'  => 'font_button_line_height',
     503                            'value'       => '',
     504                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     505                        ],
     506                        [
     507                            'type'        => 'textfield',
     508                            'heading'     => esc_attr__( 'Letter Spacing ', 'avada_addons' ),
     509                            /* translators: URL for the link. */
     510                            'description' => sprintf( esc_html__( 'Controls the letter spacing of the button. Enter value including any valid CSS unit, ex: 2px. Leave empty if the global letter spacing for the corresponding heading size (h1-h6) should be used.', 'avada_addons' )),
     511                            'param_name'  => 'font_button_letter_spacing',
     512                            'value'       => '',
     513                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     514                        ],
     515                        [
     516                            'type'        => 'colorpicker',
     517                            'heading'     => esc_attr__( 'Button Color', 'avada_addons' ),
     518                            'description' => esc_attr__( 'Controls the color of the button, ex: #000. Leave empty if the global color for the corresponding heading size (h1-h6) should be used.', 'avada_addons' ),
     519                            'param_name'  => 'button_color',
     520                            'value'       => '',
     521                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     522                        ],
     523                        [
     524                            'type'        => 'colorpicker',
     525                            'heading'     => esc_attr__( 'Background Color', 'avada_addons' ),
     526                            'description' => esc_attr__( 'Controls the background color of the button.', 'avada_addons' ),
     527                            'param_name'  => 'button_background_color',
     528                            'value'       => '',
     529                            'group'       => esc_attr__( 'Button', 'avada_addons' ),
     530                        ],
     531                        [
     532                            'type'        => 'select',
     533                            'heading'     => esc_attr__( 'Text transfom', 'avada_addons' ),
     534                            'description' => esc_attr__( 'This field allows you to choose the text transform style.', 'avada_addons' ),
     535                            'param_name'  => 'button_text_transform',
     536                            'value'       => array(
     537                                'none'          => esc_attr__( 'None', 'avada_addons' ),
     538                                'capitalize'    => esc_attr__( 'Capitalize', 'avada_addons' ),
     539                                'uppercase'     => esc_attr__( 'Uppercase', 'avada_addons' ),
     540                                'lowercase'     => esc_attr__( 'Lowercase', 'avada_addons' ),
     541                                'initial'       => esc_attr__( 'Initial', 'avada_addons' ),
     542                                'inherit'       => esc_attr__( 'Inherit', 'avada_addons' ),
     543                            ),
     544                            'default'     => 'none',
     545                            'group'       => esc_attr__( 'Button', 'avada_addons' ),                       
     546                        ],
     547                        [
     548                            'type'        => 'textfield',
     549                            'heading'     => esc_attr__( 'Button text', 'avada_addons' ),
     550                            'description' => esc_attr__( 'Type the text should be write in this button.', 'avada_addons' ),
     551                            'param_name'  => 'button_text',
     552                            'value'       => 'read more',
     553                            'default'     => 'none',
     554                            'group'       => esc_attr__( 'Button', 'avada_addons' ),                       
     555                        ],
    329556
    330557                    ],
  • all-in-one-avada-addons/trunk/inc/aio-redux-core/config/config.php

    r2544234 r2569109  
    4545
    4646    // Show the sections below the admin menu item or not.
    47     'allow_sub_menu'            => false,
     47    'allow_sub_menu'            => true,
    4848
    4949    'menu_title'                => esc_html__( 'Aio Setting', 'avada_addons' ),
  • all-in-one-avada-addons/trunk/readme.txt

    r2554022 r2569109  
    33Donate link: marcopappalardo.it
    44Requires at least: 3.0
    5 Tested up to: 5.7.2
     5Tested up to: 5.8
    66Requires PHP: 5.6
    77License: GPLv3
     
    1414
    1515= Features List =
    16 - Woocommece Carousel for Discounted Products
    17 - Woocommece Carousel for Sest-Selling Product
    18 - Woocommerce List of products
     16- Post Card Templates for Custom Post Types
    1917- Carousel for Custom Post Type
    2018- Post and Custom Post Type Archive
     
    2321You can add individual components directly from the fusion builder. To do this you will need to search for the following elements in the builder elements:
    2422
    25 - Post Carousel by tax and term AIO
    26 - Post Archive AIO
    27 - Woocommerce Best Sellers Carousel AIO
    28 - Woocommerce On Sales Carousel AIO
     23- Credit AIO
     24- Post Card AIO
     25- Post Carousel AIO
    2926- WooCommerce Product AIO
    3027
  • all-in-one-avada-addons/trunk/template/shortcode-credit.php

    r2556925 r2569109  
    2323             */
    2424            add_shortcode('aio_credit', array($this, 'aio_credit_shortcode_generator'));
    25 
    26             add_action('wp_enqueue_scripts', array($this, 'load_stylesheet_on_frontend'));
    2725           
    2826        }
     
    6058             */
    6159            $this->i ++;
    62            
     60
     61            ob_start();
    6362            /**
    6463             * Html to renderize in frontend
     
    6766            $html .= '<div id="aio-credit-image-'.$this->i.'" class="aio-credit-image"><a href="'.$this->aio_avada["aio-credit-link"].'"><img src="'.$this->aio_avada["aio-credit-logo"]["url"].'"></a></div>';
    6867
     68            echo $html;
     69
    6970            $this->aio_credit_css_generator($this->atts, $this->i);
    7071
    71             return $html;
     72            return ob_get_clean();
     73
    7274        }
    7375
     
    126128             * Don't change it.
    127129             */
    128             $this->output_css .= '';
    129             $this->output_css .= "\n" . $this->css;
     130            echo '<style>'.$this->css.'</style>';
    130131
    131             /**
    132              * var $file indicate the file where the css will be write
    133              * Chenge it if you want a custom stylesheet
    134              */
    135             $file = fopen(PLUGIN_PATH . 'assets/css/public/aio-credit.css',"w");
    136             fwrite($file,'/* Aio Credit Css generated from aio_credit_css_generator method in aio_credit_class */' . $this->output_css);
    137             fclose($file);
    138 
    139         }
    140 
    141         function load_stylesheet_on_frontend() {
    142             /**
    143              * Load script in frontend
    144              */
    145             wp_register_style( 'aio-credit-style', PLUGIN_URL.'assets/css/public/aio-credit.css');
    146             wp_enqueue_style( 'aio-credit-style' );
    147132        }
    148133       
     
    151136$aio_credit_class = new aio_credit_class($aio_avada);
    152137
    153 
    154 
    155 
    156 
  • all-in-one-avada-addons/trunk/template/shortcode-post-card.php

    r2556925 r2569109  
    2424             */
    2525            add_shortcode('aio_post_card', array($this, 'aio_shortcode_generator'));
    26 
    27             /**
    28              * Load Stylsheet for this element
    29              */
    30             add_action('wp_enqueue_scripts', array($this, 'load_stylesheet_on_frontend'), true);
    3126
    3227            /**
     
    128123                    'content_color'                 => '',
    129124                    'excerpt'                       => '',
     125                    'show_excerpt_symble'           => '',
    130126                    'content_padding_top'           => '',
    131127                    'content_padding_right'         => '',
     
    363359                        echo '<div class="aio-post-card-image-link">';
    364360
     361                        do_action('in_aio_large_postcard_image');
    365362                        if($this->atts['linkable']=='yes'){
    366363
     
    429426                           
    430427                        //Close div Aio Post Card Excerpt
     428                        if($this->atts['show_excerpt_symble'] == 'yes'){
     429                            echo ' <span class="aio-excerpt-symbol">...</span>';
     430                        }
     431
    431432                        echo '</div>';
    432433
     
    500501                                echo '<div class="aio-post-card-image-link">';
    501502
     503                                    do_action('in_aio_large_postcard_image');
    502504                                    if($this->atts['linkable']=='yes'){
    503505                                        //Open tag a Aio Single Post Card Content
     
    561563
    562564                                    //Close Aio Single Post Card Excerpt
     565                                    if($this->atts['show_excerpt_symble'] == 'yes'){
     566                                        echo ' <span class="aio-excerpt-symbol">...</span>';
     567                                    }
     568
    563569                                    echo '</div>';
    564570
     
    755761                $title_style[] = 'text-transform:' .$this->atts['title_text_transform'].';';
    756762            }
    757             else{$content_style[] = '';}
    758763
    759764            /**
     
    798803                $button_style[] = 'text-transform:' .$this->atts['button_text_transform'].';';
    799804            }
    800             else{$button_style[] = '';}
    801805
    802806            /**
     
    815819                $padding[] = 'padding-left: '.$this->atts['padding_left'].';';
    816820            }
    817             else{$padding = '';}
     821
    818822            /**
    819823             * Margin for the columns
     
    859863                $title_margin[] = 'margin-left: '.$this->atts['title_margin_left'].';';
    860864            }
    861             else{$title_margin = '';}
     865           
    862866
    863867            /**
     
    876880                $title_padding[] = 'padding-left: '.$this->atts['title_padding_left'].';';
    877881            }
    878             else{$title_padding = '';}
    879882
    880883            /**
     
    893896                $content_margin[] = 'margin-left: '.$this->atts['content_margin_left'].';';
    894897            }
    895             else{$content_margin = '';}
    896898
    897899            /**
     
    910912                $content_padding[] = 'padding-left: '.$this->atts['content_padding_left'].';';
    911913            }
    912             else{$content_padding = '';}
    913914
    914915
     
    971972                $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-image-link {display: grid; '.$image_max_width.'}';
    972973
    973                 $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-content {display: flex; flex-direction: column; margin: auto;'.$image_max_width.'}';
     974                $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-content {display: flex; flex-direction: column; margin: auto 0;'.$content_width_large.'}';
    974975               
    975976            }
     
    10061007                $this->css .= Fusion_Builder_Element_Helper::get_font_styling( $this->atts, 'title' );
    10071008                $this->css .= implode(" ", $title_style);
     1009                if(!empty($title_padding)){
     1010                    $this->css .= implode(" ", $title_padding);
     1011                }
     1012            $this->css .= '}';
     1013
     1014            $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-title {';
    10081015                if(!empty($title_margin)){
    10091016                    $this->css .= implode(" ", $title_margin);
    10101017                }
    1011                 if(!empty($title_padding)){
    1012                     $this->css .= implode(" ", $title_padding);
    1013                 }
    10141018            $this->css .= '}';
     1019           
    10151020
    10161021            /**
     
    10381043             * Button Tab Css
    10391044             */
    1040             $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-main-button a{';
     1045            $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-main-button a {';
    10411046                $this->css .= Fusion_Builder_Element_Helper::get_font_styling( $this->atts, 'button' );
    10421047                $this->css .= implode(" ", $button_style);
    1043 
     1048            $this->css .= '}';
     1049
     1050            $this->css .= '#aio-post-card-'.$this->i.' .aio-post-card-main-button {';
    10441051                /**
    10451052                 * Margin Button
     
    13891396             * Don't change it.
    13901397             */
    1391             $this->output_css .= '';
    1392             $this->output_css .= "\n" . $this->css;
    1393 
    1394             /**
    1395              * var $file indicate the file where the css will be write
    1396              * Chenge it if you want a custom stylesheet
    1397              */
    1398             $file = fopen(PLUGIN_PATH . 'assets/css/public/aio-post-card.css',"w");
    1399             fwrite($file,'/* Aio Post Card Css generated from aio_css_generator method in aio_credit_class */' . $this->output_css);
    1400             fclose($file);
    1401 
    1402         }
    1403 
    1404         function load_stylesheet_on_frontend() {
    1405             /**
    1406              * Load script in frontend
    1407              */
    1408             wp_register_style( 'aio-post-card-style', PLUGIN_URL.'assets/css/public/aio-post-card.css');
    1409             wp_enqueue_style( 'aio-post-card-style' );
     1398            echo '<style>'.$this->css.'</style>';
     1399
    14101400        }
    14111401
  • all-in-one-avada-addons/trunk/template/shortcode-post-carousel.php

    r2553475 r2569109  
    2525             */
    2626            add_shortcode('carousel_post_type', array($this, 'aio_carousel_post_type_shortcode_generator'));
    27 
    28             /**
    29              * Load Stylsheet for this element
    30              */
    31             add_action('wp_enqueue_scripts', array($this, 'load_stylesheet_on_frontend'));
    3227
    3328            /**
     
    7469            $this->atts = shortcode_atts (
    7570                array(
    76                     'post_type'                 => '',
    77                     'posts_per_page'            => '-1',
    78                     'exclude'                   => '', //(array) An array of post IDs not to retrieve. Default empty array.
    79                     'order'                     => '', //(string) Designates ascending or descending order of posts. Default 'DESC'. Accepts 'ASC', 'DESC'.
    80                     'orderby'                   => '', //Accepts 'none', 'name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'relevance', 'RAND(x)' (where 'x' is an integer seed value), 'comment_count', 'meta_value', 'meta_value_num', 'post__in', 'post_name__in', 'post_parent__in', and the array keys of $meta_query. Default is 'date', except when a search is being performed, when the default is 'relevance'.,
    81                     'items_carousel'            => '',
    82                     'items_carousel_medium'     => '',
    83                     'items_carousel_small'      => '',
    84                     'owl_nav'                   => '',
    85                     'owl_nav_medium'            => '',
    86                     'owl_nav_small'             => '',
    87                     'owl_dots_nav'              => '',
    88                     'owl_dots_nav_medium'       => '',
    89                     'owl_dots_nav_small'        => '',
    90                     'owl_autoplay'              => '',
    91                     'owl_margin'                => '',
     71                    'post_type'                         => '',
     72                    'posts_per_page'                    => '-1',
     73                    'exclude'                           => '', //(array) An array of post IDs not to retrieve. Default empty array.
     74                    'order'                             => '', //(string) Designates ascending or descending order of posts. Default 'DESC'. Accepts 'ASC', 'DESC'.
     75                    'orderby'                           => '', //Accepts 'none', 'name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'relevance', 'RAND(x)' (where 'x' is an integer seed value), 'comment_count', 'meta_value', 'meta_value_num', 'post__in', 'post_name__in', 'post_parent__in', and the array keys of $meta_query. Default is 'date', except when a search is being performed, when the default is 'relevance'.,
     76                    'items_carousel'                    => '',
     77                    'items_carousel_medium'             => '',
     78                    'items_carousel_small'              => '',
     79                    'owl_nav'                           => '',
     80                    'owl_nav_medium'                    => '',
     81                    'owl_nav_small'                     => '',
     82                    'owl_dots_nav'                      => '',
     83                    'owl_dots_nav_medium'               => '',
     84                    'owl_dots_nav_small'                => '',
     85                    'owl_autoplay'                      => '',
     86                    'owl_margin'                        => '',
     87                    'owl_item_background_color'         => '',
     88                    'owl_item_border_radius_top'       => '',
     89                    'owl_item_border_radius_right'     => '',
     90                    'owl_item_border_radius_bottom'    => '',
     91                    'owl_item_border_radius_left'      => '',
     92                    'owl_item_padding_top'              => '',
     93                    'owl_item_padding_right'            => '',
     94                    'owl_item_padding_bottom'           => '',
     95                    'owl_item_padding_left'             => '',
     96
     97                    //BUTTON TAB
    9298                    'show_button'               => '',
    9399                    'show_button_medium'        => '',
    94100                    'show_button_small'         => '',
     101                    'button_padding_top'        => '',
     102                    'button_padding_right'      => '',
     103                    'button_padding_bottom'     => '',
     104                    'button_padding_left'       => '',
     105                    'button_margin_top'         => '',
     106                    'button_margin_right'       => '',
     107                    'button_margin_bottom'      => '',
     108                    'button_margin_left'        => '',
     109                    'fusion_font_family_button' => '',
     110                    'fusion_font_variant_button'=> '',
     111                    'font_size_button'          => '',
     112                    'font_button_line_height'   => '',
     113                    'font_button_letter_spacing'=> '',
     114                    'button_color'              => '',
     115                    'button_background_color'   => '',
     116                    'button_text_transform'     => '',
     117                    'button_text'               => '',
     118
     119
    95120                    'show_content'              => '',
    96121                    'show_content_medium'       => '',
     
    113138                    'class'                     => '',
    114139                    'id'                        => '',
     140                    'fusion_font_family_title'      => '',
     141                    'fusion_font_variant_title'     => '',
     142                    'font_size_title'               => '',
     143                    'font_title_line_height'        => '',
     144                    'font_title_letter_spacing'     => '',
     145                    'title_text_transform'          => '',
     146
     147                    'title_padding_top'             => '',
     148                    'title_padding_right'           => '',
     149                    'title_padding_bottom'          => '',
     150                    'title_padding_left'            => '',
     151                   
     152                    'title_margin_top'              => '',
     153                    'title_margin_right'            => '',
     154                    'title_margin_bottom'           => '',
     155                    'title_margin_left'             => '',
     156                   
    115157                ), $atts, 'carousel_post_type'
    116158            );
     
    227269            }
    228270           
    229 
     271           
     272            ob_start();
    230273            /**
    231274             * Html to renderize in frontend
     
    264307
    265308                        $html .= '<div class="aio-carousel-excerpt '.implode(" ", $content_visibility).'"><p>'.substr($single_news->post_content, 0, $this->atts['excerpt']);
    266                             $html .= '</></div>';
    267 
    268                             $html .= '<a class="button-single-news-carousel '.implode(" ", $button_visibility).'" href="'.$link.'">'.__("Leggi", "avada_addons").'</a>';
     309                            $html .= ' <span class="aio-excerpt-symbol">...</span></></div>';
     310
     311                            $html .= '<div class="aio-single-button-owl"><a class="button-single-news-carousel '.implode(" ", $button_visibility).'" href="'.$link.'">'.__($this->atts['button_text'], "avada_addons").'</a></div>';
    269312
    270313                        $html .= '</div>';
     
    292335                    },
    293336                    '.$this->aio_avada['aio-medium-brackpoint'].':{
    294                         items:'.$this->atts['items_carousel'].',
     337                        items: '.$this->atts['items_carousel'].',
    295338                        nav: '.$this->atts['owl_nav'].',
    296339                        dots: '.$this->atts['owl_dots_nav'].',
     
    298341                }
    299342            })</script>';
    300            
     343
     344            echo $html;
    301345
    302346            /**
     
    304348             */
    305349            $this->aio_carousel_post_type_css_generator($this->atts, $this->i);
    306 
    307             return $html;
     350            return ob_get_clean();
     351
    308352        }
    309353
     
    347391            $this->i = $counter;
    348392           
     393            $this->css .= '#aio-carousel-'.$this->i.' .owl-stage {';
     394                $this->css .= 'display: grid; grid-auto-flow: column;';
     395            $this->css .= '}';
     396
     397            /**
     398             * 'owl_item_background_color'
     399             */
     400            $this->css .= '#aio-carousel-'.$this->i.' {';
     401                if($this->atts['owl_item_background_color']){
     402                    $this->css .= 'background-color: '.$this->atts['owl_item_background_color'].'; display: block !important;';
     403                }
     404
     405
     406               
     407                if($this->atts['owl_item_border_radius_top'] || $this->atts['owl_item_border_radius_right'] || $this->atts['owl_item_border_radius_bottom'] || $this->atts['owl_item_border_radius_left']){
     408                    $owl_border_radius_item[] = 'border-radius: ';
     409                    if($this->atts['owl_item_border_radius_top']){
     410                        $owl_border_radius_item[] = $this->atts['owl_item_border_radius_top'];
     411                    }else{
     412                        $owl_border_radius_item[] = '0';
     413                    }
     414                    if($this->atts['owl_item_border_radius_right']){
     415                        $owl_border_radius_item[] = $this->atts['owl_item_border_radius_right'];
     416                    }else{
     417                        $owl_border_radius_item[] = '0';
     418                    }
     419                    if($this->atts['owl_item_border_radius_bottom']){
     420                        $owl_border_radius_item[] = $this->atts['owl_item_border_radius_bottom'];
     421                    }else{
     422                        $owl_border_radius_item[] = '0';
     423                    }
     424                    if($this->atts['owl_item_border_radius_left']){
     425                        $owl_border_radius_item[] = $this->atts['owl_item_border_radius_left'];
     426                    }else{
     427                        $owl_border_radius_item[] = '0';
     428                    }
     429                    $owl_border_radius_item[] = ';';
     430                    $owl_border_radius_item[] = 'overflow: hidden;';
     431                }
     432                if(!empty($owl_border_radius_item)){
     433                    $this->css .= implode(" ",$owl_border_radius_item);
     434                }
     435
     436                if($this->atts['owl_item_padding_top'] || $this->atts['owl_item_padding_right'] || $this->atts['owl_item_padding_bottom'] || $this->atts['owl_item_padding_left']){
     437                    $owl_item_padding[] = 'padding: ';
     438                    if($this->atts['owl_item_padding_top']){
     439                        $owl_item_padding[] = $this->atts['owl_item_padding_top'];
     440                    }else{
     441                        $owl_item_padding[] = '0';
     442                    }
     443                    if($this->atts['owl_item_padding_right']){
     444                        $owl_item_padding[] = $this->atts['owl_item_padding_right'];
     445                    }else{
     446                        $owl_item_padding[] = '0';
     447                    }
     448                    if($this->atts['owl_item_padding_bottom']){
     449                        $owl_item_padding[] = $this->atts['owl_item_padding_bottom'];
     450                    }else{
     451                        $owl_item_padding[] = '0';
     452                    }
     453                    if($this->atts['owl_item_padding_left']){
     454                        $owl_item_padding[] = $this->atts['owl_item_padding_left'];
     455                    }else{
     456                        $owl_item_padding[] = '0';
     457                    }
     458                    $owl_item_padding[] = ';';
     459                    $owl_item_padding[] = 'overflow: hidden;';
     460                }
     461                if(!empty($owl_item_padding)){
     462                    $this->css .= implode(" ",$owl_item_padding);
     463                }
     464
     465            $this->css .= '}';
     466
     467            /**
     468             * Arrary for title style
     469             */
     470            if($this->atts['font_size_title']){
     471                $title_style[] = 'font-size:' .$this->atts['font_size_title'].';';
     472            }
     473            if($this->atts['font_title_line_height']){
     474                $title_style[] = 'line-height:' .$this->atts['font_title_line_height'].';';
     475            }
     476            if($this->atts['font_title_letter_spacing']){
     477                $title_style[] = 'letter-spacing:' .$this->atts['font_title_letter_spacing'].';';
     478            }
     479            if($this->atts['title_color']){
     480                $title_style[] = 'color:' .$this->atts['title_color'].';';
     481            }
     482            if($this->atts['title_text_transform']){
     483                $title_style[] = 'text-transform:' .$this->atts['title_text_transform'].';';
     484            }
     485
     486            /**
     487             * Margin Title
     488             */
     489            if($this->atts['title_margin_top']){
     490                $title_margin[] = 'margin-top: '.$this->atts['title_margin_top'].';';
     491            }
     492            if($this->atts['title_margin_right']){
     493                $title_margin[] = 'margin-right: '.$this->atts['title_margin_right'].';';
     494            }
     495            if($this->atts['title_margin_bottom']){
     496                $title_margin[] = 'margin-bottom: '.$this->atts['title_margin_bottom'].';';
     497            }
     498            if($this->atts['title_margin_left']){
     499                $title_margin[] = 'margin-left: '.$this->atts['title_margin_left'].';';
     500            }
     501           
     502
     503            /**
     504             * Padding Title
     505             */
     506            if($this->atts['title_padding_top']){
     507                $title_padding[] = 'padding-top: '.$this->atts['title_padding_top'].';';
     508            }
     509            if($this->atts['title_padding_right']){
     510                $title_padding[] = 'padding-right: '.$this->atts['title_padding_right'].';';
     511            }
     512            if($this->atts['title_padding_bottom']){
     513                $title_padding[] = 'padding-bottom: '.$this->atts['title_padding_bottom'].';';
     514            }
     515            if($this->atts['title_padding_left']){
     516                $title_padding[] = 'padding-left: '.$this->atts['title_padding_left'].';';
     517            }
     518
     519            if(!empty($title_style)){
     520                $this->css .= '#aio-carousel-'.$this->i.' .aio-carousel-title a, #aio-carousel-'.$this->i.' .aio-carousel-title { '.implode(" ", $title_style);
     521                    $this->css .= implode(" ", $title_margin);
     522                    $this->css .= implode(" ", $title_padding);
     523                    $this->css .= Fusion_Builder_Element_Helper::get_font_styling( $this->atts, 'title' );
     524                $this->css .= ' } ';
     525            }
     526
    349527            /**
    350528             * Css Condition and generation
    351529             * These are custom condition and change for each of element builder type
    352530             */
    353             if($this->atts['title_color']){
    354                 $this->css .= '#aio-carousel-'.$this->i.' .aio-carousel-title a, #aio-carousel-'.$this->i.' .aio-carousel-title { color: '.$this->atts['title_color'].' } ';
    355             }
    356531            if($this->atts['content_color']){
    357532                $this->css .= '#aio-carousel-'.$this->i.' .aio-carousel-excerpt p { color: '.$this->atts['content_color'].' } ';
     
    388563                .aio-small-hidden {display: none;}
    389564            }';
     565
     566            /**
     567             * Arrary for Font Button Style
     568             */
     569            if($this->atts['font_size_button']){
     570                $button_style[] = 'font-size:' .$this->atts['font_size_button'].';';
     571            }
     572            if($this->atts['font_button_line_height']){
     573                $button_style[] = 'line-height:' .$this->atts['font_button_line_height'].';';
     574            }
     575            if($this->atts['font_button_letter_spacing']){
     576                $button_style[] = 'letter-spacing:' .$this->atts['font_button_letter_spacing'].';';
     577            }
     578            if($this->atts['button_color']){
     579                $button_style[] = 'color:' .$this->atts['button_color'].';';
     580            }
     581            if($this->atts['button_background_color']){
     582                $button_style[] = 'background-color:' .$this->atts['button_background_color'].';';
     583            }
     584            if($this->atts['button_text_transform']){
     585                $button_style[] = 'text-transform:' .$this->atts['button_text_transform'].';';
     586            }
     587            else{$button_style[] = '';}
     588
     589            /**
     590             * Button Tab Css
     591             */
     592            $this->css .= '#aio-carousel-'.$this->i.' .button-single-news-carousel {';
     593                $this->css .= Fusion_Builder_Element_Helper::get_font_styling( $this->atts, 'button' );
     594                $this->css .= implode(" ", $button_style);
     595
     596                    /**
     597                     * Padding Button
     598                     */
     599                    if($this->atts['button_padding_top']){
     600                        $this->css .= 'padding-top: '.$this->atts['button_padding_top'].';';
     601                    }
     602                    if($this->atts['button_padding_right']){
     603                        $this->css .= 'padding-right: '.$this->atts['button_padding_right'].';';
     604                    }
     605                    if($this->atts['button_padding_bottom']){
     606                        $this->css .= 'padding-bottom: '.$this->atts['button_padding_bottom'].';';
     607                    }
     608                    if($this->atts['button_padding_left']){
     609                        $this->css .= 'padding-left: '.$this->atts['button_padding_left'].';';
     610                    }
     611
     612            $this->css .= '}';
     613
     614            $this->css .= '#aio-carousel-'.$this->i.' .aio-single-button-owl {';
     615                /**
     616                * Margin Button
     617                */
     618                if($this->atts['button_margin_top']){
     619                    $this->css .= 'margin-top: '.$this->atts['button_margin_top'].';';
     620                }
     621                if($this->atts['button_margin_right']){
     622                    $this->css .= 'margin-right: '.$this->atts['button_margin_right'].';';
     623                }
     624                if($this->atts['button_margin_bottom']){
     625                    $this->css .= 'margin-bottom: '.$this->atts['button_margin_bottom'].';';
     626                }
     627                if($this->atts['button_margin_left']){
     628                    $this->css .= 'margin-left: '.$this->atts['button_margin_left'].';';
     629                }
     630            $this->css .= '}';
     631
    390632           
    391633           
     
    395637             * Don't change it.
    396638             */
    397             $this->output_css .= '';
    398             $this->output_css .= "\n" . $this->css;
    399 
    400             /**
    401              * var $file indicate the file where the css will be write
    402              * Chenge it if you want a custom stylesheet
    403              */
    404             $file = fopen(PLUGIN_PATH . 'assets/css/public/aio-post-carousel.css',"w");
    405             fwrite($file,'/* Aio Credit Css generated from aio_credit_css_generator method in aio_credit_class */' . $this->output_css);
    406             fclose($file);
    407 
    408         }
    409 
    410         function load_stylesheet_on_frontend() {
    411             /**
    412              * Load script in frontend
    413              */
    414             wp_register_style( 'aio-post-carousel-style', PLUGIN_URL.'assets/css/public/aio-post-carousel.css');
    415             wp_enqueue_style( 'aio-post-carousel-style' );
     639            echo '<style>'.$this->css.'</style>';
     640
    416641        }
    417642
Note: See TracChangeset for help on using the changeset viewer.