Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Tmeister's full-sized avatar
🇲🇽
Working from home

Enrique Chavez Tmeister

🇲🇽
Working from home
View GitHub Profile
@Tmeister
Tmeister / gist:1161119
Created August 21, 2011 20:32
WordPress MetaBox
<?php
add_action( 'add_meta_boxes', 'add_custom_box', 1);
function add_custom_box()
{
add_meta_box(
'id_box',
"Title Box",
'inner_custom_box'),
'post',
@Tmeister
Tmeister / gist:1169717
Created August 25, 2011 01:10
WordPress Plugin Header
<?php
/*
Plugin Name:
Plugin URI: http://
Description:
Version: 1.0
Author:
Author URI:
Network: 1
*/
@Tmeister
Tmeister / jquery
Created March 7, 2012 21:46
Plugin
;(function($){
$.fn.extend({
brickSlider: function(options) {
this.defaultOptions = {};
var settings = $.extend({}, this.defaultOptions, options);
return this.each(function() {
var $this = $(this);
});
@Tmeister
Tmeister / mediaqueries.css
Created July 19, 2012 17:16
Media Queries CSS3
/*
* MEDIA QUERIES
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/*Your Styles*/
}
/* Smartphones (landscape) ----------- */
@Tmeister
Tmeister / gist:3866397
Created October 10, 2012 15:36
Center Always on top Menu Text
ul.menu-always-on-top li ul li a {
padding: 10px 0 0 0px;
text-align: center;
}
@Tmeister
Tmeister / gist:6540938
Last active December 22, 2015 22:38
Global Settings Array
Array
(
[configuration] => Array
(
[icon] => icon-cog
[pos] => 1
[name] => Admin Shortcuts
[opts] => Array()
),
[basic_settings] => Array(...),
@Tmeister
Tmeister / gist:6540950
Last active December 22, 2015 22:38
pl_sorted_settings_array Filter
<?php
function section_persistent()
{
add_filter('pl_sorted_settings_array', array(&$this, 'add_global_panel'));
}
@Tmeister
Tmeister / gist:6540964
Last active December 22, 2015 22:38
add_global_panel function
<?php
function add_global_panel($settings){
$settings['coolSettings'] = array(
'name' => 'Cool Settings',
'icon' => 'icon-cogs',
'opts' => array(
// Regular Options Engine
array(
'key' => 'custom_copyright',
<?php
$this->opt('custom_copyright') );
<?php
unset($settings['importexport']);