Settings'; return $links; } } if (!function_exists('adram_scripts')) { function adram_scripts() { echo ''; if (is_active_widget(false, false, "adram_widget")) { adram_log(['Event' => 'DETERMINE OUTPUT METHOD', 'Output method' => 'Widget']); } else { adram_log(['Event' => 'DETERMINE OUTPUT METHOD', 'Output method' => 'Footer']); $urls = adram_get_placement_urls(); adram_log(['Event' => 'PLACE SCRIPTS ON PAGE', 'Current Page' => adram_get_current_url(), 'URLS' => $urls]); $script_name = ''; foreach ($urls as $key => $url) { $script_name = 'adram-placement-script-'.$key; wp_register_script($script_name, $url, [], null, true); wp_enqueue_script($script_name); } } } } if (is_admin()) { require_once plugin_dir_path(__FILE__) . 'admin/adram-admin.php'; } else { adram_log(['Event' => 'PLUGIN INIT '.ADRAM_PLUGIN_NAME, 'Version' => '0.4.1']); }