diff --git a/camayak-admin-notices.php b/camayak-admin-notices.php index 4ed2c95..009a3ce 100644 --- a/camayak-admin-notices.php +++ b/camayak-admin-notices.php @@ -31,12 +31,24 @@ function admin_post_notices( ) { $cmyk_org_slug = get_post_meta( $post_ID, $this->org_field_name, true ); if ( ! empty( $cmyk_org_slug ) ) { + $camayak_url = 'https://' . $cmyk_org_slug . '.camayak.com/#/packages/' . $cmyk_package_uuid; + $camayak_link_text = 'Edit this assignment in Camayak'; + $message = 'This post is being produced and archived in Camayak. ' . $camayak_link_text . ''; // display a warning message with link to assignment overview page in Camayak echo '

This post is being produced and archived in Camayak. Click here to edit this assignment in Camayak

'; + echo '" style="float: left; margin-right: 8px" alt="" />' . $message . '

'; + echo ''; // hide these custom fields from the UI to prevent tampering add_filter( 'is_protected_meta', array( $this, 'is_protected_meta' ), 1, 2 ); @@ -45,4 +57,4 @@ function admin_post_notices( ) { } } } -} \ No newline at end of file +}