Crop a photo from the top:
{{ field.image().fit(400, 400, null, 'top')|raw }}
<form action="" enctype="multipart/form-data" method="post"> | |
<input id="file" name="file" type="file" /> | |
<input id="Submit" name="submit" type="submit" value="Submit" /> | |
</form> |
<?php | |
/* | |
Plugin Name: Exclude Posts if in Single Category | |
Description: Exclude posts if they are only tagged in a single category, as defined by the category number. This will show posts in the loop if they are tagged in more than one category. | |
Version: 1.0 | |
Author: Zac Vineyard | |
Author URI: http://www.zacvineyard.com | |
*/ |
<?php | |
$default_avatar = 'http://zacvineyard.com/blog/wp-content/themes/zac/images/default-avatar.png'; | |
?> | |
<a id="comments"></a> | |
<h2>Comments</h2> | |
<?php if($comments) : ?> | |
<ol class="comments"> | |
<?php foreach($comments as $comment) : ?> | |
<li id="comment-<?php comment_ID(); ?>" class="<?php if ($comment->user_id == 1) echo "authcomment";?>"> | |
<?php if ($comment->comment_approved == '0') : ?> |
AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY |
layout: degree.njk | |
title: "Business" | |
id: 1 | |
type: "Bachelor of Science" | |
categories: | |
- business | |
- finance | |
- accounting | |
contact: | |
name: "Chair, Department of Business" |
#!/bin/bash | |
uuencode /file.csv /file.csv | mail x -r "from@example.com" -s "Subject" to@example.com |
<VirtualHost *:80> | |
ServerAdmin admin@yourdomain.com | |
ServerName yourdomain.com | |
ServerAlias www.yourdomain.com | |
DocumentRoot /home/yourdomain/public_html | |
<Directory /> | |
Options None | |
AllowOverride None | |
Order Deny,Allow | |
Deny from all |
$this->form_validation->set_rules('test', 'Test Field', 'required'); |
public class Json { | |
public static JSONObject getJson(String url){ | |
InputStream is = null; | |
String result = ""; | |
JSONObject jsonObject = null; | |
// HTTP | |
try { |
Crop a photo from the top:
{{ field.image().fit(400, 400, null, 'top')|raw }}