themovation / th-widget-pack

Theme Widget Pack
19 stars 6 forks source link

Flex Slider #56

Closed ryanlabelle closed 7 years ago

ryanlabelle commented 7 years ago

Slider We have old code that you can reference and even resuse under themes/westwood/templates/meta-slider-flex.php

I've added the same code to the tpl file under th-flex-slider widget folder

Notes We used to store global slider settings such as easing, smooth height, sliderspeed under the theme options in option tree. Now we will be providing those options under the Slider Repeater Field. Same way that Elementor Pro does this. There is logic for this in the template file meta-slider-flex.php

We set padding using inline styling above the main-flex-slider div but you can do as you wish. What I did in meta-slider-flex.php is a preloop to get all the padding settings and set them before the slider list item.

Depending on the options, selected we have a few different classes that need to go into the slider-bg div. You can see these in meta-slider-flex.php line 199, $content_align, $form_border, and $text_contrast_class.

The form and calendar output in the template are there for display, they will be output by the shortcode that is added to the slider options in the page builder. We allow the booked calendar and formidable and any custom shortcodes too.

Here are some live references:

Also, we forgot to add a slider down arrow or anchor. You’ll notice this on our existing slider, http://demo.themovation.com/stratus/home-product/

We have an option for this in our current meta box but it hasn’t been added to the page slider widget yet. Can you please add it? I’m thinking it should go at the bottom, below Alignment and Styling, perhaps just a text field called anchor, where they would add something like #aboutus

Thanks Adi

adiraoco commented 7 years ago

@ryanlabelle i'll get on this next. I"ll let you know if I have any doubts