. * * Followed the following tutorials * http://wpengineer.com/2076/add-custom-field-attachment-in-wordpress/ * http://bueltge.de/eigene-felder-dateiverwaltung-wordpress/1226/ (same like above, but in German) * * */ //avoid direct calls to this file if (!function_exists('add_action')) { header('Status: 403 Forbidden'); header('HTTP/1.1 403 Forbidden'); exit(); } define('ISCVERSION', '1.3.4'); define('ISCNAME', 'Image Source Control'); define('ISCTEXTDOMAIN', 'isc'); define('ISCDIR', basename(dirname(__FILE__))); define('ISCPATH', plugin_dir_path(__FILE__)); define('WEBGILDE', 'http://webgilde.com/en/image-source-control'); load_plugin_textdomain(ISCTEXTDOMAIN, false, dirname(plugin_basename(__FILE__)) . '/languages/'); require_once(ISCPATH . '/isc.class.php'); global $my_isc; $my_isc = new ISC_CLASS(); function isc_list($post_id = 0) { global $my_isc; echo $my_isc->list_post_attachments_with_sources($post_id); }