This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// settings | |
@columns: 16; | |
@bodyWidth: 960px; | |
@columnMargin: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
rewriten to less.js by Sergej Jevsejev | |
@date 2012 07 14 | |
@webpage http://sjevsejev.blogspot.com | |
960 Grid System ~ Core CSS. | |
Learn more ~ http://960.gs/ | |
Licensed under GPL and MIT. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($detect->isIpad()) { | |
// code to run for the iPad platform | |
} | |
if ($detect->isIphone()) { | |
// code to run for the iPhone platform | |
} | |
if ($detect->isAndroid()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include("Mobile_Detect.php"); | |
$detect = new Mobile_Detect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$vk = new vk($login, $password, $phoneLast4Digits); | |
// Get array of the movies | |
$videos = $vk->search('The Avatar'); | |
// get iframe code for any movie from array | |
$html = $vk->play($videos[0]['id1'], $videos[0]['id2']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Returns iframe code to play video | |
* Note: some videos are unable to embed because of particular video settings | |
*/ | |
public function play($id1, $id2) | |
{ | |
// getting hash | |
$hash = $this->gb->getPregOne('http://vk.com/video'.$id1.'_'.$id2, "/hash2[^0-9a-f]*([0-9a-f]*)/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Search video library by title | |
* @var $title string | |
* @return array List of videos | |
*/ | |
public function search($title) | |
{ | |
$html = $this->gb->get('http://vk.com/video?q='.htmlentities(urlencode($title)).'§ion=search'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __construct($login, $password, $phoneLast4Digits) | |
{ | |
$this->$phoneLast4Digits = $phoneLast4Digits; | |
$this->gb = new Grabber(); | |
$data = $this->gb->post('http://login.vk.com/?act=login', | |
array( | |
'act' => 'login', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Vk.com video script | |
* - it searches for the movie | |
* - it gets embed code | |
* | |
* @author Sergej Jevsejev | |
* @url http://sjevsejev.blogspot.com | |
*/ |