- ???
- Bidsketch
- Proposable
| <!-- START of Facebook Open Graph--> | |
| <meta property="og:site_name" content="{Title}"/> | |
| {block:PermalinkPage} | |
| <meta property="og:url" content="{Permalink}"/> | |
| <meta property="og:type" content="article"/> | |
| {block:Posts} | |
| {block:Text} |
A list of amazingly awesome PHP libraries, resources and shiny things.
| <?php | |
| /* Taxonomy Breadcrumb */ | |
| function be_taxonomy_breadcrumb() { | |
| // Get the current term | |
| $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); | |
| // Create a list of all the term's parents | |
| $parent = $term->parent; | |
| while ($parent): | |
| $parents[] = $parent; |
| // {{{ win-safari hacks, scratch this, | |
| // let's just expose platform/browser to css | |
| (function() | |
| { | |
| var uaMatch = '', prefix = ''; | |
| if (navigator.userAgent.match(/Windows/)) | |
| { | |
| $('html').addClass('x-win'); | |
| } |
| // Media Queries in Sass 3.2 | |
| // | |
| // These mixins make media queries a breeze with Sass. | |
| // The media queries from mobile up until desktop all | |
| // trigger at different points along the way | |
| // | |
| // And important point to remember is that and width | |
| // over the portrait width is considered to be part of the | |
| // landscape width. This allows us to capture widths of devices | |
| // that might not fit the dimensions exactly. This means the break |
| # My active admin spotlight model(where form is displayed to add new): | |
| ActiveAdmin.register Spotlight do | |
| form do |f| | |
| f.inputs do | |
| f.input :video | |
| f.input :image | |
| f.input :description | |
| f.input :band, :as => :select, Bands.find(:all,:order =>"title").collect{|band|[band.title, band.id]} |
| <?php | |
| /** | |
| * Custom configuration bootsrtap file for ExpressionEngine | |
| * | |
| * Place config.php in your site root | |
| * Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php | |
| * Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php | |
| * If you have moved your site root you'll need to update the require_once path | |
| * |
Have a writable folder public/blog_images in you app.
###routes.php
// Redactor Blog Upload
Route::post('redactorUpload', function()
{
$file = Input::file('file');
$fileName = $file->getClientOriginalName();