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
echo Form::open( null, array( 'enctype' => 'multipart/form-data' ) ); |
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
<html> | |
<head> | |
<title>Video Test</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready( function () { | |
// hook the click event for any A links with a rel that starts with 'youtube' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Match Valid Files" stopProcessing="true"> | |
<match url="^.*$" /> | |
<conditions logicalGrouping="MatchAny"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="false" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" ignoreCase="false" /> |
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 | |
private function add_external_assets ( ) { | |
$url = 'http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css'; | |
try { | |
$content = Cache::get( md5( $url ) ); | |
} | |
catch ( CacheNotFoundException $e ) { |
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 | |
class Foo extends Theme { | |
public function act_display_home ( $user_filters = array() ) { | |
$user_filters['content_type'] = Post::type( 'foo' ); | |
parent::act_display_home( $user_filters ); | |
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 | |
foreach ( $posts as $post ) { | |
// save the post for the area to use | |
$theme->post = $post; | |
echo $theme->area( 'foo' ); | |
} |
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 | |
class Model_Browser extends Model { | |
public function list_schemas ( $like = null ) { | |
$query = \DB::select( array( 'table_schem', 'schema' ) )->from( 'sysibm.sqltables' ); | |
if ( $like != null ) { | |
$query->where( 'table_schem', 'like', $like ); |
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 | |
class Github_Packager { | |
private static $api_endpoint = 'http://github.com/api/v2/json/'; | |
private static $temp_path = './temp/'; | |
public static function list_branches ( $addon_name, $with_commits = false ) { | |
$url = self::$api_endpoint . 'repos/show/habari-extras/' . $addon_name . '/branches'; |
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 | |
/** | |
* @package Habari | |
* | |
*/ | |
/** | |
* Habari Theme Class | |
* | |
* The Theme class is the behind-the-scenes representation of |
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
server { | |
include listen_80; | |
server_name vhost.com; | |
include /etc/nginx/fastcgi_params; | |
access_log /home/chris/public_html/vhost.com/logs/access.log; | |
error_log /home/chris/public_html/vhost.com/logs/error.log; | |
root /home/chris/public_html/vhost.com/public; |