This file contains 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
/** | |
* Parse Vimeo M3U8 URLs to negate relative redirect issues with JW Player (See issue #1510) | |
* | |
* @return string | |
*/ | |
public function parseHLSUrl($url) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); //set url |
This file contains 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
.inset12 { | |
margin-left: -940px; | |
} | |
.inset11 { | |
margin-left: -860px; | |
} | |
.inset10 { | |
margin-left: -780px; | |
} |
This file contains 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 (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 4.3.2 or newer | |
* | |
* @package CodeIgniter | |
* @author Rick Ellis | |
* @copyright Copyright (c) 2006, EllisLab, Inc. | |
* @license http://www.codeignitor.com/user_guide/license.html |
This file contains 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
How to set Shuttle.app up as a convenient tool for connecting to a remote server with a single click from the menu bar. | |
Install Homebrew (http://brew.sh/) by opening a new terminal window and pasting in: | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
Follow the prompts. After installation is complete install the 'sshpass' formula: | |
brew install https://raw.github.com/eugeneoden/homebrew/eca9de1/Library/Formula/sshpass.rb |
This file contains 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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Child Category Count', | |
'pi_version' =>'1.0', | |
'pi_author' =>'Nathan Pitman', | |
'pi_author_url' => 'http://ninefour.co.uk/labs', | |
'pi_description' => 'Returns number of child categories given a parent category ID', |
This file contains 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 | |
$plugin_info = array( | |
'pi_name' => 'Change Site URL', | |
'pi_version' =>'1.0', | |
'pi_author' =>'Nine Four Ltd', | |
'pi_author_url' => 'http://www.ninefour.co.uk/labs/', | |
'pi_description' => 'Changes the current site URL.', | |
'pi_usage' => Change_site::usage() | |
); |
This file contains 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
switch ($_SERVER['HTTP_HOST']) { | |
//development | |
case 'dev.example.com': | |
$assign_to_config['global_vars']['site_mode'] = 'dev'; | |
break; | |
//default | |
default: | |
$assign_to_config['global_vars']['site_mode'] = 'live'; | |
break; | |
} |
This file contains 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
{exp:channel:entries} | |
{switch='<div class="row">||'} | |
<div class="col-md-4"> | |
{sn_programme_block} | |
</div><!-- / .col-md-4 --> | |
{if count!=total_results}{switch='||</div><!-- / .row -->'}{/if} |
This file contains 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
{exp:channel:entries} | |
{switch values='<div class="row">||'} | |
<div class="col-md-4"> | |
{sn_programme_block} | |
</div><!-- / .col-md-4 --> | |
{switch values='||</div><!-- / .row -->' closing='</div><!-- / .row -->'} |
This file contains 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
// Returns true or false if flash installed or not. Tested with IE8 on Windows 7 and Chrome on Win7 and Mac. | |
(function() { var ie_flash; try { ie_flash = (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) !== false) } catch(err) { ie_flash = false; } var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || ie_flash); return _flash_installed; })() |
NewerOlder