library/Controller/BaseController.php
public function customizerFooter()
    {
        if (get_field('footer_layout', 'options') !== 'customizer') {
            return;
        }

        $customizerFooter = new \Municipio\Customizer\Source\CustomizerRepeaterInput('customizer__footer_sections', 'options', 'id');

        $classes = array();
        $classes[] = 's-site-footer';
        $classes[] = 'hidden-print';
        $classes[] = (get_field('scroll_elevator_enabled', 'option')) ? 'scroll-elevator-toggle' : '';

        $this->data['footerLayout']['template'] = 'customizer';
        $this->data['footerLayout']['classes'] = implode(' ', $classes);

        if ($customizerFooter->hasItems) {
            foreach ($customizerFooter->repeater as $footerData) {
                $this->data['footerSections'][] = new \Municipio\Customizer\Footer($footerData);
            }
        }
    }
public function customizerFooter()
    {
        if (get_field('footer_layout', 'options') !== 'customizer') {
            return;
        }

        $customizerFooter = new \Municipio\Customizer\Source\CustomizerRepeaterInput('customizer__footer_sections', 'options', 'id');

        $classes = array();
        $classes[] = 's-site-footer';
        $classes[] = 'hidden-print';
        $classes[] = (get_field('scroll_elevator_enabled', 'option')) ? 'scroll-elevator-toggle' : '';

        $this->data['footerLayout']['template'] = 'customizer';
        $this->data['footerLayout']['classes'] = implode(' ', $classes);

        if ($customizerFooter->hasItems) {
            foreach ($customizerFooter->repeater as $footerData) {
                $this->data['footerSections'][] = new \Municipio\Customizer\Footer($footerData);
            }
        }
    }
public function customizerFooter ( ) { if ( get_field ( 'footer_layout' , 'options' ) !== 'customizer' ) { return ; } $ customizerFooter = new \ Municipio \ Customizer \ Source \ CustomizerRepeaterInput ( 'customizer__footer_sections' , 'options' , 'id' ) ; $ classes = array ( ) ; $ classes [ ] = 's-site-footer' ; $ classes [ ] = 'hidden-print' ; $ classes [ ] = ( get_field ( 'scroll_elevator_enabled' , 'option' ) ) ? 'scroll-elevator-toggle' : '' ; $ this -> data [ 'footerLayout' ] [ 'template' ] = 'customizer' ; $ this -> data [ 'footerLayout' ] [ 'classes' ] = implode ( ' ' , $ classes ) ; if ( $ customizerFooter -> hasItems ) { foreach ( $ customizerFooter -> repeater as $ footerData ) { $ this -> data [ 'footerSections' ] [ ] = new \ Municipio \ Customizer \ Footer ( $ footerData ) ; } } }
Sends necessary data to the view for customizer footer
@return void
Sends necessary data to the view for customizer footer