Example #1
0
  <div class="modal fade" id="userSearchModal" tabindex="-1" role="dialog" aria-labelledby="userSearchModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <form id="userSearchForm">
          
            <div id="usrFrmGrp" class="form-group">
              <label>Who do you want to gift?</label>
              <input tabindex="1" type="text" id="userSearchInput" class="form-control" placeholder="E.g. Destiny" />
              <label class="error hidden"></label>
            </div>
          
            <button tabindex="4" type="button" class="btn btn-default" data-dismiss="modal" id="userSearchCancel">Cancel</button>
            <button tabindex="3" type="submit" class="btn btn-primary" id="userSearchSelect" data-loading-text="Checking user...">Select</button>
          </form>
        </div>
      </div>
    </div>
  </div>
  
  <?php 
include Tpl::file('seg/foot.php');
?>
  <?php 
include Tpl::file('seg/commonbottom.php');
?>
  
</body>
</html><?php 
Example #2
0
<title>Error : Forbidden</title>
<meta charset="utf-8">
<link href="<?php 
echo Config::cdn();
?>
/vendor/bootstrap-3.1.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="<?php 
echo Config::cdn();
?>
/errors/css/style.min.css" rel="stylesheet" media="screen">
<link rel="shortcut icon" href="<?php 
echo Config::cdn();
?>
/favicon.png">
<?php 
include Tpl::file('seg/google.tracker.php');
?>
</head>
<body class="error forbidden">

	<?php 
include 'top.php';
?>

	<section id="header-band">
		<div class="container">
			<header class="hero-unit" id="overview">
				<div class="clearfix">
					<h1><strong><?php 
echo $word;
?>
Example #3
0
		<div id="youtube" class="stream">
			<h3 class="title clearfix">
				<span>Videos</span> <a href="http://www.youtube.com/user/<?php 
echo Config::$a['youtube']['user'];
?>
/videos?view=0" class="youtube-title">youtube.com</a>
			</h3>
			<ul class="thumbnails">
			<?php 
if (isset($model->playlist['items']) && !empty($model->playlist['items'])) {
    ?>
			<?php 
    foreach ($model->playlist['items'] as $vid) {
        ?>
				<?php 
        $title = Tpl::out($vid['snippet']['title']);
        ?>
				<li>
					<div class="thumbnail" data-placement="bottom" data-toggle="tooltip" title="<?php 
        echo $title;
        ?>
">
						<a
							href="http://www.youtube.com/watch?v=<?php 
        echo $vid['snippet']['resourceId']['videoId'];
        ?>
">
							<img alt="<?php 
        echo $title;
        ?>
" src="<?php 
Example #4
0
<div id="destinychat" class="chat chat-theme-dark chat-icons">

    <div class="chat-output-frame">
        <div class="chat-output nano">
          <div class="chat-lines overthrow nano-content"></div>
        </div>
    </div>

</div>

<?php 
include Tpl::file('seg/commonbottom.php');
?>

<script src="/chat/history"></script>
<script src="<?php 
echo Config::cdnv();
?>
/chat/js/chat.min.js"></script>
<script>$('#destinychat').ChatGui(<?php 
echo Tpl::jsout($model->user);
?>
,<?php 
echo Tpl::jsout($model->options);
?>
);</script>

</body>
</html>
Example #5
0
function buildSubscribersTier(array $tier = null, $num)
{
    ?>
  <?php 
    if (!empty($tier)) {
        ?>
  <section class="container">
    <h3>T<?php 
        echo $num;
        ?>
 Subscribers</h3>
    <div class="content content-dark clearfix">
      <table class="grid">
        <thead>
          <tr>
            <td style="width: 20px;"></td>
            <td style="width: 200px;">User</td>
            <td style="width: 100px;">Recurring</td>
            <td style="width: 80px;">Created on</td>
            <td>Ends on</td>
          </tr>
        </thead>
        <tbody>
        <?php 
        $i = 1;
        ?>
        <?php 
        foreach ($tier as $sub) {
            ?>
        <tr>
          <td><?php 
            echo $i;
            ?>
</td>
          <td>
            <a href="/admin/user/<?php 
            echo $sub['userId'];
            ?>
/edit"><?php 
            echo Tpl::out($sub['username']);
            ?>
</a>
            <?php 
            if (!empty($sub['gifter'])) {
                ?>
              &nbsp; (<a title="Gifted by" href="/admin/user/<?php 
                echo $sub['gifter'];
                ?>
/edit"><span class="fa fa-gift" title="Gift"></span> <?php 
                echo Tpl::out($sub['gifterUsername']);
                ?>
</a>)
            <?php 
            }
            ?>
          </td>
          <td><?php 
            echo $sub['recurring'] == 1 ? 'Yes' : 'No';
            ?>
</td>
          <td><?php 
            echo Tpl::moment(Date::getDateTime($sub['createdDate']), Date::STRING_FORMAT);
            ?>
</td>
          <td><?php 
            echo Tpl::moment(Date::getDateTime($sub['endDate']), Date::STRING_FORMAT);
            ?>
</td>
        </tr>
        <?php 
            $i++;
        }
        ?>
        </tbody>
      </table>
    </div>
  </section>
  <?php 
    }
    ?>
  <?php 
}
Example #6
0
        echo $article['title'];
        ?>
</a>
						</div>
						<div>
							<?php 
        foreach ($article['categories'] as $categories) {
            ?>
							<span><small>Posted in</small> <?php 
            echo Tpl::out($categories['title']);
            ?>
</span>
							<?php 
        }
        ?>
						</div>
						<?php 
        echo Tpl::moment(Date::getDateTime($article['date']), Date::FORMAT);
        ?>
					</div>
				</div>
				<?php 
    }
    ?>
			</div>
		</div>

	</div>
</section>
<?php 
}
Example #7
0
?>
">Pop-out chat</a>
              <a target="_blank" href="http://www.twitch.tv/destiny/popout" class="popup btn btn-xs btn-link" data-options="<?php 
echo Tpl::out('{"height":"420","width":"720"}');
?>
">Pop-out stream</a>
            </div>
            <h1>Stream currently offline</h1>
            <div id="live-info">
              <span class="offline-status"><?php 
echo Tpl::out($model->streamInfo['status']);
?>
</span><br />
              Last broadcast ended <strong class="offline-info-lastbroadcast"><?php 
echo isset($model->streamInfo['lastbroadcast']) ? Date::getElapsedTime(Date::getDateTime($model->streamInfo['lastbroadcast'])) : '';
?>
</strong><br />
              Was playing <strong class="offline-info-game"><?php 
echo isset($model->streamInfo['game']) ? Tpl::out($model->streamInfo['game']) : '';
?>
</strong><br />
            </div>
            <a href="/bigscreen" class="btn btn-lg btn-primary">Join the chat while you wait!</a>
            <small>&nbsp; Prefer the old layout? <a href="/screen">Try this</a></small>
          </div>
        </div>
      </div>
    </div>
  </section>

</div><?php 
Example #8
0
var url = '<?php 
echo $model->url;
?>
';
_gaq.push(['_trackEvent', 'outbound', 'redirect', url]);
_gaq.push(function(){
    window.clearTimeout(to);
    window.location.replace(url);
});

</script>
</head>
<body>
    <p>Please wait while we redirect you to <a rel="nofollow" href="<?php 
echo $model->url;
?>
"><?php 
echo Tpl::out($model->url);
?>
</a> &hellip;</p>
    <noscript>
       <p>No javascript present >:( &hellip; Click the link <a rel="nofollow" href="<?php 
echo $model->url;
?>
"><?php 
echo Tpl::out($model->url);
?>
</a></p>
    </noscript>
</body>
</html><?php 
Example #9
0
              <span class="pull-right"><?php 
            echo Tpl::fromNow(Date::getDateTime($track['date_str']));
            ?>
</span>
              <?php 
        }
        ?>
              <?php 
        if ($trackIndex == 0 && $track['date_str'] == '') {
            ?>
              <span class="pull-right"><time>now playing</time></span>
              <?php 
        }
        ?>
              <small class="album subtle"><?php 
        echo Tpl::out($track['album']['#text']);
        ?>
</small>
            </div>
          </div>
        </div>
      <?php 
    }
    ?>
      <?php 
} else {
    ?>
        <p class="loading">Loading music ...</p>
      <?php 
}
?>
Example #10
0
<?php

namespace Destiny;

use Destiny\Common\Utils\Tpl;
use Destiny\Common\Session;
?>

<h2 class="page-title" style="margin-left: 20px;">
	<span><?php 
echo Tpl::out(Session::getCredentials()->getUsername());
?>
</span>
	<small><i class="fa fa-envelope-o" title="<?php 
echo Tpl::out(Session::getCredentials()->getEmail());
?>
"></i></small>
</h2>

<section class="container">
    <ol class="breadcrumb" style="margin-bottom:0;">
      	<li><a href="/profile" title="Your account details">Account</a></li>
      	<li><a href="/profile/messages" title="Your private messages">Messages</a></li>
        <li><a href="/profile/authentication" title="Your login methods">Authentication</a></li>
    </ol>
</section><?php 
Example #11
0
?>
<div id="alerts-container"></div>

<?php 
if (!empty($model->error)) {
    ?>
<section class="container">
    <div class="alert alert-danger" style="margin:0;">
        <strong>Error!</strong>
        <?php 
    echo Tpl::out($model->error);
    ?>
    </div>
</section>
<?php 
}
?>

<?php 
if (!empty($model->success)) {
    ?>
<section class="container">
    <div class="alert alert-info" style="margin:0;">
	    <strong>Success!</strong>
	    <?php 
    echo Tpl::out($model->success);
    ?>
    </div>
</section>
<?php 
}
Example #12
0
 /**
  * Include a template and return a template file
  *
  * @param string $filename          
  * @return string
  */
 protected function template($filename, ViewModel $model)
 {
     $filename = Tpl::file($filename);
     if (!is_file($filename)) {
         throw new Exception(sprintf('Template not found "%s"', pathinfo($filename, PATHINFO_FILENAME)));
     }
     $this->logger->debug('Template: ' . $filename);
     ob_start();
     include $filename;
     $contents = ob_get_contents();
     ob_end_clean();
     return $contents;
 }
Example #13
0
</span><br />
            Last broadcast ended <strong class="offline-info-lastbroadcast"><?php 
echo isset($model->streamInfo['lastbroadcast']) ? Date::getElapsedTime(Date::getDateTime($model->streamInfo['lastbroadcast'])) : '';
?>
</strong><br />
            Was playing <strong class="offline-info-game"><?php 
echo isset($model->streamInfo['game']) ? Tpl::out($model->streamInfo['game']) : '';
?>
</strong><br />
          </div>
          <a href="/bigscreen" class="btn btn-lg btn-primary">Join the chat while you wait!</a>
          <div class="banner-popout-links btn-group pull-right" data-toggle="buttons" style="margin-top: 10px;">
            <a target="_blank" class="btn btn-link popup" href="/embed/chat" data-options="<?php 
echo Tpl::out('{"height":"500","width":"420"}');
?>
"><i class="fa fa-comment"></i> Chat</a>
            <a target="_blank" class="btn btn-link popup" href="//www.twitch.tv/<?php 
echo Config::$a['twitch']['user'];
?>
/popout" data-options="<?php 
echo Tpl::out('{"height":"420","width":"720"}');
?>
"><i class="fa fa-eye"></i> Stream</a>
          </div>
        </div>
      </div>
    </div>
  </section>

</div>
<?php