403Webshell
Server IP : 91.237.33.134  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux webko.zupo.si 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : sipek_instalacije ( 10045)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/sipek-instalacije.si/httpdocs/wp-content/themes/rife/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/sipek-instalacije.si/httpdocs/wp-content/themes/rife//content-link.php
<?php
/**
 * Template used for displaying content of "link" format posts on archive page.
 * It is used only on page with posts list: blog, archive, search
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
} // Exit if accessed directly

// The Regular Expression filter
$reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
$has_url =  false;

//uses post content as link, and title as link text
$content = get_the_content();

// Check if there is a url in the text
if(preg_match($reg_exUrl, $content, $url)) {
    $content = $url[0];
    $has_url = true;
}

$_link = $has_url ? $content : apply_filters( 'the_permalink', get_permalink() );

?>

<div class="formatter">
    <?php apollo13framework_post_meta_data(); ?>
    <h2 class="post-title"<?php apollo13framework_schema_args('headline'); ?>>
        <a href="<?php echo esc_url($_link); ?>"<?php apollo13framework_schema_args('url'); ?>><?php the_title(); ?><i class="post-format-link-icon fa fa-external-link"></i></a>
    </h2>
    <span class="cite-author"><?php echo esc_url($_link); ?></span>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit