Created
August 21, 2019 19:09
-
-
Save pramithagayan/0e7fb13e544a6b30487274d874222043 to your computer and use it in GitHub Desktop.
1.2.2 Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/admin/blocks/slider.blade.php | |
@formField('repeater', ['type' => 'slider_item']) | |
@formField('input', [ | |
'name' => 'rotate_speed', | |
'label' => 'Rotate Speed', | |
'note' => 'Define in miliseconds' | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/admin/blocks/slider_item.blade.php | |
@formField('input', [ | |
'name' => 'slide_title', | |
'label' => 'Slide Title' | |
]) | |
@formField('input', [ | |
'name' => 'slide_caption', | |
'label' => 'Slide Caption' | |
]) | |
@formField('medias', [ | |
'name' => 'slider_image', | |
'label' => 'Image', | |
'note' => 'Minimum image width 1920px' | |
]) | |
@formField('input', [ | |
'name' => 'button_1_label', | |
'label' => 'Button 1 Label' | |
]) | |
@formField('input', [ | |
'name' => 'button_1_link', | |
'label' => 'Button 1 Link' | |
]) | |
@formField('input', [ | |
'name' => 'button_2_label', | |
'label' => 'Button 2 Label' | |
]) | |
@formField('input', [ | |
'name' => 'button_2_link', | |
'label' => 'Button 2 Link' | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/admin/blocks/solutions.blade.php | |
@formField('input', [ | |
'name' => 'main_title', | |
'label' => 'Main Title' | |
]) | |
@formField('input', [ | |
'name' => 'secondary_title', | |
'label' => 'Secondary Title' | |
]) | |
@formField('repeater', ['type' => 'solutions_item']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/admin/blocks/solutions_item.blade.php | |
@formField('input', [ | |
'name' => 'title', | |
'label' => 'Title' | |
]) | |
@formField('input', [ | |
'name' => 'link', | |
'label' => 'Link' | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/site/blocks/slider.blade.php | |
@foreach($block->children as $child) | |
<section class="vc_row py-5 fullheight d-flex flex-wrap align-items-center bg-cover bg-top" style="background-image: url({{ $child->image('slider_image','default') }});"> | |
<div class="container"> | |
<div class="row"> | |
<div | |
class="lqd-column col-md-10 col-md-offset-1 text-center mt-md-75" | |
data-custom-animations="true" | |
data-ca-options='{ "triggerHandler":"inview", "animationTarget":"all-childs", "duration":"1200", "delay":"150", "easing":"easeOutQuint", "direction":"forward", "initValues":{"translateY":60, "translateZ":-160, "rotateX":-84, "opacity":0}, "animations":{"translateY":0, "translateZ":0, "rotateX":0, "opacity":1} }' | |
> | |
@if( !empty($child->content['slide_title']) ) | |
<h2 | |
class="text-white mt-0 mb-30" | |
data-split-text="true" | |
data-split-options='{"type":"lines"}' | |
data-fittext="true" | |
data-fittext-options='{"compressor": 0.75, "maxFontSize": 60}'>{!! $child->content['slide_title'] !!} | |
</h2> | |
@endif | |
<div class="row"> | |
<div class="lqd-column col-md-10 col-md-offset-1 px-5"> | |
@if( !empty($child->content['slide_caption']) ) | |
<p class="font-size-24 lh-165 text-fade-white-07 px-md-7 mb-50">{!! $child->content['slide_caption'] !!}</p> | |
@endif | |
@if( !empty($child->content['button_1_label']) ) | |
<a href="#" target="_blank" class="btn btn-solid text-uppercase btn-md round border-thin font-size-13 text-uppercase ltr-sp-15 px-3 lh-175 py-1 mb-2"> | |
<span> | |
<span class="btn-txt">{!! $child->content['button_1_label'] !!}</span> | |
</span> | |
</a> | |
@endif | |
@if( !empty($child->content['button_2_label']) ) | |
<a href="#" target="_blank" class="btn btn-bordered text-uppercase btn-md round border-thin btn-icon-left btn-white-fade-border font-size-13 text-uppercase ltr-sp-15 px-3 lh-175 py-1 mb-2"> | |
<span> | |
<span class="btn-txt">{!! $child->content['button_2_label'] !!}</span> | |
</span> | |
</a> | |
@endif | |
</div><!-- /.lqd-column col-md-10 col-md-offset-1 --> | |
</div><!-- /.row --> | |
</div><!-- /.col-md-8 col-md-offset-2 --> | |
</div><!-- /.row --> | |
</div><!-- /.container --> | |
</section> | |
@endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///views/site/blocks/solutions.blade.php | |
<section class="vc_row pt-20 pb-20 bg-primary"> | |
<div class="container"> | |
<div class="row push-up"> | |
<div class="col-md-11 col-md-offset-1"> | |
<h2 class="mt-0 mb-0 font-size-20 text-white text-center text-uppercase mr-9">{!! $block->input('secondary_title') !!}</h2> | |
</div><!-- /.titlebar-col --> | |
</div><!-- /.row --> | |
<div class="row"> | |
<div class="col-md-7"> | |
<h2 class="mt-0 mt-md-2 mb-md-0 font-size-30 text-white text-uppercase">{!! $block->input('main_title') !!}</h2> | |
</div><!-- /.titlebar-col --> | |
<div class="col-md-5"> | |
<div class="contact-form contact-form-inputs-filled contact-form-button-block font-size-20 mb-0"> | |
<select id="solutions-switcher" class="mb-0 px-3 text-primary"> | |
@foreach($block->children as $child) | |
<option value="{!! $child->content['link'] !!}">{!! $child->content['title'] !!}</option> | |
@endforeach | |
</select> | |
</div> | |
</div><!-- /.titlebar-col --> | |
</div><!-- /.row --> | |
</div><!-- /.container --> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment