lib/ThemeOption/Menu/Social.php
/**
         *
         * List off all social share providers
         *
         * @param SectionInterface $section
         *
         * @access protected
         * @return array section with on/off buttons for providers
         */
List off all social share providers
@param SectionInterface $section

@access protected
@return array section with on/off buttons for providers
List off all social share providers @param SectionInterface $section @access protected @return array section with on / off buttons for providers
protected function shareProviders( SectionInterface $section ) {
            $providers = silverwp_get_social_providers();
            foreach ( $providers as $provider ) {
                if ( $provider['share_url'] != '' ) {
                    $name = 'social_share_providers[' . sanitize_title( $provider['name'] ) . ']';
                    $toggle = new Toggle( $name );
                    $toggle->setLabel( ucfirst( $provider['name'] ) );
                    $section->addControl( $toggle );
                }
            }
        }
protected function shareProviders ( SectionInterface $ section ) { $ providers = silverwp_get_social_providers ( ) ; foreach ( $ providers as $ provider ) { if ( $ provider [ 'share_url' ] != '' ) { $ name = 'social_share_providers[' . sanitize_title ( $ provider [ 'name' ] ) . ']' ; $ toggle = new Toggle ( $ name ) ; $ toggle -> setLabel ( ucfirst ( $ provider [ 'name' ] ) ) ; $ section -> addControl ( $ toggle ) ; } } }
List off all social share providers
 @param SectionInterface $section
List off all social share providers @param SectionInterface $section