This file contains hidden or 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 Name: Plugin for Wordpress | |
Plugin URI: | |
Description: A Sample Class Plugin for Wordpress |
This file contains hidden or 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
/* @projectDescription jQuery Serialize Anything - Serialize anything (and not just forms!) | |
* @author Bramus! (Bram Van Damme) | |
* @version 1.0 | |
* @website: http://www.bram.us/ | |
* @license : BSD | |
* original file : http://www.bram.us/2008/10/27/jqueryserializeanything-serialize-anything-and-not-just-forms/ | |
* modified by Keithics : [email protected] | |
* usage jQuery('.class_input').serializeAnything() | |
*/ | |
This file contains hidden or 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 | |
// Resizer and Image Manipulation | |
// Based on: http://forums.laravel.com/viewtopic.php?id=2648 | |
public function post_edit_logo($id) | |
{ | |
$rules = array('logo' => 'image'); | |
$input = Input::file('logo'); | |
$validation = Validator::make($input, $rules); | |
//file not valid |
This file contains hidden or 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
<table> | |
<tr> | |
<td>I Lead: <input type="checkbox" id="toggle_select" /></td> | |
</tr> | |
<tr> | |
<td>We Follow :<input type="checkbox" class="toggle_type" /></td> | |
</tr> | |
<tr> | |
<td>We Follow :<input type="checkbox" class="toggle_type" /></td> | |
</tr> |
This file contains hidden or 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
AddHandler application/x-httpd-php53 .php | |
<IfModule mod_suphp.c> | |
suPHP_ConfigPath /public_html/DOMAIN.COM/public | |
<Files php.ini> | |
order allow,deny | |
deny from all | |
</Files> | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
This file contains hidden or 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
function get_post_by_slug($post_name) { | |
global $wpdb; | |
$post = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_name = %s", $post_name)); | |
return $post ? get_post($post) : NULL; | |
} |
This file contains hidden or 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 | |
function wpcebu_customize_register( $wp_customize ){ | |
// Full Name | |
$wp_customize->add_section( 'content', | |
array( | |
'title' => __( 'Full Name', 'wpcebu2' ), //Visible title of section | |
) | |
); |
This file contains hidden or 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 | |
function wpcebu_customize_register( $wp_customize ){ | |
// Full Name | |
$wp_customize->add_section( 'content', | |
array( | |
'title' => __( 'Full Name', 'wpcebu2' ), //Visible title of section | |
) | |
); |
This file contains hidden or 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
use Assetic\AssetManager; | |
use Assetic\Asset\AssetCollection; | |
use Assetic\Asset\FileAsset; | |
use Assetic\Asset\GlobAsset; | |
use Assetic\Filter\Yui; | |
use Assetic\AssetWriter; | |
$am = new AssetManager(); |
This file contains hidden or 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
_.mixin({ | |
serialize:function(el){ | |
var url = []; | |
_.map(el.getChildren(),function(value,key,el){ | |
if(!_.isUndefined(value.name)){ | |
url.push(value.name+ '=' + value.getValue()); | |
} | |
}); | |
return '?'+url.join('&'); |
OlderNewer