/** * Find out if we need to add the vendor files * * @since 1.0.0 */ public function public_vendors() { // Include the right file include plugin_dir_path(dirname(__FILE__)) . 'public/partials/classes/content.php'; // Create the vendor options $options = array('include_bootstrap' => (bool) get_option('scf_include_bootstrap', false), 'include_fontawesome' => (bool) get_option('scf_include_bootstrap', false), 'include_recaptcha' => (bool) get_option('scf_validation_enable', false) && (bool) get_option('scf_include_recaptcha', false) && get_option('scf_validation', false) === 'recaptcha'); // Create the class $contentClass = new scf_Content(); // Enqueue the styles and scripts $contentClass->setVendors($options); // Destroy the object unset($contentClass); }