entry->longdate; $headline = $news->entry->headline; $emailURL = 'mailto:?subject=' . $clientName . ' - ' . preg_replace('|"|', "%22", $headline) . '&body=' . $longdate . ' %0A '. preg_replace('|"|', "%22", $headline). ' %0A%0A ' . 'more information at: %0A%0A http://' . $clientURL . '/news?ID=' . $entryID; $targetURL = $clientURL . "/news?ID=" . $entryID; $twitterStatus = $targetURL; $bgColour = "#211b17"; break; case "review" : $review = simplexml_load_file("Content/reviews/entries/entry" . $entryID . ".xml"); // $reviewtext = ($review->entry->reviewtext); $reviewtext = "review from "; $author = $review->entry->author; $publication = $review->entry->publication; $emailURL = 'mailto:?subject=' . $clientName . ' - ' . $publication . '&body=' . $reviewtext . $author . ' %0A ' . $publication . ' %0A%0A ' . 'more information at: %0A%0A http://' . $clientURL . '/reviews?ID=' . $entryID; $targetURL = $clientURL . "/reviews?ID=" . $entryID; $twitterStatus = $clientURL . "/reviews?ID=" . $entryID; $bgColour = "#cdc3b9"; break; case "disc" : $discographyalbum = simplexml_load_file("Content/discography/entries/entry" . $entryID . ".xml"); $recordingartist = $discographyalbum->entry->albumartist; $recordingalbum = $discographyalbum->entry->albumtitle; $emailURL = 'mailto:?subject=' . preg_replace("|&|", "%26", $recordingartist) . ' - '. preg_replace("|&|", "%26", $recordingalbum) . '&body=' . preg_replace("|&|", "%26", $recordingartist) .' %0A '. preg_replace("|&|", "%26", $recordingalbum). ' %0A%0A ' . 'learn more about this album at: http://' . $clientURL . '/discography/?ID=' . $entryID; $targetURL = $clientURL . "/discography?ID=" . $entryID; $twitterStatus = $clientURL . "/discography?ID=" . $entryID; $bgColour = "#cdc3b9"; break; case "cal" : $calendar = simplexml_load_file("Content/calendar/entries/entry" . $entryID . ".xml"); $longdate = $calendar->entry->longdate; $event = $calendar->entry->eventname; $city = $calendar->entry->city; $emailURL = 'mailto:?subject=' . $clientName . ' at ' . $venue . '&body=' . $longdate . ' %0A%0A '. $event . ' %0A%0A ' . $city .' %0A%0A '. 'more information at: %0A%0A http://' . $clientURL . '/calendar?ID=' . $entryID; $targetURL = $clientURL . "/calendar?ID=" . $entryID; $twitterStatus = $clientName . ' in ' . $city . " - " . $targetURL; $bgColour = "#0b1e25"; break; case "audio" : $audiotrack = simplexml_load_file("Content/audio/entries/entry" . $entryID . ".xml"); $tracktitle = $audiotrack->entry->worktitle; $emailURL = 'mailto:?subject=' . $clientName . ' - '. $tracktitle . '&body=' . $clientName . ' %0A%0A '. $tracktitle. ' %0A%0A ' . 'hear this track at: http://' . $clientURL . '/multimedia/?ID=' . $entryID . '%26type=audio'; $targetURL = $clientURL . "/multimedia?ID=" . $entryID . "&type=audio"; $twitterStatus = $clientURL . "multimedia?type=audio%26ID=" . $entryID; $bgColour = "#2d051d"; break; case "video" : $videolisting = simplexml_load_file("Content/video/entries/entry" . $entryID . ".xml"); $cliptitle = $videolisting->entry->videotitle; $emailURL = 'mailto:?subject=' . $clientName . ' - '. $cliptitle . '&body=' . $clientName . ' %0A%0A '. $cliptitle. ' %0A%0A ' . 'watch this video at: http://' . $clientURL . '/multimedia/?ID=' . $entryID . '%26type=video'; $targetURL = $clientURL . "/multimedia?ID=" . $entryID . "&type=video"; $twitterStatus = $clientURL . "/multimedia?type=video%26ID=" . $entryID; $bgColour = "#2d051d"; break; } ?> <? echo $clientName ?> | <? echo $clientInstrument ?>