function ct_apex_social_icons_output($source)
    {
        // get social sites array
        $social_sites = ct_apex_social_array();
        // store the site name and url
        foreach ($social_sites as $social_site => $profile) {
            if ($source == 'header') {
                if (strlen(get_theme_mod($social_site)) > 0) {
                    $active_sites[$social_site] = $social_site;
                }
            } elseif ($source == 'author') {
                if (strlen(get_the_author_meta($profile)) > 0) {
                    $active_sites[$profile] = $social_site;
                }
            }
        }
        // for each active social site, add it as a list item
        if (!empty($active_sites)) {
            echo "<ul class='social-media-icons'>";
            foreach ($active_sites as $key => $active_site) {
                if ($active_site == 'email') {
                    ?>
                    <li>
                        <a class="email" target="_blank" href="mailto:<?php 
                    echo antispambot(is_email(ct_apex_get_social_url($source, $key)));
                    ?>
">
                            <i class="fa fa-envelope" title="<?php 
                    _e('email icon', 'apex');
                    ?>
"></i>
                        </a>
                    </li>
                <?php 
                } else {
                    ?>
                    <li>
                        <a class="<?php 
                    echo $active_site;
                    ?>
" target="_blank" href="<?php 
                    echo esc_url(ct_apex_get_social_url($source, $key));
                    ?>
">
                            <i class="fa fa-<?php 
                    echo esc_attr($active_site);
                    ?>
" title="<?php 
                    printf(__('%s icon', 'apex'), $active_site);
                    ?>
"></i>
                        </a>
                    </li>
                <?php 
                }
            }
            echo "</ul>";
        }
    }
     public function render_content()
     {
         $link = 'https://www.competethemes.com/apex-pro/';
         echo "<p>" . sprintf(__('Activate the <a target="_blank" href="%s">Apex Pro Plugin</a> to change your layout.', 'apex'), $link) . "</p>";
     }
 }
 /***** Logo Upload *****/
 // section
 $wp_customize->add_section('ct_apex_logo_upload', array('title' => __('Logo', 'apex'), 'priority' => 30, 'capability' => 'edit_theme_options'));
 // setting
 $wp_customize->add_setting('logo_upload', array('default' => '', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw'));
 // control
 $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'logo_image', array('label' => __('Upload custom logo.', 'apex'), 'section' => 'ct_apex_logo_upload', 'settings' => 'logo_upload')));
 /***** Social Media Icons *****/
 // get the social sites array
 $social_sites = ct_apex_social_array();
 // set a priority used to order the social sites
 $priority = 5;
 // section
 $wp_customize->add_section('ct_apex_social_media_icons', array('title' => __('Social Media Icons', 'apex'), 'priority' => 35));
 // create a setting and control for each social site
 foreach ($social_sites as $social_site => $value) {
     // if email icon
     if ($social_site == 'email') {
         // setting
         $wp_customize->add_setting("{$social_site}", array('type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ct_apex_sanitize_email'));
         // control
         $wp_customize->add_control($social_site, array('label' => $social_site . ' ' . __('address:', 'apex'), 'section' => 'ct_apex_social_media_icons', 'priority' => $priority));
     } else {
         // setting
         $wp_customize->add_setting($social_site, array('type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw'));