Discontinued in favor of Statamechanic.
This script will:
- Remove the following files/directories:
- _config/fieldsets/* (everything in dir)
- _config/settings.yaml.sample
- _config/users/admin.yaml.sample
/**********************************************/ | |
/* | |
/* IR_Black Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
{!-- Snippet: ban_member_snippet --} | |
{if can_moderate_comment} | |
[<a href="{cp_url}?S=0&D=cp&C=addons_modules&M=show_module_cp&module=comment&method=index&entry_id={entry_id}">delete & ban</a>] | |
{/if} | |
{!-- Template --} | |
{exp:comment:entries} | |
<p>{url_as_author} wrote: {ban_member_snippet}</p> | |
{comment} |
<?php | |
$zip = new ZipArchive; | |
$res = $zip->open('FILE_NAME.zip'); | |
if ($res === TRUE) { | |
$zip->extractTo(dirname(__FILE__)); // Same dir | |
$zip->close(); | |
echo 'ok'; | |
} else { | |
echo 'failed'; |
%h1 | |
Any Image to CSS converter | |
.container | |
.config | |
%label Choose Image: | |
%input#upload{:type=>"file"} | |
%label PixelSize: | |
%input#size{:type=>"number",:value=>"1"} | |
%label Space: | |
%input#space{:type=>"number",:value=>"0"} |
Discontinued in favor of Statamechanic.
This script will:
Sometimes I need a row sans gutters. This uses the same mixins and whathaveyou to create another grid that sits alongside the normal grid.
You'll need to wrap your .row-fluid
in a .gutterless
div.
This is a hack on Statamic's Suggest fieldtype to allow options to be passed in via a separate file. This way global variables can populate the options.
Paste the code from ft.suggest.hack.php
into cp/fieldtypes/suggest/ft.suggest.php
after the "Hardcoded list of options" section.
In your fieldset, do something like this:
brand:
display: Brand