Skip to content

Instantly share code, notes, and snippets.

View lgobatto's full-sized avatar

Leonardo Gobatto lgobatto

View GitHub Profile
function midiamax_allow_iframe($initArray) {
$initArray['extended_valid_elements'] = "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]";
return $initArray;
}
add_filter('tiny_mce_before_init', 'midiamax_allow_iframe');
from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils.translation import gettext_lazy as _
# Create your models here.
class CommonModel(models.Model):
name = models.CharField(max_length=128, unique=True)
created_at = models.DateTimeField(_('created date'), auto_now=True)
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="https://creativep2.local/wp-content/themes/creative_p2/favicon.ico" />
<title>Creative Production Partners</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/font-face.css" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/slider.css" />
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="http://creativep2.com/app/xmlrpc.php">
<title>Creative Production Partners &#8211; Creativity in Progress&#8230;</title>
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
version: '3.5'
services:
php:
image: easyengine/php:v4.0.0
restart: always
labels:
- "io.easyengine.site=${VIRTUAL_HOST}"
volumes:
@lgobatto
lgobatto / example.php
Created March 22, 2012 03:31 — forked from jonathonbyrdziak/example.php
Wordpress Metabox, stand alone class for multiple metabox abilities
<?php
/*
Here's a couple of metaboxes that I've recently created using this system
*/
$subpostings = redrokk_metabox_class::getInstance('subpostings', array(
'title' => '(optional) Subscription for Postings',
'description' => "As an optional feature, you have a complete api at your disposal which will allow you the ability to offer and manage member posts. In addition to these settings, you may need to create the associated pages for accepting posts from your frontend.",