' . $noab . '
';
$retval .= '' . $ab . '
';
// If we have custom user-defined wrappers for this shortcode, append them.
if( !empty( $res['user_defined_selectors'] ) ) {
// Turn string into array
$uds = array_map( 'trim', explode( ';', $res['user_defined_selectors'] ) );
$uds_string = json_encode( $uds );
// Output JavaScript to add the selectors to the ABDSettings variable
ob_start();
?>
';
}
else {
// Uh-Oh. This means the query failed, the shortcode is for a different multisite site,
// or, more likely, their is no shortcode with that ID in the database.
// Let's return a generic error message.
$retval = '';
$retval = '
Ad Blocking Detector Error
No shortcode with that ID# ( ' . $id . ').
';
$retval .= '
' . $ab . '
';
}
return $retval;
}
} // end class
} // end if( !class_exists( ...