Skip to content

Instantly share code, notes, and snippets.

View crumina's full-sized avatar
🎯
Focusing

crumina

🎯
Focusing
View GitHub Profile
@crumina
crumina / gist:6496278
Created September 9, 2013 14:22
Siteorigin widget gallery fix
class SiteOrigin_Panels_Widgets_Gallery extends WP_Widget {
function __construct() {
parent::__construct(
'siteorigin-panels-gallery',
__( 'Gallery (PB)', 'so-panels' ),
array(
'description' => __( 'Displays a gallery.', 'so-panels' ),
)
);
}
@crumina
crumina / tags in excerpt.php
Created August 10, 2013 16:19
Make wordpress excerpt to accept HTML tags
function custom_wp_trim_excerpt($text) {
$raw_excerpt = $text;
if ( '' == $text ) {
$text = get_the_content('');
$text = strip_shortcodes( $text );
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
@crumina
crumina / deploy.php
Created February 26, 2013 14:36
test
<?php
// Turn off error reporting
error_reporting(0);
try
{
// Decode the payload json string
$payload = json_decode($_REQUEST['payload']);
}