HEX
Server: Apache/2.4.57 (Debian)
System: Linux web-server-k8s-e92jnr3j-6f99bff6b6-rp2wg 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64
User: apache (48)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/sites/1250.info/wp-content/themes/blogus/inc/ansar/hooks/hook-footer-section.php
<?php if (!function_exists('blogus_footer_social_section')) :
/**
 *  Header
 *
 * @since Blogus pro
 *
 */
function blogus_footer_social_section()
{ 

  $footer_social_icon_enable = get_theme_mod('footer_social_icon_enable','1');
                   if($footer_social_icon_enable == 1)
                  {
                ?>
            <div class="col-md-6">
              <ul class="bs-social justify-content-center justify-content-md-end">
                <?php
                  $social_icons = get_theme_mod( 'blogus_footer_social_icons', blogus_get_social_icon_default() );
                  $social_icons = json_decode( $social_icons );
                  if ( $social_icons != '' ) {
                    foreach ( $social_icons as $social_item ) {
                      $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'blogus_translate_single_string', $social_item->icon_value, 'Footer section' ) : '';
                     
                      $open_new_tab = ! empty( $social_item->open_new_tab ) ? apply_filters( 'blogus_translate_single_string', $social_item->open_new_tab, 'Footer section' ) : '';
                     
           
                      $social_link = ! empty( $social_item->link ) ? apply_filters( 'blogus_translate_single_string', $social_item->link, 'Footer section' ) : '';
                      ?>
                      <li><a <?php if ($open_new_tab == 'yes') {
                                  echo 'target="_blank"';
                              } ?> href="<?php echo esc_url( $social_link ); ?>"><i class="<?php echo esc_attr( $social_icon ); ?>"></i></a></li>
                      <?php
                    }
                  }
                ?>
              </ul>
            </div>
  <?php }
  }
endif;
add_action('blogus_action_footer_social_section', 'blogus_footer_social_section', 2);