Source

SAM Song Info / application / views / entry_view.php

<?php header('Content-type: text/html; charset=UTF-8'); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo facebook_xmlns()?>>
	<head>
		<title>SAM Song Info Poster</title>

		<style type="text/css">
			@CHARSET "ISO-8859-1";

			body {
				background-color: #fff;
				margin: 20px 40px;
				font-family: Lucida Grande, Verdana, Sans-serif;
				font-size: 100%;
				color: #4F5155;
			}

			h1 {
				color: #767676;
				font-size: 1.6em;
				font-weight: bold;
				letter-spacing: -1px;
				margin-top: 0;
			}

			h2 {
				color: #767676;
				background-color: transparent;
				/*border-bottom: 2px solid #D0D0D0;*/
				font-size: 1.2em;
				font-weight: bold;
				padding: 5px 0 0 0;
				margin: 0;
			}

			a {
				color: #003399;
				background-color: transparent;
				font-weight: normal;
			}

			code {
				font-family: Monaco, Verdana, Sans-serif;
				font-size: 0.75em;
				background-color: #f9f9f9;
				border: 1px solid #D0D0D0;
				color: #002166;
				display: block;
				margin: 14px 0 14px 0;
				padding: 12px 10px 12px 10px;
			}
			
			fieldset.nostyle {
				display: block;
				border:  0 none;
				margin-left: 0;
				padding-left: 0;
				width: 100%;
			}
			
			fieldset.nostyle legend {
				float: left;
				font-size: 100%;
				min-width: 10%;
			}
			
			fieldset.nostyle label {
				max-width: 90%;
			}
			
			fieldset.nostyle p {
				margin: 0;
			}

			.orange {
				color: #F27B36;
			}

			.section
			{
				margin: 24px 0 2px 0;
				border-bottom: 4px solid #D0D0D0;
			}

			.borderless
			{
				border: 0;
			}

			.credits
			{
				font-size: 0.5em;
				text-align: center;
			}

			.logout,
			.logout:link,
			.logout:visited,
			.logout:active
			{
				text-decoration: none;
				font-family: Lucida Grande, Verdana, Sans-serif;
				font-size: 100%;
				font-weight: bold;
				float: right;
			}

			.logout:hover
			{
				text-decoration: underline;
			}

			.like
			{
				position: relative;
				bottom: 7px;
			}

			.facepile
			{
				position: relative;
				bottom: 4px;
			}
		</style>
		<link rel="shortcut icon" href="<?php echo $base?>favicon.ico" />
		<?php if (!empty($opengraph)):?>
			<?php echo facebook_opengraph_meta($opengraph);?>
		<?php endif;?>
	</head>
	<body>
		<div class="section">
			<img src="<?php echo $base?>images/sam_64.png" />
			<a class="logout orange" href="/logout">Logout</a>
			<h1>SAM <span class="orange">Broadcaster</span> Song Info Poster</h1>
			<p>
				Song Info Poster connects your SAM to popular social networks Facebook, Twitter and soon MySpace.<br />
				The basic functionality included in both networks is sending messages to either or both platforms,<br />
				mentioning Artist and Title that just played on your station.
			</p>
			<p>
				Default features for all networks include standard texts you can attach to the plain Song Info<br />
				and automatic detection of Ads, Liners etc. which will not be announced to your followers.
			</p>
			<p>
				For Network specific features, registration and settings please see the corresponding section below.
			</p>
		</div>

		<div class="section">
			<img src="<?php echo $base?>images/twitter_64.png" />
			<h2>Twitter</h2>
			<p>
				Brilliant in simplicity &mdash; mere 140 characters that mean the world. <br/>
				The service supports static text &ldquo;glued&rdquo; to the front and back of the default "Artist - Title" message.
			</p>
			<a class="login" href="twitter/<?php echo $twitter_loggedin ? 'settings' : 'login'?>">
				<img src="<?php echo $base?>images/<?php echo $twitter_loggedin ? 'settings' : 'login'?>_32TW.png" />
			</a>
		</div>

		<div class="section">
			<img src="<?php echo $base?>images/facebook_64.png" />
			<h2>Facebook</h2>
			<p>
				Millions of friends just a click away &mdash; the biggest social network today, even beating ex-leader MySpace.<br />
				This networks feature set is optionally extended by cover art from SAM's Web Feature (PHP/HTML),<br />
				a link to your station's homepage including a multilined description of it and a fully customizable Action link.<br />
				All the possibilities are rounded off with an online settings dialog that remembers your preferences<br />
				and live preview of how the wall post would look with your current settings.
			</p>

		<?php if ($facebook_loggedin): ?>
			<span class="login">
				<a href="facebook/settings"><img src="<?php echo $base?>images/settings_32.png" /></a>
				<fb:like class="like"></fb:like>
			</span>
		<?php else: ?>
			<span class="login">
				<a href="facebook/login"><img src="<?php echo $base?>images/login_32.png" /></a>
				<fb:facepile class="facepile"></fb:facepile>
			</span>
		<?php endif; ?>
		</div>

		<div class="section">
			<img src="<?php echo $base?>images/myspace_64_soon.png" />
			<h2>MySpace</h2>
			<p>
				Coming soon to a SAM near you.
			</p>
		</div>
		
		<div id="fb-root"></div>
		<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
		<script type="text/javascript">
			FB.init({appId: '<?php echo facebook_app_id()?>', status: true, cookie: true, xfbml: true});
			FB.Event.subscribe('auth.login', function(response) {
				window.location.reload();
			});
		</script>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.