HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/Gosuryaid/wp/wp-content/themes/my-listing/partials/header/call-to-action.php
<?php

$label = c27()->get_setting( 'header_call_to_action_label' );
$links_to = c27()->get_setting( 'header_call_to_action_links_to' );

if ( is_user_logged_in() && ! \MyListing\Src\User_Roles\user_can_add_listings() ) {
	return;
}

if ( ! ( $data['show_call_to_action'] && $label && $links_to ) ) {
	return;
}

?>
<div class="header-button">
	<a href="<?php echo esc_url( $links_to ) ?>" class="buttons button-<?php echo $data['skin'] == 'light' ? '2' : '1' ?>">
		<?php echo do_shortcode( $label ) ?>
	</a>
</div>