File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,33 @@ protected function _register_controls() {
401401 ],
402402 ]
403403 );
404+
405+ $ this ->add_control (
406+ 'buttongroup_btns_align ' ,
407+ [
408+ 'label ' => __ ( 'Alignment ' , 'mighty ' ),
409+ 'type ' => \Elementor \Controls_Manager::CHOOSE ,
410+ 'options ' => [
411+ 'left ' => [
412+ 'title ' => __ ( 'Left ' , 'mighty ' ),
413+ 'icon ' => 'fa fa-align-left ' ,
414+ ],
415+ 'center ' => [
416+ 'title ' => __ ( 'Center ' , 'mighty ' ),
417+ 'icon ' => 'fa fa-align-center ' ,
418+ ],
419+ 'right ' => [
420+ 'title ' => __ ( 'Right ' , 'mighty ' ),
421+ 'icon ' => 'fa fa-align-right ' ,
422+ ],
423+ 'justify ' => [
424+ 'title ' => __ ( 'Justify ' , 'mighty ' ),
425+ 'icon ' => 'fa fa-align-justify ' ,
426+ ]
427+ ],
428+ 'default ' => 'center ' ,
429+ ]
430+ );
404431
405432 $ this ->end_controls_section ();
406433 }
@@ -412,7 +439,7 @@ protected function render() {
412439 return ;
413440 }
414441
415- echo '<div class="mighty-buttongroup"> ' ;
442+ echo '<div class="mighty-buttongroup mt-btng-align- ' . $ settings [ ' buttongroup_btns_align ' ] . ' "> ' ;
416443
417444 foreach ( $ settings ['mt_buttongroup_btns ' ] as $ btngrp ) :
418445
You can’t perform that action at this time.
0 commit comments