This file contains 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
<!doctype html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Muschiatini Dixit</title> | |
<meta name="description" content="Muschiatini Dixit"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> | |
</head> |
This file contains 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 queried_posts_terms( $taxonomies = 'category' ) { | |
global $wp_query, $wpdb; | |
if ( empty( $wp_query->posts ) ) return FALSE; | |
$ids = wp_list_pluck( $wp_query->posts, 'ID' ); | |
$taxonomies = array_filter( (array) $taxonomies, function( $tax ) { | |
if ( is_string( $tax ) ) { | |
$tax = sanitize_title( $tax ); | |
return taxonomy_exists( $tax ) ? esc_sql( $tax ) : NULL; | |
} | |
} ); |
This file contains 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 | |
array_walk($GLOBALS['wp_query']->posts, function($post, $i, $wp_query) { | |
$GLOBALS['post'] = $post; | |
$wp_query->the_post(); | |
// loop code | |
the_title(); | |
the_content(); |
This file contains 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 namespace GM; | |
use SplObjectStorage; | |
class Optimum | |
{ | |
private $data; | |
private $raw; | |
private $map; | |
private $storage; |
This file contains 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 namespace GM; | |
use Traversable; | |
use JsonSerializable; | |
/** | |
* Stateless class that recursively convert an array or a traversable object into a nested array. | |
* Optionally convert all "atomic" items to strings and optionally HTML-encode all strings. | |
* Array and traversable objects are all recursively converted. | |
* Non-traversable objects are converted to array, in 1st available among following methods: |
This file contains 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 | |
/** | |
* @author Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com> | |
* @license http://opensource.org/licenses/MIT MIT | |
*/ | |
class MetaboxStealer | |
{ | |
/** | |
* @var bool |
This file contains 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: Attach My Upload | |
* Description: Allow to create an attachment post from a file already uploaded to uploads folder. | |
* Plugin URI: http://wordpress.stackexchange.com/questions/141509/ | |
* Author: G. M. | |
* Author URI: http://wordpress.stackexchange.com/users/35541/g-m | |
* | |
*/ | |
/* |
This file contains 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 namespace GM\FSDFM; | |
/** | |
* Plugin Name: Fullscreen Distraction-Free Mode (pre v4.1) | |
* Description: Allows to use the distraction-free mode that was active pre 4.1 WP version. | |
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/c081ce03a68b00d983d5 | |
* Author: Giuseppe Mazzapica | |
* Author URI: https://gm.zoomlab.it | |
* License: MIT | |
* Version: 1.0.0 | |
*/ |
This file contains 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 | |
/** | |
* @package GMNextGenPreviewImage | |
* @version 0.1.0 | |
*/ | |
/** | |
Plugin Name: GM NextGen Preview Image | |
* | |
Author: Giuseppe Mazzapica | |
Version: 0.1.0 |
OlderNewer