MrGreensWorkshop/MrGreen-JekyllTheme

The type of sliding box animation could be changed from its init function

MrGreensWorkshop opened this issue · 1 comments

Is this enhancement or feature is related to a problem?

SlidingMsgBox were used for language_translation_offer_box feature and cookie consent box.
However, the slide type is set as shown below. (It looks like it's only used for language_translation_offer_box)

{%- capture sliding_msg_box_html -%}
<div class="slideBox {{ site.data.conf.main.language_translation_offer_slide }}">
<a class="close-button" href="javascript:void(0);"><i class="fa-fw fa fa-times"></i></a>
</div>
{%- endcapture -%}

This could be easily misunderstood, as I did before. #135  

Describe the solution you'd like

It may be possible to correct the misconfiguration by setting the slide type of the sliding box in its init function.

With this, we can individually set the slide type for both the language offer box and the cookie consent setting box at _data/conf/main.yml.

Describe alternatives you've considered

none

Additional context

none

done with PR #137.