Warning: Constant SEO_LINKS_API_ENDPOINT already defined in /www/wwwroot/fni.gov.mz/wp-content/plugins/wordpress-plugin/wordpress-plugin.php on line 10
HEX
HEX
Server: Apache
System: Linux paginas.localdomain 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64
User: www (1002)
PHP: 8.0.11
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/fni.gov.mz/wp-content/themes/Newspaper/parts/footer/td_footer_extra.php
<?php
/*  ----------------------------------------------------------------------------
    footer predefined content for column 1  FOOTER LOGO + TEXT
 */


if (td_util::get_option('tds_footer_column_1') != 'no') {
    $td_footer_logo = td_util::get_option('tds_footer_logo_upload');
    $td_footer_retina_logo = td_util::get_option('tds_footer_retina_logo_upload');
    $td_top_logo = td_util::get_option('tds_logo_upload');
    $td_top_retina_logo = td_util::get_option('tds_logo_upload_r');
    $td_footer_text = td_util::parse_footer_texts(td_util::get_option('tds_footer_text'));
    $td_footer_email = td_util::get_option('tds_footer_email');
    $td_logo_alt = td_util::get_option('tds_logo_alt');
    $td_footer_logo_alt = td_util::get_option('tds_footer_logo_alt');
    $td_logo_title = td_util::get_option('tds_logo_title');
    $td_footer_logo_title = td_util::get_option('tds_footer_logo_title');

    // if there's no footer logo alt set use the alt from the header logo
    if (empty($td_footer_logo_alt)) {
        $td_footer_logo_alt = $td_logo_alt;
    }

    // if there's no footer logo title set use the title from the header logo
    if (empty($td_footer_logo_title)) {
        $td_footer_logo_title = $td_logo_title;
    }

    $retina_footer_logo_width = '';
    if (!empty($td_footer_retina_logo)) {
        // retina logo width of the normal logo
        $retina_footer_logo_id = attachment_url_to_postid($td_footer_logo);

        if ($retina_footer_logo_id !== 0) {
            $img_properties = wp_get_attachment_image_src($retina_footer_logo_id, 'full');
            if ($img_properties !== false && !empty($img_properties[1])) {
                $retina_footer_logo_width = $img_properties[1];
            }
        }
    }

    $buffy = '';

    $buffy .= '<div class="td-footer-info">';
    $buffy .= '<div class="footer-logo-wrap">';

    if (!empty($td_footer_logo)) { // if have footer logo
        if (empty($td_footer_retina_logo)) { // if don't have a retina footer logo load the normal logo
            $buffy .= '<a href="' . esc_url(home_url( '/' )) . '"><img src="' . $td_footer_logo . '" alt="' . $td_footer_logo_alt . '" title="' . $td_footer_logo_title . '"/></a>';
        } else {
            $buffy .= '<a href="' . esc_url(home_url( '/' )) . '"><img class="td-retina-data" src="' . $td_footer_logo . '" data-retina="' . esc_attr($td_footer_retina_logo) . '" alt="' . $td_footer_logo_alt . '" title="' . $td_footer_logo_title . '" width="' . esc_attr($retina_footer_logo_width) . '" /></a>';
        }
    } else { // if you don't have a footer logo load the top logo
        if (empty($td_top_retina_logo)) {
            $buffy .= '<a href="' . esc_url(home_url( '/' )) . '"><img src="' . $td_top_logo . '" alt="' . $td_logo_alt . '" title="' . $td_logo_title . '"/></a>';
        } else {
            $buffy .= '<a href="' . esc_url(home_url( '/' )) . '"><img class="td-retina-data" src="' . $td_top_logo . '" data-retina="' . esc_attr($td_top_retina_logo) . '" alt="' . $td_logo_alt . '" title="' . $td_logo_title . '" width="' . esc_attr($retina_footer_logo_width) . '" /></a>';
        }
    }

    $buffy .= '</div>';

    $buffy .= '<div class="footer-text-wrap">';
    $buffy .= stripcslashes($td_footer_text);

    if (!empty($td_footer_email)) {
        $buffy .= '<div class="footer-email-wrap">';
        $buffy .= __td('Contact us', TD_THEME_NAME) . ': <a href="mailto:' . $td_footer_email  . '">' . $td_footer_email . '</a>';
        $buffy .= '</div>';
    }
    $buffy .= '</div>';

    $buffy .= '<div class="footer-social-wrap td-social-style-2">';
    if(td_util::get_option('tds_footer_social') != 'no') {
        //get the socials that are set by user
        $td_get_social_network = td_options::get_array('td_social_networks');

        if(!empty($td_get_social_network)) {
            foreach($td_get_social_network as $social_id => $social_link) {
                if(!empty($social_link)) {
                    $buffy .= td_social_icons::get_icon($social_link, $social_id, true);
                }
            }
        }
    }
    $buffy .= '</div>';
    $buffy .= '</div>';

    echo $buffy;
}