public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/frontend/functions.php
/**
 * If the settings permit, generate the powered by link for WP Courseware.
 *
 * @since 1.0.0
 *
 * @return string The HTML for rendering the powered by link.
 */
If the settings permit, generate the powered by link for WP Courseware.

@return string The HTML for rendering the powered by link.
If the settings permit generate the powered by link for WP Courseware . @return string The HTML for rendering the powered by link .
function WPCW_generatedPoweredByLink() {
	$show_powered_by = wpcw()->settings->get_setting( 'show_powered_by' );
	if ( $show_powered_by == 'hide_link' || $show_powered_by == 'no' || ! $show_powered_by ) {
		return false;
	}
	$url          = 'https://flyplugins.com/?ref=1';
	$nofollow     = false;
	$affiliate_id = wpcw()->settings->get_setting( 'affiliate_id' );
	if ( $affiliate_id ) {
		$url      = str_replace( 'XXX', $affiliate_id, 'https://flyplugins.com/?ref=XXX' );
		$nofollow = 'rel="nofollow"';
	}
	return sprintf( '<div class="wpcw_powered_by">%s <a href="%s" %s target="_blank">%s</a></div>',
		__( 'Powered By', 'wp-courseware' ),
		$url,
		$nofollow,
		__( 'WP Courseware', 'wp-courseware' )
	);
}
function WPCW_generatedPoweredByLink ( ) { $ show_powered_by = wpcw ( ) -> settings -> get_setting ( 'show_powered_by' ) ; if ( $ show_powered_by == 'hide_link' || $ show_powered_by == 'no' || ! $ show_powered_by ) { return false ; } $ url = 'https://flyplugins.com/?ref=1' ; $ nofollow = false ; $ affiliate_id = wpcw ( ) -> settings -> get_setting ( 'affiliate_id' ) ; if ( $ affiliate_id ) { $ url = str_replace ( 'XXX' , $ affiliate_id , 'https://flyplugins.com/?ref=XXX' ) ; $ nofollow = 'rel="nofollow"' ; } return sprintf ( '<div class="wpcw_powered_by">%s <a href="%s" %s target="_blank">%s</a></div>' , __ ( 'Powered By' , 'wp-courseware' ) , $ url , $ nofollow , __ ( 'WP Courseware' , 'wp-courseware' ) ) ; }
If the settings permit, generate the powered by link for WP Courseware.
If the settings permit generate the powered by link for WP Courseware .
// Show the credit link by default.