Пример #1
0
 public function getImageUrl($id)
 {
     $obj = $this->_store->get($id);
     if ($obj != null) {
         return ViewHelper::link("data/" . $obj->getPath());
     }
     return ViewHelper::assetLink("images/no_cover.png");
 }
Пример #2
0
function videolink($key, $label, $data, &$list, $directory)
{
    if (!isset($data[$key])) {
        return;
    }
    if ($key == 'youtube') {
        $list[] = ViewHelper::link('http://youtu.be/' . $data[$key], $label);
    } else {
        if ($key == 'vimeo') {
            $list[] = ViewHelper::link('https://vimeo.com/' . $data[$key], $label);
        } else {
            $list[] = ViewHelper::link('/' . BASE_PATH . 'data/' . $directory . '/trailers/' . $data[$key], $label);
        }
    }
}
Пример #3
0
		<dt>Platforms:</dt>
		<?php 
if (isset($data->platforms)) {
    foreach ($data->platforms as $platform) {
        if (isset($platform['link'])) {
            echo '<dd>', ViewHelper::link($platform['link'], $platform['name']), '</dd>';
        } else {
            echo '<dd>', $platform['name'], '</dd>';
        }
    }
}
?>

		<dt>Website:</dt>
		<dd><?php 
echo ViewHelper::link($data->website);
?>
</dd>
	</dl>

	<?php 
if ($data->prices != null) {
    ?>
	<table class="prices">
		<?php 
    foreach ($data->prices as $key => $platform) {
        ?>
			<caption>Regular Price <?php 
        echo $key != null ? '(' . $key . ')' : '';
        ?>
</caption>
Пример #4
0
echo ViewHelper::link($data->website);
?>
</dd>

		<dt>Press / Business Contact:</dt>
		<dd><?php 
echo ViewHelper::email($data->pressContact);
?>
</dd>

		<dt>Social:</dt>
		<?php 
foreach ($data->socials as $social) {
    ?>
			<dd><?php 
    echo ViewHelper::link($social['link'], $social['name']);
    ?>
</dd>
		<?php 
}
?>

		<dt>Releases:</dt>
		<?php 
foreach ($data->games as $game) {
    ?>
			<dd><?php 
    echo ViewHelper::linkProject($game->directory, $game->title);
    ?>
</dd>
		<?php 
Пример #5
0
<div id="about" class="twelve columns">
	<h2>About <?php 
echo $data->title;
?>
</h2>
	<p><?php 
echo $data->description;
?>
</p>
	<h3>More information</h3>
	<p>More information on <?php 
echo $data->title;
?>
, our logo &amp; relevant media are available <?php 
echo ViewHelper::link('/' . BASE_PATH, 'here');
?>
.</p>
</div>

<hr class="twelve columns" />
Пример #6
0
 public static function callto($phone, $text = '')
 {
     return ViewHelper::link('callto:' . urlencode($phone), $text == '' ? $phone : $text);
 }
Пример #7
0
<div id="additionals" class="twelve columns">
	<h2>Additional Links</h2>
	<dl>
		<?php 
foreach ($data->additionals as $additional) {
    ?>
			<dt><?php 
    echo $additional['title'];
    ?>
</dt>
			<dd><?php 
    echo $additional['description'], ' ', ViewHelper::link($additional['link']);
    ?>
</dd>
		<?php 
}
?>
	</dl>
</div>

<hr class="twelve columns" />
Пример #8
0
		<h2>Team & Repeating Collaborators</h2>
		<dl>
		<?php 
foreach ($data->credits as $credit) {
    if (isset($credit['website'])) {
        echo '<dt>', ViewHelper::link($credit['website'], $credit['person']), '</dt>';
    } else {
        echo '<dt>', $credit['person'], '</dt>';
    }
    echo '<dd>', $credit['role'], '</dd>';
}
?>
		</dl>
	</div>

	<div id="contact" class="six columns omega">
		<h2>Contact</h2>
		<dl>
		<?php 
foreach ($developer->contacts as $contact) {
    echo '<dt>', $contact['name'], '</dt>';
    if (isset($contact['mail'])) {
        echo '<dd>', ViewHelper::email($contact['mail']), '</dd>';
    } else {
        echo '<dd>', ViewHelper::link($contact['link']), '</dd>';
    }
}
?>
		</dl>
	</div>
</div>