Пример #1
0
							<ul> 
								<li><a href="<?php 
getFacebook();
?>
" target="_blank"><img src="images/facebook-logo-3.png" alt="Facebook link" height="35" width="35"></a> </li>
								<li><a href="<?php 
getTwitter();
?>
" target="_blank"><img src="images/Twitter-logo-2012.png" alt="Twitter link" height="25" width="30"></a> </li>
								<li><a href="<?php 
getMixcloud();
?>
" target="_blank" ><img src="images/mixcloud.png" alt="Mixcloud link" height="33" width="33"></a> </li>
							</ul>
							""<?php 
getTagline();
?>
""
						</div>
					</div>		
					
					<div id ="chatBox">
					<!-- <noscript>Enable Javascript to get full functionality of this <br /></noscript><iframe src="http://rarefm.freeshoutbox.net/" height="170" width="357" frameborder="0"></iframe> -->
					<script id="cid0020000077817808107" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 365px;height: 200px;">{"handle":"rarefmstudio","arch":"js","styles":{"a":"343E4B","b":100,"c":"FFFFFF","d":"FFFFFF","k":"343E4B","l":"343E4B","m":"343E4B","n":"FFFFFF","q":"343E4B","r":100,"t":0,"usricon":0}}</script>					</div>

					<div id="cc_tunein">
						<div id="openStream">Open stream with your local media player</div>
						<ul>
							<li><a href="http://cp9.shoutcheap.com:2199/tunein/rarefmuc.pls"><img height="43px" width="43px align="absmiddle" src="images/ITunes_11_Logo.png" border="0" alt="Winamp, iTunes" title="Winamp, iTunes" /></a></li>
							<li><a href="http://cp9.shoutcheap.com:2199/tunein/rarefmuc.asx"><img height="50px" width="50px align="absmiddle" src="images/Windows_Media_Player12-Logo.png" border="0" alt="Windows Media Player" title="Windows Media Player" /></a></li>
							<li><a href="http://cp9.shoutcheap.com:2199/tunein/rarefmuc.ram"><img height="48px" width="48px align="absmiddle" src="images/RealPlayer-Logo.png" title="Real Player" /></a></li>
Пример #2
0
<?php

include_once "db.php";
include_once "dertyn.php";
$siteurl = getSiteUrl();
$tagline = getTagline();
$rewriteCheck = getrewriteCheck();
$id = $_GET['id'];
$numEntries = getIndexNum();
$pagenum = 1;
if ($rewriteCheck == 1) {
    $pid = getPid($id);
} else {
    $pid = $id;
}
if ($id) {
    $subject = getSubject($pid);
    $title = "{$subject} - {$sitename}";
    $description = getArticleDesc($pid);
} else {
    $title = $sitename;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php 
echo "{$title}";
?>
Пример #3
0
    while ($custom_query->have_posts()) {
        $custom_query->the_post();
        ?>
                	<div class="tile left animate<?php 
        if (!has_post_thumbnail()) {
            echo ' noImage';
        }
        ?>
" data-type="<?php 
        echo get_post_type($post->ID);
        ?>
">
                    <div class="inner">
                    <?php 
        if (has_post_thumbnail()) {
            echo "<div class='img-wrap'>" . get_the_post_thumbnail($post->ID, 'original') . getTagline(get_post_type($post->ID)) . "</div>";
        }
        ?>
                    	<div class="tile-copy animate">
                        	<h3><?php 
        the_title();
        ?>
</h3>
                            <?php 
        echo getTileCopy($post->ID, has_post_thumbnail());
        ?>
                    	</div><!-- end tile-copy -->
                        </div><!-- end inner -->
                	</div><!-- end tiles -->
				<?php 
    }
Пример #4
0
function showSettingsform()
{
    $realname = getRealName();
    $sitename = getSiteName();
    $tagline = getTagline();
    $rawsiteurl = getRawSiteUrl();
    $indexNum = getIndexNum();
    $rssNum = getRssNum();
    $rewriteCheck = getrewriteCheck();
    if ($rewriteCheck == 1) {
        $checked = "checked";
    } else {
        $checked = "";
    }
    echo "<p><b>general site settings:</b></p>";
    echo "<form action=\"";
    echo $_SERVER['PHP_SELF'];
    echo "\"";
    echo " method=\"post\">";
    echo "user: <input type=\"text\" name=\"user\"><br />";
    echo "pass: <input type=\"password\" name=\"pass\"><br />";
    echo "real name: <input type=\"text\" name=\"realname\" value=\"" . $realname . "\"><br />";
    echo "name of site: <input type=\"text\" name=\"site\" value=\"" . $sitename . "\"><br />";
    echo "tagline for site: <input type=\"text\" name=\"tagline\" value=\"" . $tagline . "\"><br />";
    echo "base url (without http://): <input type=\"text\" name=\"url\" value=\"" . $rawsiteurl . "\"><br />";
    echo "number of entries to display per page: <input type=\"text\" name=\"index\" value=\"" . $indexNum . "\"><br />";
    echo "number of entries to display in rss feed: <input type=\"text\" name=\"rss\" value=\"" . $rssNum . "\"><br />";
    echo "use mod_rewrite? (remove .htaccess if you uncheck this): <input type=\"checkbox\" name=\"rewrite\" value=\"1\" " . $checked . "><br />";
    echo "<input type=\"hidden\" name=\"checksubmit\" value=\"1\">";
    echo "<input type=\"submit\" name=\"submit\" value=\"update\">";
    echo "</form>";
}
Пример #5
0
<?php

require 'core/init.php';
?>
<!DOCTYPE html>
<html>
<head>
	<title><?php 
echo getTitle();
echo getTagline();
?>
</title>
	<link rel="stylesheet" href="css/theme.css">
	<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
	<div class="header">
		<div class="container">
			<div class="left">
				<div class="logo">
					<a href="index.php">
						<?php 
echo getTitle();
?>
					</a>
				</div>
			</div>
			<div class="right">
				<div class="login-link">
					Already a member? <a href="login.php">sign in</a>
Пример #6
0
function getTileCopy($postID, $image)
{
    $postType = get_post_type($postID);
    switch ($postType) {
        case 'post':
            $authorID = get('staff_author', 1, 1, $postID);
            $copy = "<p>by " . get_the_title($authorID) . "</p>";
            $link = '<a href="' . get_permalink($postID) . '" class="button reverse">Read More</a>';
            break;
        case 'job_listing':
            $copy = "<p>" . get_the_excerpt() . "</p>";
            $link = '<a href="' . get_permalink($postID) . '" class="button reverse">Find Out</a>';
            //$link .= getTagline($postType);
            break;
        case 'creative':
            $copy = "<p>" . get_the_content() . "</p>";
            $href = get_field('url');
            $cta = get_field('cta');
            $link = '<a href="' . $href[1] . '" class="button reverse" target="_blank">' . $cta[1] . '</a>';
            break;
        case 'staff':
            $manifesto = get('manifesto', 1, 1, $postID);
            $copy = "<p>" . $manifesto . "</p>";
            $link = '<a href="' . get_permalink($postID) . '" class="button reverse">Read Bio</a>';
            //$link .= getTagline($postType);
            break;
        case 'case_study':
            $subTitle = get_field('sub_title');
            $copy = "<p>" . $subTitle[1] . "</p>";
            $link = '<a href="' . get_permalink($postID) . '" class="button reverse">See Case Study</a>';
            //$link .= getTagline($postType);
            break;
    }
    //If theres no image, add in tagline
    if (!$image) {
        $link .= getTagline($postType);
    }
    return $copy . $link;
}